setting is not a Valid Identifier

mpooley

Active member
Joined
Jan 4, 2009
Messages
32
Programming Experience
Beginner
"Hi
I converting a VB.net application to vb.net 2013 and one of the things I am doing is converting a homebrew config file to My.settings.
To get started I began typing in some of the identifiers, some had spaces and they weren't accepted but I easily got round that by using underscores but there is a whole load of identifiers similar to this ''4B000801F580FF10''
and they are being rejected as well?

I can't work out what is wrong with these as these are string settings and there are no punctuation or unusual characters.
anyone know why I am getting this error and what I can do about it.

thanks
 
Adding a setting will also add a property with the same name, as such the element name (identifier) must begin with an alphabetic character or an underscore. Declared Element Names (Visual Basic)
 
Ah! I see.
Thanks

I can see now, why they didn't use this method before then, although I suppose it would be quite easy to add an underscore at the beginning.

Thanks for you help

Mike
 
Back
Top