There's a bunch of ways to skin that cat. This is probably the best, given considerations of speed, reliability, and simplicity.
int GetIsAreaEmpty(object oArea) {
object oPC = GetFirstPC();
while (GetIsObjectValid(oPC)) {
if (GetArea(oPC) == oArea)
return FALSE;
oPC = GetNextPC();
}
return TRUE;
}
Funky