# My printing routine doesn't work :(

I have no experience...

Here it is : trying to print this

1 !"#\$%&'()*+,-./ 0123456789 :;
2 <=>?@ ABCDEFGHIJKLMNOPQRSTUVW
3 XYZ [\]^_`abcdefghijklmnopqrs
4 tuvwxyz {|}~ Çüéâäà çê ëèïîÄ
5 É ôöò ûùÜ «» ßµ

The first lines until the tidle 126 are print correctly, but then not...

===================================

' FPRINT <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

SUB fprint (line\$)

FOR i% = 1 TO LEN(line\$)

Char\$ = MID\$(line\$, i%, 1)

'---------------------------
'If Section
'----------------------------

IF Char\$ = " " THEN

PRINTX% = PRINTX% + Array(1)

ELSEIF ASC(Char\$) < 127 THEN

index% = (ASC(Char\$) - 33) * Array(0) + 2

ELSEIF ASC(Char\$) <= 133 THEN

index% = (ASC(Char\$) - 34) * Array(0) + 2

ELSEIF ASC(Char\$) <= 140 THEN

index% = (ASC(Char\$) - 35) * Array(0) + 2

ELSEIF ASC(Char\$) <= 142 THEN

index% = (ASC(Char\$) - 36) * Array(0) + 2

ELSEIF ASC(Char\$) <= 144 THEN

index% = (ASC(Char\$) - 37) * Array(0) + 2

ELSEIF ASC(Char\$) <= 151 THEN

index% = (ASC(Char\$) - 39) * Array(0) + 2

ELSEIF ASC(Char\$) <= 154 THEN

index% = (ASC(Char\$) - 41) * Array(0) + 2

ELSEIF ASC(Char\$) <= 175 THEN

index% = (ASC(Char\$) - 60) * Array(0) + 2

END IF

'---------------------
'End If Section
'---------------------

PUT (PRINTX%, PRINTY%), Array(index%)

PRINTX% = PRINTX% + Array(index%)

NEXT i%

PRINTY% = PRINTY% + 27: PRINTX% = 0

IF PRINTY% > 173 THEN PRINTY% = 0: CLS

END SUB

Posted on Aug 3, 2008, 2:36 PM

 Response Title Author and Date Why not just use all 224 of the indexes over 31? Clippy on Aug 3 Yes i thought about case... Lisztfr on Aug 3 That's OK, just load another bitmap LOL Clippy on Aug 3 Don't your accented letters follow tilde? ... TheBOB on Aug 3 That 's close to what i ment Lisztfr on Aug 3 ELSEIF's do work that way... TheBOB on Aug 3 Weird ASCii stuff l on Aug 4 bah ! Lisztfr on Aug 4 Now it's working thanks to you all :) Lisztfr on Aug 4 Yeah, I don't know how great they would look at 42% Clippy on Aug 4 Small images get corrupted when squeezed Lisztfr on Aug 4 Well, Screen 2 is not exactly flattering for any font Clippy on Aug 4 I'm a progressive thinker and that is why I don't do graphics. Pete on Aug 8 * Apparently your XP shares your lack of enthusiasm for Screen 12 too. Clippy on Aug 8 Top-ten reasons for using graphics mode... TheBOB on Aug 8 ROFL... but you are wrong about reason #1... Pete on Aug 8 *Point taken -- and I didn't even have to lie down ;-) TheBOB on Aug 9 I think we discussed that... TheBOB on Aug 4 We discussed that and i tried it Lisztfr on Aug 4 *Yes, squashing can ruin images, especially monochrome -- anyway, congratulations :-) TheBOB on Aug 4