FieldNamesWithSeparator(Separator: String): String;
FieldNamesWithSeparator[Separator: String]: String;
Separator. Separator used in the string.
The FieldNamesWithSeparator property returns the character string containing the list of fields separated with selected separator.
Executing the example requires that the repository contains a table with the Table_1 identifier. The primary index including several fields is created for the table.
Sub UserProc;
Var
MB: IMetabase;
Table: ITable;
Index: ITableIndex;
Begin
MB := MetabaseClass.Active;
Table := MB.ItemById("Table_1").Bind As ITable;
Index := Table.Indexes.Primary;
Debug.WriteLine(Index.FieldNamesWithSeparator("/"));
End Sub UserProc;
On executing the example the list of primary index fields, separated with semicolon, is displayed in the console window.
Executing the example requires that the repository contains a table with the Table_1 identifier. The primary index including several fields is created for the table.Selected procedure is an entry point for the .NET assembly.
Public Shared Sub Main(Params: StartParams);
Var
MB: IMetabase;
Table: ITable;
Index: ITableIndex;
Begin
MB := Params.Metabase;
Table := MB.ItemById["Table_1"].Bind() As ITable;
Index := Table.Indexes.Primary;
System.Diagnostics.Debug.WriteLine(Index.FieldNamesWithSeparator["/"]);
End Sub;
On executing the example the list of primary index fields, separated with semicolon, is displayed in the console window.
See also: