home *** CD-ROM | disk | FTP | other *** search
- *StUedit4
-
- BigIf (O:ChgTOn,R:ChgComp,A:ChgDrops,W:ChgWrk,I:ChgSub,X:ChgSDate,V:ChgAvail)
- *ChgTOn
- AnsiGoto (21,17)
- ;Goes to the location 21,17 on the screen. (21 characters over, 17 down)
- ask (&15&Enter New Times On: &2&*)
- ;Gets input from the user. The * tells it NOT to go to the next line.
- Number (%RESP%)
- ;Checks to see if %RESP%, the user's response, is a number.
- IfNotTrue (goto (BadTOn))
- ;If %RESP% isn't a number, then go to the label *BadTOn
- SetEqual (>TIMESON=%RESP%)
- ;Set the number of times in the currently loaded but unused record file to
- ;the value contained in %RESP% (a user-entered value). (For a complete list
- ;of all percent codes [like >TIMESON] refer to the Powerboard docs.
- Goto (DoIt)
- ;Goes to the label *DoIt, which is just a place where some variable values
- ;are changed, and where it saves the currently loaded record file to disk.
-
- *BadTOn
- AnsiGoto (21,17)
- Say (&4&Bad Times On Value, Not a Number.*)
- SecPause (2) ;Pauses for 2 seconds.
- AnsiGoto (21,17)
- Say ( )
- ;Used to clear the space where it said "Bad Times On..."
- Goto (ChgTOn)
-
- *ChgComp
- AnsiGoto (21,17)
- ask (&15&Enter New Computer Using: &2&*)
- SetEqual (>COMP=%RESP%)
- Goto (DoIt)
-
- *ChgDrops
- AnsiGoto (21,17)
- Say (&15&Enter New Carrier Dropped Times: &2&*)
- AnsiGoto (54,17)
- Ask (*)
- Number (%RESP%)
- IfNotTrue (goto (BadDrops))
- SetEqual (>DROPPED=%RESP%)
- Goto (DoIt)
-
- *BadDrops
- AnsiGoto (21,17)
- Say (&4&Bad Carrier Dropped Amount, Not a Number.*)
- SecPause (2)
- AnsiGoto (21,17)
- Say ( )
- Goto (ChgDrops)
-
- *ChgWrk
- AnsiGoto (21,16)
- Say (&12&Enter New Work Phone Number: &2&)
- AnsiGoto (27,17)
- Picture (###-###-####)
- SetEqual (>WORK=%RESP%)
- Goto (DoIt)
-
- *ChgSub
- AnsiGoto (25,17)
- yesnoask (&12&Subscriber? &2&*)
- SetEqual (>SUB=%RESP%)
- Goto (DoIt)
-
- *ChgSDate
- AnsiGoto (21,16)
- Say (&12&Enter New Subscription Expiration Date: &2&*)
- AnsiGoto (25,17)
- Picture (##-##-##)
- SetEqual (>SUBDATE=%RESP%)
- Goto (DoIt)
-
- *ChgAvail
- AnsiGoto (21,17)
- YesNoAsk (&12&Default User Available For Chat: &2&*)
- SetEqual (>DEFAVAIL=%RESP%)
- Goto (DoIt)
-
- *DoIt
- SetEqual (e=1)
- ;Set it that the user is flagged as editing a user record.
- SetEqual (w=1)
- ;Set it that the user is flagged as editing a user record.
- ;Again, %var%e and %var%w are similar. I don't know the difference, really.
- SaveUser (%var%z)
- Loadmem (control\uedit2.ctl,goto(clearinfo))
-