Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to use my optionbutton with optiongroup
Message
From
08/12/2006 02:43:50
Lutz Scheffler (Online)
Lutz Scheffler Software Ingenieurbüro
Dresden, Germany
 
 
To
08/12/2006 01:23:51
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01174874
Message ID:
01175975
Views:
7
Hi Dragan,

I hope you will sleep well - now.

How I figure out? This is that I do not use the property window. I have a multi lang app, and lable captions etc. are bound to meta information. So I con not enter a lable in properties window - I need to code like
.lblField1 = _SCREEN.goMeta.GetTextFromMeta(cTable,'Field1')
.lblField2 = _SCREEN.goMeta.GetTextFromMeta(cTable,'Field2')
A little bit boring to add for all lables, isn't it? So I came to the conclusion that this might be done by code. I create a little prg the generates, depending on ASELOBJ and an string those code. A little bit later I need, for some reasons, to adress it from THISFORM or this,parent.parent.. down to form level. So I thought it easy, going backwards the PARENT object until there is no parent. But I end up on level to much. Tracing my code I figured out that the form has a PARENT - a formset.

BTW.
Open up a non form class. Try my code. You will see that the class is contained in a form and thisone within the formset.

Whats left? Ah what do you mean by
>...I used aSelObj() ...
?

If I enter
?ASELOBJ(laO,1)
*ASELOBJ(laO) will not return the form
?lao(1,1).parent.baseclass
I still receive "Formset"

Agnes
>>>>I remember the existence of such a class. Never figured out what it is good for.
>>>
>>>It's keeping company to the poor lonely formset.
>>
>>I disagree. ::) I do not use formset in my apps but it is still in use. (You can't avoid)
>>
>>Open a form in IDE, point the mouse to it
>>in command window enter
>>
>>loA  = SYS(1270)
>>?loa.Parent.baseclass
>>
>>see?
>
>How did you catch that? Wow... didn't expect that. I know that when I try to just Create Form (using just defaults) it somehow always kicks in a formset, so I always add ... as myform of myclass. But this is really unexpected, specially when the formset doesn't show up in the PEM window.
>
>Tried at runtime, though - no formset there.
>And, I used aSelObj() instead of sys(1270), returns the same object without
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord

Weeks of programming can save you hours of planning.

Off

There is no place like [::1]
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform