IMPORTANT ANNOUNCEMENT

These forums were permanently set to read-only mode on July 20, 2022. From that day onwards, no new posting or comment is allowed on the site, but the historical content remains intact and searchable.

A new location for posting questions about PlanetPress Suite is now available:

OL Learn - PlanetPress Classic (opens in new tab)

Topic Options
#30657 - 01/14/10 07:29 AM make a returned value function.
Wladimir Offline
OL Newbie

Registered: 08/23/07
Posts: 10
Loc: Buenos Aires
What's wrong with this code?

function @namefield(&vale:string):string


&return := &vale

endfunction()

Thank you all

Top
#30658 - 01/14/10 09:12 AM Re: make a returned value function.
Raphael Lalonde Lefebvre Offline
OL Expert

Registered: 10/14/05
Posts: 4956
Loc: Objectif Lune Montreal
Wladimir,

The returned value is not &return, but &result. Use &result, and it should work fine.

Regards,
Rapha

Top