TaskParameters (TTaskConfigureController)
property TaskParameters:String;
Cette propriété défini les paramètres de la tâche.
Exemple :
function doConfigureMyTask:string;
var inst:TTaskFormController; aReason:String;
begin
inst := TTaskFormController.Create;
inst.FormName := 'myprocessus.dfm';
inst.TaskParameters := myProcessParameters;
// This open the interface for configuration
if inst.Configure(aReason) then
begin
// Result = True means the user has validate the configuration
// TaskParameters has been populate
myProcessParameters:= inst.TaskParameters;
end;
end;
Voir aussi