There are parameters for "callback" procedures of the type reference to procedure. For some calls, I want to pass a nil or a null and then check if a procedure reference was passed.
- Nil compiles, but is probably wrong.
- When tracing it, it appears to be of type string
What should I pass and how should I check?
Examples
type
TShowCrudListProc = reference to function
(const AElementId : string;
AEditProc : TEditProc) : TWebForm;
TShowCrudEditProc = reference to function
(const AElementId : string;
AListProc : TListProc;
AId : JSValue;
AEdit : Boolean): TWebForm;
function CreateForm (AElementID : string;
ATitle : string;
ACrud_List_Proc : TShowCrudListProc;
ACrud_Edit_Proc : TShowCrudEditProc) : TWebForm;