Search Tools Links Login

Add Quotes

Posted: 2002-06-01
By: ArchiveBot
Viewed: 56

Filed Under:

VB6 Code Cache

No attachments for this post

This Function Adds quotes to a filename... especially useful when sending
an arguement to a program (ie a filename) and it has spaces in it (with spaces
if shows up as multiple arguements.

Original Author: Digital


str is the String to add quotes to.


No real "user notes" here...except it was a pain to think this one up =)


The Fixed String

API Declarations



Public Function addQuotes(ByVal str As String) As String
    addQuotes = Chr(34) & str & Chr(34)
End Function

Comments on this post

No comments have been added for this post.

You must be logged in to make a comment.