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:SetProp() Method
Set a property value using its index
------------------------------------------------------------------------------

Syntax
<oWnd>:SetProp( <nIndex>, <xValue> )   -->   lSuccess

Arguments
<nIndex> is the property number.  Note: these count from zero (0).

<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:GetProp(24),               ;
                   ::oSpin:SetProp(24, iif(n == 0, 1, 0))


See Also: WVBXControl:GetPropByName() WVBXControl:SetProp()

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