Results 1 to 8 of 8

Thread: expected end of statement error

Hybrid View

  1. #1
    PowerPoster
    Join Date
    Sep 2006
    Location
    Egypt
    Posts
    2,579

    Re: expected end of statement error

    The method UserFile.WriteLine seems not a function and it doesn't return a value, therefore you cannot use the & operator with it. Try to replace the line 41 with

    vb Code:
    1. UserFile.WriteLine objRecordSet.Fields("displayName").Value & ";" & objRecordSet.Fields("name").Value & ";"
    2. UserFile.WriteLine objRecordSet.Fields("st").Value & ";"
    3. UserFile.WriteLine objRecordSet.Fields("wwwhomepage").Value & ";"
    4. UserFile.WriteLine objRecordSet.Fields("description").Value]



  2. #2
    Addicted Member
    Join Date
    Jul 2009
    Posts
    208

    Re: expected end of statement error

    Try:
    Code:
    UserFile.WriteLine objRecordSet.Fields("displayName").Value & ";" & objRecordSet.Fields("name").Value & ";" & objRecordSet.Fields("st").Value & ";" & objRecordSet.Fields("wwwhomepage").Value & ";" & objRecordSet.Fields("description").Value

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