T
Tony Van
Is there any way to construct a line of code in a VB.net
program from a string?
Something like this...
Dim sStr As String = "txtName"
Dim sField As String = "name"
Dim cCmd As String
cCmd = sStr & ".DataBindings.Add('Text', myADO.ds, 'snat.'"
& sField & ")"
..... and make cCmd a line of code that looks like:
txtName.DataBindings.Add("Text", myADO.ds, "snat.name")
Hope this is not too dumb a newbie question. Thanks.
program from a string?
Something like this...
Dim sStr As String = "txtName"
Dim sField As String = "name"
Dim cCmd As String
cCmd = sStr & ".DataBindings.Add('Text', myADO.ds, 'snat.'"
& sField & ")"
..... and make cCmd a line of code that looks like:
txtName.DataBindings.Add("Text", myADO.ds, "snat.name")
Hope this is not too dumb a newbie question. Thanks.