OK. I fixed it.

by Solitaire (Login Solitaire1)
S

Thanks for the feedback.  My original program used:

ELSE w = v

but with all the extra options I added, it resulted in a solid black background.  I tested it with single characters but didn't anticipate that the ASCII numbers would no longer work.

I added a new string variable - sv1$ - to test for the VAL of the first character. 

If it was 0 and not "0" then I made sv$ = sv1$ 

I added this to the condition that also tested single digits to use the ASCII value of the first character.  Then changed the ELSE to w = v. 

It should be working fine now.

I revised the program code in the subforum to reflect the changes.

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

About the suggestion to use a long string instead of multiple ELSEIFs, that would be very impractical.  First of all, most of those characters are not on the keyboard and it would require a CHR$() with each one of those.  Secondly, with the numbers in code, you can see exactly which values are being skipped.



    
This message has been edited by Solitaire1 on Jan 9, 2012 10:09 PM
This message has been edited by Solitaire1 on Jan 9, 2012 9:53 PM

Posted on Jan 9, 2012, 9:44 PM

Respond to this message   

Return to Index