MelvinTucker
MIS
I have been trying to solve this problem for the last three days and have finally decided I need help. Here is the question.
I am using a tool called llblgen which generates a VB.NET Data Access Layer based on the schema in a SQL server database. The tool works fine there problem i am have is this. While creating the properties for the classes the tool uses sqltypes meaning I have a database field called FirstName which is varchar in the database. The proerties is defined as a SQLString type. When I try to assign the value from a text box to this proerty i get invalid cast. No mater what i do i cannot seem to understand how to assign textbox values or listbox values to a variable or a property that has been defined as a sqltype.
My question to you is how do you convert a textbox.text value to sqlstring
Sample Code
Dim x As SqlString
x = "Help Me..." (Code Errors Out Here!!!!)
Error Description
Value Of Type String Can Not Be Convert To SQLString?????
I am using a tool called llblgen which generates a VB.NET Data Access Layer based on the schema in a SQL server database. The tool works fine there problem i am have is this. While creating the properties for the classes the tool uses sqltypes meaning I have a database field called FirstName which is varchar in the database. The proerties is defined as a SQLString type. When I try to assign the value from a text box to this proerty i get invalid cast. No mater what i do i cannot seem to understand how to assign textbox values or listbox values to a variable or a property that has been defined as a sqltype.
My question to you is how do you convert a textbox.text value to sqlstring
Sample Code
Dim x As SqlString
x = "Help Me..." (Code Errors Out Here!!!!)
Error Description
Value Of Type String Can Not Be Convert To SQLString?????