[Date Prev][Date Next][Subject Prev][Subject Next][
Date Index][
Subject Index]
Wrong subject, was need programming help!
- Subject: Wrong subject, was need programming help!
- From: urqurw@xxxxxxxx (Russ W. Urquhart)
- Date: Mon, 25 Jan 1999 19:08:05 -0600
> From owner-xywrite@xxxxxxxx Mon Jan 25 19:32:19 1999
> Date: Mon, 25 Jan 1999 19:01:05 -0600
> Reply-To: xywrite@xxxxxxxx
> Sender: owner-xywrite@xxxxxxxx
> From: urqurw@xxxxxxxx (Russ W. Urquhart)
> To: xywrite@xxxxxxxx
> Subject: Re: Proportional font in XY-Win
> X-Sun-Charset: ISO-8859-1
> X-Listprocessor-Version: 8.1 -- ListProcessor(tm) by CREN
> Content-Length: 1335
>
>
>
> As my first try in Xy4 programming, i was trying to implement a delete
> program similar to the old Wang/Multimate wp's by allowing the program
> to, in this case, to take a character that was typed and search upto and
> including that character. If the user typed another character, in this
> case `, the program would delete the block of text selected so far. If
> the user typed another character, in this case ^, the entire selection
> and deletion is aborted. For any other alphanumeric character, it shold
> continue to seach forward, selecting text as it goes.
>
> I'm having some problems with my program, which is as follows:
>
> «SV01,`»«SV02,^»DF «PRType a character to search to, ^ to end, ` to
> delete.»«LBTOP»«SX03,«RC»»«IF«IS02»==«IS03»»XD
> «GLEND»«EI»«IF«IS01»==«IS03»
> »DD «GLEND»«EI»$S BC $S sea /«PV03»/$S XC «GLTOP»«LBEND»«EX»
>
> when i take out the $S, which are used for Stack i think, it seems to
> work ok. Will i mess up something in stack if i do this?
>
> Also, how could i get it to only check for alphanumeric characters,
> searching for them, and disregarding cursor movement, etc. Are cursor
> movements and fucntions some value above or below the alphanumeric set?
> i.e. < 'a" or > 'z'
>
> Any enlightenment is greatly appreciated. Should i do something
> different when using Stack and or the XYWeb utilities?
>
> Thanks for any help!!
>
> Russ
>