Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Class named String
Message
 
 
À
10/11/2013 12:04:13
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
VB 9.0
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01587660
Message ID:
01587673
Vues:
25
>>I tested my code and get no problem having this class named String. But, just in case (so that you and Thomas don't tell me some day "I told you so :)) I may change the name to something very unique like MyString <g>.
>
>I also have a string class. Its file name is named String.vb but the class name is named StringFunction. I do not understand how you succeeded to name the class String. That should give you a "Keyword is not valid as an identifier".
>
>Wherever I have a class name that is a reserved word, I simply add the word Function after. Another example if a file class. I named the file File.vb but the class name is FileFunction.

See my reply to Craig with the sample code. And it works.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform