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.

How to identify BlobField?

Xailer English public forum
Responder
Spirin Sergey
Mensajes: 25
Registrado: Jue Ene 24, 2008 6:43 pm

How to identify BlobField?

Mensaje por Spirin Sergey »

Hello,
I need in code to identify - is TDataField is BlobField (contain a binary
data) or not. How can I do it in Xailer-syntax? Something like:
for x := 1 to oDataSet:FieldCount()
if oDataSet:aFields[x] ...is BlobField //??
........
else
........
endif
next
---
Spirin Sergey.
"Paritet Soft" Company.
FRH sales:http://www.paritetsoft.ru/frh.htm
FRAX sales:http://www.paritetsoft.ru/frax.htm
Spirin Sergey
Mensajes: 25
Registrado: Jue Ene 24, 2008 6:43 pm

How to identify BlobField?

Mensaje por Spirin Sergey »

In my working exampes it seems such code works ok:
for x := 1 to oDataSet:FieldCount()
if oDataSet:aFields[x]:nSQLType = 205
But I am not sure that it's common case. Where is the list of all possible
values for :nSQLType placed?
---
Spirin Sergey.
"Paritet Soft" Company.
FRH sales:http://www.paritetsoft.ru/frh.htm
FRAX sales:http://www.paritetsoft.ru/frax.htm
"Spirin Sergey" <spirin@paritetsoft.ru> ñîîáùèë/ñîîáùèëà â íîâîñòÿõ
ñëåäóþùåå: news:[email=4aa90db8@svctag-j7w3v3j....]4aa90db8@svctag-j7w3v3j....[/email]
> Hello,
>
> I need in code to identify - is TDataField is BlobField (contain a
> binary data) or not. How can I do it in Xailer-syntax? Something like:
>
> for x := 1 to oDataSet:FieldCount()
> if oDataSet:aFields[x] ...is BlobField //??
> ........
> else
> ........
> endif
> next
>
> ---
> Spirin Sergey.
> "Paritet Soft" Company.
> FRH sales:http://www.paritetsoft.ru/frh.htm
> FRAX sales:http://www.paritetsoft.ru/frax.htm
>
Responder