>>I'm confused. Method signature says it returns a DataTable, but ds is defined a meycotestDataSet?
Sorry for the confusion. Newbies do confusing things.
As I read the answers, it became apparent that if I returned the dataset object instead of the datatable, the calling program can use it to access the table
I changed it to return the dataset and this worked:
public void tester()
{
meycodataset mds = EstablishBlankCustomerData()
stings x = mds.arcust.company;
}
I
Sorry for the confusion and thanks to all who tried to figure out what I meant
.
>Here's a newbie question
>
>I'm using strongly typed dataset I can use intellisense to access the columns nicely as long as I do it in the method that
>creates the dataset, as follows:
>
>
>
> public DataTable EstablishBlankCustomerData()
> {
> meycotestDataSet ds = new meycotestDataSet();
> ds.arcust.Rows.Clear();
> ds.arcust.Rows.Add();
> ds.arcust[0].country = "USA";
> ds.arcust[0].currency = "USD";
> ds.arcust[0].nocable = "N";
> ds.arcust[0].nopump = "N";
> ds.arcust[0].oringsvssnaps = "N";
> ds.arcust[0].quomeycolite = "N";
> ds.arcust[0].quoruggedmesh = "N";
> ds.arcust[0].quosoliddrain = "N";
> ds.arcust[0].quosolidpump = "N";
> return ds.arcust;
> }
>
>
>
>
>I can't figure out how to get intellisense to work when I access the dataset outside that method.
>
>I tried returning the dataset but that doesn't seem to work
>
>Am I missing something?
Craig Berntson
Anyone who does not go overboard- deserves to.
Malcolm Forbes, Sr.