![]() |
#1 |
Junior Member
Join Date: May 2011
Posts: 11
|
How to pass empty string as macro parameter?
For example
code: this code raises an error - Push expects 1 parameters, got 0. It happens because param1 is replaced by nothing, in result we have Push call without any parameters. How do you resolve this problem? |
![]() |
![]() |
![]() |
#2 |
Moderator
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
|
Use quotes around the values (` is recommended because ' and " are more commonly used within strings).code: Stu |
![]() |
![]() |
![]() |
#3 |
Junior Member
Join Date: May 2011
Posts: 11
|
Great! Thank you.
|
![]() |
![]() |
![]() |
|
Tags |
empty string, macro |
Thread Tools | Search this Thread |
Display Modes | |
|
|