pcb_get_string()
Retrieves the value of a parameter that is a constant form. This function must be called within a PARM_MODIFIED_CB callback function created by dm_create_cb().
See also: pcb_get_mks(), pcb_set_mks(), pcb_get_form_value(), pcb_set_form_value(), pcb_set_string().
Syntax:
pcb_get_string(callData, paramName)
where
callData is the third argument of the PARM_MODIFIED_CB callback function.
paramName is the name of the parameter to get the value from.
| Note STRING_UNIT must be specified in create_parm for this function to work. See the following example: |
Example:
create_item(... create_parm("A", "A parameter value", PARM_STRING, "StringAndReferenceFormSet", STRING_UNIT, prm("StringAndReference", "myAString"), list(dm_create_cb(PARM_MODIFIED_CB, "a_modified_cb", NULL, TRUE))), create_parm("B", "B parameter value", PARM_STRING, "StringAndReferenceFormSet", STRING_UNIT, prm("StringAndReference", "myBString"))); defun a_modified_cb(cbP, clientData, callData) { decl a_stringValue=pcb_get_string(callData, "A"); return(pcb_set_string(NULL, "B", a_stringValue)); }
Where Used:
Schematic
Privacy
Statement
|
Terms of Use
|
Legal |
Contact Us
|
© Agilent 2000-2008 ![]()