I have a text field on a form.
It is for entry of a number which I use in a calculation.
When I use it in an expression like Some_integer - Text1 it gives the message "Argument not optional and highlights Text1.
When I try the command data_numeric=Val(text1.text) it gives me an error saying "Method or data member not found and highlights: ".text". It does the same with CStr.
Both of these were suggested to me but i must not have the syntax down right.
data_numeric=Val(text1) doesn't work either.
Any suggestions?
It is for entry of a number which I use in a calculation.
When I use it in an expression like Some_integer - Text1 it gives the message "Argument not optional and highlights Text1.
When I try the command data_numeric=Val(text1.text) it gives me an error saying "Method or data member not found and highlights: ".text". It does the same with CStr.
Both of these were suggested to me but i must not have the syntax down right.
data_numeric=Val(text1) doesn't work either.
Any suggestions?