Alpha (String Data): The letter A represents one position of an alpha field. Within the field, leading blanks are truncated, the field is left-justified, and it is padded to the right with blanks. Shifted blanks CHR$(160), are not deleted if in the leading positions. Example: 10 OPEN 2,4,2 20 OPEN 1,4,1 30 PRINT#2, "A AA AM' 40 PRINT #1, "CBM"CHR$(29)"CBM"CHR$(29)"CBM" 50 CLOSE 2:CLOSE 1 Result: C CB CBM Skip (Blank): Simply use blanks where spaces are required: Example: 10 OPEN 2,4,2 20 OPEN 1,4,1 30 PRINT #2, ''AAA AAA AAN' 40 PRINT #1, "PET"CHR$(29)"PET"CHR$(29)"PET" 50 CLOSE 2:CLOSE 1 Result:
PET PET PE"f To right justify integers, define an alpha string the length of the longest integer. Then blank fill the left of the integer data string and right justify the number within that string. Literals in Format Strings Literals are characters that are to be printed exactly as they exit in the printer's memory rather than being used to format other data. Literals are flagged by preceding each literal in the formal string with a reverse- field ON character. 50