Post Reply 
Get "de-string" an expression
03-09-2015, 01:24 PM
Post: #2
RE: Get "de-string" an expression
Code:

EXPORT INT_HEX(X)
BEGIN
  LOCAL str;
  CASE
    IF TYPE(X)==0 THEN R→B(X,32,4); END;
    IF TYPE(X)==1 THEN SETBASE(X,Base); END; //Base is already set to 3
    IF TYPE(X)==2 THEN str:="#"+X+"h";  INT_HEX( CAS(str)); END; //input String like "AA" should return #AAh
    DEFAULT "";
   END;
 // R→B(X,32,4);
END;

That works. But I do not understand what CAS() is doing to integers.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Get "de-string" an expression - Angus - 03-09-2015, 01:11 PM
RE: Get "de-string" an expression - Angus - 03-09-2015 01:24 PM
RE: Get "de-string" an expression - DrD - 03-09-2015, 01:56 PM
RE: Get "de-string" an expression - Angus - 03-09-2015, 02:02 PM
RE: Get "de-string" an expression - DrD - 03-09-2015, 02:17 PM
RE: Get "de-string" an expression - Angus - 03-09-2015, 02:38 PM
RE: Get "de-string" an expression - Angus - 03-10-2015, 05:47 AM



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