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 |
| Keyword | Abbreviation | Token (hex) | Version(s) | Classification | | PUDEF | P{Shift+U} | DD | 3.5, 7.0 | Command and Statement | | BLOAD | B{Shift+L} | DD | 4.7 | Command and Statement | | PUDEF | P{Shift+U} | E5 | 4.7 | Command and Statement |
PUDEF logicalChars | Parameters | Type | Legal Value(s) | Default Value | Note(s) | | logicalChars | String | 1 to 4 chars | {space},.$ | |
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: | Name | MID$ position | Default Char | Description | | blank | 1 | | A "space" used to pad a field | | decimal point | 2 | . | Used to separate integer and fraction parts of a number. | | separator | 3 | , | Used to split a "big" number for easier reading. | | monetary symbol | 4 | $ | 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.
|
|