Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Variant Data Type vs. Integer
Message
From
28/07/1999 21:46:43
 
 
To
All
General information
Forum:
Visual C++
Category:
Other
Title:
Variant Data Type vs. Integer
Miscellaneous
Thread ID:
00247497
Message ID:
00247497
Views:
44
I'm accessing a MS SQL table and assigning its records to variables.
It goes something like this:

MyVar = 0

Var2 = Recordset1("Field1") 'Field1 is numeric

MyVar = MyVar + Var2

The browser reports: 'data type mismatch'
When I debug in Interdev, I notice that MyVar's type is integer and Var2's type is Variant. How do I get around this? The table contains mostly numeric data fields.

I would really appreciate it if anyone can help me on this since I'm new at Visual Interdev and MS SQL.

Thanks
Next
Reply
Map
View

Click here to load this message in the networking platform