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°1529

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° 1529  Print/input

le 18/04/2007 @ 01:47
par Andrew

Anonyme



I have a simple file writing routine, basically like this:

OPEN "filename" FOR OUTPUT AS #1
PRINT #1, %varA$
PRINT #1, %varB$
PRINT #1, %var1%
PRINT #1, %var2%
...so on...
CLOSE #1

Then...

OPEN "filename" FOR INPUT AS #1
INPUT #1, %varA$
INPUT #1, %varB$
INPUT #1, %var1%
INPUT #1, %var2%
...so on..
CLOSE #1

The numeric variables are read back just fine, but instead of getting string variables, I'm getting back very large numbers, ie, 2.04 E 5248663.

I'm writing and reading sequently, in exactly the same order, So I'm not trying to read a numeric value into a string variable.

Plus, since I added the file save/read my code's been locking up.

HELP!!

Andrew aka Supertrucker

Ecrire à Andrew   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 18/04/2007 @ 19:11
par JoeV

Anonyme

visiteur
Hello Andrew,

I have written the following program and it runs fine on my palm. Have you looked at the "filename" contents with Bird or a resource editor?

Regards,
JoeV

dim %varA$,%varB$
dim %var1%,%var2%

BEGIN

%varA$="first line"
%varB$="second line"
%var1%=pi
%var2%=2*pi

OPEN "junk" FOR OUTPUT AS #1
PRINT #1, %varA$
PRINT #1, %varB$
PRINT #1, %var1%
PRINT #1, %var2%
CLOSE #1

OPEN "junk" FOR INPUT AS #1
INPUT #1, A$
INPUT #1, B$
INPUT #1, a
INPUT #1, b
CLOSE #1

print A$
print B$
print a
print b

repeat : a=doevents : until a=-1

END
  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° 2
--------
le 19/04/2007 @ 00:13
par Andrew

Anonyme

visiteur
Thank you JoeV, I figured it out. I was just being an idiot, and forgot to have my file write code updated on exit of the program, works fine now!

Thanks again!

Andrew aka Supertrucker
Ecrire à Andrew   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 ^