Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Keyword is not valid as an identifier : VB2010

Hello we are trying to sort one of our strings out for an error message :

       Public ERROR As String 

but we keep hitting the message Keyword is not valid as an identifier - Is there anyway around this error as the name cannot be changed from ERROR for the string

Thanks

like image 491
DA-Dan Avatar asked Jul 24 '12 22:07

DA-Dan


1 Answers

You can use:

Public [ERROR] As String

The C# version would be:

public string @ERROR;

like image 112
Mike Christensen Avatar answered Oct 07 '22 00:10

Mike Christensen