README.md

December 5, 2022 ยท View on GitHub

Add Quotes

Description

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.

More Info

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

Submitted On
ByDigital
LevelBeginner
User Rating4.2 (67 globes from 16 users)
CompatibilityVB 3.0, VB 4.0 (16-bit), VB 4.0 (32-bit), VB 5.0, VB 6.0
CategoryString Manipulation
WorldVisual Basic
Archive File

API Declarations

None

Source Code

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