Prev: Use of Assembly Attributes
Next: Quick inheritance Q
From: Patrick Artaud on 30 Jun 2010 03:45 Hello my application uses TTable here is my code where I ocreate and open TTable ////////////////////////////////////////////////////////////////////////////////////////////////////// AnsiString nomdatabasebalance,nomtablebalance; AnsiString nomdatabasereference,nomtablereference; TableBalance->Active=false; Chem1=ExtractFilePath(NomFichier); TableBalance =new TTable(this); TableBalance->DatabaseName=Chem1; TableBalance->TableType=ttDefault; TableBalance->TableName=InFichier; TableReference= new TTable(this); TableReference->Active=false; AnsiString chemref=BaseChemin+"DirBase\\"; TableReference->DatabaseName=chemref; TableReference->TableType=ttDefault; AnsiString chemnom= AnsiString(Entreprise)+".db"; TableReference->TableName=chemnom; // TSearchRec sr;int iatt;int result; // AnsiString tempchemin=BaseChemin+"DirBase\\"+GaugNomTable+"ratios.db"; // result=FindFirst(tempchemin,iatt,sr); TableValeurRatios= new TTable(this); TableValeurRatios->Active=false; AnsiString chemrat=BaseChemin+"DirBase\\"; TableValeurRatios->DatabaseName=chemrat; TableValeurRatios->TableType=ttDefault; AnsiString chemnomrat=AnsiString(Entreprise)+"ratios.db"; TableValeurRatios->TableName=chemnomrat; //if(result!=0)TableValeurRatios->CreateTable(); //ATTENTION c'est que la table n'a pas �t� cr��e dans triUS //Lecture de l'enregistrement 1 du champ 1 le mettre en ansi //et recherche du m�me ansi dans TableBalance puis lire la valeur dans la colonne TableReference->Open(); TableBalance->Open(); TableValeurRatios->Open(); //////////////////////////////////////////////////////////////////////////////////////////////////////////////////// When I look with the inspector debuger only TableValeurRatio is defined the twoo other no!!!!!!and they semm working well The first TTable "balance" is a component on the window with datasource the second "reference have a TTable *TableReference in the header file. I dont understand why using the inspector object it says Component not defined!!! If you can hep me this will be fine I thank you in advance Patrick
|
Pages: 1 Prev: Use of Assembly Attributes Next: Quick inheritance Q |