C CyborgSCDev Banned Feb 16, 2012 #1 Are there any ways to use CType or AndAlso in Basic4Android? I can't seem to get them to work. Or are there any replacement functions I could use to get around it?
Are there any ways to use CType or AndAlso in Basic4Android? I can't seem to get them to work. Or are there any replacement functions I could use to get around it?
Erel B4X founder Staff member Licensed User Longtime User Feb 16, 2012 #2 CType is not needed. The compiler converts the types automatically. Basic4android AND semantics is like VB.Net AndAlso: B4X: If 1 = 2 AND ThisConditionWillNeverBeChecked Then ... If 1 = 1 OR ThisConditionWillAlsoNeverBeChecked Then ... Upvote 0
CType is not needed. The compiler converts the types automatically. Basic4android AND semantics is like VB.Net AndAlso: B4X: If 1 = 2 AND ThisConditionWillNeverBeChecked Then ... If 1 = 1 OR ThisConditionWillAlsoNeverBeChecked Then ...