aldweb

Fermer I. aldweb

Fermer II. Gratuitiels PC

Fermer III. Gratuitiels Palm

Fermer IV. Partagiciels Palm

Fermer V. iziBasic Palm

Fermer VI. Connaissance Palm

Fermer VII. Ordinateur Poche

Fermer VIII. miniPortail

Spécial !



Version mobile
de l'aldweb Site

m.aldweb.com


Ni Français, ni Anglais ?

Essayez donc l'un de ces drapeaux :
[de] [es] [it] [pt]
Recherche




Météo / Spam / www

Météo Lyon


aldweb contre le SPAM


Newsletter
Pour avoir des nouvelles de ce site, inscrivez-vous à notre Newsletter.
S'abonner
Se désabonner
298 Abonnés
Sites web de la famille

Webmaster - Infos
News Amis
Visites

   visiteurs

   visiteurs en ligne

Sondage
Comment trouve-tu le nouvel habillage de l'aldweb Site ?
 
Superbe !
Joli
Moyen
Moche...
Résultats
forum.gifForum - iziBasic - Sujet n°1298

Forum - Forum
iziBasic - iziBasic


Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 257

actif  Sujet n° 1298  Console mode: Problem printing wider than screen

le 25/11/2005 @ 00:27
par Richard

Anonyme



I was surprised to find that my program stopped working when I tried to print beyond the width of the screen.

for i = 1 to 100
a$­­ = str$­­(i, 0)
print a$­­;:print " ";
next

To fix this I needed to use the SETFONT and then use the FONTWIDTH function to keep track of how close I am to the edge of the screen.

Hope this helps someone else,

Richard
  Poster une réponse  Haut

Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Réponse n° 1
--------
le 25/11/2005 @ 09:12
par aldweb

Anonyme

visiteur
Hello Richard,

This is strange, because iziBasic is well able to print beyond the width of the screen. For instance, it does use the same routine itself to display the source code lines in Verbose mode. And source code lines can be much wider than the screen width!

Nevertheless, thank you for the information, I will try your source code. It might be a side border effect.

If you use the console fonts of iziBasic (see the appropriate compiling directive), you will see that all characters have the same width. Then, no need to go for the smart way you used, but you can work the quick way: count the number of characters on the line.
Your way of doing is smarter because it will always work, either with a non-fixed-width font or with a fixed-width font, and some old devices cannot work with iziBasic's fonts.

Now, I have to say that the console mode, in iziBasic, is quite rough and I did not spend hundreds of hours developing it. It is mainly available for quick prototyping or debugging purposes. Usually, we would use GUI components in a Palm application

Cheers,
aldweb

@+
aldweb
Ecrire à aldweb   Poster une réponse  Haut
actif sujet actif   clos sujet clos   Important! Important!   Nouveau Nouveau message   -   Rectifier Rectifier message   Clôturer Clôturer sujet   Remonter Remonter
[]
Catégories de discussion  Forum 



 
^ Haut ^