Information générale
Titre:
Here's what caused my C0000005 fatal error, any ideas??
I set a filter in a report using a macro substitution. When building the filter it can build up to 4 long AND statments depending on the user input. When users selected all 4, it would give the fatal error. It turned out that changing the way I set the filter fixed this issue. It was:
SET FILTER TO IIF(cPrtAlign=.T.,patient.f_precno>0,&lcFilter AND patient.f_precno>0)
Changed to:
IF cPrtAlign=.T.
SET FILTER TO patient.f_precno>0
ELSE
SET FILTER TO &lcFilter AND patient.f_precno>0
ENDIF
I no longer get the C0000005 fatal error message. Any ideas why this would be. Do I need to avoid using IIF()? I'm hoping to find out why, although I am somewhat relieved just to have found a workaround. TIA, and YES this did work in my versions prior to VFP6.
Marcus.
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement