>Am I the only one to whom this is happening, but everytime I want to define a valid label, sometime I hit a reserved word such as:
>
>
> Public cType As String = ""
>
>
>Basically, in this case, c stands for Character and Type is a Type representation such as "Upload" in English or "Téléchargement" in French, depending on which language I am running on.
>
>But, the story is that CType is a reserved word by .NET. So, I always end up adding a number at the end to bypass it:
>
>
> Public cType2 As String = ""
>
>
>Of course, it would be better if I could have used cType as is. But, I assume there is no other way around.
I find most .NET language programmers avoid our Foxpro habit of indicating data type with a prefix. I guess with strong typing and intellisense it is a lot less necessary.
By now I've trained myself to avoid using type, class, object etc as field names of any kind. Just more trouble than it is worth. ( broke the "class" habit in VFP as I was writing a lot of school software - started using "course" ) Best way seems to be to extend the word - ActionType, AcademicClass etc.
Charles Hankey
Though a good deal is too strange to be believed, nothing is too strange to have happened.
- Thomas Hardy
Half the harm that is done in this world is due to people who want to feel important. They don't mean to do harm-- but the harm does not interest them. Or they do not see it, or they justify it because they are absorbed in the endless struggle to think well of themselves.
-- T. S. Eliot
Democracy is two wolves and a sheep voting on what to have for lunch.
Liberty is a well-armed sheep contesting the vote.
- Ben Franklin
Pardon him, Theodotus. He is a barbarian, and thinks that the customs of his tribe and island are the laws of nature.