TOPDOWN - ERROR - tdgetstr - row_px error

Moderator: Moderatoren

Antworten
Benutzeravatar
engindenizoglu
Cut&Paste-Entwickler
Cut&Paste-Entwickler
Beiträge: 33
Registriert: Mi, 08. Nov 2017 20:58
Wohnort: ISTANBUL
Kontaktdaten:

TOPDOWN - ERROR - tdgetstr - row_px error

Beitrag von engindenizoglu » Mo, 19. Feb 2018 12:38

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
-------------------------------------------------------------------------
ENGIN RENE D.

LARA ltd
hhtp:\\www.core-winder.com
http:\\www.laraelectromechanical.com
http:\\www.lara-plastics.com

ramses
Programmier-Gott
Programmier-Gott
Beiträge: 1025
Registriert: Mi, 28. Jul 2010 17:16

Re: TOPDOWN - ERROR - tdgetstr - row_px error

Beitrag von ramses » Mo, 19. Feb 2018 20:10

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

Benutzeravatar
engindenizoglu
Cut&Paste-Entwickler
Cut&Paste-Entwickler
Beiträge: 33
Registriert: Mi, 08. Nov 2017 20:58
Wohnort: ISTANBUL
Kontaktdaten:

Re: TOPDOWN - ERROR - tdgetstr - row_px error

Beitrag von engindenizoglu » Mo, 19. Feb 2018 21:21

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
ENGIN RENE D.

LARA ltd
hhtp:\\www.core-winder.com
http:\\www.laraelectromechanical.com
http:\\www.lara-plastics.com

ramses
Programmier-Gott
Programmier-Gott
Beiträge: 1025
Registriert: Mi, 28. Jul 2010 17:16

Re: TOPDOWN - ERROR - tdgetstr - row_px error

Beitrag von ramses » Mo, 19. Feb 2018 23:24

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

Benutzeravatar
engindenizoglu
Cut&Paste-Entwickler
Cut&Paste-Entwickler
Beiträge: 33
Registriert: Mi, 08. Nov 2017 20:58
Wohnort: ISTANBUL
Kontaktdaten:

Re: TOPDOWN - ERROR - tdgetstr - row_px error

Beitrag von engindenizoglu » Di, 20. Feb 2018 12:29

Thank u. It works :)
ENGIN RENE D.

LARA ltd
hhtp:\\www.core-winder.com
http:\\www.laraelectromechanical.com
http:\\www.lara-plastics.com

Antworten