Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 3 of 3 total
Thread External script
Sun, Jul 7 2013 12:21 PMPermanent 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 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email 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 PMPermanent 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

Image