aldweb

Close I. aldweb

Close II. PC Freeware

Close III. Palm Freeware

Close IV. Palm Shareware

Close V. iziBasic Palm

Close VI. Palm Knowledge

Close VII. Pocket Computer

Close VIII. miniPortail

Special !



Mobile version of
the aldweb Site

m.aldweb.com


Neither French, nor English?

Try one of these flags then:
[de] [es] [it] [pt]
Search




Weather / Spam / www

Lyon Weather


aldweb against spam


Newsletter
To receive news about this website, consider subscribing to our Newsletter.
Subscribe
Unsubscribe
298 Subscribers
Family's web sites

Webmaster - Infos
Friends News
Visits

   visitors

   visitors online

Poll
What do you think of the new design of the aldweb Site?
 
Great !
Beautiful
Average
So ugly...
Results
forum.gifForum - iziBasic - Topic #1140

Forum - Forum
iziBasic - iziBasic


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

active  Topic # 1140  [?] DIM, CHAIN and custom variables

01/03/2005 @ 19:40
by Montalvo

Anonymous



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?

Write to Montalvo   Post an answer  Top

Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Answer n° 1
--------
01/03/2005 @ 21:18
by aldweb

Anonymous

visitor
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
Write to aldweb   Post an answer  Top

Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Answer n° 2
--------
01/03/2005 @ 21:44
by Montalvo

Anonymous

visitor
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".

Write to Montalvo   Post an answer  Top

Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Answer n° 3
--------
01/03/2005 @ 22:10
by aldweb

Anonymous

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

Greetings from ... badly not from Mexico!

@+
aldweb
Write to aldweb   Post an answer  Top
active topic active   closed topic closed   Sticky Sticky   New New message   -   Correct Correct message   Close Close topic   Make sticky Make sticky
[]
Forum Topic  Forum 



 
^ Top ^