what is the source of data.
debasisdas
Posting Genius
6,872 posts since Feb 2007
Reputation Points: 666
Solved Threads: 434
Before inserting data into the file, remove the commas and quotes. Then write the data. instr() might help.
WaltP
Posting Sage w/ dash of thyme
10,507 posts since May 2006
Reputation Points: 3,348
Solved Threads: 944
How you populate the datagrid ?
what is the code that you are working on ?
debasisdas
Posting Genius
6,872 posts since Feb 2007
Reputation Points: 666
Solved Threads: 434
WaltP i did that but it didn't work...
I hate it when people say that. And my standard response is "then you did it wrong". I've been using that technique for 30 years and it works.
If you need help, generic non-information posts like you've been giving us is not going to get you any closer to an answer. Be specific. Why didn't it work? What code did you use?
WaltP
Posting Sage w/ dash of thyme
10,507 posts since May 2006
Reputation Points: 3,348
Solved Threads: 944
The other thing to do is combine the variables as strings before writing to the file...
Write #1, var1 & var2
Of course if either variable is not a String you'll need to do Conversion and/or formatting.
If the above doesn't work as I remember, try combining the variables into one String before the write statement.
Temp = var1 & var2
Write #1,Temp
Also, you can use [CTRL]+G to bring up the debug window and then use debug.print VarName to view your variables to see what you are really passing to the Write function.
That way you can divide and conquer the problem and see where it is really happening at.
What I thin we are all suspecting is that the comma in what we suspect is your original code is being passed through the write function to the file.
Of course we can't really know that if you don't share a sample of your code... :)
SpiritualMadMan
Junior Poster in Training
70 posts since Sep 2010
Reputation Points: 49
Solved Threads: 5