Click here to Skip to main content
15,926,507 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralVB Programmer Guide Pin
ISIS5522-Mar-02 11:49
ISIS5522-Mar-02 11:49 
GeneralRe: VB Programmer Guide Pin
Jeremy Falcon25-Mar-02 3:12
professionalJeremy Falcon25-Mar-02 3:12 
GeneralRe: VB Programmer Guide Pin
ISIS5525-Mar-02 9:13
ISIS5525-Mar-02 9:13 
GeneralRe: VB Programmer Guide Pin
Nick Parker27-Mar-02 6:45
protectorNick Parker27-Mar-02 6:45 
GeneralRe: VB Programmer Guide Pin
Aleksey Suvorov27-Mar-02 19:09
Aleksey Suvorov27-Mar-02 19:09 
GeneralControlling Distiller writer Pin
22-Mar-02 6:17
suss22-Mar-02 6:17 
GeneralRe: Controlling Distiller writer Pin
22-Mar-02 6:32
suss22-Mar-02 6:32 
GeneralVB and .Net Naming Guidelines Pin
Kevin McFarlane22-Mar-02 3:05
Kevin McFarlane22-Mar-02 3:05 
Hi,

The .Net naming guidelines cannot be fully applied to Visual Basic. You can
almost do it because, despite VB's case insensitivity,
variable/method/property names and type names are in different namespaces
and so do not clash. I don't think this was the case in VB6. For example, in
VB .Net you can do:

Dim customer As Customer

and the compiler understands that customer is different from Customer.

But for properties you run into trouble

Private name
Public Property Name() As String
Get
Return name
End Get
End Property

name and Name clash so you end up having to do

Private m_name

or something.

If the compiler could distinguish between variables and methods then the
.Net conventions could be applied consistently for both VB and C#.

With C#, I've been trying to follow the new guidelines but I'm still using
Hungarian prefixes for controls. Microsoft don't say what to do for controls
but I guess we should use full suffixes, i.e.,

customerText
customerLabel
customerCombo

etc.

Comments anyone?

Kevin



GeneralRe: VB and .Net Naming Guidelines Pin
David Wengier23-Mar-02 12:09
David Wengier23-Mar-02 12:09 
GeneralRe: VB and .Net Naming Guidelines Pin
Kevin McFarlane24-Mar-02 0:25
Kevin McFarlane24-Mar-02 0:25 
Generalole db Pin
Sudhakar21-Mar-02 23:50
Sudhakar21-Mar-02 23:50 
GeneralA New ActiveX control in VB which doesnt allows u to write codes Pin
21-Mar-02 18:01
suss21-Mar-02 18:01 
Generalident lookup(rfc 931/1413) Pin
21-Mar-02 1:43
suss21-Mar-02 1:43 
GeneralForm in a VB ActiveX dll Pin
zrazzaque20-Mar-02 18:08
zrazzaque20-Mar-02 18:08 
GeneralActiveX VB Pin
Michael.Weiss19-Mar-02 23:20
Michael.Weiss19-Mar-02 23:20 
GeneralRe: ActiveX VB Pin
David Wengier19-Mar-02 23:33
David Wengier19-Mar-02 23:33 
GeneralRe: ActiveX VB Pin
Michael.Weiss20-Mar-02 0:25
Michael.Weiss20-Mar-02 0:25 
GeneralRe: ActiveX VB Pin
David Wengier20-Mar-02 1:11
David Wengier20-Mar-02 1:11 
GeneralRe: ActiveX VB Pin
Michael.Weiss20-Mar-02 1:18
Michael.Weiss20-Mar-02 1:18 
GeneralRe: ActiveX VB Pin
Gerosa9-Apr-02 8:58
Gerosa9-Apr-02 8:58 
QuestionHow to convert 16-Bit colors to 32-Bit: Pin
18-Mar-02 12:42
suss18-Mar-02 12:42 
AnswerRe: How to convert 16-Bit colors to 32-Bit: Pin
Paul M Watt21-Apr-02 13:31
mentorPaul M Watt21-Apr-02 13:31 
Generalcatching string from DOS shell Pin
mohith18-Mar-02 6:37
mohith18-Mar-02 6:37 
GeneralRe: catching string from DOS shell Pin
Jeremy Falcon18-Mar-02 10:47
professionalJeremy Falcon18-Mar-02 10:47 
GeneralRe: catching string from DOS shell Pin
mohith19-Mar-02 12:07
mohith19-Mar-02 12:07 

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.