Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
CType story
Message
From
26/02/2011 12:39:56
 
 
General information
Forum:
ASP.NET
Category:
Other
Title:
Environment versions
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01501880
Message ID:
01501932
Views:
45
>You can do it (but it is A REALLY BAD IDEA) eg:
Public Class Class1
>    Public [Ctype] As String = "Hello"
>End Class
Then:
Dim c1 As Class1 = New Class1
>Dim theLength As Integer = c1.Ctype.Length
Actually, this works:
    Public Class LabelFunction

        Public [cType] As String = ""

        ' Initialize
        Public Function Initialize() As Boolean

            ' Based on the language
            Select Case nLanguage

                ' English
                Case 1
                    [cType] = "Type"
Then, from the application, I can do:
Dim lcField As String = ""
lcField = "Something," + oProcess.oLabel.cType
Is there any problem doing it like that? Basically, it allows me to use oProcess.oLabel.cType, for its real representation instead of usingn oProcess.oLabel.cType2.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform