Creating arrays of string type MikroBasic PRO or regular

General discussion on mikroBasic for AVR.
Post Reply
Author
Message
edg962
Posts: 27
Joined: 06 Dec 2008 04:46

Creating arrays of string type MikroBasic PRO or regular

#1 Post by edg962 » 16 Dec 2008 18:00

Gents,

I tried different ways of doings this but no cigar. The following code did not work among others.
-----------------------------------
structure arrayx
dim str1 as string[10]
end structure

dim my_array as array[100]

-----------------------------------
Has anyone been successful at implementing string arrays? I just want to create and manipulate an array of 100 strings each 5 characters long.

Thanks for your help.

User avatar
zristic
mikroElektronika team
Posts: 6608
Joined: 03 Aug 2004 12:59
Contact:

Re: Creating arrays of string type MikroBasic PRO or regula

#2 Post by zristic » 17 Dec 2008 08:50

You are right, it won't compile on the current beta.

I tested it with the incoming version (this week) and it works OK, which means it was fixed in the meantime.

Thanks for the bug report.

edg962
Posts: 27
Joined: 06 Dec 2008 04:46

Re: Creating arrays of string type MikroBasic PRO or regula

#3 Post by edg962 » 18 Dec 2008 03:57

zristic,

Thanks for the quick response. You stated "this week". Does this mean you are planning to release the fix this week? Pls advise.

I've been working on strings for about two weeks without much meaningful success. I need to implement something like this so badly.

Best regards,
Ed

edg962 wrote:Gents,

I tried different ways of doings this but no cigar. The following code did not work among others.
-----------------------------------
structure arrayx
dim str1 as string[10]
end structure

dim my_array as array[100]

-----------------------------------
Has anyone been successful at implementing string arrays? I just want to create and manipulate an array of 100 strings each 5 characters long.

Thanks for your help.

User avatar
zristic
mikroElektronika team
Posts: 6608
Joined: 03 Aug 2004 12:59
Contact:

Re: Creating arrays of string type MikroBasic PRO or regula

#4 Post by zristic » 18 Dec 2008 11:06

The idea was to have it released today, but we discovered few new problems, so we postponed it for the next week. It is better to fix the problems and to wait for a little while.

edg962
Posts: 27
Joined: 06 Dec 2008 04:46

Re: Creating arrays of string type MikroBasic PRO or regula

#5 Post by edg962 » 24 Dec 2008 00:48

Zristic,

Can you please advise me when this week you plan to release the patch? Some kind of eta, please.
zristic wrote:The idea was to have it released today, but we discovered few new problems, so we postponed it for the next week. It is better to fix the problems and to wait for a little while.

User avatar
zristic
mikroElektronika team
Posts: 6608
Joined: 03 Aug 2004 12:59
Contact:

Re: Creating arrays of string type MikroBasic PRO or regula

#6 Post by zristic » 25 Dec 2008 13:15

mikroPascal for AVR either today or tomorrow, mikroBasic probably in 3 days after mP.

edg962
Posts: 27
Joined: 06 Dec 2008 04:46

Re: Creating arrays of string type MikroBasic PRO or regula

#7 Post by edg962 » 25 Dec 2008 20:47

Zristic,

Thank you for your reply. I will certainly be eagerly waiting.

Best regards,
Ed
zristic wrote:mikroPascal for AVR either today or tomorrow, mikroBasic probably in 3 days after mP.
[/quote]

Post Reply

Return to “mikroBasic for AVR General”