Link to home
Start Free TrialLog in
Avatar of AFGPHXExcel
AFGPHXExcel

asked on

How do I use a comma in a string?

I want to set my string variable, v_WksNamesStr, equal to the value of "Requirements", The code looks like this:

v_WksNamesStr = ""RequirementSummary","

Its looking for more after the comma.
Avatar of Patrick Matthews
Patrick Matthews
Flag of United States of America image

Try:

v_WksNamesStr = "RequirementSummary"

Open in new window

It looks like you had too many doublequotes and a superfluous comma
Not sure if the comma is part of the string but if it is, then you have to do like this:

v_WksNamesStr = "RequirementSummary,"
ASKER CERTIFIED SOLUTION
Avatar of Saqib Husain
Saqib Husain
Flag of Pakistan image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Hi, did you notice that that was exactly what I proposed?

Saqib
Thanks ModCorlEEone