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> prpvaluetest()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 PrpValueTest()
------------------------------------------------------------------------------
 Purpose:
 Verify a property has a value.

 Syntax:
 bResult = PrpValueTest( lpszObjectName, wObjectType, lpszPropertyName )

 Parameters:
 lpszObjectName   The object name.
 wObjectType      The object type.
 lpszPropertyName The property name.

 Returns:
 A boolean value (TRUE or FALSE).

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

 Description:
 PrpValueTest() returns whether the specified property lpszPropertyName
 of object lpszObjectName, and type wObjectType has a value associated
 with it.

 Although an object may have a property, for example a user may have a
 SECURITY_EQUALS property, there is no guarantee that the property has any
 associated value. Properties and their values are actually separate.

 Returns TRUE if the property has values associated with it, or FALSE if it
 hasn't, or if an error occurs.

 Example:
 // To test whether user KATIE's IDENTIFICATION property
 // actually has a value ( in this case the full name )
 if ( PrpValueTest( "KATIE", OT_USER, "IDENTIFICATION" ) )
    ? "User KATIE has a value for IDENTIFICATION property"
 endif

 Notes:
 If FALSE is returned, check NWErrorGet().

See Also: PrpFlagGet() ObjPropertyTest() ObjPropertyList() PrpSecurityGet()

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