Click here to Skip to main content
15,886,919 members
Home / Discussions / C#
   

C#

 
AnswerRe: Working with multiple forms Pin
DaveyM6912-May-09 5:49
professionalDaveyM6912-May-09 5:49 
GeneralRe: Working with multiple forms Pin
bwood202012-May-09 6:03
bwood202012-May-09 6:03 
GeneralRe: Working with multiple forms Pin
DaveyM6912-May-09 6:20
professionalDaveyM6912-May-09 6:20 
GeneralRe: Working with multiple forms Pin
bwood202012-May-09 7:17
bwood202012-May-09 7:17 
GeneralRe: Working with multiple forms Pin
Henry Minute12-May-09 7:28
Henry Minute12-May-09 7:28 
GeneralRe: Working with multiple forms Pin
bwood202012-May-09 9:13
bwood202012-May-09 9:13 
GeneralRe: Working with multiple forms Pin
Henry Minute12-May-09 9:22
Henry Minute12-May-09 9:22 
GeneralRe: Working with multiple forms Pin
bwood202012-May-09 9:48
bwood202012-May-09 9:48 
All right, it works!!! One more issue though. I placed a messageBox in the code on the first form and I am getting the correct string delimiter. So I know GD is storing this, however, when I go to call GetDelimiter.GD for the in the connection I get an ArgumentException was unhandled error:

Format of the initialization string does not conform to specification starting at index 85.

Here is the connection string:

String comString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + Path.GetDirectoryName(FilePath) + @";Extended Properties=""text;HDR=YES;FMT=Delimited["+ GetDelimiterForm.GD +"]";

The error occures at:

OleDbConnection conTXT = new OleDbConnection(comString);

I know it has something to do with FMT=Delimited["+ GetDelimiterForm.GD +"]"; because if I hard code it it has no problems (FMT=Delimiter(TAB)""";). I have tried replacing "[" with "(" and that doesn't work. Any ideas on this one?
GeneralRe: Working with multiple forms Pin
Henry Minute12-May-09 10:00
Henry Minute12-May-09 10:00 
GeneralRe: Working with multiple forms Pin
bwood202012-May-09 11:10
bwood202012-May-09 11:10 
GeneralRe: Working with multiple forms Pin
Henry Minute12-May-09 11:54
Henry Minute12-May-09 11:54 
GeneralRe: Working with multiple forms Pin
bwood202013-May-09 4:02
bwood202013-May-09 4:02 
GeneralRe: Working with multiple forms Pin
bwood202013-May-09 6:20
bwood202013-May-09 6:20 
GeneralRe: Working with multiple forms Pin
Henry Minute13-May-09 6:38
Henry Minute13-May-09 6:38 
GeneralRe: Working with multiple forms Pin
bwood202014-May-09 9:49
bwood202014-May-09 9:49 
GeneralRe: Working with multiple forms Pin
Henry Minute14-May-09 10:46
Henry Minute14-May-09 10:46 
GeneralRe: Working with multiple forms Pin
DaveyM6912-May-09 8:09
professionalDaveyM6912-May-09 8:09 
QuestionI can't get latest value by ref parameter. WHY? [modified] Pin
codeadair12-May-09 5:26
codeadair12-May-09 5:26 
AnswerRe: I can't get latest value by ref parameter. WHY? Pin
Henry Minute12-May-09 5:39
Henry Minute12-May-09 5:39 
GeneralRe: I can't get latest value by ref parameter. WHY? Pin
codeadair12-May-09 14:57
codeadair12-May-09 14:57 
QuestionSeveral event handlers, one handler function, how to know which event handler has been used?? Pin
blackhattrick12-May-09 5:23
blackhattrick12-May-09 5:23 
AnswerRe: Several event handlers, one handler function, how to know which event handler has been used?? Pin
DaveyM6912-May-09 5:29
professionalDaveyM6912-May-09 5:29 
AnswerRe: Several event handlers, one handler function, how to know which event handler has been used?? Pin
Samer Aburabie12-May-09 5:32
Samer Aburabie12-May-09 5:32 
AnswerRe: Several event handlers, one handler function, how to know which event handler has been used?? Pin
OriginalGriff12-May-09 5:34
mveOriginalGriff12-May-09 5:34 
AnswerRe: Several event handlers, one handler function, how to know which event handler has been used?? Pin
blackhattrick12-May-09 5:53
blackhattrick12-May-09 5:53 

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.