Hello to All,
I'm occurring in one problem when I start to collect information from a query when the wanted filed it's empty.
Here after a part of my fault code:
...
AnsiString stringa;
...
stringa+=QAll->FieldValues["cdPartySubscriber"];
stringa+=",";
...
In this case if the field "cdPartySubscriber" is empty I receive the error "...my project raise an excepption class EVarianError with message "Invalid variant Type conversion".....
I want to do something like this:
...
if(QAll->FieldValues["cdPArtySubscriber"]!=NULL)
stringa+=QAll->FieldValues["cdPartySubscriber"];
stringa+=",";
...
but in this case the if is always ignored (the expression results always true) and I receive the same error message.
Just for infomation the db is oracle.
Some one can help me ?
Thanks in advance for any answer
Checco
I'm occurring in one problem when I start to collect information from a query when the wanted filed it's empty.
Here after a part of my fault code:
...
AnsiString stringa;
...
stringa+=QAll->FieldValues["cdPartySubscriber"];
stringa+=",";
...
In this case if the field "cdPartySubscriber" is empty I receive the error "...my project raise an excepption class EVarianError with message "Invalid variant Type conversion".....
I want to do something like this:
...
if(QAll->FieldValues["cdPArtySubscriber"]!=NULL)
stringa+=QAll->FieldValues["cdPartySubscriber"];
stringa+=",";
...
but in this case the if is always ignored (the expression results always true) and I receive the same error message.
Just for infomation the db is oracle.
Some one can help me ?
Thanks in advance for any answer
Checco