Code assistant problem with array of records (mP v6.00)

Beta Testing discussion on mikroPascal PRO for dsPIC30/33 and PIC24.
Post Reply
Author
Message
Dany
Posts: 3854
Joined: 18 Jun 2008 11:43
Location: Nieuwpoort, Belgium
Contact:

Code assistant problem with array of records (mP v6.00)

#1 Post by Dany » 21 Jun 2013 11:02

Hi,

The code assistant does show all possible types, consts, built in functions etc, instead of only the members of the record (as one would expect) when typing in a "." to select one of the record members, e.g.:

Code: Select all

type TTest = record
                  aaa: byte;
                  bbb: byte;
       end;

var Test: array[2] of TTest;

...

  Test[0].  // <--- at this moment the whole bunch is shown...
The above only happens if the variable is an array of records.

If the variable is a simple record one the behaviour is ok:

Code: Select all

var Test : TTest;
...
  Test.  // <-- at this moment only the members of type TTest are shown by the code assistant as expected.

This phenomenon is also valid for mP for PIC.

Thanks in advance! :D :D
Kind regards, Dany.
Forget your perfect offering. There is a crack in everything, that's how the light gets in... (L. Cohen)
Remember when we were young? We shone like the sun. (David Gilmour)

User avatar
filip
mikroElektronika team
Posts: 11874
Joined: 25 Jan 2008 09:56

Re: Code assistant problem with array of records (mP v6.00)

#2 Post by filip » 24 Jun 2013 09:17

Hi,

Thank you for reporting this, I will pass this issue to our developers.

Regards,
Filip.

Post Reply

Return to “mikroPascal PRO for dsPIC30/33 and PIC24 Beta Testing”