View previous topic :: View next topic
|
Author |
Message |
kitts
New User
Joined: 29 Jan 2006 Posts: 19
|
|
|
|
Hi,
I would like to know if I can verify the contents of an Alpha numeric field is numeric.
Also is there a function to know the length of Alpha numeric field/string in Easytrieve.
Thanks in advance. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
You can code "IF fldname NUMERIC" (or NOT NUMERIC).
If your field is defined as varying in length, there is a length attribute.
If you have a 30-byte fixed length field and want to determine how many bytes are filled before the trailing spaces, you could redefine it as an array, begin testing bytes from the low order position until a non-space is encountered, and the displacement of the non-space is the "length". |
|
Back to top |
|
|
kitts
New User
Joined: 29 Jan 2006 Posts: 19
|
|
|
|
Thanks a lot. Yes this has helped me. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
You're welcome |
|
Back to top |
|
|
|