The SchdGetField function returns the value of the particular field in a record to which the data browse cursor is currently referencing.
Syntax
STRING SchdGetField(LONG Session, STRING Field)
Session:
The handle to a browse session previously returned by the SchdOpen call.
Field:
Specifies via a comma delimited string the columns to be returned during the browse. An empty string indicates that the server will return every available column. See SchdOpen for supported fields.
Return Value
The value of the specified field as a string. An empty string may or may not be an indication that an error has been detected. The last error should be checked in this instance to determine if an error has actually occurred.
Related Functions
SchdConfigOpen,SchdConfigClose, SchdConfigFirst,SchdConfigNext,SchdConfigPrev, SchdConfigGetField, SchdConfigNumRecords,SchdOpen, SchdClose, SchdFirst,SchdNext, SchdPrev, SchdNumRecords, ScheduleItemAdd, ScheduleItemSetRepeat, ScheduleItemModify, ScheduleItemDelete
Example
TIMESTAMP tsStart = StrToTimestamp(SchdGetField(hSession, "Start"),15,0);
TIMESTAMP tsEnd = StrToTimestamp(SchdGetField(hSession, "End"),15,0);
See Also
Published June 2018