Página 1 de 1

Dataset of Dbf with field name PACK

Publicado: Mar Jul 10, 2007 7:08 pm
por ChrisGillard
I have a Product dbf, KPROD, in an exiting stock control system with a
fieldname PACK.
If I use a dataset object & try to access the data fields using the
following .... it tries to pack the file !
oProdDs:PACK .... tries to PACK the file & errors
oProdDs:CODE .... OK
oProdDs:DESC ..... OK
Is there a trick to accessing the PACK field through the dataset or should I
use aliassing like KPROD->PACK
I suspect I may have some other field names in my apps which may have
similar problems.
Your thoughts would be appreciated.
Chris Gillard

Dataset of Dbf with field name PACK

Publicado: Mar Jul 10, 2007 9:40 pm
por ignacio
Chris,
TDataset:oFieldByName( "pack" )
Regards,
"Chris Gillard" <chris@bluesquare.co.uk> escribió en el mensaje
news:4693bd1e$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
>I have a Product dbf, KPROD, in an exiting stock control system with a
>fieldname PACK.
>
> If I use a dataset object & try to access the data fields using the
> following .... it tries to pack the file !
>
> oProdDs:PACK .... tries to PACK the file & errors
> oProdDs:CODE .... OK
> oProdDs:DESC ..... OK
>
> Is there a trick to accessing the PACK field through the dataset or should
> I use aliassing like KPROD->PACK
>
> I suspect I may have some other field names in my apps which may have
> similar problems.
>
> Your thoughts would be appreciated.
>
> Chris Gillard
>

Dataset of Dbf with field name PACK

Publicado: Mar Jul 10, 2007 9:40 pm
por NoName
Chris,
TDataset:oFieldByName( "pack" )
Regards,
"Chris Gillard" <chris@bluesquare.co.uk> escribió en el mensaje
news:4693bd1e$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
>I have a Product dbf, KPROD, in an exiting stock control system with a
>fieldname PACK.
>
> If I use a dataset object & try to access the data fields using the
> following .... it tries to pack the file !
>
> oProdDs:PACK .... tries to PACK the file & errors
> oProdDs:CODE .... OK
> oProdDs:DESC ..... OK
>
> Is there a trick to accessing the PACK field through the dataset or should
> I use aliassing like KPROD->PACK
>
> I suspect I may have some other field names in my apps which may have
> similar problems.
>
> Your thoughts would be appreciated.
>
> Chris Gillard
>

Dataset of Dbf with field name PACK

Publicado: Mar Jul 10, 2007 11:14 pm
por ChrisGillard
Ignacio,
Thanks for the advice.
Chris
"Ignacio Ortiz de Zúñiga" <NoName@xailer.com> wrote in message
news:4693e0c6$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
> Chris,
>
> TDataset:oFieldByName( "pack" )
>
> Regards,
>
> "Chris Gillard" <chris@bluesquare.co.uk> escribió en el mensaje
> news:4693bd1e$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
>>I have a Product dbf, KPROD, in an exiting stock control system with a
>>fieldname PACK.
>>
>> If I use a dataset object & try to access the data fields using the
>> following .... it tries to pack the file !
>>
>> oProdDs:PACK .... tries to PACK the file & errors
>> oProdDs:CODE .... OK
>> oProdDs:DESC ..... OK
>>
>> Is there a trick to accessing the PACK field through the dataset or
>> should I use aliassing like KPROD->PACK
>>
>> I suspect I may have some other field names in my apps which may have
>> similar problems.
>>
>> Your thoughts would be appreciated.
>>
>> Chris Gillard
>>
>
>

Dataset of Dbf with field name PACK

Publicado: Mar Jul 10, 2007 11:14 pm
por ChrisGillard
Ignacio,
Thanks for the advice.
Chris
"Ignacio Ortiz de Zúñiga" <NoName@xailer.com> wrote in message
news:4693e0c6$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
> Chris,
>
> TDataset:oFieldByName( "pack" )
>
> Regards,
>
> "Chris Gillard" <chris@bluesquare.co.uk> escribió en el mensaje
> news:4693bd1e$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
>>I have a Product dbf, KPROD, in an exiting stock control system with a
>>fieldname PACK.
>>
>> If I use a dataset object & try to access the data fields using the
>> following .... it tries to pack the file !
>>
>> oProdDs:PACK .... tries to PACK the file & errors
>> oProdDs:CODE .... OK
>> oProdDs:DESC ..... OK
>>
>> Is there a trick to accessing the PACK field through the dataset or
>> should I use aliassing like KPROD->PACK
>>
>> I suspect I may have some other field names in my apps which may have
>> similar problems.
>>
>> Your thoughts would be appreciated.
>>
>> Chris Gillard
>>
>
>