Re: How do you determine what indexes exist on VFP DBF in VB.Net
- From: "JohnR" <JohnR104@xxxxxxxxxxx>
- Date: Sun, 28 Aug 2005 19:33:31 GMT
Hi Cindy,
Thanks for the reply... Unfortunately your answer is what I suspected.
Right now I'm cheating and created a function that will pass me back an
array with the fieldnames that compose the primary key... I have to do it
manually based on tablename, however. Ugh! But it does work...
Regards,
John
"Cindy Winegarden" <cindy_winegarden@xxxxxxx> wrote in message
news:%23m977e$qFHA.464@xxxxxxxxxxxxxxxxxxxxxxx
> Hi John,
>
> I really don't think it's possible and I'd be pleased to find out that it
> is, in fact, possible.
>
> --
> Cindy Winegarden MCSD, Microsoft Visual FoxPro MVP
> cindy_winegarden@xxxxxxx www.cindywinegarden.com
> Blog: http://spaces.msn.com/members/cindywinegarden
>
>
> "JohnR" <JohnR104@xxxxxxxxxxx> wrote in message
> news:e8pPe.4205$IG2.1703@xxxxxxxxxxx
>> Hi, I have a VB.Net application with Visual Foxpro DBF free tables. So
>> each table has a DBF and CDX file. I am using the vfpoledb.1 provider in
>> an Oledb environment to access the tables. I have a need to
>> programmatically determine what DBF fields are associated with the index
>> in the table. I am using the stmt:
>> Dim dtSchema As DataTable = MyDataReader.GetSchemaTable
>>
>> to retrieve attributes of the DBF file such as fieldname, fieldtype, and
>> fieldsize. However, I can't find any reference to the indexes that are
>> associated with it.
>>
>> Can anybody explain how I might query the CDX file to find out what
>> indexes are defined for the DBF file at runtime?
>>
>> Thanks, John
>>
>>
>>
>>
>
>
.
- References:
- How do you determine what indexes exist on VFP DBF in VB.Net
- From: JohnR
- Re: How do you determine what indexes exist on VFP DBF in VB.Net
- From: Cindy Winegarden
- How do you determine what indexes exist on VFP DBF in VB.Net
- Prev by Date: FolderBrowserDialog hangs the application
- Next by Date: Re: FolderBrowserDialog hangs the application
- Previous by thread: Re: How do you determine what indexes exist on VFP DBF in VB.Net
- Next by thread: Modularize In .NET
- Index(es):
Relevant Pages
|