Click here to Skip to main content
15,892,927 members
Home / Discussions / C#
   

C#

 
GeneralReg Ex Pin
mvermef21-Apr-05 13:00
mvermef21-Apr-05 13:00 
GeneralRe: Reg Ex Pin
leppie21-Apr-05 19:46
leppie21-Apr-05 19:46 
GeneralPopulating an XSD Dataset Pin
SignMan35921-Apr-05 11:10
SignMan35921-Apr-05 11:10 
GeneralRe: Populating an XSD Dataset Pin
Carl Mercier21-Apr-05 15:21
Carl Mercier21-Apr-05 15:21 
GeneralRe: Populating an XSD Dataset Pin
Hrashita Triapthi21-Apr-05 21:23
Hrashita Triapthi21-Apr-05 21:23 
GeneralHelp Plz in that e-mail client Pin
SherKar21-Apr-05 9:26
SherKar21-Apr-05 9:26 
GeneralRe: Help Plz in that e-mail client Pin
John Fisher22-Apr-05 7:45
John Fisher22-Apr-05 7:45 
Questionbyte[] ? Pin
Snowjim21-Apr-05 9:02
Snowjim21-Apr-05 9:02 
Hey!

If i create a byte[] like this

<br />
byte[] tmpData = new byte[1024];<br />


tmpData will have 1024 elements, all set to "0"

The data i will add to this byte array could be 0 how do i now what place i shold write on next time?

ex

first write

element 0 1 2 3 4 5 6 7 8 9 10 11 12 13
data 24 0 5 21 6 4 14 2 9 18 0 5 4 0

if i then whant to add more data to this byte[], how do i know that element 14 is the next place to add data if a regular element in the byte[] is 0?

Maby i could set all elements to -1 on creation, and then test against this, but this will be alot of test(preformance).

I could also store a extra int that keeps track of where to write the next turn, but this will be som extra class and vaibels.


Is there another way to do this?

Best Regards
SnowJim
AnswerRe: byte[] ? Pin
Dave Kreskowiak21-Apr-05 10:13
mveDave Kreskowiak21-Apr-05 10:13 
GeneralRe: byte[] ? Pin
Snowjim21-Apr-05 11:25
Snowjim21-Apr-05 11:25 
Generalstarting and stopping processes Pin
Mridang Agarwalla21-Apr-05 7:29
Mridang Agarwalla21-Apr-05 7:29 
GeneralRe: starting and stopping processes Pin
Dave Kreskowiak21-Apr-05 10:06
mveDave Kreskowiak21-Apr-05 10:06 
GeneralRe: starting and stopping processes Pin
Polis Pilavas22-Apr-05 10:13
Polis Pilavas22-Apr-05 10:13 
Generaldetecting net connection Pin
Mridang Agarwalla21-Apr-05 7:18
Mridang Agarwalla21-Apr-05 7:18 
GeneralRe: detecting net connection Pin
Dave Kreskowiak21-Apr-05 10:02
mveDave Kreskowiak21-Apr-05 10:02 
GeneralRe: detecting net connection Pin
Mridang Agarwalla21-Apr-05 18:13
Mridang Agarwalla21-Apr-05 18:13 
GeneralRe: detecting net connection Pin
tawammar22-Apr-05 0:27
tawammar22-Apr-05 0:27 
GeneralRe: detecting net connection Pin
Polis Pilavas22-Apr-05 10:26
Polis Pilavas22-Apr-05 10:26 
GeneralRe: detecting net connection Pin
tawammar23-Apr-05 2:27
tawammar23-Apr-05 2:27 
GeneralRe: detecting net connection Pin
tawammar23-Apr-05 6:09
tawammar23-Apr-05 6:09 
GeneralRe: detecting net connection Pin
Polis Pilavas23-Apr-05 8:22
Polis Pilavas23-Apr-05 8:22 
GeneralRe: detecting net connection Pin
tawammar23-Apr-05 10:16
tawammar23-Apr-05 10:16 
GeneralRe: detecting net connection Pin
Polis Pilavas23-Apr-05 10:21
Polis Pilavas23-Apr-05 10:21 
GeneralRe: detecting net connection Pin
tawammar25-Apr-05 13:54
tawammar25-Apr-05 13:54 
Generalfaster than: richTextBox1.Select(78,65);richTextBox1.SelectionColor= Color.Red; Pin
ektoras21-Apr-05 7:04
ektoras21-Apr-05 7:04 

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.