>Hi Naomi,
>
>>I have an ability to filter the content of cNotes (using SET KEY approach).
>
>SET KEY and LOCATE are competing commands. LOCATE doesn't optimize when a table has SET KEY enabled. GO TOP is better in this case.
Thanks
>
>>My problem is - if all records were filtered out, what and how should I show at the top portion? I would assume I would need to show blank information, but how exactly?
>
>Sure the controls would take care of this themselves? Just move the record pointer to EOF (happens automatically with the first LOCATE) and let the controls deal with it. VFP's controls handle EOF() just fine by displaying read-only blank content.
In that particular case the control was a richtext control and its text value is set to Table.field (and I'm navigating through the cursor). So, in my case I just checked for EOF() and set the text to '' and otherwise to the field's value.
If it's not broken, fix it until it is.
My Blog