Click here to Skip to main content
15,899,754 members
Home / Discussions / C#
   

C#

 
GeneralRe: need help in the Process class Pin
bora3ee14-Sep-04 8:32
bora3ee14-Sep-04 8:32 
QuestionWhere is "LicenseKey" tag of Crystal Reports? Pin
Khang Nguyen13-Sep-04 11:30
Khang Nguyen13-Sep-04 11:30 
AnswerRe: Where is "LicenseKey" tag of Crystal Reports? Pin
Heath Stewart13-Sep-04 11:37
protectorHeath Stewart13-Sep-04 11:37 
GeneralRe: Where is "LicenseKey" tag of Crystal Reports? Pin
Khang Nguyen13-Sep-04 11:45
Khang Nguyen13-Sep-04 11:45 
GeneralRe: Where is "LicenseKey" tag of Crystal Reports? Pin
Heath Stewart13-Sep-04 11:52
protectorHeath Stewart13-Sep-04 11:52 
GeneralRe: Where is "LicenseKey" tag of Crystal Reports? Pin
Khang Nguyen13-Sep-04 12:21
Khang Nguyen13-Sep-04 12:21 
QuestionA text read and write question??? Pin
cemlouis13-Sep-04 11:26
cemlouis13-Sep-04 11:26 
AnswerRe: A text read and write question??? Pin
Mark Greenwood13-Sep-04 13:28
Mark Greenwood13-Sep-04 13:28 
Ok lets start right at the beginning - there were quite a few issues with this block of code.

1.) The reason why nothing gets written to begin with is that your test
'a%300 == 0'
Will only do something every 300 items. The test you want to make is
'a%300 != 0' since for every item BELOW 300 you will always get a
remainder (e.g. 1%300 = 1, 2%300 = 2 etc)

2.) Having got the code to move past this first check we then have a problem with the next for loop because you may not necessarily have 300 items in your array - in fact you'll only have one the first time through.

3.) Also I am curious why you are adding 1 to K for the first every entry

cemlouis wrote:
if(k==0)
{
Tex.WriteLine(arrText[k+1]);
}


Since again the first time through you will only have one item in the array and arrays are ZERO indexed.

4.) I would recommend reading in the entire array and then writing out the contents in 300 blocks and then whatever is left for the last block. I would also suggest writing out the new files as XML since it will be easier to PARSE later and also can be used to show the information with little extra work on your part.

Hope that this helps a little

Markgr Smile | :)
QuestionWhich Row/Col When Mouse Hovers/Moves over DataGrid? Pin
Khang Nguyen13-Sep-04 11:18
Khang Nguyen13-Sep-04 11:18 
AnswerRe: Which Row/Col When Mouse Hovers/Moves over DataGrid? Pin
Nick Parker13-Sep-04 11:27
protectorNick Parker13-Sep-04 11:27 
GeneralRe: Which Row/Col When Mouse Hovers/Moves over DataGrid? Pin
Khang Nguyen14-Sep-04 4:09
Khang Nguyen14-Sep-04 4:09 
GeneralAccessing form controls Pin
13-Sep-04 11:10
suss13-Sep-04 11:10 
GeneralRe: Accessing form controls Pin
Christian Graus13-Sep-04 11:24
protectorChristian Graus13-Sep-04 11:24 
GeneralRe: Accessing form controls Pin
Heath Stewart13-Sep-04 11:48
protectorHeath Stewart13-Sep-04 11:48 
GeneralRe: Accessing form controls Pin
Member 132528214-Sep-04 13:49
Member 132528214-Sep-04 13:49 
GeneralRe: Accessing form controls Pin
Heath Stewart15-Sep-04 5:58
protectorHeath Stewart15-Sep-04 5:58 
GeneralRe: DateTime Pin
Nick Parker13-Sep-04 9:47
protectorNick Parker13-Sep-04 9:47 
GeneralRe: DateTime Pin
Heath Stewart13-Sep-04 11:33
protectorHeath Stewart13-Sep-04 11:33 
Generalneed help in the Process class Pin
bora3ee13-Sep-04 9:38
bora3ee13-Sep-04 9:38 
GeneralRe: need help in the Process class Pin
Nick Parker13-Sep-04 10:32
protectorNick Parker13-Sep-04 10:32 
GeneralRe: need help in the Process class Pin
Heath Stewart13-Sep-04 11:40
protectorHeath Stewart13-Sep-04 11:40 
GeneralWinForms - popup config windows in a specified area Pin
TheBlindWatchmaker13-Sep-04 9:23
TheBlindWatchmaker13-Sep-04 9:23 
GeneralRelease memory - newbie doubt Pin
ee9903513-Sep-04 6:55
ee9903513-Sep-04 6:55 
GeneralRe: Release memory - newbie doubt Pin
Nick Parker13-Sep-04 7:30
protectorNick Parker13-Sep-04 7:30 
GeneralRe: Release memory - newbie doubt Pin
ee9903513-Sep-04 7:53
ee9903513-Sep-04 7: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.