ERROR: IDENTIFIER NOT DECLARED
Compilation error: Identifier not declared: 'MODELOS'
contador:= 1;
{seguir:= true;}
while (contador <= 20) do {and seguir do}
begin
strContador:= IntToStr(contador);
if (contador < 10) then
strContador:= '0' + StrContador;
sMarca:= '';
if DBmodelos_patron.FieldValue = True then
begin
IF (MODELOS['PATRON' + StrContador]) then
...
...
If the code is:
IF (MODELOS['PATRON01]) then
...
...
We have then same error
contador:= 1;
{seguir:= true;}
while (contador <= 20) do {and seguir do}
begin
strContador:= IntToStr(contador);
if (contador < 10) then
strContador:= '0' + StrContador;
sMarca:= '';
if DBmodelos_patron.FieldValue = True then
begin
IF (MODELOS['PATRON' + StrContador]) then
...
...
If the code is:
IF (MODELOS['PATRON01]) then
...
...
We have then same error
This discussion has been closed.
Comments
In my quick testing with boolean values from a dataset, RAP compiled and
functioned correctly. Be sure "MODELOS" is the actual name of the pipeline
you are trying to access. From the Calc tab, you can select the data tab of
the code toolbox in the lower right corner and drag the field(s) you would
like to use into the code editor.
The following code functioned correctly in my testing with the DBDEMOS
database and the reservat table...
if(reservat['Paid']) then
DBText1.Font.Color := clGreen
else
DBText1.Font.Color := clRed;
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
In the report always used the data tab of the code toolbox.
When compiling the report the code has not errors, but I close then report
an open again and suddenly appears the error 'Identifier not declared'
however the report works well
Regards
Jos? Ignacio
I'm still unable to recreate this issue on my machine. Are you able to
recreate it with a simple example like the one I posted in my previous
message?
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
I'm going to do that
Regards,
J.Ignacio