!!!NeedHelp on String to Integer!!! 
Author Message
 !!!NeedHelp on String to Integer!!!

SB>My problem is that I check each element of a string to check whether it
SB>is a number and if the whole string is a number then this is converted
SB>to an integer.
SB>I can do this but it involves a large calculation using base 10 on the
SB>respective element. Is there an easier way to build up the integer from
SB>the elements of the string. I have the feeling I am missing something
SB>obvious.
SB>P.S I am a beginner

Take a look at the Val() function.

        -- Kim Forwood --

  /-=oOo=--=oOo=--=oOo=--=oOo=--=oOo=--=oOo=--=oOo=--=oOo=--=oOo=--=oOo=-\

  %         For what purpose is life, if one cannot live freely?         $
  \-=oOo=--=oOo=--=oOo=--=oOo=--=oOo=--=oOo=--=oOo=--=oOo=--=oOo=--=oOo=-/



Wed, 18 Jun 1902 08:00:00 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. !!!NeedHelp on String to Integer!!!

2. Showing a string for an integer field in DBGrid

3. integer to string conversion problem...

4. integer ----> char/string

5. Sql convert string to integer

6. Help (String to Integer)

7. Converting Integers to strings

8. string-->integer

9. string --> integer

10. String to Integer Problem

11. String to Integer Problem

12. string to integer

 

 
Powered by phpBB® Forum Software