hi seniors,
i have the following code.
...
UInt32 price;
UInt32 disc;
...
-------------------------
...
Char* price,disc;
...
StrIToA (price, (UInt32)record.iPrice);
StrIToA (disc, (UInt32)record.iDisc);
...
i set a breakpoint just before StrIToA function is executed. Then, i check the value
of 'price'
and 'disc'. i was surprised that the first statement assigns the value of 'price' and
'disc' with
the converted value of record.iPrice. It happens to the second statement as well while
its
executed, it assigns those variables with record.iDisc. i have already verified my
record's value
by setting breakpoints somewhere and it is correct.
How can i convert and assign the value of record.iPrice to price, and record.iDisc to
disc?
thx u for ur helps.
http://movies.yahoo.com.au - Yahoo! Movies
- Vote for your nominees in our online Oscars pool.
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/