Welcome! Log In Create A New Profile


Edit control and variable types

Posted by gpredl 
Edit control and variable types
January 31, 2021 10:20AM

I'm using an Edit Control MyValue for inputting a numeric value. Depending on the input mask (here it is "999999"), the Edit Control will automatically return an int or a ?-byte real. However, directly calling a procedure like

MyProcedure(MyValue as 4-byte unsigned int, ....

will fail! The procedure does not automatically convert integer (= int) to 4-byte unsigned int !!! You have to invent a new variable

NewMyValue is 4-byte unsigned int = MyValue

here, the auto-conversion feature of WINDEV works. Now, calling the procedure like

MyProcedure(NewMyValue as 4-byte unsigned int, ....

will work flawlessly.

Kind regards,
Guenter Predl

Your Email:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.