Jump to content

how to pass between form and form parameters


goodhelp

Recommended Posts

how to pass between form and form parameters, such as the a.php in php and b.php two pages, a.php can be placed b.php? id = 123 link, the parameters passed to the b.php 123

 

Why not just use the form directly :

 


procedure TMainForm.UniButton1Click(Sender: TObject);
begin
 ChildForm.UniLabel1.Caption := 'Directly set';
 ChildForm.Show;
end;

 

Remember.. thanks to Farshads hard work, Unigui applications are properly statefull, I think a lot of people forget that.

Its not as efficient as passing parameters between static/pseudo-dynamic pages but its a damn side easier to manage.

Link to comment
Share on other sites

how to pass between form and form parameters, such as the a.php in php and b.php two pages, a.php can be placed b.php? id = 123 link, the parameters passed to the b.php 123

 

 

Just like in a ordinary Delphi form:

 

procedure TForm1.Button1Click(...);
begin
 Form2.ExecuteMyCommand(param1, param2, param3);
end;

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...