If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Delphi, C etc > Help With DElphi 5

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-29-07, 19:02
chino150 chino150 is offline
Registered User
 
Join Date: Dec 2007
Location: Dominican Republic
Posts: 3
Help With DElphi 5

Hi every one,

My problem is as follows I,m using delphi 5 and un a form I have two
DateTimePickers 1 checkbox 1 RadioGroup and 1 botton this is the code I'm using which compiles but when I set the to dates and click the botton the follow message apears Project ProJect1. exe Raised exception class EListError with message List Index out of Bound(0) heres the code:

qrFondos.close;
qrFondos.SQL.clear;
QrFondos.Params.Add;
QrFondos.Params.Free;

QrFondos.Params[0].Name := 'FDesde';

QrFondos.Params[0].ParamType:=ptInput;

if (CutBox.checked=false) then begin
QrFondos.SQL.Add('Select from* ofrendas Where Fecha Between : fDesde and FHasta order by Codigo');
Qrfondos.ParamByName('FDesde').AsDate := CutFecha1.Date;
QrFondos.ParamByName('FHasta').ASDate := CutFecha2.Date;

Case CutStatus.ItemIndex of
0:qrFondos.sql.add('and Tipo_Recibo ='+#39+'I'+#39);
1:qrFondos.sql.add('and Tipo_Recibo ='+#39+'R'+#39);
end;
qrFondos.open;
QrAdm.cutfecha3.Caption := DatetoStr(cutfecha1.date);
QrAdm.cutfecha4.Caption := DateToStr(CutFecha2.Date);

end;
if (CutBox.checked=true) then begin
qrFondos.sql.add('select * from Ofrendas');
Case CutStatus.ItemIndex of
0:qrFondos.sql.add('where Tipo_Recibo ='+#39+'I'+#39);
1:qrFondos.sql.add('where Tipo_Recibo ='+#39+'R'+#39);
end;
qrFondos.open;
QrAdm.cutfecha3.Caption := DatetoStr(cutfecha1.date);
QrAdm.cutfecha4.Caption := DatetoStr(cutfecha2.date);

end;
begin

QrAdm.preview;
end;
end;

please help I'v tried almost everything thanks!!!!!!!!!!!!!
Reply With Quote
  #2 (permalink)  
Old 01-23-08, 10:11
jimfunk jimfunk is offline
Registered User
 
Join Date: Dec 2007
Posts: 3
help for chino

Hey Pal, let me help you outROP DELPHI like a dead skunk. It is a career killer and is no longer supported by Borland. Start using Visuall Basic and .Net. Life will be easier and more lucrative
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On