Hi,
I have this (thanks Clint) which I have modified slightly from Clints code.
using System;
namespace NewsGroupHelpASPNET
{
/// <summary>
/// Summary description for MyPage.
/// </summary>
public class PageClass
{
private Table tables;
private StringBuilder sb = null;
public PageClass()
{
}
public void WriteText(string textToWrite)
{
sb.Append(textToWrite)
}
public Table Tables
{
get { return this.tables; }
set { this.tables = value; }
}
}
public class Table
{
private Row[] rows;
public Table()
{
}
public Row[] Rows
{
get { return this.rows; }
set { this.rows = value; }
}
public Add(int Rows, int Cols)
{
}
public Close()
{
}
}
public class Row
{
private Cell[] cells;
public Row()
{
}
public Cell[] Cells
{
get { return this.cells; }
set { this.cells = value; }
}
}
public class Cell
{
private string cellText;
public Cell()
{
}
public string Text
{
get { return this.cellText; }
set { this.cellText = value; }
}
}
}
When I do table.Add(2, 2), I need to add some text into the StringBuilder sb
which is in the top level class PageClass. I will also need to do this
within the Row and Cell as well as Text.
On top of this, the 2, 2 in the Add, I will need to store somewhere so that
Row and Cell can access them.
Thanks for any help you can offer.
Best regards,
Dave Colliver.
http://www.AshfieldFOCUS.com
~~
http://www.FOCUSPortals.com - Local franchises availableAnybody?
Best regards,
Dave Colliver.
http://www.CoventryFOCUS.com
~~
http://www.FOCUSPortals.com - Local franchises available
"David" <david.colliver.NEWS@.revilloc.REMOVETHIS.com> wrote in message
news:uKRCNuTkFHA.2444@.tk2msftngp13.phx.gbl...
> Hi,
> I have this (thanks Clint) which I have modified slightly from Clints
> code.
> using System;
> namespace NewsGroupHelpASPNET
> {
> /// <summary>
> /// Summary description for MyPage.
> /// </summary>
> public class PageClass
> {
> private Table tables;
> private StringBuilder sb = null;
> public PageClass()
> {
> }
> public void WriteText(string textToWrite)
> {
> sb.Append(textToWrite)
> }
> public Table Tables
> {
> get { return this.tables; }
> set { this.tables = value; }
> }
> }
> public class Table
> {
> private Row[] rows;
> public Table()
> {
> }
> public Row[] Rows
> {
> get { return this.rows; }
> set { this.rows = value; }
> }
> public Add(int Rows, int Cols)
> {
> }
> public Close()
> {
> }
> }
> public class Row
> {
> private Cell[] cells;
> public Row()
> {
> }
> public Cell[] Cells
> {
> get { return this.cells; }
> set { this.cells = value; }
> }
> }
> public class Cell
> {
> private string cellText;
> public Cell()
> {
> }
> public string Text
> {
> get { return this.cellText; }
> set { this.cellText = value; }
> }
> }
> }
>
> When I do table.Add(2, 2), I need to add some text into the StringBuilder
> sb which is in the top level class PageClass. I will also need to do this
> within the Row and Cell as well as Text.
> On top of this, the 2, 2 in the Add, I will need to store somewhere so
> that Row and Cell can access them.
> Thanks for any help you can offer.
> Best regards,
> Dave Colliver.
> http://www.AshfieldFOCUS.com
> ~~
> http://www.FOCUSPortals.com - Local franchises available
>
Saturday, March 24, 2012
passing variables
Labels:
asp,
clint,
clints,
code,
ltsummarygt,
modified,
net,
newsgrouphelpaspnet123,
passing,
slightly,
systemnamespace,
variables
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment