« TaskParameters (TTaskConfigureController) » : différence entre les versions

De Wiki1000
Aucun résumé des modifications
m (Remplacement du texte — « TTaskFormController » par « TTaskConfigureController »)
Ligne 15 : Ligne 15 :


function doConfigureMyTask:string;
function doConfigureMyTask:string;
var inst:TTaskFormController; aReason:String;
var inst:TTaskConfigureController; aReason:String;
begin
begin
   inst := TTaskFormController.Create;
   inst := TTaskConfigureController.Create;
   inst.FormName := 'myprocessus.dfm';
   inst.FormName := 'myprocessus.dfm';
   inst.TaskParameters := myProcessParameters;
   inst.TaskParameters := myProcessParameters;
Ligne 33 : Ligne 33 :
Voir aussi
Voir aussi


{{Footer|TTaskFormController_(class)}}
{{Footer|TTaskConfigureController_(class)}}
[[Category:TTaskFormController]]
[[Category:TTaskConfigureController]]

Version du 20 novembre 2019 à 15:56

<source lang='delphi'>property TaskParameters:String;</source>

Cette propriété défini les paramètres de la tâche.


Exemple :

<source lang="delphi">

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; </source>

Voir aussi

{{#if:TTaskConfigureController_(class)|

{{#if:TTaskConfigureController_(class)|— TTaskConfigureController_(class) |}} — Développement DSM

|

{{#if:|— [[{{{1}}}]] |}} — Développement DSM

}}