Frafive wrote:Hoia
De donde me puedo descargar la versión harbour para compilar en windows ?
Un saludo
Yo estoy usando la misma que uso para harbour . .
Frafive wrote:Hoia
De donde me puedo descargar la versión harbour para compilar en windows ?
Un saludo
function MsgYesNo( cMsg , cTitle , cIcon )
local cUiIcon
DEFAULT cTitle:= "Attention"
DEFAULT cIcon := "ALERT"
if cIcon == "ALERT"
cUiIcon:="ui-icon ui-icon-alert"
elseif cIcon == "CHECK"
cUiIcon:= "ui-icon ui-icon-circle-check"
else
cUiIcon:="ui-icon ui-icon-alert"
endif
? '<div id="oMsgYesNo" class="dialog_window" title="'+ cTitle+'">'
? "<p>"
? "<span class='"+cUiIcon+"' style='float: left; margin: 0 7px 20px 0;'></span>"
? cMsg
? "</p>"
? "</div>"
? "<script>"
? "$('#oMsgYesNo').dialog( { width: 400, " +;
"height: 250 , " +;
"modal: true , " +;
"buttons: { " +;
"'Yes': function() { " +;
" $( this ).dialog( 'close' ); "+;
" }, "+;
"'No': function() { " +;
" $( this ).dialog( 'close' ); "+;
"} "+;
"} "+;
"} );"
? "</script>"
return nil
Frafive wrote:Es que utilizo xharbour, de donde me puedo descargar harbour para fiveweb ?
un saludo
#include "FiveWeb.ch"
function MsgYesNo( cMsg , cTitle , cIcon )
local cUiIcon
DEFAULT cTitle:= "Attention"
DEFAULT cIcon := "ALERT"
if cIcon == "ALERT"
cUiIcon:="ui-icon ui-icon-alert"
elseif cIcon == "CHECK"
cUiIcon:= "ui-icon ui-icon-circle-check"
else
cUiIcon:="ui-icon ui-icon-alert"
endif
? '<div id="oMsgYesNo" class="dialog_window" title="'+ cTitle+'">'
? "<p>"
? "<span class='"+cUiIcon+"' style='float: left; margin: 0 7px 20px 0;'></span>"
? cMsg
? "</p>"
? "</div>"
? "<script>"
? "$('#oMsgYesNo').dialog( { width: 400, " +;
"height: 250 , " +;
"modal: true , " +;
"buttons: { " +;
"'Yes': function() { " +;
" $( this ).dialog( 'close' ); "+;
" }, "+;
"'No': function() { " +;
" $( this ).dialog( 'close' ); "+;
"} "+;
"} "+;
"} );"
? "</script>"
return nil
sysctrl2 wrote:Amigo Mastintin,
compilando con build.bat de fiveweb, marca error en la linea 5 y 6 de MsgYesNo.prg
┌────────────────────────────────────────────────────────────────────────────┐
│ FiveWeb builder Harbour development power │▄
│ (c) FiveTech, 1993-2012 for Microsoft Windows 9X/NT/200X/ME/XP/Vista/7/8 │█
└────────────────────────────────────────────────────────────────────────────┘█
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
Compiling...
MsgYesNo.prg(5) Error E0030 Syntax error "syntax error at 'CTITLE'"
MsgYesNo.prg(6) Error E0030 Syntax error "syntax error at 'CICON'"
Harbour 3.2.0dev (Rev. 17475)
Copyright (c) 1999-2012, http://harbour-project.org/
Compiling 'MsgYesNo.prg' and generating preprocessed output to 'MsgYesNo.ppo'...
2 errors
No code generated.
* Compile errors *
C:\fiveweb\fiveweb_0.4\samples>
- Code: Select all Expand view RUN
#include "FiveWeb.ch"
function MsgYesNo( cMsg , cTitle , cIcon )
local cUiIcon
DEFAULT cTitle:= "Attention"
DEFAULT cIcon := "ALERT"
if cIcon == "ALERT"
cUiIcon:="ui-icon ui-icon-alert"
elseif cIcon == "CHECK"
cUiIcon:= "ui-icon ui-icon-circle-check"
else
cUiIcon:="ui-icon ui-icon-alert"
endif
? '<div id="oMsgYesNo" class="dialog_window" title="'+ cTitle+'">'
? "<p>"
? "<span class='"+cUiIcon+"' style='float: left; margin: 0 7px 20px 0;'></span>"
? cMsg
? "</p>"
? "</div>"
? "<script>"
? "$('#oMsgYesNo').dialog( { width: 400, " +;
"height: 250 , " +;
"modal: true , " +;
"buttons: { " +;
"'Yes': function() { " +;
" $( this ).dialog( 'close' ); "+;
" }, "+;
"'No': function() { " +;
" $( this ).dialog( 'close' ); "+;
"} "+;
"} "+;
"} );"
? "</script>"
return nil
Saludos..
#xcommand DEFAULT <uVar1> := <uVal1> ;
[, <uVarN> := <uValN> ] => ;
If( <uVar1> == nil, <uVar1> := <uVal1>, ) ;;
[ If( <uVarN> == nil, <uVarN> := <uValN>, ); ]
function MsgInfo( cMsg , cTitle )
DEFAULT cTitle := "Attention"
? '<div id="oDlg" class="dialog_window" title="'+cTitle+'">'
<br>
.........
// Using controls
#include "FiveWeb.ch"
function Main()
local oDlg
DEFINE DIALOG oDlg TITLE "Hello FiveWeb" SIZE 600, 400
@ 100, 50 BUTTON "One" SIZE 80, 20 OF oDlg
@ 100, 150 BUTTON "Two" SIZE 80, 20 OF oDlg
@ 100, 250 BUTTON "Three" SIZE 80, 20 OF oDlg
ACTIVATE DIALOG oDlg
return nil
Return to FiveWin para Harbour/xHarbour
Users browsing this forum: No registered users and 40 guests