well that looks to be a mix of C# and delphi...
 
the correct code should be something like::
 
var
  ws: TWebService1;
begin
  ws := TWebService1.Create;
  Button1.Text := ws.HelloWorld;
end;
 
cheers,
JED
 
 
 -----Original Message-----
From: Jeremy Coulter [mailto:[EMAIL PROTECTED]
Sent: 7 September 2004 10:13 AM
To: [EMAIL PROTECTED]
Subject: [DUG] Delphi 8 Document wrong ??

Hi All
Been give the go ahead for me first real .NET app. yay !
 
Only problem is, I seem to ave found a bit of a problem in the documentation.
I am jsut going thru the "Gettitng Started" guide to see how Delphi does Web Services, and all has gone well UNTIL I reach this bot of code, and its copy and pasted from the Help :-
 
procedure TWinForm1.Button1_Click(sender: System.Object; e: System.EventArgs);
begin
    new ws := WebService1();
    button1.Text := ws.HelloWorld();
end;
 
the problem here is, it thinks NEW is infact a NEW(mypointer).
 
anyone else struck this or know the answer?
 
Thanks, Jeremy
_______________________________________________
Delphi mailing list
[EMAIL PROTECTED]
http://ns3.123.co.nz/mailman/listinfo/delphi

Reply via email to