Hi,
I was trying to use soccurs() to load the total number of occurrences of record soccurs( HH_QUES ). I have data in data file, but i always get 0 from soccurs(). the dictionary is used as an external dictionary to load data. I got correct occurrences number if I use that for a roster record (tomhh = soccurs( ROSTER_HH )). But HH_QUES should have only 1 occurence if entered. But I always get 0.
May I ask if i did anything wrong?
if soccurs( HH_QUES ) <> 1 then
errmsg( "for checking 038, soccurs(HH_QUES) is %d ", soccurs( HH_QUES ) );
endif;
the dictionary and data files are attached.
best
jing
problem in using soccurs()
problem in using soccurs()
- Attachments
-
- dict and data.rar
- (13.12 KiB) Downloaded 286 times
Re: problem in using soccurs()
Solved.
Thanks! Greg.
Thanks! Greg.
Re: problem in using soccurs()
Can you please share how you solved?
Re: problem in using soccurs()
Maybe Greg, if not Jing will be so kind to share with us?