Great suggestions...thank you, Peter.
In the case that gave rise to my initial question, i have to use something other than a double quote since the string being defined will contain those.
------------------------------
Shawn Waldie
enterprise application developer
Rocket Forum Shared Account
Los Angeles CA US
------------------------------
Original Message:
Sent: 03-28-2023 08:56
From: Peter Gonzalez
Subject: Assigning literal strings to variables
Shawn,
For consistency I never use a ' but rather ".
COLOR = "BLUE" ;* preferred method of the "
COLOR = 'RED' ;* never used.
COLOR = \YELLOW\ ;* never use to assign a variable but preferred method to execute a TCL statement or an Operating system command.
STMT = \SELECT FILENAME WITH COLOR = "BLUE" \ ;* preferred method of the \ It's much easier to read and easy on the eyes.
------------------------------
Peter Gonzalez
Programmer/Systems Analyst/EDI Developer
Self Registered
St. Louis MO US
Original Message:
Sent: 03-27-2023 12:44
From: Shawn Waldie
Subject: Assigning literal strings to variables
What are all the valid ways to quote literal strings when assigning them to variables in unibasic on Unidata?
------------------------------
Shawn Waldie
enterprise application developer
Rocket Forum Shared Account
Los Angeles CA US
------------------------------