validate_name()

Verifies that a string is a valid program file name; that is, that the string has no illegal punctuation characters or embedded spaces. Returns an integer indicating validity of file name, where: 0 = invalid, 1 = valid.

Syntax:

validate_name(string);

where

string is a string representing a file name.

Example:

Most often, this function is used in conjunction with create_text_form() to ensure that the file name entered is valid. In this example, the validate_name function will be called automatically to validate the value for the parameter that uses a text form, when the value is entered.

create_text_form("meas","Measurements", 0, "%v", "%v", get_measurement_list, validate_name);

Where Used:

Schematic

 

Privacy Statement  | Terms of Use  | Legal | Contact Us  | © Agilent 2000-2008 

Contents
Additional Resources