TCDSTrkGetFieldOptions
Return to Introduction  Previous page  Next page
Returns the choices available to users, if any, when entering data in a field.

Delphi (TrkIntf.pas)

function TrkGetFieldOptionsSv( Handle: Cardinal; FieldName: String; const OptionList: TStrings; var Default: String ): Integer;  

Parameters

Name
Description
Handle
A valid Handle used to identify the User.
FieldName
The name of the field
OptionList
Returns the selection list for this particular field, or an empty list if the field has no choices
Default
Returns the default value for this field


Return Value

Err_OK if successful or an error code indicating the error.

Remarks

Certain fields may have a selection list (eg RequestedBy), but the user does not have to select an item from the list if another value applies.

If the lease has expired for the handle, the function will fail and return
Err_UnknownUserOrLeaseExpired. 

Exported

function TCDSTrkGetFieldOptions( Handle: Cardinal; pFieldName: PChar; const pOptionList, pDefault: PChar; var Size: Integer ): Integer; stdcall;  


 


© 1995-2018 MCN Software