Re: Exclude characters
Posted in 1993
In article <duhonCEL82v.Lo0@netcom.com> duhon@netcom.com (Joey Duhon) writes: > >What's really needed is a regular-expression processor. There is one (sort of) if you're using sformbld/sperform. Try something like: screen { Demo Field: [f000 ] } end tables demo attributes f000 = demo.demo_field; instructions after editadd editupdate of demo.demo_field begin if ( f000 matches "*[|-]*" ) then begin comments bell reverse "Naughty, Naughty!" nextfield = f000 end end end It won't give the error till you try to leave the field, but it's better than nothing. Just a thought, Walt. -- Walt Hultgren Internet: walt@rmy.emory.edu (IP 128.140.8.1) Emory University UUCP: {...,gatech,rutgers,uunet}!emory!rmy!walt 954 Gatewood Road, NE BITNET: walt@EMORY Atlanta, GA 30329 USA Voice: +1 404 727 0648