string to integer

  • Thread starter Thread starter John
  • Start date Start date
* "John said:
How can I break a string like "123 , 456" into two integers 123 and 456?

Have a look at the 'Strings.Split' method or the string's 'Split'
method. These methods will give you an array containing the two
numbers. Then you can convert them to integers by using
'Integer.Parse'.
 
Use INSTR function locate position of ",". Then extract each part with MID
function. Or, try the SPLIT function to split in an array.

Roger
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top