Skip to Content
0
Feb 15, 2007 at 08:31 PM

Sentence Vari on fox formulas 2004s

37 Views

Hi Gurus !! I need some help on an error for my code.

I have a fox formula that it works on 3.5 version but it doesn´t on 2004s.

The error message is " Error en función VARI acceso con offset 2 cantidad de valores 1 " It means that the VARI sentence is on error with the offset 2, and the same for the rest of the offset. I`m trying to do this :

  • DECLARACION VARIABLES

DATA V_MONTO TYPE F.

DATA COUNT TYPE I.

DATA V_PER TYPE 0FISCPER3.

DATA V_YEAR TYPE 0FISCYEAR.

DATA V_FISCPER TYPE 0FISCPER.

*ASIGNACION VALOR VARIABLES

V_YEAR = VARV(VYEAR1).

V_MONTO = VARV(VAR_MONTOANUAL).

V_MONTO = V_MONTO/12.

COUNT=1.

DO.

V_PER = VARI(VPER,COUNT).

V_FISCPER=CONCAT(V_YEAR,V_PER).

{0AMOUNT,V_FISCPER, V_PER,V_YEAR} = V_MONTO.

COUNT = COUNT + 1.

IF COUNT = 13.

EXIT.

ENDIF.

ENDDO.

Any Clues ??

Thanks in advance !!

Natalia.