Results 1 to 3 of 3

Thread: write to a variable

  1. #1

    Thread Starter
    New Member
    Join Date
    Aug 2002
    Posts
    13

    write to a variable

    I want to write a file to a variable. I have a database the has a record the can only be extracted to a file. I want to extract it to a variable. It has some funky formatting that gets messed when it is put to a file.

    vb6

    Thanks in advance

  2. #2
    Frenzied Member
    Join Date
    Jan 2000
    Location
    Bellevue, WA, USA
    Posts
    1,357
    Just set your variable equal to the field value of the recordset object you are using (assuming you're using ADO):
    VB Code:
    1. ' Assuming your recordset cursor is currently pointing to the
    2. record you want and the field is called "MyField"
    3. Dim sMyVar as String
    4.  
    5. sMyVar = objRst.Fields("MyField").Value
    ~seaweed

  3. #3

    Thread Starter
    New Member
    Join Date
    Aug 2002
    Posts
    13

    No ado

    it is a OCX the connects to Novell's Directoy services and the login script is a stream file. The OCX want to write to a file but I thought a saw a way to create a variable like a file.
    I might be thinking of a different function but any help would be greatly useful.

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