variable already exists
Posted: September 18th, 2019, 2:19 pm
Look at the following code snipet:
PROC PPO73_NASCIMENTO
string x = maketext("%08d", $);
string x1 = x[1:4];
string x2 = x[5:2];
string x3 = x[7:2];
The compiler issues an error "The symbol name 'x1' is already in use", but there is no x1 variable whatsoever.
But if I write xx1 it works.
Is it prohibited in the language, having variables x and x1?
PROC PPO73_NASCIMENTO
string x = maketext("%08d", $);
string x1 = x[1:4];
string x2 = x[5:2];
string x3 = x[7:2];
The compiler issues an error "The symbol name 'x1' is already in use", but there is no x1 variable whatsoever.
But if I write xx1 it works.
Is it prohibited in the language, having variables x and x1?