Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Delhpi Program Query (http://www.chiefdelphi.com/forums/showthread.php?t=33832)

sunil bansal 02-02-2005 07:18

Delhpi Program Query
 
I have this method.

constructor TIPCEvent.Create(AOwner: TIPCThread; const Name: string;
Manual: Boolean);
begin
inherited Create(Name, Manual);
FOwner := AOwner;
FSharedMem := TSharedMem.Create(Format('%s.Data', [Name]), SizeOf(TIPCEventInfo));
FEventInfo := FSharedMem.Buffer;
end;

I just want to know what "Format('%s.Data', [Name])" will return.
Suppose Name is "Sunil". Whether it will return Sunil.Data or something else..

ttedrow 02-02-2005 08:11

Re: Delhpi Program Query
 
Quote:

Originally Posted by sunil bansal
I have this method.

constructor TIPCEvent.Create(AOwner: TIPCThread; const Name: string;
Manual: Boolean);
begin
inherited Create(Name, Manual);
FOwner := AOwner;
FSharedMem := TSharedMem.Create(Format('%s.Data', [Name]), SizeOf(TIPCEventInfo));
FEventInfo := FSharedMem.Buffer;
end;

I just want to know what "Format('%s.Data', [Name])" will return.
Suppose Name is "Sunil". Whether it will return Sunil.Data or something else..

Thanks for your interest, but this is NOT a Delphi programming forum. Please try http://delphi.about.com/ for your question

dez250 03-02-2005 15:29

Re: Delhpi Program Query
 
Please referance the following thread.

http://www.chiefdelphi.com/forums/sh...ad.php?t=29944

Greg Ross 03-02-2005 20:44

Re: Delhpi Program Query
 
Quote:

Originally Posted by sunil bansal
I just want to know what "Format('%s.Data', [Name])" will return.
Suppose Name is "Sunil". Whether it will return Sunil.Data or something else..

Even though this is NOT a Delphi programming language forum, I CAN help you with this one. You guessed correctly. It will return "Sunil.Data".

sunil bansal 04-02-2005 00:22

Re: Delhpi Program Query
 
Quote:

Originally Posted by gwross
Even though this is NOT a Delphi programming language forum, I CAN help you with this one. You guessed correctly. It will return "Sunil.Data".

Thanks a lot.


All times are GMT -5. The time now is 23:55.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi