Spécial ! |
Version mobile de l'aldweb Site m.aldweb.com Ni Français, ni Anglais ?Essayez donc l'un de ces drapeaux :
|
|
Météo / Spam / www |
Météo Lyon
aldweb contre le SPAM
|
|
|
|
|
|
|
- Forum - iziBasic
Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 257
Sujet n° 1049 |
Variabel names? |
le 12/01/2005 @ 14:24 par Peter Thorstenson
|
Salut Aldweb!
I don't think I understand what variabels I can use. A to Z I understand, but then? Do I have to use variablenames like A$(26) or what? Is there no way of giving the variables real names--instead of "A$" write "inFile$"? It would make the code more readable. =p
What does this mean? "You will have to leave some space in the upper stack for all other text assignments." Can I use n>26 and n<=198? Or only a part of it? How big part?
I studied French for some years when I was young, but now I can't remember a word. I guess the Portuguese wiped it out. Sorry for that. :)
Cheers from a rainy Rio de Janeiro /Peter |
|
|
Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Réponse n° 1 -------- le 12/01/2005 @ 16:58 par Mike
visiteur |
In response to the above:
1. The basic variables are:
a - z for numbers a$ - z$ for strings
as you know, thereafter you will need to use
a(27) to a(250) for numbers and a$(27) to a$(198) for strings.
(as a(1) is the same as a, a(2) is the same as (b) etc)
2. Variable names as described are not possible in iziBasic as far as I know (but they would make life easier ).
3. As for the meaning of the text in the manual, if you look in the 'Compiler Errors' section you will find that iB uses 5 records on the Number Stack and 2 records on the text stack for itself leaving us 250 number records and 198 text records.
That's how I read it anyway. |
|
|
Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Réponse n° 2 -------- le 12/01/2005 @ 17:48 par Peter Thorstenson
visiteur |
OK, Mike. Thanks for clarifying that.
Still raining... /Peter |
|
|
Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Réponse n° 3 -------- le 12/01/2005 @ 17:49 par aldweb
visiteur |
Just a few words on top of Mike's excellent answer.
Can I use n>26 and n<=198? Or only a part of it? How big part? The requested amount of free space will vary with your source code, and it will especially increase if you use the {PARSER ON} compiling directive, and then it will depend of the complexity of your mathematical operations. So, there is no real way to know it for now. I could make iziBasic track the information as compilation goes on and return it at the end, for information. Then, I guess that I will add this thing in my to do list.
Cheers from sunny Paris
@+ aldweb |
|
|
Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Réponse n° 4 -------- le 12/01/2005 @ 18:01 par Mike
visiteur |
Ah - I hadn't thought through the impact of the PARSER directive etc.
For what it's worth, gathering the data during compilation and reporting at the end iin the iziBasic window would be a useful enhancement in my view.
A message such as Text Stack 135/200 would be great. |
|
|
sujet actif
sujet clos
Important!
Nouveau message -
Rectifier message
Clôturer sujet
Remonter
|
|
|
|
|
|