[Date Prev][Date Next][Subject Prev][Subject Next][ Date Index][ Subject Index]

RE: Search/Replace Func Characters?



Title: RE: Search/Replace Func Characters?

Unfortunately Robert, I've never loaded or used the U2 files (sorry Robert and Carl...I knew I couldn't hide that fact forever), so I can't decode your macro. I tried translating it manually, but there are a couple of pieces I couldn't figure out (what does [255+070+070] become? - and I'm not familiar with this sort of code - ≪XS03,02,02,,01≫ - what does it do?)

And I found the character string in CTRLCHAR.TXT for BC, and was able to use it for a search/replace, but I can't find a table for the rest...did I miss it? Or is there some way of finding out what the 3-bytes of a function are?

-Brian H.
 

-----Original Message-----

From: Robert Holmgren - Sent: Monday, February 17, 2003 10:33 AM
Subject: Re: Search/Replace Func Characters?


** Reply to message from Brian.Henderson@xxxxxxxx on Mon, 17 Feb 2003
08:57:44 -0800



It's altogether thinkable.  You can search for functions in Xy3 simply by
putting the 3 bytes of the func on the CMline and prepending SEA (remember that
the first byte, which is always 255, will appear as a space).  The following
puts the constituent 3 bytes of the function on the CMline or the actual func
in text, depending on where the cursor is located when you eXeCute:

XPLeNCODE v2.0
b-gin [UNTITLED]
{<}SX01,{<}VA$WS{>}{>}{<}IF{<}PV01{>}<>1{>}{<}PRNo file{>}{<}
EX{>}{<}EI{>}[SI_]{<}SX01,0{>}{<}SX02,{<}CP{>}{>}x{<}IF{<}CP{
{<}PV02{>}{>}{<}SX01,1{>}{<}EI{>}[BD_]{<}IF{<}PV01{>}<1{>}
{<}SV02,[255+070+070]!${>}{<}PV02{>}{<}EI{>}{<}SU02,{<}SX03,{
<}IS00{>}{>}[NO_]{>}{<}GT02{>}[BC_]pfun {<}PRPFUN-ing...{>}{≪/FONT>
}RC{>}{<}RC{>}[XC_]{<}PR {>}{<}IF{<}PV01{>}<1{>}[YD_][XD_][DF
_][CL_][DF_]{<}SV01{>}[RD_]{<}SV02,{027}X{>}{<}XS01,02,,02,04
{>}{<}SV02,[255+070+070]{>}{<}SX04,{<}IS02{>}+{<}IS04{>}{>}{≪/FONT>
}SV02,[255+033+036]{>}{<}XS03,02,02,,01{>}[BC_]{<}PV02{>}{<}P
V04{>}{<}PV01{>}{<}EX{>}{<}EI{>}[BC_]{<}PV03{>}[GT_]{<}EX{>}[
cr|lf]
-nd
XPLeNCODE

When you're done with that, the function will be sitting on the CMline preceded
by some spaces.  Type SEA at far left, leave _three_ apparent spaces (two real
spaces and then 255), then the two (visible) chars of the function.  Hit XC.
Obviously, you could change the code around to suit your situation, i.e. make
it more or less automated, depending.