IonicWind Software

IWBasic => General Questions => Topic started by: TexasPete on January 11, 2009, 05:53:34 AM

Title: Array
Post by: TexasPete on January 11, 2009, 05:53:34 AM
I have dimension "FileNames" as an array.
and "filename" as a sting ect
I am trying to put a string into the array and load the array with filenames.
The following give me and undefined function error. I am used to liberty basic.
Why doesn't this work.


FileNames(Number)=filename: Number=Number+1

Thanks Texas Pete
Title: Re: Array
Post by: Alyce on January 11, 2009, 06:03:20 AM
Quote from: TexasPete on January 11, 2009, 05:53:34 AM
I have dimension "FileNames" as an array.
and "filename" as a sting ect
I am trying to put a string into the array and load the array with filenames.
The following give me and undefined function error. I am used to liberty basic.
Why doesn't this work.


FileNames(Number)=filename: Number=Number+1

Thanks Texas Pete

You need square brackets for arrays, not parens. See the user's guide.  Example from user's guide:

DEF age[20]:INT
age[0] = 40
age[1] = 32


Title: Re: Array
Post by: TexasPete on January 11, 2009, 06:19:37 AM
Thanks Alice, I have read the documentation But I am used to a little more detailed information.
I see that it is a simple one line sentence and I skimmed right over it.

I may have to write me my own little reminder list for a while. Does E basic have the same
graphics glich as liberty basic when scrolling in a graphic window or do you know.

Thanks
Texas Pete
Title: Re: Array
Post by: Ionic Wind Support Team on January 11, 2009, 10:11:19 AM
Pete,
It's more that a 1 line sentence in the users guide.  The users guide is 650 or so pages, so I suggest more than a casual skimming, and you can search the users guide, typing in "Array" in the search box leads you directly to the page with the required information, the very first entry in the results box.  If you prefer desk reading then you can print out the users guide from the pdf file that is included with your installation.

Look in the "help" directory.  If you installed Emergence to the default location then it would be

c:\program files\ebdev\help\usersguide.pdf

Quote
Does E basic have the same
graphics glich as liberty basic when scrolling in a graphic window or do you know.

I suggest you forget about LB while you are here ;).  The languages are not related in any way with the exception that they have BASIC in their names. 

Paul.