Welcome to the dBforums forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions, articles and access our other FREE features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload your own photos and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact support.

If you prefer not to see double-underlined words and corresponding ads, place your cursor
here for ContentLink opt out.

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, 20:02
chino150 chino150 is offline
Registered User
 
Join Date: Dec 2007
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, 11: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

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