Click here to Skip to main content
16,006,006 members
Home / Discussions / C#
   

C#

 
GeneralRe: Zip and Unzip files or folders Pin
S. Senthil Kumar2-Aug-05 2:55
S. Senthil Kumar2-Aug-05 2:55 
GeneralRe: Zip and Unzip files or folders Pin
Mohamad Al Husseiny2-Aug-05 3:16
Mohamad Al Husseiny2-Aug-05 3:16 
GeneralDynamic update of comboboxes in datagrid Pin
Atlemann2-Aug-05 1:28
Atlemann2-Aug-05 1:28 
GeneralAbout WebBrowser and save. Pin
Member 20124282-Aug-05 1:10
Member 20124282-Aug-05 1:10 
GeneralProblem Showing JPEJ from specific location in file Pin
arusmemon2-Aug-05 1:00
arusmemon2-Aug-05 1:00 
GeneralRe: Problem Showing JPEJ from specific location in file Pin
Christian Graus2-Aug-05 16:42
protectorChristian Graus2-Aug-05 16:42 
QuestionSubstring.. How?? Pin
oneyard1-Aug-05 23:52
oneyard1-Aug-05 23:52 
AnswerRe: Substring.. How?? Pin
Guffa2-Aug-05 0:16
Guffa2-Aug-05 0:16 
% is the modulo operator. That means that totalLine will not at all contain the number of lines, but the number of characters on the last line.

As you don't remove the first 1033 characters from the string, you will be looping out the same characters time after time.

Try something more along this:

while (count > 1033) {<br />
sx.Write("189000000000000000000023 000" + myTime + "000 01033 OBFT00xx x 30UG ");<br />
sx.Write(savingFile.Substring(0,1033));<br />
savingFile = savingFile.Substring(1033);<br />
count -= 1033;<br />
}<br />
sx.Write("189000000000000000000023 000" + myTime + "000 01033 OBFT00xx x 30UG ");<br />
sx.Write(savingFile);


---
b { font-weight: normal; }

GeneralRe: Substring.. How?? Pin
oneyard2-Aug-05 16:27
oneyard2-Aug-05 16:27 
GeneralRe: Substring.. How?? Pin
oneyard2-Aug-05 16:41
oneyard2-Aug-05 16:41 
GeneralRe: Substring.. How?? Pin
Guffa3-Aug-05 9:53
Guffa3-Aug-05 9:53 
GeneralRe: Substring.. How?? Pin
oneyard3-Aug-05 18:15
oneyard3-Aug-05 18:15 
Questionhow to get user defined type through webservice Pin
papyrus_lei1-Aug-05 22:49
papyrus_lei1-Aug-05 22:49 
AnswerRe: how to get user defined type through webservice Pin
Christian Graus2-Aug-05 2:17
protectorChristian Graus2-Aug-05 2:17 
Questionhow can i Pin
snouto1-Aug-05 22:46
snouto1-Aug-05 22:46 
AnswerRe: how can i Pin
Guffa2-Aug-05 0:28
Guffa2-Aug-05 0:28 
Questionhow to display/ show() form in a tab page? Pin
nidhelp1-Aug-05 22:26
nidhelp1-Aug-05 22:26 
AnswerRe: how to display/ show() form in a tab page? Pin
Christian Graus2-Aug-05 2:16
protectorChristian Graus2-Aug-05 2:16 
GeneralRe: how to display/ show() form in a tab page? Pin
nidhelp2-Aug-05 16:14
nidhelp2-Aug-05 16:14 
GeneralRe: how to display/ show() form in a tab page? Pin
Christian Graus2-Aug-05 16:40
protectorChristian Graus2-Aug-05 16:40 
GeneralRe: how to display/ show() form in a tab page? Pin
nidhelp2-Aug-05 17:59
nidhelp2-Aug-05 17:59 
GeneralRe: how to display/ show() form in a tab page? Pin
Christian Graus2-Aug-05 18:06
protectorChristian Graus2-Aug-05 18:06 
GeneralRe: how to display/ show() form in a tab page? Pin
nidhelp2-Aug-05 18:26
nidhelp2-Aug-05 18:26 
GeneralRe: how to display/ show() form in a tab page? Pin
Christian Graus2-Aug-05 18:30
protectorChristian Graus2-Aug-05 18:30 
GeneralRe: how to display/ show() form in a tab page? Pin
nidhelp2-Aug-05 18:45
nidhelp2-Aug-05 18:45 

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.