aren't there hidden tables which contain the various table and field attributes?
On Tue, 8 Jan 2019 15:47:11 -0500, Chip Scheide via 4D_Tech wrote: > given a pointer to a table, or a pointer to a field of a table, > I want to be able, for the current record of this table, to : > - iterate over all the fields of the table - I know how to do this > -- determine if the current field has 1 or more relations - I do not > know how to do this > --- if there are 1 or more relations, I want 'follow' each relation to > determine if there exists 1 or more related records at the other end of > the relation - I am not sure I know how to do this > > what I want looks something like this > > $Table_Num:=table->([table]) > $Field_Count:=get last field number([table]) > > For ($i; 1; $Field_Count) > > if (field number valid($Table_Num; $i)) > // get field relational information > > // if (relations) > > // For ($Realation_count) > // check related table for records > > // if (related records exist) > $Dependencies := True > > // exit loops > > Thanks > Chip > --------------- > Gas is for washing parts > Alcohol is for drinkin' > Nitromethane is for racing > ********************************************************************** > 4D Internet Users Group (4D iNUG) > Archive: http://lists.4d.com/archives.html > Options: https://lists.4d.com/mailman/options/4d_tech > Unsub: mailto:4d_tech-unsubscr...@lists.4d.com > ********************************************************************** --------------- Gas is for washing parts Alcohol is for drinkin' Nitromethane is for racing ********************************************************************** 4D Internet Users Group (4D iNUG) Archive: http://lists.4d.com/archives.html Options: https://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **********************************************************************