I have a Legacy app with a report that reads both a parent and related child file. The two files are linked using the persons Number.
ie. Parent file: Name, Number
Child file (phone no.): Name, Number, Home, Work, Mobile
I want to conditionally SKIP Phone file (child) records. The problem is one Parent record may only be related to just a Home number (=1 phone file record) and another Parent record may have Home, Work & Mobile (=3 Phone related records).
So if I use SKIP(Phones,1) for the child phones file with 3 related records it still reports the remaining two.
If I use SKIP(Phone,3) it appears to work fine but is it problem to SKIP 3 records when for example there may only be one to skip in the phones file?
The Clarion help appears to assume the number of records to SKIP is constant where as mine vary.
So I guess my question is, is it safe to use SKIP(Phones, X) where X could be a greater number than the records to SKIP?
Thanks
ie. Parent file: Name, Number
Child file (phone no.): Name, Number, Home, Work, Mobile
I want to conditionally SKIP Phone file (child) records. The problem is one Parent record may only be related to just a Home number (=1 phone file record) and another Parent record may have Home, Work & Mobile (=3 Phone related records).
So if I use SKIP(Phones,1) for the child phones file with 3 related records it still reports the remaining two.
If I use SKIP(Phone,3) it appears to work fine but is it problem to SKIP 3 records when for example there may only be one to skip in the phones file?
The Clarion help appears to assume the number of records to SKIP is constant where as mine vary.
So I guess my question is, is it safe to use SKIP(Phones, X) where X could be a greater number than the records to SKIP?
Thanks