dlgitem_set
dlgitem_set (window, dlgitem, attribute[, value,...])
Sets the value of the attribute named attribute of dlgitem to value. If window is invalid, if dlgitem does not exist within window, if attribute is not a valid attribute given the type of dlgitem, or if value is not valid given the type of attribute, then $ERROR is set and 0 is returned. If successful, the function returns a one (1).
The window parameter is a window identifier. dlgitem is the value of the control's id attribute. The attribute parameter(s) specifies the actual attribute(s) to set. The value parameters contain string data values for attributes.
Any necessary display updates will be scheduled but not necessarily completed when this functions returns.
Example
$ret = dlgitem_set($win, "TextField", VALUE,"Machu Pichu")