Go to Post Yes, it can. You'll have to ask the lawyers around here whether it's legal or not. - Kevin Watson [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 02-02-2005, 07:18
sunil bansal sunil bansal is offline
Registered User
no team
 
Join Date: Feb 2005
Location: India
Posts: 2
sunil bansal is an unknown quantity at this point
Exclamation 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..
  #2   Spotlight this post!  
Unread 02-02-2005, 08:11
ttedrow's Avatar
ttedrow ttedrow is offline
Herding electrons
AKA: Tim Tedrow
FRC #0281 (EnTech)
Team Role: Mentor
 
Join Date: Jan 2002
Rookie Year: 2000
Location: Greenville, SC
Posts: 165
ttedrow will become famous soon enoughttedrow will become famous soon enough
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
__________________
Sr. Design Engineer
Caterpillar Inc.
Greenville, SC

KD4EGM

FRC 281 Greenvillains
Infected with the FIRST virus in 2000

Yes, Chute Door!!!
  #3   Spotlight this post!  
Unread 03-02-2005, 15:29
dez250 dez250 is offline
54... What a good number!
no team
 
Join Date: Dec 2002
Rookie Year: 2000
Location: Upstate NY / Manchester, NH
Posts: 1,721
dez250 has a reputation beyond reputedez250 has a reputation beyond reputedez250 has a reputation beyond reputedez250 has a reputation beyond reputedez250 has a reputation beyond reputedez250 has a reputation beyond reputedez250 has a reputation beyond reputedez250 has a reputation beyond reputedez250 has a reputation beyond reputedez250 has a reputation beyond reputedez250 has a reputation beyond repute
Send a message via AIM to dez250
Re: Delhpi Program Query

Please referance the following thread.

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

-Michael Dessingue
  #4   Spotlight this post!  
Unread 03-02-2005, 20:44
Greg Ross's Avatar
Greg Ross Greg Ross is offline
Grammar Curmudgeon
AKA: gwross
FRC #0330 (Beach 'Bots)
Team Role: Mentor
 
Join Date: Jun 2001
Rookie Year: 1998
Location: Hermosa Beach, CA
Posts: 2,245
Greg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond repute
Send a message via AIM to Greg Ross Send a message via Yahoo to Greg Ross
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".
__________________
Greg Ross (The Grammar Curmudgeon formerly known as gwross)
S/W Engineer, Team 330, the Beach 'Bots
<--The Grammar Curmudgeon loves this cartoon.
“Life should not be a journey to the grave with the intention of arriving safely in a pretty and well preserved body, but rather to skid in broadside in a cloud of smoke, thoroughly used up, totally worn out, and loudly proclaiming "Wow! What a Ride!" Hunter S. Thompson
"Playing a practical joke means doing something mean and calling it funny." Me
  #5   Spotlight this post!  
Unread 04-02-2005, 00:22
sunil bansal sunil bansal is offline
Registered User
no team
 
Join Date: Feb 2005
Location: India
Posts: 2
sunil bansal is an unknown quantity at this point
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.
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
2-week FIRST summer program @ WPI ColleenShaver General Forum 20 31-05-2009 03:02
how to add steps in the provided encoder program for the edu Zaramel2002 Programming 3 11-02-2004 08:35
Fried program slots? Jeff Waegelin Programming 18 19-03-2003 18:08
Ahh! Program trick confusing! archiver 2001 9 24-06-2002 02:26
Credits for FIRST program. archiver 2000 6 24-06-2002 00:16


All times are GMT -5. The time now is 01:12.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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