http://localhost/Cgi-bin/otto.exe?add:one%20space:one%20space:one%20space
#include "FiveWeb.ch"
function Main()
local oDlg, cTEST:="TEST1234 ",oGET
DEFINE DIALOG oDlg TITLE "Hello FiveWeb" SIZE 600, 400
@ 20, 20 GET oGET VAR cTEST OF oDlg SIZE 300, 40
@ 120, 370 BUTTON "ok" SIZE 120, 50 OF oDlg ACTION ( msginfo( cTEST ) ,oDlg:END() )
ACTIVATE DIALOG oDlg
return nil
Antonio Linares wrote:Kokoo,
There is something important to learn about FiveWeb:
When you execute your code, xbase is translated into whatever and works but you are no longer in your PRG execution. It happened, then you got your result and you are working locally, using javascript. So think about this: where is the variable defined ? In the PRG. And that code was already processed. Similar like when we create a dialog and run it as non modal. The variables are gone, out of scope
Instead of your code, try:
MsgInfo( oGET.Value )
Compiling...
testget.prg(15) Error E0030 Syntax error "syntax error at '.'"
Harbour 3.2.0dev (Rev. 18805)
Copyright (c) 1999-2013, http://harbour-project.org/
Compiling 'testget.prg'...
1 error
No code generated.
* Compile errors *
Antonio Linares wrote:Boris,
Anyhow we can send info from the client to the server too, so we could update the variable and send it back to the server, but we need to manage "sessions" for that. Something that we have not implemented yet.
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: No registered users and 22 guests