Parameters form events

In Servoy 5 you can set parameters at for example the onAction event of a button. Two questions :

  1. How can I set an integer value as parameter (Servoy puts ‘’ around what you type) ? :cry:
  2. How can I set a variable value as parameter (Servoy puts ‘’ around what you type) ? :cry:

Lambert,

You can use constant values.
If you type some digits this will be passed as a number (there should be no quotes around it).
You can use true or false (also without quotes) to pass in a boolean.
Anything else will be interpreted as string and needs quotes. I you do not type them Servoy Developer will add them for you.

Rob

Hi Rob, thanks.

Can I enforce variable/field evaluation in the parameter setting ?

lwjwillemsen:
Can I enforce variable/field evaluation in the parameter setting ?

What do you mean?

I mean : Can I use a variablename (datafield, formvariable etc.) in the parameter, so that Servoy passes the value to the method ?

Not currently.

Rob