Click here to Skip to main content
15,906,558 members
Home / Discussions / Visual Basic
   

Visual Basic

 
Questiondatabase linking in vb.net Pin
Member 320653117-Sep-10 9:05
Member 320653117-Sep-10 9:05 
AnswerRe: database linking in vb.net Pin
Henry Minute17-Sep-10 10:22
Henry Minute17-Sep-10 10:22 
GeneralRe: database linking in vb.net Pin
Member 320653117-Sep-10 16:42
Member 320653117-Sep-10 16:42 
GeneralRe: database linking in vb.net Pin
Henry Minute17-Sep-10 23:45
Henry Minute17-Sep-10 23:45 
GeneralRe: database linking in vb.net Pin
Luc Pattyn18-Sep-10 2:27
sitebuilderLuc Pattyn18-Sep-10 2:27 
GeneralRe: database linking in vb.net Pin
Henry Minute18-Sep-10 3:29
Henry Minute18-Sep-10 3:29 
QuestionConverting VB's IIf to Conditional Operator in c# Pin
Michael900016-Sep-10 23:30
Michael900016-Sep-10 23:30 
AnswerRe: Converting VB's IIf to Conditional Operator in c# Pin
Geoff Williams17-Sep-10 1:44
Geoff Williams17-Sep-10 1:44 
In VB.NET an expression like

asciiBytes.Length > (i + 1)


will return a Boolean value - in this case True as it is identical to the Expression part of the IIf method. Internally, a Boolean value is stored as an integer (False -> 0, True -> -1), so the conversion to an integer is straightforward.

However, I think there' a bug in your code: it should probably read

Dim nextchar As Integer = IIf(asciiBytes.Length > (i + 1), asciiBytes(i + 1), -1)


in other words it returns the ASCII value (0 - 255) of the next character in the array if the Expression is True and -1 if it is False.
GeneralRe: Converting VB's IIf to Conditional Operator in c# Pin
Michael900017-Sep-10 2:57
Michael900017-Sep-10 2:57 
GeneralRe: Converting VB's IIf to Conditional Operator in c# Pin
Eddy Vluggen17-Sep-10 7:17
professionalEddy Vluggen17-Sep-10 7:17 
GeneralRe: Converting VB's IIf to Conditional Operator in c# Pin
Michael900017-Sep-10 23:20
Michael900017-Sep-10 23:20 
Questionbinding strongly typed objectresult to combobox vb.net 2010 Pin
Ebube16-Sep-10 22:01
Ebube16-Sep-10 22:01 
Questionsteppermotor Pin
nisharkinoo16-Sep-10 8:44
nisharkinoo16-Sep-10 8:44 
AnswerRe: steppermotor Pin
LloydA11116-Sep-10 8:52
LloydA11116-Sep-10 8:52 
AnswerRe: steppermotor Pin
David Mujica16-Sep-10 9:09
David Mujica16-Sep-10 9:09 
AnswerRe: steppermotor Pin
Ian Shlasko16-Sep-10 9:13
Ian Shlasko16-Sep-10 9:13 
AnswerRe: steppermotor Pin
Luc Pattyn16-Sep-10 9:44
sitebuilderLuc Pattyn16-Sep-10 9:44 
AnswerRe: steppermotor Pin
Eddy Vluggen16-Sep-10 9:58
professionalEddy Vluggen16-Sep-10 9:58 
AnswerRe: steppermotor Pin
Dave Kreskowiak16-Sep-10 10:14
mveDave Kreskowiak16-Sep-10 10:14 
QuestionAttention:Luc Pattyn Pin
nisharkinoo16-Sep-10 7:22
nisharkinoo16-Sep-10 7:22 
AnswerRe: Attention:Luc Pattyn Pin
Ian Shlasko16-Sep-10 7:44
Ian Shlasko16-Sep-10 7:44 
GeneralRe: Attention:Luc Pattyn Pin
Luc Pattyn16-Sep-10 9:45
sitebuilderLuc Pattyn16-Sep-10 9:45 
Questionsteppermotor Pin
nisharkinoo16-Sep-10 7:00
nisharkinoo16-Sep-10 7:00 
AnswerRe: steppermotor Pin
Luc Pattyn16-Sep-10 7:10
sitebuilderLuc Pattyn16-Sep-10 7:10 
GeneralRe: steppermotor Pin
Smithers-Jones17-Sep-10 4:35
Smithers-Jones17-Sep-10 4:35 

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.