Home > CBM > BASIC > Keywords > Pudef
180 Subpages: (divide), (equal), (less), (minus), (more), (multiply), (plus), (power), Abs, And, Append, Asc, Atn, Auto, Backup, Bank, Begin, Bend, Bload, Boot, Box, Bsave, Bump, Catalog, Char, Chr, Circle, Close, Clr, Cmd, Collect, Collision, Color, Concat, Cont, Copy, Cos, Data, Dclear, Dclose, Dec, Def, Delete, Dim, Directory, Dispose, Dload, Do, Dopen, Draw, Ds, Ds string, Dsave, Dverify, El, Else, End, Envelope, Er, Err, Exit, Exp, Fast, Fetch, Filter, Fn, For, Fre, Get, Get num, Getkey, Go, Gosub, Goto, Graphic, Gshape, Header, Help, Hex, If, Input, Input num, Instr, Int, Joy, Key, Left, Len, Let, List, Load, Locate, Log, Loop, Mid, Monitor, Movspr, New, Next, Not, Off, On, Open, Or, Paint, Peek, Pen, Pi, Play, Pointer, Poke, Pos, Pot, Print, Print num, Quit, Rclr, Rdot, Read, Record, Rem, Rename, Renumber, Restore, Resume, Return, Rgr, Right, Rlum, Rnd, Rreg, Rspcolor, Rsppos, Rsprite, Run, Rwindow, Save, Scale, Scnclr, Scratch, Sgn, Sin, Sleep, Slow, Sound, Spc, Sprcolor, Sprdef, Sprite, Sprsav, Sqr, Sshape, St, Stash, Step, Stop, Str, Swap, Sys, Tab, Tan, Tempo, Then, Ti, Ti string, To, Trap, Troff, Tron, Until, Using, Usr, Val, Verify, Vol, Wait, While, Width, Window, Xor

KeywordAbbreviationToken (hex)Version(s)Classification
PUDEFP{Shift+U}DD3.5, 7.0Command and Statement
BLOADB{Shift+L} DD 4.7 Command and Statement 
PUDEFP{Shift+U}E54.7Command and Statement

 Syntax 
PUDEF logicalChars
 
ParametersTypeLegal Value(s)Default ValueNote(s)
logicalCharsString 1 to 4 chars{space},.$
 
 
 Purpose 
State managment.  Update the USING secret variable (character array).

 
 Remarks 
PUDEF defines the real/actual character to be used in place of the four "logical characters" of PRINT USING.  There are 4 logical characters, set as follows on power-up:
 
NameMID$
position
Default CharDescription
blank1 A "space" used to pad a field 
decimal point2.Used to separate integer and fraction parts of a number.
separator3,Used to split a "big" number for easier reading. 
monetary symbol4$A "money" sign for displaying currency. 
 
The default values (listed above) are reset whenever CLR is executed (either directly, or indirectly via (D)LOAD / NEW / RUN ).
 
The PUDEF statement does not need to set all 4 logical characters.  See examples.
 
If logicalChars is not a string expression then TYPE MISMATCH ERROR is generated.  Otherwise, if logicalChars has zero or more than four characters then ILLEGAL QUANTITY ERROR is generated.
 
Example:
CLR: PRINT USING "####"; 1
   1

READY.
PUDEF "0"            set the blank logical char to be a zero

READY.PRINT USING "####"; 1
0001

READY.


 Compare With 
 
 See Also 
CLRPRINTUSING  
© H2Obsession, 2014