ZennoLab Assemblies Documentation
IZennoTable Interface
Members  Example 
ZennoLab.InterfacesLibrary.ProjectModel Namespace : IZennoTable Interface
Represents the data of the table. Provides methods for editing.
Syntax
[ServiceContract()]
public interface IZennoTable 
Remarks
This interface can be used in action OwnCode (C# or PHP) of ProjectMaker.
Example
The following code using IZennoTable Interface for getting information about table.
// get table by name "MyTable"
IZennoTable table = project.Tables["MyTable"];
 
// add a new row
table.AddRow("new row");
 
// get row count
int rowCount = table.RowCount;
 
// if row count > 0
if (rowCount > 0) 
{
    // get row by index "0"
    var row = table.GetRow(0);
    
    // join items via "|"
    string result = String.Join("|", row);
    
    // and return this value
    return result;
}
// get table by name "MyTable"
$table = $project->Tables->get_Item("MyTable");
 
// add a new row
$table->AddRow("new row");
 
// get row count
$rowCount = $table->RowCount;
 
// if row count > 0
if ($rowCount > 0) 
{
    // get row by index "0"
    $row = $table->GetRow(0);
    
    // join items via "|"
    $result = String::Join("|", $row);
    
    // and return this value
    return $result;
}
Requirements

Target Platforms: Desktop: Windows XP SP3 and older. Server: Windows Server 2003 and older.

See Also

Reference

IZennoTable Members
ZennoLab.InterfacesLibrary.ProjectModel Namespace
ITables Interface