Problem with syntax - passing string params


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: Problem with syntax - passing string params

  1. #1
    Join Date
    Feb 2006
    Posts
    7

    Problem with syntax - passing string params

    Function WriteToFile(ByVal mytext As String, ByVal filepath As String, ByVal filename As String) As Boolean
    ...
    End Function

    Problem is here:

    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
    WriteToFile('test.txt','\\servername\c$\','\\servername\f$\inetpub\wwwroot\sss\sss\mainten ance\sss\sss\mnt_input\sss_input.txt')
    End Sub

    Error: Expression Expected.

  2. #2
    Join Date
    Nov 2004
    Location
    Huddinge, Sweden
    Posts
    283
    Try using double quotes instead...

    Rune
    If you hit a brick wall, you didn't jump high enough!

  3. #3
    Join Date
    Feb 2006
    Posts
    7
    thanks, works..

Similar Threads

  1. SQL DMO Restores in VB?
    By ObiWan in forum VB Classic
    Replies: 3
    Last Post: 05-23-2006, 10:35 AM
  2. Packed Data(Comp-3, etc)
    By Marcos in forum VB Classic
    Replies: 3
    Last Post: 01-25-2006, 11:18 AM
  3. Replies: 1
    Last Post: 06-05-2001, 06:12 AM
  4. quote in a string : query problem under VB
    By tyris in forum VB Classic
    Replies: 6
    Last Post: 02-01-2001, 02:08 AM
  5. Database problems
    By Robert Rieth in forum VB Classic
    Replies: 1
    Last Post: 04-11-2000, 03:21 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
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center