In Servoy 5 you can set parameters at for example the onAction event of a button. Two questions :
- How can I set an integer value as parameter (Servoy puts ‘’ around what you type) ?
![Crying or Very sad :cry:]()
- How can I set a variable value as parameter (Servoy puts ‘’ around what you type) ?
![Crying or Very sad :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 ?
I mean : Can I use a variablename (datafield, formvariable etc.) in the parameter, so that Servoy passes the value to the method ?