Post Reply 
how to remove string?
06-01-2018, 08:54 PM
Post: #5
RE: how to remove string?
Code:
EXPORT LIST_1:={1,2,3}; 
EXPORT LIST_2:={"A","B","C"};

ID;
NUMBER;
VAR;

EXPORT global2()
BEGIN

NUMBER:=1;
ID:=EXPR("'LIST_"+NUMBER+"'");  // ID  =LIST_1
VAR:=EXPR("'LIST_"+NUMBER+"'"); // VAR =LIST_1

LIST_2▶VAR;

PRINT;
PRINT(ID+"=");
PRINT(VAR);

END;


another example
Why can not the global variables be modified from the program?
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
how to remove string? - Richard - 05-31-2018, 06:44 PM
RE: how to remove string? - Richard - 06-01-2018, 06:48 AM
RE: how to remove string? - Richard - 06-01-2018, 04:55 PM
RE: how to remove string? - Richard - 06-01-2018 08:54 PM
RE: how to remove string? - Richard - 06-02-2018, 04:49 PM
RE: how to remove string? - Richard - 06-02-2018, 04:49 PM
RE: how to remove string? - roadrunner - 06-03-2018, 10:23 AM
RE: how to remove string? - Tim Wessman - 06-03-2018, 11:58 PM
RE: how to remove string? - Richard - 06-04-2018, 01:29 PM



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