Re: [DUG]: Adding Calculated Field

2003-06-17 Thread Rohit Gupta
Bingo To: Multiple recipients of list delphi <[EMAIL PROTECTED]> Send reply to: [EMAIL PROTECTED] From: "Neven MacEwan" <[EMAIL PROTECTED]> Subject: Re: [DUG]: Adding Calculated Field Date sent: Mon

Re: [DUG]: Adding Calculated Field

2003-06-15 Thread Neven MacEwan
ot; <[EMAIL PROTECTED]> Sent: Monday, June 16, 2003 10:30 AM Subject: Re: [DUG]: Adding Calculated Field > Neven, > > I have actually got it working... the critical bit (which is why it didnt > work before) was the sequence and the fact that you have to create > all the fields. &g

Re: [DUG]: Adding Calculated Field

2003-06-15 Thread Rohit Gupta
"Neven MacEwan" <[EMAIL PROTECTED]> Subject: Re: [DUG]: Adding Calculated Field Date sent: Fri, 13 Jun 2003 13:46:03 +1200 > Rohit > > To Create a single field you have to create all the fields, so you > can either use the IDE to create a persi

Re: [DUG]: Adding Calculated Field

2003-06-12 Thread Neven MacEwan
me := Self.Name+Field.FieldName; Self.FieldDefs.Add(Field.Name,FieldType,MetaColumn.DataSize,False); end; end; - Original Message - From: "Rohit Gupta" <[EMAIL PROTECTED]> To: "Multiple recipients of list delphi" <[EMAIL PROTECTED]> Sent: Friday, Jun

Re: [DUG]: Adding Calculated Field

2003-06-12 Thread Rohit Gupta
TED]> Send reply to: [EMAIL PROTECTED] From: "Nello Sestini" <[EMAIL PROTECTED]> Subject: Re: [DUG]: Adding Calculated Field Date sent: Fri, 13 Jun 2003 06:50:20 +0700 > if you aren't using persistent fields then ISTR

Re: [DUG]: Adding Calculated Field

2003-06-12 Thread Nello Sestini
nd your problem so this may be a miss) -ns http://www.roserox.co.th - Original Message - From: "Rohit Gupta" <[EMAIL PROTECTED]> To: "Multiple recipients of list delphi" <[EMAIL PROTECTED]> Sent: Friday, June 13, 2003 04:36 Subject: Re: [DUG]: Adding Ca

Re: [DUG]: Adding Calculated Field

2003-06-12 Thread Rohit Gupta
Any other suggestions.. I am really stuck here... PROBLEM The only solution I have is to use a calculated field at run-time. I cant define persistent fields as the query changes depending on user input. The list from the qry gets displayed and the user needs to deselect some rows. If I h

Re: [DUG]: Adding Calculated Field

2003-06-10 Thread Rohit Gupta
Clientdataset is a different beast. you can create any dataset you like.. but its not the same as the one on the disk... unless I add another 4/5 more components to feed it. that remains the sledge-hammer approach. :-) And almost forgot... it doesnt work with int64s Moisis Lspez wrote:

Re: [DUG]: Adding Calculated Field

2003-06-10 Thread Rohit Gupta
recipients of list delphi" <[EMAIL PROTECTED]> Sent: Tuesday, June 10, 2003 12:43 PM Subject: [DUG]: Adding Calculated Field How do I go about adding a calculated field to a grid at run-time ? I have tried various things - none of them work fielddefs.add fielddefs

Re: [DUG]: Adding Calculated Field

2003-06-09 Thread Neven MacEwan
Sent: Tuesday, June 10, 2003 12:43 PM Subject: [DUG]: Adding Calculated Field > How do I go about adding a calculated field to a grid at run-time ? I > have tried various things - none of them work > > fielddefs.add > fi

Re: [DUG]: Adding Calculated Field

2003-06-09 Thread Moisés López
from the delphi help The following code creates and activates a client dataset in the form's OnCreate event handler: procedure TForm1.FormCreate(Sender: TObject); begin with ClientDataSet1 do begin with FieldDefs.AddFieldDef do begin DataType := ftInteger; Name := 'Fi

[DUG]: Adding Calculated Field

2003-06-09 Thread Rohit Gupta
How do I go about adding a calculated field to a grid at run-time ? I have tried various things - none of them work fielddefs.add fielddefs.addfielddef fields.add Regards Rohit == CFL - Computer Fanatics Ltd. 21 Barry's Poin