No multidimension string arrays?

Beta Testing discussion on mikroBasic PRO for PIC.
Post Reply
Author
Message
Chris Yeager
Posts: 73
Joined: 21 Sep 2005 04:23

No multidimension string arrays?

#1 Post by Chris Yeager » 26 Mar 2009 04:32

Can we no longer define arrays like....

Code: Select all

dim options as string[12][3]

Bytex
Posts: 459
Joined: 23 Jun 2008 00:58
Location: Palmanova (UD), Italy
Contact:

#2 Post by Bytex » 26 Mar 2009 09:08

I confirm that array does not work any more.
Also into the help is missing that.

While (ME will provide to fix the problem)
You can use:

Code: Select all

structure mOptions
    Dim Opt as string[5]
end structure

Dim Options    as mOptions[10]

main:
    while true
        Options[1].Opt[3] = "P"
        '
        '
        '
    wend
end.
Wend

Best regards,
Max

http://www.b-vu.com

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

#3 Post by zristic » 27 Mar 2009 10:57

This will be fixed, thanks.

Post Reply

Return to “mikroBasic PRO for PIC Beta Testing”