FiveWeb Error en los botones

Post Reply
User avatar
pablovidal
Posts: 398
Joined: Thu Oct 06, 2005 10:15 pm
Location: Republica Dominicana
Contact:

FiveWeb Error en los botones

Post by pablovidal »

Hola Antonio,

Cuando trato de compilar me da este error

Code: Select all

arbour 3.2.0dev (Rev. 18002)
Copyright (c) 1999-2012, http://harbour-project.org/
Compiling 'lotenet.prg' and generating preprocessed output to 'lotenet.ppo'...
lotenet.prg(29) Error E0030  Syntax error "syntax error at '@'"
lotenet.prg(30) Error E0030  Syntax error "syntax error at '@'"
2 errors
 
Estas lineas corresponden a esto

Code: Select all

   @ 265, 189 BUTTON Prompt "Ok"     SIZE 110, 40 OF oDlg ACTION MsgInfo( oGetName.value + CRLF + oGetPass.value ) // executed in the client in javascript
   @ 265, 335 BUTTON Prompt "Cancel" SIZE 110, 40 OF oDlg ACTION ( oDlg:End() ) // Executed in the server in advance
 
Saludos,

Pablo Alberto Vidal
/*
------------------------------------------------------
Harbour 3.2.0, Fivewin 17.02, BCC7
------------------------------------------------------
*/
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: FiveWeb Error en los botones

Post by Antonio Linares »

Pablo,

Te falta incluir las variables que contendran los objetos:

@ 265, 189 BUTTON oBtnOk Prompt "Ok" SIZE 110, 40 OF oDlg ACTION MsgInfo( oGetName.value + CRLF + oGetPass.value ) // executed in the client in javascript
@ 265, 335 BUTTON oBtnCancel Prompt "Cancel" SIZE 110, 40 OF oDlg ACTION ( oDlg:End() ) // Executed in the server in advance

ó no especifiques la claúsula PROMPT:

@ 265, 189 BUTTON "Ok" SIZE 110, 40 OF oDlg ACTION MsgInfo( oGetName.value + CRLF + oGetPass.value ) // executed in the client in javascript
@ 265, 335 BUTTON "Cancel" SIZE 110, 40 OF oDlg ACTION ( oDlg:End() ) // Executed in the server in advance
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
pablovidal
Posts: 398
Joined: Thu Oct 06, 2005 10:15 pm
Location: Republica Dominicana
Contact:

Re: FiveWeb Error en los botones

Post by pablovidal »

Antonio, le quite el prompt y sigue igual
Saludos,

Pablo Alberto Vidal
/*
------------------------------------------------------
Harbour 3.2.0, Fivewin 17.02, BCC7
------------------------------------------------------
*/
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: FiveWeb Error en los botones

Post by Antonio Linares »

Pablo,

Prueba a construir el ejemplo login.prg

Aqui acabo de probarlo y compila bien

build.bat login
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
jnavas
Posts: 399
Joined: Wed Nov 16, 2005 12:03 pm
Location: Caracas - Venezuela
Contact:

Re: FiveWeb Error en los botones

Post by jnavas »

Antonio
Probé con login.prg y no compila, incluso copie fiveweb\include en fiveweb\samples,
seguire intentando debo seguir buscando en include
User avatar
jnavas
Posts: 399
Joined: Wed Nov 16, 2005 12:03 pm
Location: Caracas - Venezuela
Contact:

Re: FiveWeb Error en los botones

Post by jnavas »

Antonio

Ya encontre la incidencia, el comando button requiere
@ x,y BUTTON oBtn PROMPT "Texto"



#include "FiveWeb.ch"

function Main()

local oDlg, oImg,oBtn1,oBtn2
local oGetName, cUserName := Space( 30 )
local oGetPass, cPassword := ""

DEFINE DIALOG oDlg TITLE "FiveWeb Login" SIZE 650, 400


@ 30, 30 IMAGE oImg FILENAME "../images/user.png" SIZE 120, 120 OF oDlg

@ 69, 190 SAY "User" SIZE 110, 40 OF oDlg

@ 124, 190 SAY "Password" SIZE 110, 40 OF oDlg

@ 66, 315 GET oGetName VAR cUserName SIZE 300, 40 OF oDlg

@ 124, 315 GET oGetPass VAR cPassword SIZE 300, 40 OF oDlg PASSWORD


@ 265, 189 BUTTON oBtn1 PROMPT "Ok" SIZE 110, 40 OF oDlg ;
ACTION MsgInfo( oGetName.value + CRLF + oGetPass.value )


// executed in the client in javascript


@ 265, 335 BUTTON oBtn2 PROMPT "Cancel" SIZE 110, 40 OF oDlg ;
ACTION ( oDlg:End() ) // Executed in the server in advance

ACTIVATE DIALOG oDlg

return nil
User avatar
jnavas
Posts: 399
Joined: Wed Nov 16, 2005 12:03 pm
Location: Caracas - Venezuela
Contact:

Re: FiveWeb Error en los botones

Post by jnavas »

Lectura de Variables

Antonio,

Utilizando el programa login y el ejemplo de otto, cuando leo las variables del formulario y las envió como parámetro se muestra en la linea de comando del explorador, es decir, si solicita la clave, esta es visualizada.
Alguna manera de tener estas variables en metodo GET o POST?




@ 66, 315 GET oGetName VAR cUserName SIZE 300, 40 OF oDlg

@ 124, 315 GET oGetPass VAR cPassword SIZE 300, 40 OF oDlg PASSWORD


@ 265, 189 BUTTON oBtn1 PROMPT "Ok" SIZE 110, 40 OF oDlg ;
ACTION document.location = "login.exe?MYFUNC:" + ;
document.getElementById( "oGetName" ).value + ":" + ;
document.getElementById( "oGetPass" ).value




@ 265, 189 BUTTON oBtn1 PROMPT "Ok" SIZE 110, 40 OF oDlg ;
ACTION document.location = "login.exe?MYFUNC:" + ;
document.getElementById( "oGetName" ).value + ":" + ;
document.getElementById( "oGetPass" ).value
Post Reply