Jump to content

kdtop3

Members
  • Content Count

    58
  • Joined

  • Last visited

    Never

Everything posted by kdtop3

  1. OK. I sent the file. Please let me know when you have any information. Kevin
  2. Well, back to the same error. I'll submit a zip of the project by email to see if you can replicate the error. Kevin
  3. Looks like variants are in System.Types; Kevin
  4. I have downloaded the unofficial beta and brought my project up in it. There has been substantial changes from the W3* namespace to the SmartCL* namespace. But I got everything converted over, I think except for Variant types. Where is that defined? My code that uses variants compiled before, but now throws errors of unknown variable time TVariant (or maybe it was just 'variant' not 'TVariant'). Where unit are variants in? Kevin
  5. May I have *some* response to this support request? It has been 2 weeks now.... Kevin
  6. I am getting another compiler error. Here is the output. The Hint lines can be ignored of course. ----------------------------------------- [iDE] Compiling solution VistAREST .. Hint: Variable "TmpExt" declared but not used [line: 113, column: 3, file: ORNet] Hint: Variable "SavedCursor" declared but not used [line: 401, column: 3, file: ORNet] Hint: Variable "SavedCursor" declared but not used [line: 413, column: 3, file: ORNet] Hint: Variable "SavedCursor" declared but not used [line: 426, column: 3, file: ORNet] Hint: Result is never used [line: 454, colum
  7. Eric, Thanks for the reply. I am porting some code from the Lazarus library. I'd have to check if this is an issue unique to the FPC compiler, but I thought that the Delphi compiler used ()'s instead of []'s. Your explanation makes sense, but it is also nice if it works similar to other pascal compilers. Makes porting easier. So I am glad that you are supporting either syntax. Kevin
  8. I solved this as follows: const LeapMonthDays: TDayTable = (31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31); NormalMonthDays: TDayTable = (31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31); MonthDays: array [boolean] of TDayTable = (NormalMonthDays, LeapMonthDays); I'm not sure if there is a lesson to be learned here. I think it would be that complex constant arrays will have to be simplified first. Thanks Kevin
  9. type TDayTable = array[1..12] of Word; const { True=Leapyear } MonthDays: array [boolean] of TDayTable = ((31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31), (31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31)); I get an error: ")" expected. It puts the cursur just after the first 31 on the first line of constants. Thankes.
  10. Just an update on this issue. The SMS team sent me a hotfix to get be back on the road again. They will presumably be including the fix in the forthcoming new version. Thanks guys! Kevin
  11. What is the status of 2.1? How will the release be announced? Kevin
  12. Thanks for getting back to me on this. I can wait until the end of May (should be just a week now) and see if that fixes the problem. Thanks Kevin
  13. I contacted support directly on 5/12/14 (9 days ago as of this writing) with a reproducable compiler error. The SMS confirmed that the error existed, but indicated they were too busy to determine the cause. Now, over a week later, I have still not heard back despite a followup email asking for a time estimate as to when it could be looked at. Below is part of my initial message -------------------- I am porting a large pascal application. I have really just gotten started, but I am concerned that I have already overloaded the compiler. I have been slowly adding in one file a
  14. Thanks for the reply. I'll digest this. Kevin
  15. I should add that this ORFn.pas file has 2400 lines of code. So perhaps it is bigger than was anticipated. Kevin
  16. The X and Y coordinates of the cursor are getting swapped during save. This should be a simple bug to fix. Sequence to demonstrate: 1) I go to line (Y) 800, and put my cursor at column (X) = 3 2) Exit the project, saying YES to saving changes 3) Reload the project. 4) My cursor is now at Line (Y) 3 and column (X) 800, as shown on status bar at the bottom of the application. This is a bother because it causes the code to not be shown, and I have to drag the scroll bar all the way back to the left. The file I am currently porting has 2400 lines
  17. I'm having a strange problem with the IDE not saving properly today. It appears to be keeping a hidden buffer that is out of date, and is saving THAT out. I have had this problem with one particular file today, I'm not sure why this one is causing the problem Steps to reproduce this on my system 1. Open File (my file name is ORFn.pas) 2. Make a small change and save. E.g. I put //test1 at the top of the file 3. Open file from file system, outside of SMS, into Notepad. Note that //Test1 is present, so save was correct. 4. Exit SMS. Agree to saving changes to the proj
  18. Background: When in an asm block, with included native javascript code, a coder can use the '@' symbol to reference a pascal string. This ensures that the compiler keeps the variable name to be the same inside the asm block as outside. Issue: It doesn't seem to be possible to access properties of the pascal variable. Imagine a variable AVar : TMyClass. And TMyClass has property of Name, then trying to access length seems to cause problems: asm @AVar.Name = 'hello'; end; Consider also the following code: asm var s2=@Str; var splitStr
  19. I am having an issue where SMS doesn't seem to be saving my editor changes despite me pressing the SAVE button or typing CTRL-S. I am still trying to figure out if this is an issue with the host file system, or with SMS. But while working on this, I see that there is no indicator of whether or not a file has been saved/modified. Could we the file name on the bottom line be modified with an * if it has been modified? I.e. when a file has been edited, change it from MyFile to *MyFile. Then after saved, put it back to MyFile. It seems like this is the standard way that other IDE's do this.
  20. Can anyone give me a link on how to use oxygene in SMS? Do I just use the language elements? Do I have to set a program option? Do I have to put in a compiler directive? Thanks Kevin
  21. In the Delphi IDE, if my cursor is in the middle of a word and I type ctrl-F, then that word is put into the find dialog as the default search term. This makes for searching for things to be quick. I click the word, Ctrl-F, and press enter. SMS, in contrast, requires me to type in the search term each time. Doesn't sound like a big deal, but I really miss it when coding. Thanks Kevin
  22. I would start by trying to get web workers in Chrome aside from SMS. Here are some demos http://html5demos.com/worker https://developer.mozilla.org/en-US/demos/tag/tech:webworkers Then I would try to see how to debug through the above demos using debugging tools http://blog.chromium.org/2012/04/debugging-web-workers-with-chrome.html Then, if you can get these generic demos working, then create a similar simple program with SMS and debug that. That's how I would start. But I don't have much experience with all this. Kevin
  23. OK, dumb question: is the version of pascal called "oxygene" in SMS? Or is oxygene a different language entirely, but SMS supports it? Thanks Kevin
  24. I am trying to work with a list box, and am having some confusion. NOTE: I figured out things as I wrote this out. I'll post anyway in case it helps anyone else. I am looking at the provided demo program ControlsListBox. What I really want to do is to emulate the behavior of a Delphi Listbox, namely a list of strings that can be selected. It seems instead that each entry is an object. That may prove to be useful, but for now I need to know how to get strings into and out of the Listbox. I see this code: W3btnLB1Add.OnClick := lambda W3listbox1.Add(IntToStr(W3lis
×
×
  • Create New...