 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Pedram Guest
|
Posted: Sat Oct 15, 2005 3:01 pm Post subject: @ Utility |
|
|
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
|
Posted: Mon Oct 17, 2005 1:27 pm Post subject: Re: @ Utility |
|
|
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
|
Posted: Mon Oct 17, 2005 4:52 pm Post subject: Re: @ Utility |
|
|
| 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 |
|
 |
|
|
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
|
|