home *** CD-ROM | disk | FTP | other *** search
- *StUEdit3
-
- *ClearInfoBox
- AnsiGoto (2,15);
- Say ( *)
- AnsiGoto (30,15);
- Say ( *)
- AnsiGoto (2,16);
- Say ( *)
- AnsiGoto (30,16);
- Say ( *)
- AnsiGoto (2,17);
- Say ( *)
- AnsiGoto (30,17);
- Say ( *)
- AnsiGoto (2,18);
- Say ( *)
- AnsiGoto (30,18);
- Say ( *)
- AnsiGoto (30,19);
- Say ( *)
- AnsiGoto (30,20);
- Say ( *)
-
- AnsiGoto (20,17)
- MenuAsk (&15&Enter Name to Search For: &2&*)
- SetEqual (v=%RESP%)
- AnsiGoto (20,17)
- Say (&12& Searching.... *)
- AnsiGoto (39,17)
- SetEqual (y=%var%z)
- ;Stores the number of the user record you are currently viewing in
- ;%var%y so that the editor can go back to that user when you are done
- ;searching.
-
- *FindIt
- SeekUser (%var%v)
- ifnottrue(goto (notfound))
- SetEqual (z=%NDNUMB%)
- Loadmem(control\uedit.ctl,goto(clearinfo))
-
- *NotFound
- AnsiGoto (20,17)
- Say (&12&%var%v could not be found in the userfile.*)
- SecPause (2) ;Pauses for 2 seconds
- AnsiGoto (20,17)
- Say (&12& *)
- SetEqual (z=%var%y)
- ;Sets the current user record number to %var%y, what it was before the user
- ;started searching.
- SetEqual (m=0)
- Loadmem (control\uedit.ctl,goto(clearinfo))
- ;Loads into memory the control file CONTROL\UEDIT.CTL and goes to the label *clearinfo.
-
- *Found
- SetEqual (m=1) ;DO ask if you want to continue searching.
- SetEqual (z=%var%z)
- Loadmem (control\uedit.ctl,goto(clearinfo))
-
- *Another
- AnsiGoto (20,17)
- YesNoAsk(&15&Continue Search? *)
- If (%RESP%)=(Yes) then goto (FindIt)
- SetEqual (m=0)
- Loadmem (control\uedit.ctl,goto(clearinfo));Do NOT ask if you want to continue searching.
-