Click here to Skip to main content
16,007,760 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Connect to a password protected Access database!! Pin
emimmortal20-Aug-08 19:01
emimmortal20-Aug-08 19:01 
GeneralRe: Connect to a password protected Access database!! Pin
John Kh22-Aug-08 22:56
John Kh22-Aug-08 22:56 
QuestionVB:net mysql subtract value Pin
Pestinha198420-Aug-08 6:06
Pestinha198420-Aug-08 6:06 
AnswerRe: VB:net mysql subtract value Pin
Gideon Engelberth20-Aug-08 7:45
Gideon Engelberth20-Aug-08 7:45 
GeneralRe: VB:net mysql subtract value Pin
Pestinha198420-Aug-08 7:53
Pestinha198420-Aug-08 7:53 
QuestionHow can i count bytes in an array of bytes ? Pin
Kobi_Z20-Aug-08 5:00
Kobi_Z20-Aug-08 5:00 
GeneralRe: How can i count bytes in an array of bytes ? Pin
Kschuler20-Aug-08 10:27
Kschuler20-Aug-08 10:27 
GeneralRe: How can i count bytes in an array of bytes ? Pin
Kobi_Z21-Aug-08 9:24
Kobi_Z21-Aug-08 9:24 
O.k its quite simple , im not at home so ill write what i remember.

Function CS(a) 'is the decleration ok ?
dim n as int 'Define counter
dim temp as byte 'temp for storing CS
temp = 0
dim b(LenB(a)) as byte '(if a is 7 bytes long i get a new aray of 8 bytes here)

for n = 0 To LenB(a)-1
b(n) = a(n)
temp = temp Xor a(n)
next
.
.
.
b(n+1) = temp '(i dont remeber if its n or n+1 depends if it got increased by the for)
a = b

End Function

if i send an array to this function all goes well
lets say i have an array of bytes named try1(7)
the LenB(a) will return the currect size of it
but when i send it a single byte (not an array) it returns 4.
i need to find a way to get the size of "a"
so if its 1 ill skip the "for n=0..." and do somthing else.

Thanxs again.
QuestionFunction declaration that returns array Pin
indian14320-Aug-08 3:58
indian14320-Aug-08 3:58 
AnswerRe: Function declaration that returns array Pin
cstrader23220-Aug-08 4:31
cstrader23220-Aug-08 4:31 
AnswerRe: Function declaration that returns array Pin
MikeMarq20-Aug-08 6:47
MikeMarq20-Aug-08 6:47 
GeneralThe 1 votes Pin
MikeMarq20-Aug-08 15:46
MikeMarq20-Aug-08 15:46 
GeneralRe: The 1 votes Pin
cstrader23220-Aug-08 16:17
cstrader23220-Aug-08 16:17 
GeneralRe: The 1 votes Pin
MikeMarq20-Aug-08 16:25
MikeMarq20-Aug-08 16:25 
GeneralRe: The 1 votes Pin
Mycroft Holmes20-Aug-08 19:16
professionalMycroft Holmes20-Aug-08 19:16 
GeneralRe: The 1 votes Pin
MikeMarq21-Aug-08 7:04
MikeMarq21-Aug-08 7:04 
QuestionConverting C# code to Vb.net Pin
dix20-Aug-08 3:46
dix20-Aug-08 3:46 
AnswerRe: Converting C# code to Vb.net Pin
Steven J Jowett20-Aug-08 11:48
Steven J Jowett20-Aug-08 11:48 
AnswerRe: Converting C# code to Vb.net Pin
Dave Doknjas20-Aug-08 14:29
Dave Doknjas20-Aug-08 14:29 
QuestionComputer Science 101 question Pin
cstrader23220-Aug-08 2:57
cstrader23220-Aug-08 2:57 
AnswerRe: Computer Science 101 question Pin
MikeMarq20-Aug-08 6:39
MikeMarq20-Aug-08 6:39 
GeneralRe: Computer Science 101 question Pin
cstrader23220-Aug-08 7:52
cstrader23220-Aug-08 7:52 
GeneralRe: Computer Science 101 question Pin
Dave Kreskowiak20-Aug-08 13:41
mveDave Kreskowiak20-Aug-08 13:41 
GeneralRe: Computer Science 101 question Pin
cstrader23220-Aug-08 16:31
cstrader23220-Aug-08 16:31 
GeneralRe: Computer Science 101 question Pin
Dave Kreskowiak21-Aug-08 1:28
mveDave Kreskowiak21-Aug-08 1:28 

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.