Hi every body
I wonder if there is a Type that converts a string to a VB syntax to be read by the compiler.
for example:
Dim command1, command2, command3 As what??!
Dim drv as DataSet.Datarow
drv = CType(BindingSource.Current, DataRowView).Row
drv.K01= something
drv.K02=somthing else
.
.
.
getkey is a string with values like "01","02",... and is got by the sub args.
command1 = CType("drv.K" + getkey, what??!)
command2 = CType("drv.K" + getkey + "1", what??!)
command3 = CType("drv.K" + getkey + "2", what??!)
tbox1.Text = command1 '>>> command1 acts just like a sub or Function
tbox2.Text = command2
tbox3.Text = command3
'==========================================
thank you for your attention.
I wonder if there is a Type that converts a string to a VB syntax to be read by the compiler.
for example:
Dim command1, command2, command3 As what??!
Dim drv as DataSet.Datarow
drv = CType(BindingSource.Current, DataRowView).Row
drv.K01= something
drv.K02=somthing else
.
.
.
getkey is a string with values like "01","02",... and is got by the sub args.
command1 = CType("drv.K" + getkey, what??!)
command2 = CType("drv.K" + getkey + "1", what??!)
command3 = CType("drv.K" + getkey + "2", what??!)
tbox1.Text = command1 '>>> command1 acts just like a sub or Function
tbox2.Text = command2
tbox3.Text = command3
'==========================================
thank you for your attention.