Visual Basic/Visual Basic (Programming)
QUESTION: Would you mind helping me please?
Instructions: Determine if each of the following variable names is valid or invalid. Please state the error in the invalid names.
g. Name Of Client
ANSWER: Dear Dj,
Open project, go to the code window, type following for a.
Dim intRadian() As String
Dim PercentOfSales#() As String
Compiler gives error - cannot use # in the variable name
Dim first_Input_Value() As String
Dim R743(-L56) As String
Error: L56 is not declared - you cannot use not declared variables to define another variable
Dim 3CPO As String
Error - variable should not start with number
Dim Close() As String
No errors, but it is not recommended to use word Close to define a variable because Close is normally used as a function (Method) name - function that normally closing the form for example.
g. Error - you cannot using several words to define variable - variable is always one word.
So the method to answer your question is to try to define it as variable using Dim statement. If there is something wrong with the name, you'll get compiler error.
---------- FOLLOW-UP ----------
QUESTION: So is that the answer you gave me?
This is your assignment:
Determine if each of the following variable names is valid or invalid. Please state the error in the invalid names
I've analyzed each of your variables, explained you the errors, gave you the method to solve similar problems in the future - and instead of "Thank you" the only thing I'm getting form you is: "So is that the answer you gave me?"
I'm volunteer here, spending my free time to help you - would you mind to be more polite?