Jack,

FWIW,

Even though RBase allows Variable coercion like this, it is not the best programming practice.

The variable "should" be typeconverted via function to another variable first, then if you wish to use the same varname with a different datatype, you should clear the original var, then make your assignment.

This will insulate you from possible future changes that won't allow such actions.


----- Original Message ----- From: "Jack Mathis" <[email protected]>
To: "RBASE-L Mailing List" <[email protected]>
Sent: Thursday, May 06, 2010 2:11 PM
Subject: [RBASE-L] - RE: TEXT TO INTEGER


SET VAR vProperty TEXT

GETPROPERTY componentID TEXTVALUE 'vProperty'

SET VAR vProperty INT



Jack Mathis



From: [email protected] [mailto:[email protected]] On Behalf Of Jim
Belisle
Sent: Wednesday, May 05, 2010 10:16 AM
To: RBASE-L Mailing List
Subject: [RBASE-L] - TEXT TO INTEGER



What function do I use to change the text value of a GETPROPERTY command
into Integer?



Jim


Reply via email to