BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

@ Utility

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder Databases (Desktop)
View previous topic :: View next topic  
Author Message
Pedram
Guest





PostPosted: Sat Oct 15, 2005 3:01 pm    Post subject: @ Utility Reply with quote



Hi,
I want to create a DataBaseDeskTop Utility.
My First Step is a Button that when I push it, it collect information from a
*.db (Paradox) and write them into a TMemo.
The Information such as : Number of Fields, FieldName , FieldKind (A/N/M)
and its Length if there is...
I wrote this code:
int a=Table1->FieldCount;
Memo1->Lines->Add("Number of Fields are :"+IntToStr(a));

Memo1->Lines->Add("The Fields are :");
for(int i=0;i<a;i++)
Memo1->Lines->Add(Table1->Fields->Fields[i]->FieldName);
But I dont know how to determine if a Field is Alphabet, Number or Memoglob?
please guide me, thanks.


Back to top
Pedram
Guest





PostPosted: Mon Oct 17, 2005 1:27 pm    Post subject: Re: @ Utility Reply with quote



any reply please?
still need a hand !!
thx


"Pedram" <irbus (AT) remove-me-bonbon (DOT) net> wrote

Quote:
Hi,
I want to create a DataBaseDeskTop Utility.
My First Step is a Button that when I push it, it collect information from
a
*.db (Paradox) and write them into a TMemo.
The Information such as : Number of Fields, FieldName , FieldKind (A/N/M)
and its Length if there is...
I wrote this code:
int a=Table1->FieldCount;
Memo1->Lines->Add("Number of Fields are :"+IntToStr(a));

Memo1->Lines->Add("The Fields are :");
for(int i=0;i<a;i++)
Memo1->Lines->Add(Table1->Fields->Fields[i]->FieldName);
But I dont know how to determine if a Field is Alphabet, Number or
Memoglob?
please guide me, thanks.





Back to top
Antonio Felix
Guest





PostPosted: Mon Oct 17, 2005 4:52 pm    Post subject: Re: @ Utility Reply with quote




Quote:
Hi,
I want to create a DataBaseDeskTop Utility.
My First Step is a Button that when I push it, it collect information from
a
*.db (Paradox) and write them into a TMemo.
The Information such as : Number of Fields, FieldName , FieldKind (A/N/M)
and its Length if there is...
I wrote this code:
int a=Table1->FieldCount;
Memo1->Lines->Add("Number of Fields are :"+IntToStr(a));

Memo1->Lines->Add("The Fields are :");
for(int i=0;i<a;i++)
Memo1->Lines->Add(Table1->Fields->Fields[i]->FieldName);
But I dont know how to determine if a Field is Alphabet, Number or
Memoglob?
please guide me, thanks.


Hi,
Have you tried ...Fields[i]->DataType ?
Check the Help File under TField to see all the properties
available.

HTH
Antonio

Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder Databases (Desktop) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.