Dynamic Control Fill...[SOLVED]
I want to fill some Controls with information I read from a file...
The text is stored as:
Formname | ControlName | Value
eg.
Form1|Text1|Textvalue
When I run my code I get a `invalid qualifier`- error...
so theres something miss in the syntax...
it should give me
Form1.Text1 = Textvalue
VB Code:
Open FileName For Input As #fnum
Do Until EOF(1)
Line Input #fnum, data
If Not data = "" Then
elements = Split(data, "|")
'MsgBox elements(UBound(elements) - 2) & "-" & elements(UBound(elements) - 1) & "-" & elements(UBound(elements))
elements(UBound(elements) - 2).elements(UBound(elements) - 1) = elements(UBound(elements))
End If
Loop