FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour All Var-Def's switching Outl2003Child<>Office2007Bar
Posts: 4043
Joined: Wed Dec 19, 2007 06:40 PM
All Var-Def's switching Outl2003Child<>Office2007Bar
Posted: Sat Feb 02, 2008 08: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

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.
Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM
All Var-Def's switching Outl2003Child<>Office2007Bar
Posted: Sat Feb 02, 2008 09: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
FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10

Continue the discussion