 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
JS Guest
|
Posted: Wed Mar 23, 2005 2:51 pm Post subject: access global variable |
|
|
Hi, how can I access the global gOkay? can I do this insise the
Server1Execute method:if global then exit;Thanks.procedure
TformMain.IdTCPServer1Execute(AThread: TIdPeerThread);var i: integer;begin
if global then exit; with AThread.Connection do begin WriteLn('Hello. DB
Server ready.'); i := StrToIntDef(ReadLn, 0); // Sleep is substituted
for a long DB or other call Sleep(5000); WriteLn(IntToStr(i * 7));
Disconnect; end;end;
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|