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

De Wiki1000
(Page créée avec « <source lang='delphi'>property TaskParameters:String;</source> Cette propriété défini les paramètres de la tâche. {|class="wikitable" |- | | |} Exemple : <source... »)
 
Aucun résumé des modifications
Ligne 13 : Ligne 13 :


<source lang="delphi">
<source lang="delphi">
function doGetMyTaskParameters:string;
 
var inst:TTaskFormController;
function doConfigureMyTask:string;
var inst:TTaskFormController; aReason:String;
begin
begin
   inst := TTaskFormController.Create;
   inst := TTaskFormController.Create;
   inst.FormName := 'myprocessus.dfm';
   inst.FormName := 'myprocessus.dfm';
  inst.TaskParameters := myProcessParameters;
   // This open the interface for configuration
   // This open the interface for configuration
   inst.Configure();
   if inst.Configure(aReason) then
  // TaskParameters has been populate
    begin
  Result := inst.Result;
      // Result = True means the user has validate the configuration
      // TaskParameters has been populate
      myProcessParameters:= inst.TaskParameters;
    end;
end;
end;
</source>
</source>

Version du 20 novembre 2019 à 15:25

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

Voir aussi

{{#if:TTaskFormController_(class)|

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

|

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

}}