Seite 1 von 1

TOPDOWN - ERROR - tdgetstr - row_px error

Verfasst: Mo, 19. Feb 2018 12:38
von engindenizoglu
My sample is below :
--------------------------------------------------------------------------

Code: Alles auswählen

COL_PX=10    
ROW_PX=20

/* if i use the definitons i get during compiling the error 'invalidvalue' ;
if i don't use these 2 variables i get during executing the error unknown variable row_px......

Code: Alles auswählen

   HHH=SPACE(12)
   HHH=tdGetSTR('SERiNO:',12,"XXXXXXXXXXXXXX",HHH)

   IF LASTKEY()=27 .OR. SUBSTR(hhh,1,1)=" "
       KEYBOARD CHR(28)
       RETURN(2)
   ENDIF
-------------------------------------------------------------------------

Re: TOPDOWN - ERROR - tdgetstr - row_px error

Verfasst: Mo, 19. Feb 2018 20:10
von ramses
Hi

with the last Version of Top-Down this two Vars has to been declared as PUBLIC very early in the MAIN Proc. of the EXE.

Code: Alles auswählen

PUBLIC COL_PX, ROW_PX
******* Default normal scale level
COL_PX := 10
ROW_PX := 20
Regards Carlo

Re: TOPDOWN - ERROR - tdgetstr - row_px error

Verfasst: Mo, 19. Feb 2018 21:21
von engindenizoglu
This i included in the main() procedure but the error continues during compling --> synthax error

Code: Alles auswählen

PUBLIC COL_PX, ROW_PX
******* Default normal scale level
COL_PX := 10
ROW_PX := 20

Re: TOPDOWN - ERROR - tdgetstr - row_px error

Verfasst: Mo, 19. Feb 2018 23:24
von ramses
Hi

please check your topdown.ch Header-File.

Look for this 2 Rows, if you found it, remove it. This was the old way previous to TD 7.0

Code: Alles auswählen

#define  COL_PX 10
#define  ROW_PX 20
Replace it with:

Code: Alles auswählen

MEMVAR  ROW_PX,COL_PX
After this change recompile ALL of your Project Files!

Regards Carlo

Re: TOPDOWN - ERROR - tdgetstr - row_px error

Verfasst: Di, 20. Feb 2018 12:29
von engindenizoglu
Thank u. It works :)