B B4JExplorer Active Member Licensed User Longtime User Mar 4, 2015 #1 Hi, Similar to GetType, which returns the java type that a variable belongs to, is there a similar function which will tell us the B4J type? So if we have a variable defined as an Int, it would return "Int", rather than "java.lang.Integer"?
Hi, Similar to GetType, which returns the java type that a variable belongs to, is there a similar function which will tell us the B4J type? So if we have a variable defined as an Int, it would return "Int", rather than "java.lang.Integer"?
Erel B4X founder Staff member Licensed User Longtime User Mar 5, 2015 #2 Not exactly. You can use Is keyword: B4X: If i Is Int Then Else if i Is Float Then Upvote 0
B B4JExplorer Active Member Licensed User Longtime User Mar 5, 2015 #3 That will work, thanks. Upvote 0