【お知らせ】この部分は英語原文のみでの提供となります。何卒ご了承ください。
2.2.4.12.8 Datasheet::FindLinkObjects
Contents
Description
Finds UIDs of all objects that are linked to the worksheet
Syntax
int FindLinkObjects( vector<uint> & uids )
Parameters
- uids
- [output] array to receive the UIDs of the objects that contains links
Return
the number of linked object found, 0 if none.
Examples
EX1
//Need to have a graph adding some tables. //Output linked Table object in the specified graph. void Datasheet_FindLinkObjects_Ex1(string strGraph) { GraphLayer gl(strGraph); if(!gl) return; vector<uint> vUid; Worksheet wks; foreach(GraphObject go in gl.GraphObjects) { if(go.GetLinkTable(wks)) { int nLinks = wks.FindLinkObjects(vUid); int nVecSize = vUid.GetSize(); printf(" Found Table %s with wks %s that is linked to %d objects\n", go.GetName(), wks.GetName(), nLinks); } } }
Remark
See Also
Header to Include
origin.h