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

Joined: 23 Jun 2002 Posts: 3508
|
Posted: Sun Jul 14, 2002 8:41 pm Post subject: Find Length of a string... |
|
|
If the variable %A contains the string "1234567", how can I find the length of it, so that if the string is more than seven digits, I can warn the user?  _________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
| Back to top |
|
 |
SnarlingSheep Professional Member


Joined: 13 Mar 2001 Posts: 759 Location: Michigan
|
Posted: Sun Jul 14, 2002 9:04 pm Post subject: |
|
|
Use @LEN(%A).
| Code: |
if @GREATER(@LEN(%A),7)
warn Length is greater than 7 digits.
end
|
_________________ -Sheep
My pockets hurt... |
|
| Back to top |
|
 |
FreezingFire Admin Team

Joined: 23 Jun 2002 Posts: 3508
|
Posted: Sun Jul 14, 2002 9:25 pm Post subject: |
|
|
Thanks a lot, Sheep! I can't believe I missed that... _________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
| Back to top |
|
 |
|