Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Default Object
Message
From
20/10/2014 11:10:17
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Germany
 
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Title:
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 8.1
Network:
SAMBA Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01609619
Message ID:
01609657
Views:
48
more like:
* Init of a button 
IF This.Default
   This.Default = This.Default
ENDIF

procedure Default_Assign
LPARA;
 tvPara

do case
 case This.Default and !tvPara
   *un register
 case !tvPara or This.Default and tvPara
  *nothing changed, write for side effect (one never know ...)
 otherwise
   *register
endcase

   This.Default = tvPara
endproc
>I'm not sure what you mean
>
>* Init of a button 
>IF This.Default
>   * Register with container
>ENDIF
>
>>
>>Nice to see you. :)
>>
>>I had this idea, but this is something more that will run on init. I'm a bit reluctant with it.
>>So it would run for every button (no OLE Container here).
>>Any idea to do this fast?
>>
>>It would need an assign, something on init to raise it initaly, it's a pain. :)
>>
>>Best would be if it would run as one expect it ... :)
>>
>>Lutz
>>
>>>Wouldn't be easier to get default object to register with container?
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
Reply
Map
View

Click here to load this message in the networking platform