Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Putting text in a string var in a newly created form before showing it ?
#6
hi
here is what works for me, and i use it a lot for several years now :

assuming :
1. TIWForm2 is in unit "Unit2"

add Unit2 to the Uses of Form1\Unit1.

Then,
TIWForm1.Button1.OnClick(sender....
begin
 With TIWForm2.create(WebApplication) Do Begin
 value1 := 'test'; //your public var from Unit2
 Show;
 End;
end;

good luck Smile
Reply


Messages In This Thread
RE: Putting text in a string var in a newly created form before showing it ? - by EitanArbel - 03-05-2020, 10:08 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)