TaskParameters (TTaskConfigureController)

De Wiki1000
property TaskParameters:String;

Cette propriété définie 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

TTaskConfigureController_(class)Développement DSM





Whos here now:   Members 0   Guests 1   Bots & Crawlers 0
 
Outils personnels