Page 1 of 1

#PB_Compiler_EnumerationValue In Forms Designer

Posted: Sat Sep 20, 2014 8:26 pm
by SniffTheGlove
Come across a problem either with me or Form Designer and using #PB_Compiler_EnumerationValue

I am doing quite a few Enumerations in my main.pb.

Now I am using the Forms Designer to just design my gui forms.

If I use #PB_Any then I can not get proper access to the gadgets on my pbf forms. If I untick Use #PB_Any in the Forms Designer we go to using Enumerations within the pbf which is all well and good but the enumeration start back at 0. What I need is a way to use #PB_Compiler_EnumerationValue on the pbf enumerations. Manually putting the #PB_Compiler_EnumerationValue after Enumerations is OK until I swap between design/code at which point Forms Designer promtly removes the #PB_Compiler_EnumerationValue and the enumerations start at 0 Again.

Is there a way around this? a way to switch #PB_Compiler_EnumerationValue on in settings or is it a bit of Polo magic that is required to add a setting to FormDesigner that when you chose not to use #PB_Any then #PB_Compiler_EnumerationValue is the default.

Thanks

Re: #PB_Compiler_EnumerationValue In Forms Designer

Posted: Tue Sep 23, 2014 9:31 am
by Fred
The designer now use "named" enumeration, so there is no more need of #PB_Compiler_EnumerationValue as it's automatically done. Could you be more specific on your issue ?

Re: #PB_Compiler_EnumerationValue In Forms Designer

Posted: Wed Sep 24, 2014 8:02 am
by SniffTheGlove
Fred wrote:The designer now use "named" enumeration, so there is no more need of #PB_Compiler_EnumerationValue as it's automatically done. Could you be more specific on your issue ?
Having read up on it I find I am a thickie!

I had an issue with enumerations and looked at the forum and read a thread about #PB_Compiler_EnumerationValue and it solved my problem, however I just found out I was doing my testing in one of my manu installed versions (V5.00) and not realising it at the time. Duh!!

Please forget this thread, nothing to read here........