In order for this site to work correctly we need to store a small file (called a cookie) on your computer. Most every site in the world does this, however since the 25th of May 2011, by law we have to get your permission first. Please abandon the forum if you disagree.

Para que este foro funcione correctamente es necesario guardar un pequeño fichero (llamado cookie) en su ordenador. La mayoría de los sitios de Internet lo hacen, no obstante desde el 25 de Marzo de 2011 y por ley, necesitamos de su permiso con antelación. Abandone este foro si no está conforme.

Dataset of Dbf with field name PACK

Xailer professional forum in English
Responder
ChrisGillard
Mensajes: 384
Registrado: Mar May 01, 2007 5:49 pm

Dataset of Dbf with field name PACK

Mensaje 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
Avatar de Usuario
ignacio
Site Admin
Mensajes: 9469
Registrado: Lun Abr 06, 2015 8:00 pm
Ubicación: Madrid, Spain
Contactar:

Dataset of Dbf with field name PACK

Mensaje 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
>
Ignacio Ortiz de Zúñiga
[OZ Software]
https://www.ozs.es
--
[Equipo de Xailer / Xailer team]
https://www.xailer.com
NoName
Mensajes: 531
Registrado: Vie Feb 03, 2006 7:27 pm

Dataset of Dbf with field name PACK

Mensaje 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
>
ChrisGillard
Mensajes: 384
Registrado: Mar May 01, 2007 5:49 pm

Dataset of Dbf with field name PACK

Mensaje 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
>>
>
>
ChrisGillard
Mensajes: 384
Registrado: Mar May 01, 2007 5:49 pm

Dataset of Dbf with field name PACK

Mensaje 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
>>
>
>
Responder