Sign up on the Revelation Software website to have access to the most current content, and to be able to ask questions and get answers from the Revelation community

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.

The Sprezzatura Group

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 byte

NEXT 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.

View this thread on the forum...

  • third_party_content/community/commentary/forums_nonworks/be64313dc88c56cd852568f1003abba4.txt
  • Last modified: 2023/12/28 07:40
  • by 127.0.0.1