Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- The Guide to Clip-4-Win version 3.0 - Norton Guide http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]

WVBXControl:SetPropByName() Method
Get a property value using its name
------------------------------------------------------------------------------

Syntax
<oWnd>:GetPropByName( <cName>, <xValue> )   -->   lSuccess

Arguments
<cName> is the name of the property.

<xValue> is the new value for the property.

Returns
A logical is returned, indicating whether the property was set.

Description
This method can be used to set the current value of the
specified property.

Example
// From SOURCE\OO\VBXDEMO.PRG:
CLASS MyVBXDialog INHERIT WVBXDialog
     // . . .
     METHOD ChangeOrientation()                                 ;
            INLINE local n,                                      ;
                   n := ::oSpin:GetPropByName("SpinOrientation"),;
                   ::oSpin:SetPropByName("SpinOrientation",      ;
                                         iif(n == 0, 1, 0))


See Also: WVBXControl:GetProp() WVBXControl:SetPropByName()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson