` Comment on an Icetips Article
Icetips - Templates, Tools & Utilities for Clarion Developers

Templates, Tools and Utilities
for Clarion Developers

Add a comment to an Icetips Article

Please add your comments to this article. Please note that you must provide both a name and a valid email address in order for us to publish your comment. Comments are moderated and are not visible until they have been approved. Spam is never approved!

Your Name:  
Email:  
Header text/Subject:  

Please enter your comment in the box below:

Back to article list   Search Articles     Add Comment     Printer friendly     Direct link  

Par2: Cast a string to a number using built in type conversions
2001-10-27 -- Carlos Gutierrez
 
An easy way to cast a string to integer is adding 0 CASE StringVar+0 OF 1 .... Very useful in IFs: StringVar = '0' IF StringVar ! Is True ... IF StringVar+0 !Is False, as expected. ... Randy Goodhew notes that this will work but creates a REAL, not an integer.


Today is April 28, 2024, 4:27 pm
This article has been viewed 35112 times.



Back to article list   Search Articles   Add Comment   Printer friendly

Login

User Name:

Password: