All Var-Def's switching Outl2003Child<>Office2007Bar

All Var-Def's switching Outl2003Child<>Office2007Bar

Postby ukoenig » Sat Feb 02, 2008 8:37 pm

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
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany

Postby James Bott » Sat Feb 02, 2008 9:00 pm

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[i]:varGet()

Where aControls is an array of control objects.

Regards,
James
User avatar
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Horizon and 40 guests