| View previous topic :: View next topic |
| Author |
Message |
FreezingFire Admin Team

Joined: 23 Jun 2002 Posts: 3508
|
Posted: Sun Jul 14, 2002 10:08 pm Post subject: Another String Question... |
|
|
I'm sure this is easy and I overlooked it also, but I can't figure it out. How do you read the first seven digits of a string? For example, if you had:
| Code: |
1234567 other text text text
|
How would you read just the "1234567"? _________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
| Back to top |
|
 |
Mac Professional Member

Joined: 08 Jul 2000 Posts: 1585 Location: Oklahoma USA
|
Posted: Sun Jul 14, 2002 10:28 pm Post subject: |
|
|
| Code: |
%s = "1234567 other text text text"
INFO @substr(%s, 1, 7)
|
Char positions are counted from 1.
Cheers, Mac  _________________ VDSug.dll does file IO, check/disable menu items,
non-VDS dlls, draw functions and more...
Free download (30k dll size) at:
http://www.vdsworld.com/download.php?id=361
 |
|
| Back to top |
|
 |
FreezingFire Admin Team

Joined: 23 Jun 2002 Posts: 3508
|
Posted: Sun Jul 14, 2002 10:55 pm Post subject: |
|
|
Thanks Mac! I knew it was easy...  _________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
| Back to top |
|
 |
|