Results 1 to 4 of 4

Thread: ExecVisualProcess of Dlg.ShowModal doorgeven van ParamStr

  1. #1

    ExecVisualProcess of Dlg.ShowModal doorgeven van ParamStr

    Hallo allemaal,

    Bij de uitvoer van ExecVisualProcess(... kan je een ParamStr meegeven (Afasie_Oefening_01.Exe 1). Dit werkt goed. Maar hoe moet ik de waarde '1'
    meegeven bij Dlg....

    Met een vriendelijk groet

    Code:
    Var
      Dlg : TAfasie_Oefening_01_Frm;
    BEGIN
      Dlg := TAfasie_Oefening_01_Frm.Create(nil);
      Dlg.ShowModal;
      Dlg.Free;
      Exit;
    
      ExecVisualProcess(FPathRec.Path_Eerste+'Afasie_Oefening_01\Afasie_Oefening_01.Exe 1');
    END;

  2. #2
    Is dat niet gewoon de 2e parameter? Dus zo:
    Delphi Code:
    1. ExecVisualProcess(FPathRec.Path_Eerste+'Afasie_Oefening_01\Afasie_Oefening_01.Exe', '1');

  3. #3
    Nee, het is niet de bedoeling om ExecVisualProcess te gebruiken.

  4. #4
    Oplossing 1: override de constructor van TAfasie_Oefening_01_Frm, zodat je deze parameter kan toevoegen.
    Oplossing 2: maak een porperty hiervoor in TAfasie_Oefening_01_Frm.

    Bart

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •