Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Class named String
Message
De
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:
01587671
Vues:
36
>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.
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform