Returning more than one varible

The use of specific JADE features and proposals for new feature suggestions
ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Returning more than one varible

Postby ConvertFromOldNGs » Fri Aug 07, 2009 10:48 am

by Isaac Johnston >> Fri, 8 Jun 2001 11:16:30 GMT

I was just woundering , is there any way to return more than one varible with "retrun" in Jade? This is a normal practice in Delphi so I would be surprised if Jade did not do this ....

ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Re: Returning more than one varible

Postby ConvertFromOldNGs » Fri Aug 07, 2009 10:48 am

by Darrell Duniam >> Sat, 9 Jun 2001 1:51:50 GMT

Hi Isaac,

You can do this by declaring your method's parameters as "io" or "output". For example:

getTransaction(description:String output; debit:Decimal output; credit:Decimal output);
begin

description := self.transactionName;
debit := self.debitAmount;
credit := self.creditAmount;
end;

regards,
darrell.

"Isaac Johnston" <isaac_j@ihug.co.nz> wrote in message news:Ey#3W1A8AHA.291@cnwchcs54.cnw.co.nz...
I was just woundering , is there any way to return more than one varible with "retrun" in Jade? This is a normal practice in Delphi so I would be surprised if Jade did not do this ....


Return to “Feature Discussions”

Who is online

Users browsing this forum: No registered users and 7 guests