The code looks like this:
Code: Select all
function getDBobjectIDs pObject
put empty into myList
repeat with x = 1 to number of controls of pObject
if "DB_" is in the name of control x of pObject then
put the abbrev name of control x of pObject & return after myList
end if
end repeat
return myList
end getDBobjectIDs
The group structure as I see it in the Application browser looks like this
GroupA
FieldA1
FieldA2
FieldAn
GroupB
FieldB1
FieldB2
FieldB3
When the code processes the GroupB object, it correctly processes three objects within the group, the objects returned are not FieldB1 - FieldB3. Instead it returns the the first three (by layer) objects on the card.
I hope I explained this clearly enough!
Any ideas as to why this is happening and how I can fix it?
Thanks,
Pete