TaskParameters (TTaskConfigureController)
property TaskParameters:String;
Cette propriété définit les paramètres de la tâche.
Exemple :
function doConfigureMyTask:string;
var inst:TTaskConfigureController; aReason:String;
begin
inst := TTaskConfigureController.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