Post Reply 
Can you check for string parameters without a magic number?
11-16-2017, 07:37 AM
Post: #5
RE: Can you check for string parameters without a magic number?
Uso comĂșn: TYPE(n)
Code:
EXPORT TypeString(n)
BEGIN
  n:=TYPE(n);
  CASE
    IF n=0 THEN "Real" END
    IF n=1 THEN "Integer" END
    IF n=2 THEN "String" END
    IF n=3 THEN "Complex" END
    IF n=4 THEN "Matrix" END
    IF n=6 THEN "List" END
    IF n=8 THEN "Function" END
    IF n=9 THEN "Unit" END
     "?"
  END
END;

Viga C | TD | FB
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Can you check for string parameters without a magic number? - Carlos295pz - 11-16-2017 07:37 AM



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