Recent

Author Topic: TDBF  (Read 9917 times)

mizarra

  • Guest
TDBF
« on: May 17, 2005, 03:29:08 pm »
Hi, I try to  use TDBF component, but when I run my project I got this message "PROJECT MYPROJECT RAISED EXCEPTION CLASS 'EXTERNAL: SIGSEGV'". How can I fix this, Thank

P.D.: Sorry about my English

matthijs

  • Hero Member
  • *****
  • Posts: 537
TDBF
« Reply #1 on: May 17, 2005, 04:21:11 pm »
It is a bit hard to say from the information you give. When do you get this error? Try stepping through your sources to find out when this happens.
What's in a sig? Would my posting look less if it didnot have a sig? (Free after William S.) :)

:( Why cannot I upload my own Avatar? :(

Anonymous

  • Guest
TDBF
« Reply #2 on: May 17, 2005, 09:29:03 pm »
I get this error when I try to read or write a field from my dbf file. I use MyDbfField.Value and MyDbfField is type TStringField, just like TTable component in Delphi, what is wrong? The documentation about TDBF component is very poor. When I can find information about this package?

Marc

  • Administrator
  • Hero Member
  • *
  • Posts: 2582
TDBF
« Reply #3 on: May 18, 2005, 04:54:39 pm »
How (and where) did you declare and assign MyDBFied
//--
{$I stdsig.inc}
//-I still can't read someones mind
//-Bugs reported here will be forgotten. Use the bug tracker

Anonymous

  • Guest
TDBF
« Reply #4 on: May 18, 2005, 10:15:20 pm »
I declare MyDbFField in a DataModule and I assign MyDBFField in another Unit in the poject that use the unit DataModule. Is it wrong?

matthijs

  • Hero Member
  • *****
  • Posts: 537
TDBF
« Reply #5 on: May 19, 2005, 06:14:26 pm »
Could you post some relevant pieces of code, so we could have a look? If we continue like this we have to keep guessing and that usually is no good at all. :)
What's in a sig? Would my posting look less if it didnot have a sig? (Free after William S.) :)

:( Why cannot I upload my own Avatar? :(

Anonymous

  • Guest
TDBF
« Reply #6 on: May 19, 2005, 11:23:19 pm »
Okey in the DataModule I declare:
...
    TSinInfo: TDbf;
    TSinInfoEMPRESA: TStringField;
    TSinInfoRUTA: TStringField;

...
where TSIninfo is my table and TSinInfoEMPRESA,TSinInfoRUTA  are the fields in my table. When I open the table in another unit, I do:
...
  ruta :=ExtractFilePath(ParamStr(0));
   DM.TSInInfo.FilepathFull := ruta;
   DM.TSinInfo.Tablename := 'SinInfo.dbf';
   DM.TSinInfo.Exclusive := True;
   DM.TSInInfo.Open;

....

It is Ok, but the the project crash when I do
...
    DM.TSInInfo.Insert;
    DM.TSInInfoEmpresa.Value := ENombre.Text;

...
Just in the line DM.TSInInfoEmpresa.Value := ENombre.Text; I get the error message:  "PROJECT MYPROJECT RAISED EXCEPTION CLASS 'EXTERNAL: SIGSEGV'".  I hope that somebody can help me. Thank



P.D.: Sorry about my english

Anonymous

  • Guest
TDBF
« Reply #7 on: June 09, 2005, 10:01:10 pm »
I knok what's wrong, I should use

TDbf1.FieldByName('MyField').AsString := 'Whatever';

Instead Of

DM.TSInInfoEmpresa.Value

 

TinyPortal © 2005-2018