Keyword is not valid as an identifier : VB2010

10,160

You can use:

Public [ERROR] As String

The C# version would be:

public string @ERROR;

Share:
10,160

Related videos on Youtube

DA-Dan
Author by

DA-Dan

Updated on September 15, 2022

Comments

  • DA-Dan
    DA-Dan over 1 year

    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