I'm getting a type mismatch error under Visual Basic while I attempt to create 
a variant from user altered data to use to load back into a record on the Palm 
device.  The problem occurs when I transition from adding structure variables 
that are strings to the variant and begin to add structure variables that are 
integers, by using CVar(integer_variable_name) then adding the result to the 
variant type variable that previously only contained strings.

The variant data type keeps track of the type of data that it contains, and 
this kind of mixing seems to not be permitted.  Is there a way of adding 
strings to a variant variable (by which I do not mean arithmatically adding 
them) then adding integers to the variant without resorting to converting the 
integer to a string first?  I am concerned that such a conversion would alter 
the number of bytes being used to store the integer and its representation 
(converting a numerical value to an ASCI character representation), thus 
affecting what is actually stored on the Palm device.

Thanks for any recommendations here (other than the part about giving up all 
hope of ever getting this to work).
-- 
For information on using the PalmSource Developer Forums, or to unsubscribe, 
please see http://www.palmos.com/dev/support/forums/

Reply via email to