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

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

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

 Returns:
 A boolean value (TRUE or FALSE).

 Description:
 PrpValTst() 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 ( PrpValTst( "KATIE", OT_USER, "IDENTIFICATION" ) )
    ? "User KATIE has a value for IDENTIFICATION property"
 endif

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

See Also: PrpFlgGet() ObjPrpTst() ObjPrpLst() PrpSecGet()

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