Results 1 to 11 of 11

Thread: Dynamic Control Fill...[SOLVED]

Threaded View

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Aug 2002
    Location
    The Netherlands
    Posts
    96

    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:
    1. Open FileName For Input As #fnum
    2.  
    3.  Do Until EOF(1)
    4.      Line Input #fnum, data
    5.         If Not data = "" Then
    6.         elements = Split(data, "|")
    7.         'MsgBox elements(UBound(elements) - 2) & "-" & elements(UBound(elements) - 1) & "-" & elements(UBound(elements))
    8.         elements(UBound(elements) - 2).elements(UBound(elements) - 1) = elements(UBound(elements))
    9.         End If
    10.  Loop
    Last edited by Chrissie; Dec 13th, 2002 at 04:14 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width