array of string

Beta Testing discussion on mikroBasic PRO for AVR.
Post Reply
Author
Message
Thomas.Pahl@t-online.de
Posts: 158
Joined: 24 May 2008 15:55
Location: Germany

array of string

#1 Post by Thomas.Pahl@t-online.de » 29 Apr 2009 13:49

Hi,
could you please add to help how to declare array of string.
Thanks Thopas

User avatar
srdjan
mikroElektronika team
Posts: 1552
Joined: 28 Dec 2005 12:47
Location: Serbia

Re: array of string

#2 Post by srdjan » 30 Apr 2009 08:33

Hi,
Thopas wrote:Hi,
could you please add to help how to declare array of string.
Thanks Thopas
it will be added. Thanks.

Code: Select all

typedef ss as string[5]

dim buff as ss[5]

foravr
Posts: 130
Joined: 11 May 2009 19:34

Re: array of string

#3 Post by foravr » 10 Jun 2009 17:01

Please answer only if (when) you have the time for this. My question is only theoretical. Why this construction? Since strings are arrays why not declare an array of string like this dim string[10][20]? It is much more readable.
I do not know if i recocognize the array of string when i read a programm text with type def....
foravr

foravr
Posts: 130
Joined: 11 May 2009 19:34

Re: array of string

#4 Post by foravr » 17 Aug 2009 16:51

Perhaps sometimes there is a little time...
I want to understand.
foravr

User avatar
srdjan
mikroElektronika team
Posts: 1552
Joined: 28 Dec 2005 12:47
Location: Serbia

Re: array of string

#5 Post by srdjan » 18 Aug 2009 07:22

foravr wrote:Please answer only if (when) you have the time for this. My question is only theoretical. Why this construction? Since strings are arrays why not declare an array of string like this dim string[10][20]? It is much more readable.
- What would be logical interpretation of string[10][20]? String is an array of characters, what is string of strings? String has an null terminating character at the end, so what would be the first dimension of this string of strings? 10 or 11 (including null char)?
foravr wrote:I do not know if i recocognize the array of string when i read a programm text with type def....
foravr
- You should name your string typedef in a way which will make this obvious, i.e. let them begin with str_ prefix.

foravr
Posts: 130
Joined: 11 May 2009 19:34

Re: array of string

#6 Post by foravr » 18 Aug 2009 10:21

Thanks for your sight. And for your time.
I have another view. And other software developers have that too. You know that. But you have made a new basic that is really serious. Thanks for that.
I like it very much.
Where else you can find compilers so sophisticated for 8-bitters and (16ers) with this possibility of portability. Never had a tool like that before. Today 8051 and tomorrow AVR or PIC and that with my limited knowing of basic language . Great!!
foravr

Post Reply

Return to “mikroBasic PRO for AVR Beta Testing”