Jump to content

Dany

Members
  • Content Count

    128
  • Joined

  • Last visited

Everything posted by Dany

  1. You should be able to do the same using functions Assigned and Defined.
  2. jarto! Thank for the quick response. Brilliant! Sorry, what i meant was what build, i.e. what commit is compiled into the version i am using. I have been compiling a huge project using only DWScript. But with >3.0 i can point to other libraries so i was thinking to try SMS 3.0. However, there are some stuff in the sources (my sources) that may rely on very recent DWScript changes. This is why i would like something like "DWScript 4f4b8f2 2019-03-15" in the About. Or if i can glean this information from somewhere else. Regards, /Dany
  3. Hi! How can i know *exactly* what DWScript build is compiled into a given version of SMS? TIA, /Dany
  4. Dany

    License (Gumroad)

    I now have a license e-mail. Thank you. Odd that i could not find it if it has been sent (as it seems it has been) - i do rely on e-mail archives for a lot of things. Anyway - all good now!
  5. Dany

    License (Gumroad)

    I'm pretty sure i'm getting billed via "Gumroad"*. No i'm sure. Yesterday i downloaded the latest version but my license is not up to date. I went into gumroad and received an e-mail stating that "We will send you the license key shortly.". What is shortly? I'd like to test some aspects of the latest SMS, please! Kind regards, /D * I must say this must be one of the most frustrating "sites" from the viewpoint of a subscriber. I'd guess a lot of designers and "visionaries" are involved
  6. Is it possible to define a class for this JSON and cast to it as above? Would anyone care to write an example? {id: 1, values: [{"name":"one", value:55, used:true}, {"name":"two", value:65, used:false}]} Also how would a object definition look? I.e. something like: var object := class id: Integer = 1; values ..?... end; TIA, /D
  7. Thank you, I agree. I would have hoped to have it "officially" confirmed. Regards, /Dany
  8. Are there any news on this. Trying to use procedure scrollIntoView; procedure scrollIntoView(top: Boolean); overload; procedure scrollIntoView(top: Boolean; options: JScrollOptions); overload; from W3C.CSSOM. I can only figure out how to use the first overload Regards, /Dany
  9. The Put method comes in two versions: function Put(data: string = ''): TRESTCall; overload; function Put(data: JObject): TRESTCall; overload; You should be able to do call.Put(JObject(data)); but i have not checked if it works. The error message above seems related to something else. Either headers are set too early or too late, i can't know by the error message (without research). Too early (perhaps not your problem): It [the error] would be emitted during the execution of "Call" (in TRESTCall.Create TW3HttpHeader.SetRequestHeader is called). The Underlying XHTTPReques
  10. As i compile the "Message" pane is cleared and filled up with compile and link time information. This overwrites any search amongst files i have done. Often i use the search result as a quick "to do" or "do check". I'd like to be able to compile and retain the (clickable) result. Thus my suggestion is that the search result have it's own panel (&Search). Even better would be an option like the Delphi IDE "open a new panel for each search". Regards, /Dany
  11. I have a similar problem. It seems that browsers won't clearly tell you that the server is unavailable. I ended up putting a timeout on the XHRs and will get a timeout event. Sometimes it's comfortable to un-set the timeout (esp. if you use both download and upload event objects) but that does not work in IE. HTH, /Dany
  12. Dany

    Searching backwards

    Good for you, Marcus IMHO the SMS IDE search may take on a LOT of improvements. It was useless to discuss these until recently when the "not found" bug was fixed. Search for posts by my name
  13. Brilliant. OK. But you do not write where this comes from. Unit? ECMA? SMS JSCodegen?
  14. Dany

    Searching backwards

    Shift+F3, just realized. Brilliant!
  15. Brilliant answer, Christian! I'm sure it's possible to find, and i know it's been discussed, but i like to point out that the "class external" approach goes both ways too. Sometimes (because of the way some name need to change from pascal to js even regardless of code obfuscation) the "class external" approach is much better than to JSON.stringify records.
  16. Dany

    Keyword confusion?

    Interesting! I'll check that out (to get more comfortable with the "workings of"...). /D
  17. Dany

    Keyword confusion?

    "DWScript JS CodeGen's mini RTL" is the problem for me. Am i correct in stating that this piece of code is close source and rather undocumented? Or can i find the details around this "step" or "module" somewhere? Regards, /Dany
  18. Dany

    Keyword confusion?

    Hello! In a project (without any/ *CL headers, this compiles: ShowMessage('hello'); but (naturally) the browser will throw an exception as the external declaration for ShowMessage is in SmartCL.System.pas. I'm just notifying because it feels like this may be a symptom of something worse. Regards, /Dany
  19. Oh, and so that y'all can avoid some pitfall; using that method of adding the event should only be done once. If done twice you'll end up processing it twice - a potential problem. If you have the need to remove the event you can define a delegate (i hope my nomenclature is correct) to make it work: var errEvt: TEventListener; errEvt := HandleUncaughtExceptions; ... Window.addEventListener('error', @errEvt); ... Window.removeEventListener('error', @errEvt); HTH, /Dany
  20. Sorry for the delay - i did not have the notification turned on and have been "away" for a short while: I add this like so: Window.addEventListener('error', @HandleUncaughtExceptions); (Window is from W3C.HTML5.pas) Regards, /Dany
  21. Syntax Error: Argument 2 expects type "procedure (String, Integer)" instead of "procedure (String, Integer)" [line: 2770, column: 7, file: DocSearchManager] The difference in the signatur was that the parameters should have been "const". IMO if it's possible it would be nice if it showed in the message. Regards, /Dany
  22. Dany

    not in

    Hmm... odd. When rewriting to [pas] if not (type in ['button']) i get the same expression generated [js]: if (!type=="button") that also never becomes true (?). Now i'm confused.
  23. Dany

    not in

    IMO this should giva a compile time error (at least if DWScript follows Delphi here) [pas]: if (type not in ['button']) but instead generates an expression that always evaluate to false. /D
  24. Got it, thanks! My code sample was JS, not Pascal /D
×
×
  • Create New...