pepe
asked on
Converting to Integer Problems
I am having problems converting a string value in a table to an integer. An example is listed below.
Note: psoc is defined as an integer.
Table2's er_ssn is defined as a string.
psoc :=table2.FieldByName('er_s sn').asint eger;
Later I insert the value of psoc in a table and get...
psoc => -32324
if I do...
label1.capton :=table2.FieldByName('er_s sn').asstr ing;
I get ...
label1.caption => 006521276 (Which is the correct Number)
How do I populate the new table with the correct integer value???
P.S. I have changed the 'picture' property in the new table to display unsigned integer... But I still get -32324?
What do I do now....
Note: psoc is defined as an integer.
Table2's er_ssn is defined as a string.
psoc :=table2.FieldByName('er_s
Later I insert the value of psoc in a table and get...
psoc => -32324
if I do...
label1.capton :=table2.FieldByName('er_s
I get ...
label1.caption => 006521276 (Which is the correct Number)
How do I populate the new table with the correct integer value???
P.S. I have changed the 'picture' property in the new table to display unsigned integer... But I still get -32324?
What do I do now....
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER