Page 1 of 1

Error compiling

Posted: Thu Oct 01, 2015 7:07 pm
by Wanderson
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.

Re: Error compiling

Posted: Thu Oct 01, 2015 7:34 pm
by karinha

Code: Select all

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

Re: Error compiling

Posted: Fri Oct 02, 2015 6:47 pm
by Wanderson
karinha wrote:

Code: Select all

@ 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

Re: Error compiling

Posted: Mon Oct 05, 2015 12:35 pm
by karinha
Look ERROR.LOG.

Re: Error compiling

Posted: Mon Oct 05, 2015 1:40 pm
by Wanderson
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

Re: Error compiling

Posted: Mon Oct 05, 2015 1:43 pm
by karinha
Wanderson, vc. fala português, porque ficar falando em Inglês?

comente:

Code: Select all

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

Code: Select all

@ 06, 08 GROUP TO 45, 220 PROMPT "Impressora: " OF oDlg 
 
O que ocorre? abs.

Re: Error compiling

Posted: Mon Oct 05, 2015 1:54 pm
by karinha

Code: Select all

// 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.

Re: Error compiling

Posted: Tue Oct 13, 2015 4:12 pm
by Wanderson
karinha wrote:Wanderson, vc. fala português, porque ficar falando em Inglês?

comente:

Code: Select all

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

Code: Select all

@ 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!