comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Chopping up a string
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Chopping up a string [message #24989] Wed, 09 May 2001 08:41
Noam R. Izenberg is currently offline  Noam R. Izenberg
Messages: 18
Registered: March 2001
Junior Member
I have a question about chopping up a string of numbers into seperate inter variables.

I have a set of 5 numbers in a string seprated by spaces (e.g.string= '0 1 2 3 4'), and i need to
chop them into seperate integer variables (var1=0, var2=1 etc...) I would use the various strmid
commends exept the size of the numbers is not always the same. Sometimes one or more of the numbers
will be 2 or more digits. (e.g. '14 14 256 5 2').

Is there any neat trick to doing this?

Noam Izenberg
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Reverse colour table in postscript
Next Topic: Re: PDS Format

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 13:44:29 PDT 2025

Total time taken to generate the page: 0.00548 seconds