VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Add Quotes

by Digital (1 Submission)
Category: String Manipulation
Compatability: Visual Basic 3.0
Difficulty: Beginner
Date Added: Wed 3rd February 2021
Rating: (16 Votes)

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.

Inputs
str is the String to add quotes to.
Assumes
No real "user notes" here...except it was a pain to think this one up =)
Code Returns
The Fixed String
API Declarations
None

Rate Add Quotes

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

Download this snippet    Add to My Saved Code

Add Quotes Comments

No comments have been posted about Add Quotes. Why not be the first to post a comment about Add Quotes.

Post your comment

Subject:
Message:
0/1000 characters