Click here to Skip to main content
15,902,731 members
Home / Discussions / C#
   

C#

 
QuestionSmart Client Application Deployment Using ClickOnce Pin
RinkM5-Nov-07 20:30
RinkM5-Nov-07 20:30 
QuestionRegarding creating a table in word document from C# windows application. Pin
Ron.S5-Nov-07 20:02
Ron.S5-Nov-07 20:02 
AnswerRe: Regarding creating a table in word document from C# windows application. Pin
Jimmanuel6-Nov-07 2:32
Jimmanuel6-Nov-07 2:32 
Questionupdate and add data thru datagrid view Pin
sindhutiwari5-Nov-07 20:02
sindhutiwari5-Nov-07 20:02 
Questionalgorithm A* on C# Pin
AnhTin5-Nov-07 19:57
AnhTin5-Nov-07 19:57 
AnswerRe: algorithm A* on C# Pin
Andrei Ungureanu5-Nov-07 20:09
Andrei Ungureanu5-Nov-07 20:09 
QuestionWeb Service Updation Pin
AB77715-Nov-07 19:44
AB77715-Nov-07 19:44 
QuestionReading and writing to classes Pin
MAW305-Nov-07 19:23
MAW305-Nov-07 19:23 
I loaded up a DataSet from an SQL table and was able to read it within the class in which I loaded the ds. However when I try to call the data from another class there is no data in the ds. I asked this a few days ago and the code was asked for so here it is.

Please help,
Michael

I have 2 pieces of code one for datasets and the other a class in which I have a similar problem, I did not include all of the code but the general idea is there. I will place the second in a different thread. Note that some of the syntax comes from a program called OleDBProNet for loading data from a database though this should not matter see where I can read data in "***".


public class NameInfoCS
{
public int historyHandle = -1;
public int nRecNumID = 0;
public string Name = "";
public int item = 0;
}


public class FillNamesInfoArrayCS
{
NameInfoCS[] NameInfoArray
public void FillArray()
{
NameInfoArray = new NameInfoCS[Names.Length];
for (int idx = 0; idx < Names.Length; ++idx)
{
NameInfoArray[idx] = new NameInfoCS();
NameInfoArray[idx].Name = Names[idx];
NameInfoArray[idx].nRecNumID = idx + 1000;
}
}
}



private Class1
{
private NameInfoCS[] NameInfoArray = new NameInfoCS[100];


******* if I load data from FillNamesInfoArrayCS here there is no problem, but if I load FillNamesInfoArrayCS from outside of this class and then call this class the class has no data in it. “info.” Below shows as null, “NameInfoCS info in NameInfoArray” error message says I must use new ****************


public void DATAMultipleHistory()
{
if (program.IsEntitled != 0)
{
program.ReleaseAllDATA();
foreach (NameInfoCS info in NameInfoArray)
{
info.historyHandle = program.get_RequestHistory(info.Name, info.strDATATP, IProgram.DATAType.btDATA, info.nNumberOfDATA);
}
}
}
}

AnswerRe: Reading and writing to classes Pin
Guffa5-Nov-07 20:02
Guffa5-Nov-07 20:02 
GeneralRe: Reading and writing to classes Pin
MAW305-Nov-07 22:19
MAW305-Nov-07 22:19 
AnswerRe: Reading and writing to classes Pin
Guffa5-Nov-07 22:41
Guffa5-Nov-07 22:41 
QuestionReading and writing to DataSets Pin
MAW305-Nov-07 19:20
MAW305-Nov-07 19:20 
QuestionDatabase Problems and microsoft finger print reader Pin
kingletas5-Nov-07 19:17
kingletas5-Nov-07 19:17 
Questionhow to write error in event using Event Log with date and time in c# windows application Pin
l.sabitha5-Nov-07 18:35
l.sabitha5-Nov-07 18:35 
AnswerRe: how to write error in event using Event Log with date and time in c# windows application Pin
Giorgi Dalakishvili5-Nov-07 20:00
mentorGiorgi Dalakishvili5-Nov-07 20:00 
Questioncontext menu in child form Pin
faiznasi5-Nov-07 18:22
faiznasi5-Nov-07 18:22 
AnswerRe: context menu in child form Pin
N a v a n e e t h5-Nov-07 18:46
N a v a n e e t h5-Nov-07 18:46 
GeneralRe: context menu in child form Pin
faiznasi5-Nov-07 19:00
faiznasi5-Nov-07 19:00 
GeneralRe: context menu in child form Pin
netJP12L6-Nov-07 17:16
netJP12L6-Nov-07 17:16 
QuestionHow to write an error in event using Event Log with date and time Pin
mrcsn5-Nov-07 18:06
mrcsn5-Nov-07 18:06 
AnswerRe: How to write an error in event using Event Log with date and time Pin
_tasleem5-Nov-07 19:55
_tasleem5-Nov-07 19:55 
AnswerRe: How to write an error in event using Event Log with date and time Pin
Giorgi Dalakishvili5-Nov-07 19:59
mentorGiorgi Dalakishvili5-Nov-07 19:59 
QuestionWhy use a preprocessor variable instead of a normal one Pin
G.K.M.5-Nov-07 17:38
G.K.M.5-Nov-07 17:38 
AnswerRe: Why use a preprocessor variable instead of a normal one Pin
N a v a n e e t h5-Nov-07 18:42
N a v a n e e t h5-Nov-07 18:42 
AnswerRe: Why use a preprocessor variable instead of a normal one Pin
PIEBALDconsult6-Nov-07 4:02
mvePIEBALDconsult6-Nov-07 4:02 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.