Código PHP:
for (; !fPersona->Query->Eof; fPersona->Query->Next())
{
if (fPersona->Query->FieldByName("Literal")->IsNull)
Continue;
cAux = UpperCase(fPersona->Query->FieldByName("Literal")->AsString);
...
}
AsString esta retornando un string vacio (''), no retorna NULL cuando el TField tiene valor Null