Basic Syntax CrystalClear Syntax Before Reading Records

HasValue( PromptField )


This function checks the prompt field for whether the user entered a value for the prompt or not. This is simply determined by checking whether the prompt field has a value set for it AND whether it is more than just an empty string. Note that any parameter type is allowed, not just a prompt field - the function will simply check the parameter for whether it is not null and not an empty string.

Usage:

HasValue( promptfield )

Parameters:

promptfield prompt field to check whether it has a value (also allowed to be any other value or field if you want to check them for whether they are null and not empty)

Returns:

True, if promptfield is not null AND not an empty string.

Examples:

HasValue ({?myprompt})   // Returns True if the prompt's value was set, False otherwise
HasValue ("")   // Returns False.
HasValue (null) // Returns False
HasValue (1)     // Returns True.

See also:


i-net software strives to provide accurate product documentation. Please give us your feedback using the form below.
NOTE: This form is for documentation feedback only. For technical assistance, please send an email to crystalclear@inetsoftware.de.

This page is: very poor very good
Comment: