Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Novlib 3.30 Online Reference - <b> setpropertyidtest()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 SetPropertyIDTest()
------------------------------------------------------------------------------
 Purpose:
 Verify an object ID is in an object's set property.

 Syntax:
 bResult = SetPropertyIDTest( lpszObjectName1,
           wObjectType1, lpszObjectName2,
           wObjectType2, lpszProperty )

 Parameters:
 lpszObjectName1 The name of the object whose set property is to be tested.
 wObjectType1    The type of the object lpszObjectName1.
 lpszObjectName2 The name of the member object for which to test.
 wObjectType2    The type of the member object lpszObjectName2.
 lpszProperty    The name of the set property to test.

 Returns:
 A boolean value (TRUE or FALSE).

 The CA-Clipper name for this function is:
 SetPrpIDTst()

 Description:
 SetPropertyIDTest() tests to see whether the bindery object specified by
 its name lpszObjectName2 and type wObjectType2 is in the set property
 value specified by lpszProperty of object lpszObjectName1 of type
 wObjectType1.

 Returns TRUE if successful, FALSE if it is not, or if an error occurs.

 Example:
 // To test whether user IAN's object ID is in the GROUP_MEMBERS set
 // property value of group EVERYONE, i.e. to see if IAN is a member of
 // group EVERYONE:
 if ( SetPropertyIDTest( "EVERYONE", OT_USER_GROUP,"IAN", OT_USER,
          "GROUP_MEMBERS" ) )
    ? "User IAN's object ID is in the GROUP_MEMBERS property"
    ?? "of the group EVERYONE, so IAN is member of group EVERYONE"
 endif

 Notes:
 For more information on objects and properties, see the reference
 in Chapter 3, Bindery Functions.

 If FALSE is returned, check NWErrorGet().

See Also: SetPropertyIDAdd() SetPropertyIDDelete() SetPropertyValueGet() / SetPropertyValueSet()

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