Error compiling

Error compiling

Postby Wanderson » Thu Oct 01, 2015 7:07 pm

Hi I try to compile txtprev.prg and get this error:

TXTPREV.PRG(807) Error E0030 Syntax error: "syntax error at '@'"

in this line:

@06,08 TO 45,220 OF oDlg PROMPT "Impressora:"

what the wrong.

Thanks.
Wanderson
 
Posts: 332
Joined: Thu Nov 17, 2005 9:11 pm

Re: Error compiling

Postby karinha » Thu Oct 01, 2015 7:34 pm

Code: Select all  Expand view  RUN

@ 06, 08 GROUP TO 45, 220 LABEL "Impressora: " OF oDlg
 
João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
User avatar
karinha
 
Posts: 7831
Joined: Tue Dec 20, 2005 7:36 pm
Location: São Paulo - Brasil

Re: Error compiling

Postby Wanderson » Fri Oct 02, 2015 6:47 pm

karinha wrote:
Code: Select all  Expand view  RUN

@ 06, 08 GROUP TO 45, 220 LABEL "Impressora: " OF oDlg
 


Thanks but now display this error.

xHarbour 1.2.3 Intl. (SimpLex) (Build 20141106)
Copyright 1999-2014, http://www.xharbour.org http://www.harbour-project.org/
Compiling 'TXTPREV.PRG'...

1 error

No code generated
Wanderson
 
Posts: 332
Joined: Thu Nov 17, 2005 9:11 pm

Re: Error compiling

Postby karinha » Mon Oct 05, 2015 12:35 pm

Look ERROR.LOG.
João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
User avatar
karinha
 
Posts: 7831
Joined: Tue Dec 20, 2005 7:36 pm
Location: São Paulo - Brasil

Re: Error compiling

Postby Wanderson » Mon Oct 05, 2015 1:40 pm

Karinha thats the messagem in error log: very strange

xHarbour 1.2.3 Intl. (SimpLex) (Build 20141106)
Copyright 1999-2014, http://www.xharbour.org http://www.harbour-project.org/
Compiling 'TXTPREV.PRG'...

1 error

No code generated
Wanderson
 
Posts: 332
Joined: Thu Nov 17, 2005 9:11 pm

Re: Error compiling

Postby karinha » Mon Oct 05, 2015 1:43 pm

Wanderson, vc. fala português, porque ficar falando em Inglês?

comente:

Code: Select all  Expand view  RUN

@ 06, 08 GROUP TO 45, 220 LABEL "Impressora: " OF oDlg   // e compile
 


Depois:

Code: Select all  Expand view  RUN

@ 06, 08 GROUP TO 45, 220 PROMPT "Impressora: " OF oDlg
 


O que ocorre? abs.
João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
User avatar
karinha
 
Posts: 7831
Joined: Tue Dec 20, 2005 7:36 pm
Location: São Paulo - Brasil

Re: Error compiling

Postby karinha » Mon Oct 05, 2015 1:54 pm

Code: Select all  Expand view  RUN

// Quick Browse sample = \SAMPLES\PRUE32.PRG

#include "FiveWin.ch"


//----------------------------------------------------------------------------//

function Main()
   local oDlg
   local lFivePro
   local lDialog
   local lObjects
   local nNivel
   local cName
   local cAddress
   local cPhone
   local nAge
   local oBtn


   lFivePro = .T.
   lDialog  = .T.
   lObjects = .F.
   nNivel   = 1
   cName    = SPACE( 10 )
   cAddress = SPACE( 30 )
   cPhone   = SPACE( 30 )
   nAge     = 0

   DEFINE DIALOG oDlg FROM 8, 2 TO 25, 65 ;
      TITLE  "Customer Update"

   @ 1,  1 SAY "&Name:" OF oDlg
   @ 1,  6 GET cName OF oDlg
   @ 2,  1 SAY "&Address:" OF oDlg
   @ 2,  6 GET cAddress OF oDlg

   // Wanderson, veja:

   //@ 3,  1 TO 7, 8 LABEL "&Products" OF oDlg
   @ 3,  1 GROUP TO 7, 8 LABEL "&Products" OF oDlg

   @ 4,  1 CHECKBOX lFivePro PROMPT "&FivePro" OF oDlg
   @ 5,  1 CHECKBOX lDialog  PROMPT "&Dialog"  OF oDlg
   @ 6,  1 CHECKBOX lObjects PROMPT "&Objects" OF oDlg


   // Wanderson, veja:

   //@ 3,  9 TO 7, 17 LABEL "&Nivel" OF oDlg
   @ 3,  9 GROUP TO 7, 17 LABEL "&Nivel" OF oDlg

   @ 4,  9 RADIO nNivel PROMPT "&Novice", "A&vanced", "&Expert" OF oDlg

   @ 4, 16 SAY "&Phone:" OF oDlg
   @ 4, 21 GET cPhone OF oDlg SIZE 60, 11 PICTURE "@R 99-999-9999999"

   @ 6, 16 SAY OemToAnsi( "&Age:" ) OF oDlg
   @ 6, 21 GET nAge OF oDlg SIZE 20, 11

   //   @ 9,  9 BUTTON oBtn PROMPT "&Acept"  OF oDlg SIZE 50, 12 ACTION ( lSave := .t. , oDlg:End() )

   @ 6,  9 BUTTON oBtn PROMPT  "&Acept"  OF oDlg SIZE 50, 12 ACTION MsgInfo( oBtn:Cargo , ValType( oBtn:Cargo) )
   oBtn:bGotFocus := { | Self, hCtlLost | Self:Cargo := hCtlLost  }


   @ 6, 19 BUTTON "&Cancel" OF oDlg SIZE 50, 12 ACTION oDlg:End()

   ACTIVATE DIALOG oDlg CENTERED

return nil
 


Verifique na TXTPREV.PRG by Ednaldo Rolim, deve ter mais GROUP a ser trocado nesta versão do Five que usas. abs.
João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
User avatar
karinha
 
Posts: 7831
Joined: Tue Dec 20, 2005 7:36 pm
Location: São Paulo - Brasil

Re: Error compiling

Postby Wanderson » Tue Oct 13, 2015 4:12 pm

karinha wrote:Wanderson, vc. fala português, porque ficar falando em Inglês?

comente:

Code: Select all  Expand view  RUN

@ 06, 08 GROUP TO 45, 220 LABEL "Impressora: " OF oDlg   // e compile
 


Depois:

Code: Select all  Expand view  RUN

@ 06, 08 GROUP TO 45, 220 PROMPT "Impressora: " OF oDlg
 


O que ocorre? abs.


Obrigado era problema com o GROUP TO mesmo, e sobre falar em inglês é que aqui o pessoal não gosta que utilize outras línguas rs. Valeu!
Wanderson
 
Posts: 332
Joined: Thu Nov 17, 2005 9:11 pm


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 57 guests