|
Slide 8.4: Line-by-line anatomy of Forms.c Slide 8.6: Line-by-line anatomy of Forms.c (cont.) Home |
|
Forms.c (Cont.)
fld = (FieldPtr) FrmGetObjectPtr ( FrmGetActiveForm( ), obj );
formP: Pointer to the form object (FormType structure)
objIndex: Index of an object in the form.
You can obtain this by using FrmGetObjectIndex( ).
h = (VoidHand) FldGetTextHandle( fld );
NULL if no handle has been allocated for the field pointer.
fldP: Pointer to a field object (FieldType structure)
h = MemHandleNew( FldGetMaxChars( fld )+10 );
maxChars field in FieldType accepts.
fldP: Pointer to a field object (FieldType structure)
size: The desired size of the chunk
ErrFatalDisplayIf( !h, "No Memory" );
condition is true and error checking is set to partial or full.
condition: A boolean value.
If true, display the error.
msg: Error message text as a string