All Var-Def's switching Outl2003Child<>Office2007Bar

Post Reply
User avatar
ukoenig
Posts: 3981
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany
Contact:

All Var-Def's switching Outl2003Child<>Office2007Bar

Post by ukoenig »

Hello from Germany,

During my work on the new DB-Tool,
i needed var-informations in the Office2007-Bar
from a Outlook-Child after changes.
Here are all Values you need :

RECEIVE Values from a Outlook2003-Child
in a Office2007-ButtonBar
---------------------------------------------------------
GET = oGet:Value(), oGet:Refresh()
SAY = oSay:Varget(), oSay:Refresh()
RADIO = oRadio:nOption, oRadio:Refresh()
CHECKBOX = oCheck:Varget(), oCheck::Refresh()

SEND new Values from Office2007-ButtonBar
to a Outlook2003-Child
-----------------------------------------------------
RADIO = aScope:nOption(2), aScope:Refresh()
for .T.
CHECK = oCheck:Check(), oCheck:Refresh()
for .F.
CHECK = oCheck:UnCheck(), oCheck:Refresh()
GET = oGet:VarPut("NewValue"), oGet:Refresh()
SAY = oSay:VarPut("NewValue"), oSay:Refresh()

Uwe
Last edited by ukoenig on Sun Feb 03, 2008 12:24 pm, edited 1 time in total.
Since 1995 ( the first release of FW 1.9 )
i work with FW.
If you have any questions about special functions, maybe i can help.
User avatar
James Bott
Posts: 4654
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA
Contact:

Post by James Bott »

oGet:value() just calls oGet:VarGet() so you can use either one.

METHOD Value() INLINE ::VarGet()

VarGet() may be easier to remember since SAYs, GETs, Comoboxes, and RadioMenus all have a VarGet() method. This is polymorphism (same names in different objects) which is a very important feature of OOP. This allows you to do thing like:

uValue:= oDlg:aControls:varGet()

Where aControls is an array of control objects.

Regards,
James
Post Reply