Question
I have an enum with values Element1, Element2 and Element3. Now this enum is being used on two different locations what the requirement is that i have to add another element Element4 in to the enum but this should only reflect on one location.
Answer
Let say you you two forms where this enum is reflected, namely Form1 and Form2. In order to hide an element from Form1 and continue showing it on Form2 go to form design and then access that combo box control. Override the enter() method of that combo box and write this line to delete the element from it.
combobox:enter()
{
super();
this.delete(enum2str(BaseEnum::Element4));
}
İt doesn't work
ReplyDeletewhen I delete item I can't select the other item properly
but , thanks for your information
HI, and it also returns the wrong enum value
ReplyDeletethis work only if you remove last enum value otherwise it shift enum value
ReplyDeleteexactly -- this is worthless for the most part.
ReplyDeletedo not discourage a valuable finding or suggestion.if needed use it else get away.
ReplyDeletegolden goose outlet
ReplyDeletebape
hermes bag
off white jordan 1
OFF-White
golden goose official
supreme official
hermes outlet
supreme shirt
air jordan