Data evaluation as entered in window (AREV Specific)
At 01 JUN 2000 06:41:31AM Bill Titus wrote:
Is there a way to evaluate data entered at a prompt in a data entry or collector window either character-by-character or word-by-word?
Thanks in advance for any help.
At 01 JUN 2000 09:40AM [url=http://www.sprezzatura.com" onMouseOver=window.status=Click here to visit our web site?';return(true)]The Sprezzatura Group[/url] wrote:
You may use a scribe replace routine and put whatever you want in there.
World Leaders in all things RevSoft
At 01 JUN 2000 10:33AM Don Miller - C3 Inc. wrote:
Bill
You can do it a couple of ways:
1. Substitute your own routine for SCRIBE - This can be very powerful but requres a fair amount of programming
2. Put a subroutine in as a post-prompt and analyze whatever is keyed in. Something like:
SUBROUTINE CHECK_DATA
$INSERT your version of AREV common
STUFF=IS ;* this is what was keyed in
* check each character
L=LEN(STUFF)
FOR I=1 to L
BYTE=STUFFI,1 ;* evaluate single byteNEXT I
STUFF=TRIM(STUFF)
SWAP " " WITH @FM IN STUFF
W=COUNT(STUFF,@FM)+(LEN(STUFF) NE 0)
FOR I=1 TO W
WORD=STUFF[i] ;* Evaluate words ...NEXT I
* if you need to alter what was keyed in, simply set IS to something
different
Don Miller
C3 Inc.