Click here to Skip to main content
15,887,267 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionCould anyone help me with this?!!! [VB6] :((((( Pin
bijan.8k18-Jul-09 5:48
bijan.8k18-Jul-09 5:48 
AnswerRe: Could anyone help me with this?!!! [VB6] :((((( Pin
Eddy Vluggen18-Jul-09 9:03
professionalEddy Vluggen18-Jul-09 9:03 
AnswerRe: Could anyone help me with this?!!! [VB6] :((((( Pin
Paul Conrad18-Jul-09 19:52
professionalPaul Conrad18-Jul-09 19:52 
Questioncode for adding bios date in vb.net Pin
yogendrasalunke18-Jul-09 4:26
yogendrasalunke18-Jul-09 4:26 
AnswerRe: code for adding bios date in vb.net Pin
Luc Pattyn18-Jul-09 4:49
sitebuilderLuc Pattyn18-Jul-09 4:49 
AnswerRe: code for adding bios date in vb.net Pin
dan!sh 18-Jul-09 5:24
professional dan!sh 18-Jul-09 5:24 
GeneralRe: code for adding bios date in vb.net Pin
yogendrasalunke18-Jul-09 5:31
yogendrasalunke18-Jul-09 5:31 
QuestionEnum value calculation using chars [modified] Pin
DaveyM6918-Jul-09 0:51
professionalDaveyM6918-Jul-09 0:51 
I've got a C# article that's ready to publish, but I'm also wanting to include a full VB version of the code and I'm struggling with this bit (I'm not a native VBer!)

In the C# code I have an Enum, and a member of it is declared like this...
LOCL = ('L' << 24) + ('O' << 16) + ('C' << 8) + 'L'
...by using the chars as values and bit shifting to get a UInteger.

Can this be replicated in VB?

[Edit] This appears to work but it feels a bit 'hacky'. Is this the best way in VB?
LOCL = (Asc("L") << 24) + (Asc("O") << 16) + (Asc("C") << 8) + Asc("L")
[/Edit]

Dave
BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)
Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia)
Why are you using VB6? Do you hate yourself? (Christian Graus)

modified on Saturday, July 18, 2009 7:04 AM

AnswerRe: Enum value calculation using chars Pin
Luc Pattyn18-Jul-09 1:18
sitebuilderLuc Pattyn18-Jul-09 1:18 
GeneralRe: Enum value calculation using chars Pin
DaveyM6918-Jul-09 1:34
professionalDaveyM6918-Jul-09 1:34 
GeneralRe: Enum value calculation using chars Pin
Luc Pattyn18-Jul-09 1:42
sitebuilderLuc Pattyn18-Jul-09 1:42 
GeneralRe: Enum value calculation using chars Pin
DaveyM6918-Jul-09 1:56
professionalDaveyM6918-Jul-09 1:56 
GeneralRe: Enum value calculation using chars Pin
Luc Pattyn18-Jul-09 2:12
sitebuilderLuc Pattyn18-Jul-09 2:12 
GeneralRe: Enum value calculation using chars Pin
DaveyM6918-Jul-09 2:26
professionalDaveyM6918-Jul-09 2:26 
GeneralRe: Enum value calculation using chars Pin
Luc Pattyn18-Jul-09 2:53
sitebuilderLuc Pattyn18-Jul-09 2:53 
GeneralRe: Enum value calculation using chars Pin
riced18-Jul-09 4:30
riced18-Jul-09 4:30 
QuestionPractice Pin
Noobie One18-Jul-09 0:07
Noobie One18-Jul-09 0:07 
AnswerRe: Practice Pin
riced18-Jul-09 0:22
riced18-Jul-09 0:22 
AnswerRe: Practice Pin
Luc Pattyn18-Jul-09 0:43
sitebuilderLuc Pattyn18-Jul-09 0:43 
AnswerRe: Practice Pin
Kevin McFarlane18-Jul-09 3:50
Kevin McFarlane18-Jul-09 3:50 
AnswerRe: Practice Pin
Noobie One18-Jul-09 8:56
Noobie One18-Jul-09 8:56 
GeneralRe: Practice Pin
Luc Pattyn18-Jul-09 9:12
sitebuilderLuc Pattyn18-Jul-09 9:12 
GeneralRe: Practice Pin
Johan Hakkesteegt19-Jul-09 21:52
Johan Hakkesteegt19-Jul-09 21:52 
QuestionNested Gridview Pin
Mariam_siahpar17-Jul-09 20:02
Mariam_siahpar17-Jul-09 20:02 
Questionenable/disable network adapter Pin
ivo7517-Jul-09 7:50
ivo7517-Jul-09 7:50 

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.