Missing drop-down variables for structure
jjames
Posts: 2,908
Okay, so I'm programming away, and notice I can't get a variable in a structure to pull up in the drop-down selection when typing. Here's my code:
DEFINE_TYPE
STRUCTURE _sLOADS
{
CHAR cLoadNumber[1]
CHAR cLoadPercentage[3]
}
DEFINE_VARIABLE
(*** STRUCTURE VARIABLES ***)
_sLOADS LoadStruct[51]
_sLEDS LEDstruct[114]
(*** INTEGER VARIABLES ***)
INTEGER nFIND
INTEGER nLENGTH
(*** CHAR VARIABLES ***)
CHAR cVANTAGEBUFFER[15]
CHAR cLEDBUFFER[25]
CHAR cLOADBUFFER[25]
CHAR cKeypadAddress[3]
CHAR cLoadAddress[2]
So when I type in "LoadStruct." it only pulls ups cLoadNumber, and not cLoadPercentage. Now when I just start to type cLoadPercentage anywhere alone, it'll pop-up. Am I defining it wrong or is it a glitch/bug in the the software?
DEFINE_TYPE
STRUCTURE _sLOADS
{
CHAR cLoadNumber[1]
CHAR cLoadPercentage[3]
}
DEFINE_VARIABLE
(*** STRUCTURE VARIABLES ***)
_sLOADS LoadStruct[51]
_sLEDS LEDstruct[114]
(*** INTEGER VARIABLES ***)
INTEGER nFIND
INTEGER nLENGTH
(*** CHAR VARIABLES ***)
CHAR cVANTAGEBUFFER[15]
CHAR cLEDBUFFER[25]
CHAR cLOADBUFFER[25]
CHAR cKeypadAddress[3]
CHAR cLoadAddress[2]
So when I type in "LoadStruct." it only pulls ups cLoadNumber, and not cLoadPercentage. Now when I just start to type cLoadPercentage anywhere alone, it'll pop-up. Am I defining it wrong or is it a glitch/bug in the the software?
0
Comments
I'm sure you know but, this doesn't mean the variable it not in the structure, it just doesn't show up in the drop down.
And then elsewhere in code (under DEFINE_START or in a call or wherever) the following is typed in:
sLights[1].
nothing is suggested.
However, if the following is typed in:
sLight[1]. (which is obviously illegal and of no use)
then Name, Address, and Intensity are suggested in a dropdown box.
I hope the good folks in AMX engineering will revisit auto suggest and continue to improve their IDE like they did by fixing auto complete and by adding the call tips for user defined functions/calls. Showing call tips for built in AMX functions would be great to see to.
Joe