ZennoLab Assemblies Documentation
IZennoTable Interface
Members  Example  See Also  Send Feedback
ZennoLab.InterfacesLibrary Assembly > ZennoLab.InterfacesLibrary.ProjectModel Namespace : IZennoTable Interface

Glossary Item Box

Represents the data of the table. Provides methods for editing.

Syntax

C# 
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.
C#Copy Code
// 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;
}
PHPCopy Code
// 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: Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family, Windows Seven

See Also

© 2013 All Rights Reserved.