JVCL Help:TJvTFScheduleManager.GenerateApptID

From Project JEDI Wiki
Jump to navigationJump to search
JEDI Visual Component Library Help

Search in JVCL Help

 
Search in all projects
 

Summary

Generates a unique identifier for appointment objects.


Pascal

 classfunctionGenerateApptID: string; virtual;


Return Value

A unique appointment ID.


Description

The implementation uses a concatenation of the system date/time and five random alpha chars and is as follows: classfunction TJvTFScheduleManager.GenerateApptID: String;

     Var
I : Integer;
begin
Result := FloatToStr(Now);
For I := 1 to 5 do
Result := Result + Chr(Random(25) + 65);
end;
You may override this method in a descendant class if you need to change this algorithm, otherwise you can just supply an ID to the RequestAppt or dbNewAppt methods.


See Also

TJvTFScheduleManager.dbNewAppt, TJvTFScheduleManager.RequestAppt


About

Contribute to this help topic

This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page