TOPDOWN - ERROR - tdgetstr - row_px error

Moderator: Moderatoren

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

TOPDOWN - ERROR - tdgetstr - row_px error

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

LARA ltd
http:\\www.laraelectromechanical.com
ramses
Der Entwickler von "Deep Thought"
Der Entwickler von "Deep Thought"
Beiträge: 2537
Registriert: Mi, 28. Jul 2010 17:16
Hat sich bedankt: 12 Mal
Danksagung erhalten: 80 Mal

Re: TOPDOWN - ERROR - tdgetstr - row_px error

Beitrag 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
Valar Morghulis

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

Re: TOPDOWN - ERROR - tdgetstr - row_px error

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

LARA ltd
http:\\www.laraelectromechanical.com
ramses
Der Entwickler von "Deep Thought"
Der Entwickler von "Deep Thought"
Beiträge: 2537
Registriert: Mi, 28. Jul 2010 17:16
Hat sich bedankt: 12 Mal
Danksagung erhalten: 80 Mal

Re: TOPDOWN - ERROR - tdgetstr - row_px error

Beitrag 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
Valar Morghulis

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

Re: TOPDOWN - ERROR - tdgetstr - row_px error

Beitrag von engindenizoglu »

Thank u. It works :)
ENGIN RENE D.

LARA ltd
http:\\www.laraelectromechanical.com
Antworten