Slide 9.8: Line-by-line anatomy of Menu.c (cont.) (cont.) Slide 10.1: Programming Exercise II: my memento by using Palm OS Home |
Menu.c
(Cont.)
objType = FrmGetObjectType( frm, focus );
formP
: Pointer to the form object (FormType structure)
objIndex
: Index of an object in the form.
You can obtain this by using FrmGetObjectIndex( ).
return( TblGetCurrentField( FrmGetObjectPtr( frm, focus ) ) );
NULL
if the table is not in edit mode.
tableP
: Pointer to a table object. (See TableType.)
StrPrintF ( cursor, "%2d/%-2d", curRec+1, MAX_REC );
sprintf
call, which writes formatted output to a string.
It returns number of characters written to destination string, or returns a negative number if there is an error.
s
: Pointer to a string into which the results are written
formatStr
: Pointer to the format specification string
...
: Zero or more arguments to be formatted as specified by formatStr
StrCopy( p, str );
dst
: Pointer to the destination string
src
: Pointer to the source string
strcpy
routine.