|
-
Feb 12th, 2003, 06:57 AM
#1
Thread Starter
New Member
OleDbSchemaGuid data_type conversion
In retrieving the columns data type from a table by using 'OleDbSchemaGuid', the data_type returned is an integer. Could someone please explain the method of converting the integer data_type to its 'string name' eg 'Int16'.
Thankyou
-
Feb 13th, 2003, 03:19 AM
#2
Sleep mode
Is this what you mean ?
VB Code:
Dim int As Integer = 321
Dim str As String = Convert.ToString(int)
MessageBox.Show(Str)
-
Feb 13th, 2003, 09:58 AM
#3
Thread Starter
New Member
No, a little different from that
Using 'OleDbSchemaGuid' and retrieving the Data_type for the columns, returns an integer value representing the data type eg integer = 2; Double = 5; date/time = 7 etc. My problem is trying to convert the returned value ie the integer into a string = 'Integer' and not just a conversion of data type from integer = 1 to string = 1.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|