Login ProductsSalesSupportDownloadsAbout |
Home » Technical Support » Elevate Web Builder Technical Support » Support Forums » Elevate Web Builder General » View Thread |
Messages 1 to 3 of 3 total |
External script |
Sun, Jul 7 2013 12:21 PM | Permanent Link |
Ronald | Hi,
I need a function to create a UUID. I have found some examples in Javascript. I have loaded this (simple example) Javascript in the TScript component: function Sum(a,b) { return a+b; } How can I create chain a function in EWB to this example? The examples in the help are not enough for me to get this started. Greetings, Ronald |
Mon, Jul 8 2013 2:44 PM | Permanent Link |
Tim Young [Elevate Software] Elevate Software, Inc. timyoung@elevatesoft.com | Ronald,
<< How can I create chain a function in EWB to this example? >> In one of your units, add this: external function Sum(a, b: Integer): Integer; You'll want to add it to the interface section of the unit if you want to use it in other units. Be *very* careful about the case of identifiers in the JavaScript and the Object Pascal - they must match *exactly* or you'll get runtime errors. Tim Young Elevate Software www.elevatesoft.com |
Mon, Jul 8 2013 3:27 PM | Permanent Link |
Ronald | Great! That works fine!
Thanks. "Tim Young [Elevate Software]" schreef in bericht news:AA38EE3F-1613-4B76-A46A-3F4F7050B42F@news.elevatesoft.com... Ronald, << How can I create chain a function in EWB to this example? >> In one of your units, add this: external function Sum(a, b: Integer): Integer; You'll want to add it to the interface section of the unit if you want to use it in other units. Be *very* careful about the case of identifiers in the JavaScript and the Object Pascal - they must match *exactly* or you'll get runtime errors. Tim Young Elevate Software www.elevatesoft.com |
This web page was last updated on Thursday, March 28, 2024 at 08:36 AM | Privacy PolicySite Map © 2024 Elevate Software, Inc. All Rights Reserved Questions or comments ? E-mail us at info@elevatesoft.com |