Jump to content

Dany

Members
  • Content Count

    128
  • Joined

  • Last visited

About Dany

  • Rank

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Dany

    What happened to VarIsValidRef?

    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)

    Thanks!
  6. 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
  7. Dany

    How to work with JSON data?

    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
  8. Dany

    JHTMLOptionElement constructor

    Thank you, I agree. I would have hoped to have it "officially" confirmed. Regards, /Dany
  9. Dany

    JHTMLOptionElement constructor

    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
  10. Dany

    Upload Image to Rest Server

    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 XHTTPRequest object should be in an ok state by then (have not checked, when i think about it i have never used the header functionality like that). Did you make sure there's no requests in the cache that may have header info? Too late (and i think this may be your problem): In the string version of Put Primoz inserts a header to tell the server this is text data. Then stringifies your JObject. So casting won't help in your original quest. You could perhaps try to stringify yourself or set that header early on (['Content-Type'] := 'application/json' if needed). call.Put(JSON.stringify(data)); HTH, /Dany
  11. 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
  12. 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
  13. 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
  14. Dany

    How to enable global var in SMS?

    Brilliant. OK. But you do not write where this comes from. Unit? ECMA? SMS JSCodegen?
  15. Dany

    Searching backwards

    Shift+F3, just realized. Brilliant!
×