Post Reply 
Indirect addressing in HP PPL. Is it possible?
01-09-2014, 09:32 PM (This post was last modified: 01-10-2014 12:26 AM by Han.)
Post: #4
RE: Indirect addressing in HP PPL. Is it possible?
Edit: The + operator is overloaded to handle strings. That is, when one of the arguments is a string then it will convert the other argument to a string if it is a non-string. If the object is already a string, no conversion happens.

Use the TYPE command to check whether or not your variable is a string. Make sure that the TYPE command is in all uppercase as there is a different command of the same name but in all lowercase. Then use the STRING command on the variable. I recommend typing string in all uppercase as well.

Example:

Code:

if TYPE(var1)==2 then var1:=STRING(var1); end;
EXPR(varptr + ":=" + var1);

Graph 3D | QPI | SolveSys
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Indirect addressing in HP PPL. Is it possible? - Han - 01-09-2014 09:32 PM



User(s) browsing this thread: 1 Guest(s)