Home RAP

ERROR: IDENTIFIER NOT DECLARED

edited November 2008 in RAP
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

Comments

  • edited November 2008
    Hi Jose,

    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

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited November 2008
    Hi Nico,

    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


  • edited November 2008
    Hi Jose,

    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

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited November 2008
    Ok,
    I'm going to do that

    Regards,

    J.Ignacio

This discussion has been closed.