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

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° 1140  [?] DIM, CHAIN and custom variables

le 01/03/2005 @ 19:40
par Montalvo

Anonyme



Hi!

First my question: Can a custom variable be pased on CHAIN to another program?

I created this as a test:
´tuno.ibas
{creatorID "mCoU"}

dim %temperature%,$­­animal$­­,%temperature$­­
Begin
if a=0 then
%animal$­­="Dog"
%temperature%=32
chain "tusi.ibas"
endif
'
&temperature$­­=str$­­(%temperature%,2)
gprint %animal$­­,10,30
gprint %temperature$­­,10,50
End

- - -

'tusi.ibas
{creatorID "mCoJ"}

' see explanation
' dim %temperature%,$­­animal$­­,%temperature$­­

Begin
%temperature%=99
%animal$­­="Frog"
a=1
chain "tuno.ibas"
End


And this is the problem:

1. If I try to compile TUNO, then it declares a SYNTAXERROR in TUSI in the line where %temperature% changes to 99.

2. If I include a DIM in TUSI, the same as it appears in TUNO, then it declares a SYNTAXERROR on the DIM line in TUSI.

Any idea?

Ecrire à Montalvo   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 01/03/2005 @ 21:18
par aldweb

Anonyme

visiteur
Dear Montalvo,

Now that I come think of it, indeed these DIMensioned variables should not work well... as I think to remember that I flush the labels table (now the labels and DIM vars, since v5) when compiling CHAINs.
Only the labels should be flushed, DIM vars should be kept among CHAIN modules.

So, a good catch for you


Today, I found some time to read all articles you wrote about me and my job. Thank you very much. And it's worth to say that everybody should read your papers, they are full of very useful informations (and they are a good way to learn Spanish too!)

IZIBASIC

Calculo de Dias entre Fechas (Primera Parte)
http://tupalmx.com/buscanota.php?nota=CTL:12805

Calculo de Dias entre Fechas (Segunda Parte)
http://tupalmx.com/buscanota.php?nota=CTL:12807

Análisis de Compatibilidades
http://tupalmx.com/buscanota.php?nota=CTL:12824

Sintetiza 1.0
http://tupalmx.com/buscanota.php?nota=CTL:12828

Desarrollando aplicaciones usando el Palm Simulator
http://tupalmx.com/buscanota.php?nota=CTL:12830

Tu primer programa en izibasic
http://tupalmx.com/buscanota.php?nota=CTL:12831

EAN-13 Generando códigos de barras en tu palm
http://tupalmx.com/buscanota.php?nota=CTL:12836


SPEEDY

Serie: 30 Dias con DANA (Dia 1)
http://tupalmx.com/buscanota.php?nota=CTL:12732

Zire 31 - Análisis de velocidad (Primera Parte)
http://tupalmx.com/buscanota.php?nota=CTL:12568


Cheers

@+
aldweb
Ecrire à aldweb   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 01/03/2005 @ 21:44
par Montalvo

Anonyme

visiteur
Well, then something to add to the QuickReference:

Under "DIM %var|%var$­­"

* You cannot pass values in custom variables between CHAIN modules.

By the way, should the syntax be modified too? Is it: %var|%var$­­ or %var%|%var$­­ ?

- - -

OffTopic:

Thank you very much for your comments about my articles. TuPalMX is a great project for me, and one of the sources of information selected by PalmOne Mexico to be listed in their "palmOne Solutions Guide 2004".

Ecrire à Montalvo   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° 3
--------
le 01/03/2005 @ 22:10
par aldweb

Anonyme

visiteur
It is: DIM %var%|%var$­­­­
Examples (taken from your source code):
%temperature% and %animal$­­

Greetings from ... badly not from Mexico!

@+
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 ^