Post Reply 
how to remove string?
06-01-2018, 09:27 PM
Post: #6
RE: how to remove string?
(06-01-2018 08:54 PM)Richard Wrote:  another example
Why can not the global variables be modified from the program?

Is this what you want to do :
Code:
EXPORT LIST_1:={1,2,3}; 
EXPORT LIST_2:={"A","B","C"};

ID;
NUMBER;
VAR;

EXPORT global2()
BEGIN

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

//LIST_2▶VAR;

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

END;
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? - Didier Lachieze - 06-01-2018 09:27 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)