[SOLVED] Can a PHP Method return a value?

Can a PHP Method in a Control Application return a value?

Any example would be appreciated.

You could try to do a little test. Create a function in the php method, i.e. GetValue();
Add
return 12;

Then in an event you call the function

{myformfield}=GetValue();

If it shows 12 it works, if not it appearantly isn’t possible.

Many thanks Albert. Works fine as standard PHP.

Hi Albert, what if I need to display an array of values in a dropdown/list box during page load, how to achieve this?

Scriptcase works from tables so a dropdown list would be difficult if you have a php array of data. The approach would be to create a temporary table and use that as a lookup reference.