topic stringlengths 1 63 | text stringlengths 1 577k ⌀ |
|---|---|
how create error.log in FWH | if I compiling apps without FWH i get error.log. |
how create error.log in FWH | how check if I using FWH standard error system ? |
how create error.log in FWH | Kajot,
Go to FWH\samples and do:
buildx.bat testerro
For xHarbour |
how create error.log in FWH | I am using xHB.com
compiling
xbuidw testerro.prg
and still error.log not creating |
how create error.log in FWH | I just tested an error with xhb.com and the FWH error dialog properly appears
Please search in all your PRGs for a function ErrorDialog()
You may be using a modified errorsysw.prg
See the error.log that I get here:
[quote:1bmtdp9m]Application
===========
Path and name: C:\xhb\samples\fivewin\fwtutor1.exe (32 bits)
Size: 3,031,040 bytes
Compiler version: xHarbour 1.2.3 Intl. (SimpLex) (Build 20150726)
FiveWin Version: FWHX 16.11
Windows version: 6.2, Build 9200
Time from start: 0 hours 0 mins 0 secs
Error occurred at: 12/16/16, 10:05:07
Error description: Error BASE/1081 Argument error: +
Args:
[ 1] = U
[ 2] = N 1
Stack Calls
===========
Called from: fwtutor1.prg => MAIN( 9 )[/quote:1bmtdp9m] |
how create error.log in FWH | thanks for help |
how decrypt a dbf to access with dbu? ADS | Use ADS and crypt the data using AdsEnableEncryption('xXx').how descriptografar a dbf to access with dbu? |
how decrypt a dbf to access with dbu? ADS | select 1DbUseArea(.t.,,"table",,.f.,.f.)ADSEnableEncryption( trimpas() )AdsDecryptTable() |
how decrypt a dbf to access with dbu? ADS | Don't work!see my code:[code:19o9u773] dbUseArea(.T.,"ADS","CUSTOMER",, .not. lExclusive)
AdsEnableEncryption(cChave)
AdsDecryptTable()
close all[/code:19o9u773] |
how dectect VISTA ? | How detect if the pr
ogram is running under VISTA ?
Romeo |
how dectect VISTA ? | Romeo,
function IsVista()
return GetVersion()[ 1 ] == 6 |
how dectect VISTA ? | it works with fwh24 but not works with fw24.
with w95,xp,vista using fw24 it says always :
getversion[1] = 3
getversion[2] = 95
if i use fwh24 all is ok !
Any patch for 16bit version of my fw24 ?
tks |
how dectect VISTA ? | Romeo,
As FW is 16 bits, it could be that the required Windows version returns a different value |
how dectect VISTA ? | So no solution for 16 bit ?
Is not possible,simply, read same key of windows registry to get the windows version ?
Tks |
how dectect VISTA ? | [quote="Romeo":2i1rsd45]So no solution for 16 bit ?
Is not possible,simply, read same key of windows registry to get the windows version ?[/quote:2i1rsd45]
Time to move to 23 bits Romeo! <!-- s;-) --><img src="{SMILIES_PATH}/icon_wink.gif" alt=";-)" title="Wink" /><!-- s;-) -->
Patrick |
how dectect VISTA ? | 32 <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> |
how dectect VISTA ? | [quote="Antonio Linares":sm35wb22]32 <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->[/quote:sm35wb22]
Damned new Apple keyboard.. <!-- s:oops: --><img src="{SMILIES_PATH}/icon_redface.gif" alt=":oops:" title="Embarassed" /><!-- s:oops: -->
<!-- s:P --><img src="{SMILIES_PATH}/icon_razz.gif" alt=":P" title="Razz" /><!-- s:P --> |
how dectect VISTA ? | Apple ? Then 23 bit would be correct .... <!-- s:roll: --><img src="{SMILIES_PATH}/icon_rolleyes.gif" alt=":roll:" title="Rolling Eyes" /><!-- s:roll: --> |
how detect if is installed JAVA JRE | Hi,
I installed the:
jre-6u1-windows-i586-p-s.exe
to run a myprogram.jar esternal to fwh
Now how to detect if the jre-6u1-windows-i586-p-s.exe is installed or not on pc ! (for my customer)
Is possible to check same resister key ?
tks
Romeo |
how detect if is installed JAVA JRE | ok, i solved the problem using:
LOCAL HKEY_LOCAL_MACHINE:= 2147483650
LOCAL HKEY_CURRENT_USER := 2147483649
LOCAL KEY_ALL_ACCESS := 983103
LOCAL hKey := 0
LOCAL nType := 0
LOCAL cData := SPACE( 256 )
LOCAL nSize := LEN( cData )
REGOPENKEY( HKEY_LOCAL_MACHINE,"Software\JavaSoft\Java Runtime Environment", 0,KEY_ALL_ACCESS, @hKey )
REGQUERYVALUE( hKey, "CurrentVersion", 0, @nType, cData, @nSize)
REGCLOSEKEY( hKey )
_versione:=LEFT( cData, AT( CHR( 0 ), cData ) - 1 )
tks anyway
romeo |
how disable all windows keys | I have disable under windows 7 the taskbar and start button in my program, but i have the problem
to disable all windows keys CTRL+ESC ALT+TAB ALT+ESC CTRL+ALT+DEL
Please help me |
how display item superior width ComboBox ? | Hi.
how display item superior it width ComboBox (open) ?
<!-- m --><a class="postlink" href="http://br.geocities.com/ericmagaldi/screen/combobox.jpg">http://br.geocities.com/ericmagaldi/screen/combobox.jpg</a><!-- m -->
I use Pelles C. |
how display item superior width ComboBox ? | Éric,
I don't understand your question. Why don't you increase its width ? |
how display item superior width ComboBox ? | [quote="Antonio Linares":1vr84phj]Why don't you increase its width ?[/quote:1vr84phj]
LayOut and not need adjust for every item insert.
While it is closed, not need display all character, but during choose (Open), is much important (+informative).
Is possible ??? |
how display item superior width ComboBox ? | aff !! never yet one "YES" or "NO" POSSIBLE ?????!!!!!
alternative temporary in my Class:
[code:240ya6t9]
METHOD HandleEvent( nMsg, nWParam, nLParam ) CLASS MComboBox
if nMsg == FM_CLOSEUP
::cToolTip:=::varget()
return ::CloseUp()
endif
return Super:HandleEvent( nMsg, nWParam, nLParam )
[/code:240ya6t9] |
how display item superior width ComboBox ? | Eric,
Sometimes we don't answer a question when we don't get enough information in the question, sorry
Do you mean that you want to increase the width of the shown dropdown list ? If so, then please review the API docs for these two listbox messages, in case that they may help:
#define LB_SETHORIZONTALEXTENT 0x0194
#define LB_SETCOLUMNWIDTH 0x0195 |
how display item superior width ComboBox ? | If I understood correctly, you want the list part of the combobox to be wider than the edit part. I don't think this is possible, at least using the standard comboboxes.
EMG |
how display item superior width ComboBox ? | Olá Eric,
Veja se este exemplo faz o que você precisa:
[code:21fc6oz7]
#include "FiveWin.ch"
#define COMBO_BASE 320
#define CB_SETITEMHEIGTH ( COMBO_BASE + 19 )
#define CB_GETITEMHEIGTH ( COMBO_BASE + 20 )
#define CB_SETDROPPEDWIDTH 0x0160
#define CB_GETDROPPEDWIDTH ( COMBO_BASE + 25 )
function Main()
local oDlg, oCbx
local aEstados := { "AC Acre", "AL Alagoas", "AM Amazônia", "AP Amapá", "BA Bahia", "CE Ceará", "DF Distrito Federal", "ES Espirito Santo", "EX Exterior", "GO Goias", "MA Maranhão", "MG Minas Gerais", "MS Mato Grosso Sul", "MT Mato Grosso", "PA Pará", "PB Paraiba", "PE Pernambuco", "PI Piauí", "PR Paraná", "RJ Rio de Janeiro", "RN Rio Grande Norte", "RO Rondônia", "RR Roraima", "RS Rio Grande Sul", "SC Santa Catarina", "SE Sergipe", "SP São Paulo", "TO Tocantins" }
local cText := aEstados[1]
* Aqui voce retorna a altura da linha do combobox, quando ele esta aberto
extend class TCombobox with message getItemheight( nItem ) inline ::SendMsg( CB_GETITEMHEIGTH, nItem, 0 )
* Aqui voce define a altura da linha do combobox, quando ele esta aberto
extend class TCombobox with message setItemheight( nHeight ) inline ::SendMsg( CB_SETITEMHEIGTH, , nHeight )
* Aqui voce retorna a largura da linha do combobox, quando ele esta aberto
extend class TCombobox with message GETDROPPEDWIDTH() inline ::SendMsg( CB_GETDROPPEDWIDTH, 0, 0 )
* Aqui voce define a largura da linha do combobox, quando ele esta aberto
extend class TCombobox with message SETDROPPEDWIDTH( nWidth ) inline ::SendMsg( CB_SETDROPPEDWIDTH, nWidth, 0 )
DEFINE DIALOG oDlg FROM 0, 0 TO 200, 200 ;
TITLE "DropDown ComboBox Test" pixel
@ 10, 10 COMBOBOX oCbx VAR cText STYLE CBS_DROPDOWNLIST ; && CBS_DROPDOWN ;
ITEMS aEstados size 20, 100 ;
ON CHANGE oDlg:SetText( cText ) pixel
oCbx:bgotfocus := { |oObj| ( oObj:setItemheight( 20 ), oObj:setdroppedwidth( 200 ), oObj:refresh() ) }
ACTIVATE DIALOG oDlg CENTERED
return nil
[/code:21fc6oz7]
Abraços,
Rossine. |
how display item superior width ComboBox ? | Could you please post this in English, too.
Do we need a changed tComboBox?
Thanks for your code
Otto |
how display item superior width ComboBox ? | Rossine,
many thanks! <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
I wrongly thought about a listbox and it is a combobox <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> |
how display item superior width ComboBox ? | [quote="Rossine":1jag0t0r]Veja se este exemplo faz o que você precisa:[/quote:1jag0t0r]
Wonderful!
EMG |
how display item superior width ComboBox ? | Hello Otto,
[quote:3a60r7xy]
Do we need a changed tComboBox?
[/quote:3a60r7xy]
Not. Only include this stretch in his file .PRG main:
[code:3a60r7xy]
extend class TCombobox with message getItemheight( nItem ) inline ::SendMsg( CB_GETITEMHEIGTH, nItem, 0 )
extend class TCombobox with message setItemheight( nHeight ) inline ::SendMsg( CB_SETITEMHEIGTH, , nHeight )
extend class TCombobox with message GETDROPPEDWIDTH() inline ::SendMsg( CB_GETDROPPEDWIDTH, 0, 0 )
extend class TCombobox with message SETDROPPEDWIDTH( nWidth ) inline ::SendMsg( CB_SETDROPPEDWIDTH, nWidth, 0 )
[/code:3a60r7xy]
Here the example translated into the English:
[code:3a60r7xy]
#include "FiveWin.ch"
#define COMBO_BASE 320
#define CB_SETITEMHEIGTH ( COMBO_BASE + 19 )
#define CB_GETITEMHEIGTH ( COMBO_BASE + 20 )
#define CB_SETDROPPEDWIDTH 0x0160
#define CB_GETDROPPEDWIDTH ( COMBO_BASE + 25 )
function Main()
local oDlg, oCbx
local aEstados := { "AC Acre", "AL Alagoas", "AM Amazônia", "AP Amapá", "BA Bahia", "CE Ceará", "DF Distrito Federal", "ES Espirito Santo", "EX Exterior", "GO Goias", "MA Maranhão", "MG Minas Gerais", "MS Mato Grosso Sul", "MT Mato Grosso", "PA Pará", "PB Paraiba", "PE Pernambuco", "PI Piauí", "PR Paraná", "RJ Rio de Janeiro", "RN Rio Grande Norte", "RO Rondônia", "RR Roraima", "RS Rio Grande Sul", "SC Santa Catarina", "SE Sergipe", "SP São Paulo", "TO Tocantins" }
local cText := aEstados[1]
* Here you return the height of the line of the combobox, when he is open
extend class TCombobox with message getItemheight( nItem ) inline ::SendMsg( CB_GETITEMHEIGTH, nItem, 0 )
* Here you defined the height of the line of the combobox, when he is open
extend class TCombobox with message setItemheight( nHeight ) inline ::SendMsg( CB_SETITEMHEIGTH, , nHeight )
* Here you return the width of the line of the combobox, when he is open
extend class TCombobox with message GETDROPPEDWIDTH() inline ::SendMsg( CB_GETDROPPEDWIDTH, 0, 0 )
* Here you defined the width of the line of the combobox, when he is open
extend class TCombobox with message SETDROPPEDWIDTH( nWidth ) inline ::SendMsg( CB_SETDROPPEDWIDTH, nWidth, 0 )
DEFINE DIALOG oDlg FROM 0, 0 TO 200, 200 ;
TITLE "DropDown ComboBox Test" pixel
@ 10, 10 COMBOBOX oCbx VAR cText STYLE CBS_DROPDOWNLIST ; && CBS_DROPDOWN ;
ITEMS aEstados size 20, 100 ;
ON CHANGE oDlg:SetText( cText ) pixel
oCbx:bgotfocus := { |oObj| ( oObj:setItemheight( 20 ), oObj:setdroppedwidth( 200 ), oObj:refresh() ) }
ACTIVATE DIALOG oDlg CENTERED
return nil
[/code:3a60r7xy] |
how display item superior width ComboBox ? | Hello Rossine,
trying to compile I get this error: I use Harbour.
Regards.
Otto
No code generated
14comobox.prg(22) Error E0030 Syntax error: "syntax error at 'CLASS'"
14comobox.prg(25) Error E0030 Syntax error: "syntax error at 'CLASS'"
14comobox.prg(28) Error E0030 Syntax error: "syntax error at 'CLASS'"
14comobox.prg(31) Error E0030 Syntax error: "syntax error at 'CLASS'"
Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
Error E2194: Could not find file '14comobox.c' |
how display item superior width ComboBox ? | sorry for my bad english
The EXTENDED CLASS ... is a extencion for xHarbour Only.
<!-- s:-( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":-(" title="Sad" /><!-- s:-( -->
salu2
carlos vargas |
how display item superior width ComboBox ? | You can replace the new methods with simple functions and pass them the combobox object variable.
EMG |
how do I copy get to windows clipboard? | Dear All,
I try to copy all text in TGET by oGet:copy() to Windows Clipboard for pasting in another place by put in GET:ACTION, it doesn't work.
[code=fw:2nwwdx5m]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">'fivewin.ch'</span><br /><br /><span style="color: #00C800;">Function</span> Main<br /><span style="color: #00C800;">local</span> oDlg, oGet<span style="color: #000000;">[</span><span style="color: #000000;">2</span><span style="color: #000000;">]</span>, oSay, oBtn<br /><span style="color: #00C800;">local</span> cword1, cword2<br /><br />cword1 := <span style="color: #ff0000;">'test'</span>+space<span style="color: #000000;">(</span><span style="color: #000000;">16</span><span style="color: #000000;">)</span><br />cword2 := space<span style="color: #000000;">(</span><span style="color: #000000;">20</span><span style="color: #000000;">)</span><br /><br /><span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">FROM</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span> <span style="color: #0000ff;">TO</span> <span style="color: #000000;">120</span>, <span style="color: #000000;">450</span> <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">'Support Password'</span> <span style="color: #0000ff;">PIXEL</span> <br /> <br /> oDlg:<span style="color: #000000;">lHelpIcon</span> := .F.<br /> <br /> @ <span style="color: #000000;">8</span>, <span style="color: #000000;">5</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">'Word 1'</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">50</span>, <span style="color: #000000;">12</span> <span style="color: #0000ff;">PIXEL</span><br /> @ <span style="color: #000000;">23</span>, <span style="color: #000000;">5</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">'Word 2'</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">50</span>, <span style="color: #000000;">12</span> <span style="color: #0000ff;">PIXEL</span><br /><br /> @ <span style="color: #000000;">5</span>, <span style="color: #000000;">55</span> <span style="color: #0000ff;">GET</span> oGet<span style="color: #000000;">[</span><span style="color: #000000;">1</span><span style="color: #000000;">]</span> <span style="color: #0000ff;">VAR</span> cword1 <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">100</span>, <span style="color: #000000;">13</span> <span style="color: #0000ff;">PIXEL</span> ;<br /> <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">(</span>oGet<span style="color: #000000;">[</span><span style="color: #000000;">1</span><span style="color: #000000;">]</span>:<span style="color: #000000;">Copy</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span>, <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">(</span><span style="color: #ff0000;">'Copy..'</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span><br /> @ <span style="color: #000000;">20</span>, <span style="color: #000000;">55</span> <span style="color: #0000ff;">GET</span> oGet<span style="color: #000000;">[</span><span style="color: #000000;">2</span><span style="color: #000000;">]</span> <span style="color: #0000ff;">VAR</span> cword2 <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">100</span>, <span style="color: #000000;">13</span> <span style="color: #0000ff;">PIXEL</span><br /><br /><br /><span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDLg <span style="color: #0000ff;">CENTER</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span></div>[/code:2nwwdx5m]
I use Ctrl+A, it doesn't work.
I use RClick (Select All) and then copy, it work as I need.
Is it possible, to use oGet:copy()?
Thanks in advance for any help. |
how do I copy get to windows clipboard? | [code=fw:4ymyz86m]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">(</span>oGet<span style="color: #000000;">[</span><span style="color: #000000;">1</span><span style="color: #000000;">]</span>:<span style="color: #000000;">SelectAll</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span>, oGet<span style="color: #000000;">[</span><span style="color: #000000;">1</span><span style="color: #000000;">]</span>:<span style="color: #000000;">Copy</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span>, <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">(</span><span style="color: #ff0000;">'Copy..'</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span></div>[/code:4ymyz86m]
EMG |
how do I copy get to windows clipboard? | Dear Mr.Dutch
Please try the sample
[code=fw:16u1uih0]<div class="fw" id="{CB}" style="font-family: monospace;"> <span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">'fivewin.ch'</span><br /> <br /> <span style="color: #00C800;">static</span> oclp<br /> <br /> <span style="color: #00C800;">Function</span> Main<br /> <span style="color: #00C800;">local</span> oDlg, oGet<span style="color: #000000;">[</span><span style="color: #000000;">2</span><span style="color: #000000;">]</span>, oSay, oBtn<br /> <span style="color: #00C800;">local</span> cword1, cword2<br /><br /> cword1 := <span style="color: #ff0000;">'test'</span>+space<span style="color: #000000;">(</span><span style="color: #000000;">16</span><span style="color: #000000;">)</span><br /> cword2 := space<span style="color: #000000;">(</span><span style="color: #000000;">20</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">FROM</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span> <span style="color: #0000ff;">TO</span> <span style="color: #000000;">120</span>, <span style="color: #000000;">450</span> <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">'Support Password'</span> <span style="color: #0000ff;">PIXEL</span><br /> <br /> oDlg:<span style="color: #000000;">lHelpIcon</span> := .F.<br /> <br /> @ <span style="color: #000000;">8</span>, <span style="color: #000000;">5</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">'Word 1'</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">50</span>, <span style="color: #000000;">12</span> <span style="color: #0000ff;">PIXEL</span><br /> @ <span style="color: #000000;">23</span>, <span style="color: #000000;">5</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">'Word 2'</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">50</span>, <span style="color: #000000;">12</span> <span style="color: #0000ff;">PIXEL</span><br /><br /> @ <span style="color: #000000;">5</span>, <span style="color: #000000;">55</span> <span style="color: #0000ff;">GET</span> oGet<span style="color: #000000;">[</span><span style="color: #000000;">1</span><span style="color: #000000;">]</span> <span style="color: #0000ff;">VAR</span> cword1 <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">100</span>, <span style="color: #000000;">13</span> <span style="color: #0000ff;">PIXEL</span> ;<br /> <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">(</span>oClp:<span style="color: #000000;">SetText</span><span style="color: #000000;">(</span> cword1 <span style="color: #000000;">)</span>, <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">(</span><span style="color: #ff0000;">'Copy..'</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span><br /> @ <span style="color: #000000;">20</span>, <span style="color: #000000;">55</span> <span style="color: #0000ff;">GET</span> oGet<span style="color: #000000;">[</span><span style="color: #000000;">2</span><span style="color: #000000;">]</span> <span style="color: #0000ff;">VAR</span> cword2 <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">100</span>, <span style="color: #000000;">13</span> <span style="color: #0000ff;">PIXEL</span><br /><br /> <span style="color: #0000ff;">DEFINE</span> CLIPBOARD oClp <span style="color: #0000ff;">OF</span> oDlg<br /> <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDLg <span style="color: #0000ff;">CENTER</span><br /> oClp:<span style="color: #000000;">End</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span></div>[/code:16u1uih0] |
how do I copy get to windows clipboard? | Dear EMG,
Thank you so much for your wonderful idea.
[quote="Enrico Maria Giordano":30d4wq7c][code=fw:30d4wq7c]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">(</span>oGet<span style="color: #000000;">[</span><span style="color: #000000;">1</span><span style="color: #000000;">]</span>:<span style="color: #000000;">SelectAll</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span>, oGet<span style="color: #000000;">[</span><span style="color: #000000;">1</span><span style="color: #000000;">]</span>:<span style="color: #000000;">Copy</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span>, <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">(</span><span style="color: #ff0000;">'Copy..'</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span></div>[/code:30d4wq7c]
EMG[/quote:30d4wq7c] |
how do I copy get to windows clipboard? | Hi dutch,
I use this procedure.
[code=fw:kh8zhzsy]<div class="fw" id="{CB}" style="font-family: monospace;">...<br />Copy_Clipboard<span style="color: #000000;">(</span>XREF_NO1<span style="color: #000000;">)</span><br />...<br /><br />PROCEDURE Copy_Clipboard<span style="color: #000000;">(</span>cText<span style="color: #000000;">)</span><br /><span style="color: #00C800;">LOCAL</span> oClp<br /><span style="color: #00C800;">DEFAULT</span> cText := <span style="color: #ff0000;">""</span><br /> <span style="color: #0000ff;">DEFINE</span> CLIPBOARD oClp <span style="color: #0000ff;">OF</span> oApp:<span style="color: #000000;">oDlg</span> <span style="color: #B900B9;">// This is my main window</span><br /> cText := ALLTRIM<span style="color: #000000;">(</span>cText<span style="color: #000000;">)</span><br /> oClp:<span style="color: #000000;">SetText</span><span style="color: #000000;">(</span>cText<span style="color: #000000;">)</span><br /> oClp:<span style="color: #000000;">End</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><span style="color: #00C800;">RETURN</span></div>[/code:kh8zhzsy] |
how do I copy get to windows clipboard? | Thank you so much, Hakan. |
how does Statusbar or SET MESSAGE work ? | hi,
i have a Statusbar / SET MESSAGE in my App.
but how does it work <!-- s:o --><img src="{SMILIES_PATH}/icon_surprised.gif" alt=":o" title="Surprised" /><!-- s:o -->
i have try
[code=fw:jkvyhf9u]<div class="fw" id="{CB}" style="font-family: monospace;"> oStatusBar:<span style="color: #000000;">SetMsg</span><span style="color: #000000;">(</span> cText <span style="color: #000000;">)</span></div>[/code:jkvyhf9u]
or
[code=fw:jkvyhf9u]<div class="fw" id="{CB}" style="font-family: monospace;"> oMain:<span style="color: #000000;">SetMsg</span><span style="color: #000000;">(</span> cText <span style="color: #000000;">)</span></div>[/code:jkvyhf9u]
but it "seems" to have no Effect
when "move" Mouse fromOne TGrid() to other TGrid() i got Message in Statusbar of Select Item (even when have no Focus)
but it does not change when "navigate" in TGrid ...
what i´m doing wrong <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: --> |
how does Statusbar or SET MESSAGE work ? | oMsgBar:SetText("mytext")
oMsgBar:Refresh() |
how does Statusbar or SET MESSAGE work ? | hi,
[quote="Natter":2iyhiusr]oMsgBar:SetText("mytext")
oMsgBar:Refresh()[/quote:2iyhiusr]
ah, i need :Refresh() <!-- s:idea: --><img src="{SMILIES_PATH}/icon_idea.gif" alt=":idea:" title="Idea" /><!-- s:idea: -->
thx for help |
how does Statusbar or SET MESSAGE work ? | hi,
it does work now ... but after some Time it (automatic) disappear <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: -->
as i want to use Color i have take SET MESSAGE ... but "where" can i put Object "Name" <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: -->
so i use CLASS TMsgBar() Syntax
[code=fw:3fdhrzlm]<div class="fw" id="{CB}" style="font-family: monospace;"> oStatusBar := TMsgBar<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">(</span> oMain, <span style="color: #ff0000;">""</span>,, .T., .T., .T., BFCOLOR, BGCOLOR, oFontSmall, .F., .F., .F., .F., .F. <span style="color: #000000;">)</span></div>[/code:3fdhrzlm]
have use all Parameter which seems to be OK, but why does Message disappear <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: --> |
how does Statusbar or SET MESSAGE work ? | [code=fw:burrjskn]<div class="fw" id="{CB}" style="font-family: monospace;">oStatusBar:<span style="color: #000000;">cMsgDef</span> = <span style="color: #ff0000;">"My message"</span></div>[/code:burrjskn] |
how does Statusbar or SET MESSAGE work ? | hi Enrico,
[quote="Enrico Maria Giordano":ck71wmic][code=fw:ck71wmic]<div class="fw" id="{CB}" style="font-family: monospace;">oStatusBar:<span style="color: #000000;">cMsgDef</span> = <span style="color: #ff0000;">"My message"</span></div>[/code:ck71wmic][/quote:ck71wmic]
YES, that work when set last String also to o:cMsgDef
Question : can you tell me "why" there is a "Timeout" <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: --> |
how i can call drawgrid function? | i not know how call drawgrid functioncan you make a small test in a dialog?i not found cps variable...thanks in advance |
how i can execute a file in ftp? | Hello, i working with ftp fivewin class, after conect how i can execute a file called process.sql in ftp dir?Thanks. |
how is this Control called ? | hi,
when "EditSource" in XBROWSE i got this Control for Type "L"
[img:3q114o83]https://i.postimg.cc/RFsy8jWv/Logical.jpg[/img:3q114o83]
what is the Name of this Control <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: --> |
how is this Control called ? | TSwitch class |
how is this Control called ? | hi,
[quote="vilian":1o5jlggz]TSwitch class[/quote:1o5jlggz]
thx for Answer
nice Control <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> |
how lpressed works? | hi to all, I have this code:
[code=fw:3649chtu]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">RESOURCE</span> <span style="color: #ff0000;">"CHGCLS"</span> <span style="color: #0000ff;">FONT</span> oFont <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Title"</span><br /><br /><span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">GET</span> o_f1 <span style="color: #0000ff;">VAR</span> m_f1 <span style="color: #0000ff;">ID</span> <span style="color: #000000;">101</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">COLOR</span> CLR_BLACK,CLR_GET ;<br /> <span style="color: #0000ff;">PICTURE</span> <span style="color: #ff0000;">"@ !!!!!!!!!!!!!!!"</span><br /> o_get<span style="color: #000000;">[</span><span style="color: #000000;">01</span><span style="color: #000000;">]</span>:<span style="color: #000000;">setfocus</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br />o_get<span style="color: #000000;">[</span><span style="color: #000000;">01</span><span style="color: #000000;">]</span>:<span style="color: #000000;">bLostFocus</span> := <span style="color: #000000;">{</span> || <span style="color: #000000;">(</span> subr01<span style="color: #000000;">(</span>@m_f1,@o_f1,@m_f2,@o_f2, @BtnEsc<span style="color: #000000;">)</span> <span style="color: #000000;">)</span><span style="color: #000000;">}</span><br /><br /><span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">GET</span> o_f2 <span style="color: #0000ff;">VAR</span> m_f2 <span style="color: #0000ff;">ID</span> <span style="color: #000000;">102</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">COLOR</span> CLR_BLACK,CLR_GET ;<br /> <span style="color: #0000ff;">PICTURE</span> <span style="color: #ff0000;">"@ !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"</span><br /><br /><span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">BTNBMP</span> BtnEsc <span style="color: #0000ff;">ID</span> <span style="color: #000000;">2</span> <span style="color: #0000ff;">OF</span> oDlg FILE <span style="color: #ff0000;">"C:<span style="color: #000000;">\c</span>hiudi.BMP"</span> <span style="color: #000000;">2007</span> ;<br /> <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">(</span>oDlg:<span style="color: #000000;">End</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span><br /><br /><span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg ;<br /> <span style="color: #0000ff;">CENTERED</span><br />...<br /><br /><span style="color: #00C800;">FUNCTION</span> subr01<span style="color: #000000;">(</span>m_f1,o_f1,m_f2,o_f2, BtnEsc<span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">if</span> .not. BtnEsc:<span style="color: #000000;">lPressed</span><br /> <span style="color: #0000ff;">msginfo</span><span style="color: #000000;">(</span><span style="color: #ff0000;">"run this function"</span><span style="color: #000000;">)</span><br /><span style="color: #00C800;">endif</span><br /><br /><span style="color: #00C800;">Return</span> <span style="color: #00C800;">Nil</span><br /> </div>[/code:3649chtu]
I would like that when user press TAB and exit from GET m_f1 process goes to FUNCTION subr01 and show msginfo when user do not press BtnEsc BUTTON
I try BtnEsc:lPressed but it is always FALSE
any help is appreciated
thank you
FiveWin for xHarbour 12.01 - Jan. 2012 xHarbour development power
(c) FiveTech, 1993-2012 for Microsoft Windows 9X/NT/200X/ME/XP/Vista/7 |
how lpressed works? | Please try :
[code=fw:11p4dujj]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><br /><span style="color: #00C800;">function</span> main<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><span style="color: #00C800;">local</span> oDlg,cGet := space<span style="color: #000000;">(</span><span style="color: #000000;">20</span><span style="color: #000000;">)</span>, oGet , cGet1 := spac<span style="color: #000000;">(</span><span style="color: #000000;">20</span><span style="color: #000000;">)</span>, oGet1<br /><br /><span style="color: #0000ff;">define</span> <span style="color: #0000ff;">dialog</span> oDlg <span style="color: #0000ff;">from</span> <span style="color: #000000;">1</span>,<span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> <span style="color: #000000;">200</span>,<span style="color: #000000;">200</span> <span style="color: #0000ff;">pixel</span> <span style="color: #0000ff;">title</span> <span style="color: #ff0000;">"Test"</span><br /><br />@ <span style="color: #000000;">1</span>,<span style="color: #000000;">20</span> <span style="color: #0000ff;">get</span> oGet <span style="color: #0000ff;">var</span> cGet <span style="color: #0000ff;">size</span> <span style="color: #000000;">60</span>,<span style="color: #000000;">12</span> <span style="color: #0000ff;">of</span> oDlg <span style="color: #0000ff;">pixel</span> <span style="color: #0000ff;">valid</span> <span style="color: #000000;">(</span> Hello<span style="color: #000000;">(</span>cGet<span style="color: #000000;">)</span>, .t. <span style="color: #000000;">)</span><br /><br />@<span style="color: #000000;">20</span>,<span style="color: #000000;">20</span> <span style="color: #0000ff;">get</span> oGet1 <span style="color: #0000ff;">var</span> cGet1 <span style="color: #0000ff;">size</span> <span style="color: #000000;">60</span>,<span style="color: #000000;">12</span> <span style="color: #0000ff;">of</span> oDlg <span style="color: #0000ff;">pixel</span><br /><br />@<span style="color: #000000;">35</span>,<span style="color: #000000;">20</span> <span style="color: #0000ff;">button</span> oBtnCancel <span style="color: #0000ff;">prompt</span> <span style="color: #ff0000;">"Exit"</span> <span style="color: #0000ff;">action</span> oDlg:<span style="color: #000000;">End</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #0000ff;">pixel</span><br /><br /><span style="color: #0000ff;">activate</span> <span style="color: #0000ff;">dialog</span> oDlg <span style="color: #0000ff;">centered</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span> <br /><br /><span style="color: #00C800;">static</span> <span style="color: #00C800;">function</span> Hello<span style="color: #000000;">(</span>cGet<span style="color: #000000;">)</span><br />?<span style="color: #ff0000;">"Hello "</span>+cGet<br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /> </div>[/code:11p4dujj]
Best Regards
Fafi |
how lpressed works? | thank you Fafi, but how can I to check in "static function Hello" if BtnEsc was pressed ?
ciao |
how lpressed works? | declare a lPressed := .F. variable then do
REDEFINE BTNBMP BtnEsc ID 2 OF oDlg FILE "C:\chiudi.BMP" 2007 ;
ACTION ( lPressed := .T., oDlg:End()) |
how lpressed works? | You can also check oDlg:nResult:
activate dialog oDlg centered
MsgInfo( oDlg:nResult )
and you can also disable Esc to close dialogs:
SetDialogEsc( .F. ) |
how lpressed works? | [quote="damianodec":3qo1ub1i]thank you Fafi, but how can I to check in "static function Hello" if BtnEsc was pressed ?
ciao[/quote:3qo1ub1i]
[code=fw:3qo1ub1i]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><br /><span style="color: #00C800;">static</span> lExit<br /><br /><span style="color: #00C800;">function</span> main<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">local</span> oDlg,cGet := space<span style="color: #000000;">(</span><span style="color: #000000;">20</span><span style="color: #000000;">)</span>, oGet , cGet1 := spac<span style="color: #000000;">(</span><span style="color: #000000;">20</span><span style="color: #000000;">)</span>, oGet1<br /><br />lExit := .f.<br /><br /><span style="color: #0000ff;">define</span> <span style="color: #0000ff;">dialog</span> oDlg <span style="color: #0000ff;">from</span> <span style="color: #000000;">1</span>,<span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> <span style="color: #000000;">200</span>,<span style="color: #000000;">200</span> <span style="color: #0000ff;">pixel</span> <span style="color: #0000ff;">title</span> <span style="color: #ff0000;">"Test"</span><br /><br />@ <span style="color: #000000;">1</span>,<span style="color: #000000;">20</span> <span style="color: #0000ff;">get</span> oGet <span style="color: #0000ff;">var</span> cGet <span style="color: #0000ff;">size</span> <span style="color: #000000;">60</span>,<span style="color: #000000;">12</span> <span style="color: #0000ff;">of</span> oDlg <span style="color: #0000ff;">pixel</span> <span style="color: #0000ff;">valid</span> <span style="color: #000000;">(</span> Hello<span style="color: #000000;">(</span>cGet<span style="color: #000000;">)</span>, .t. <span style="color: #000000;">)</span><br /><br />@<span style="color: #000000;">20</span>,<span style="color: #000000;">20</span> <span style="color: #0000ff;">get</span> oGet1 <span style="color: #0000ff;">var</span> cGet1 <span style="color: #0000ff;">size</span> <span style="color: #000000;">60</span>,<span style="color: #000000;">12</span> <span style="color: #0000ff;">of</span> oDlg <span style="color: #0000ff;">pixel</span><br /><br />@<span style="color: #000000;">35</span>,<span style="color: #000000;">20</span> <span style="color: #0000ff;">button</span> oBtnCancel <span style="color: #0000ff;">prompt</span> <span style="color: #ff0000;">"Exit"</span> <span style="color: #0000ff;">action</span> ToExit<span style="color: #000000;">(</span>oDlg<span style="color: #000000;">)</span> <span style="color: #0000ff;">pixel</span><br /><br /><span style="color: #0000ff;">activate</span> <span style="color: #0000ff;">dialog</span> oDlg <span style="color: #0000ff;">centered</span> <span style="color: #0000ff;">valid</span> lExit<br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span> <br /><br /><span style="color: #00C800;">static</span> <span style="color: #00C800;">function</span> Hello<span style="color: #000000;">(</span>cGet<span style="color: #000000;">)</span><br /><span style="color: #00C800;">if</span> !empty<span style="color: #000000;">(</span>cGet<span style="color: #000000;">)</span><br /> ?<span style="color: #ff0000;">"Hello "</span>+cGet<br /><span style="color: #00C800;">endif</span> <br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #00C800;">static</span> <span style="color: #00C800;">function</span> ToExit<span style="color: #000000;">(</span>oDlg<span style="color: #000000;">)</span><br /><br />lExit := .t.<br /><br />oDlg:<span style="color: #000000;">End</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /> </div>[/code:3qo1ub1i]
Fafi |
how lpressed works? | thank you fafi and Antonio |
how many of you are interested in a 2 pass pp/compiling tool | Hi group,
i'm new to this forum and would like to share a tool and batch script that makes the 'Fatal C3048 Preprocessor table overflow' error a thing of the past <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
the script performs a 2 pass preprocessing/postprocessing and final compilation cycle; the 1st pass is done by a version of the xHarbour compiler (but used as preprocessor), then the ppo output is postprocessed into a new prg file, which doesn't contain any preprocessing still to be done, so that the Ca-Clipper compiler can always compile fine without the 'Fatal C3048 Preprocessor table overflow' error
the postprocessing tool is a ca-clipper program which does the job fine, but it's only a beta
please, if you're interested, leave a message
looking forward to participate in this forum <!-- s:roll: --><img src="{SMILIES_PATH}/icon_rolleyes.gif" alt=":roll:" title="Rolling Eyes" /><!-- s:roll: -->
frank |
how many of you are interested in a 2 pass pp/compiling tool | That damn Fatal C3048 Preprocessor table overflow' error. |
how many of you are interested in a 2 pass pp/compiling tool | i'm having difficult to keep my login at this site; pls provide a return address at my private address lohen... so i can send you the files - i'm glad to be of assistance <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> |
how open database INTERNET VIA ADO ? | how open database INTERNET VIA ADO ?
thanks everybody..
mauricio |
how open database INTERNET VIA ADO ? | In order to conect a remote dabase you only need to know the IP address of the remote server. Also you may need to cofigure the remote server to open and forward the needed ports in the router. In your source code, just change the String connection with the correct IP:
Let`s asume for these samples that the IP Address in the remote server over internet is 200.67.137.11
For SQL Server, the string connection should look like this
"provider=SQLOLEDB;server=200.67.137.11;database=SISTEMAS;uid=jorge;pwd=jcm"
For Advantage Databas Server:
"Provider=Advantage.OLEDB.1;User ID=adssys;Data Source= \\200.67.137.11:2001\fwapps\klm\agentperformance.add;Persist Security Info=False;ServerType=ADS_INTERNETL_SERVER"
For MySQL:
"DRIVER={MySQL ODBC 3.51 Driver}; SERVER=200.67.137.11; DATABASE=garis;UID=root;PWD=18167231"
All the rest remains the same, not need to change anything in your source code (ADO rules <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> ).
In some cases, if you have Internet Name Resolution available in the client machine, you may use a Domain name instead of the IP address, this is very useful if you don't have a fixed IP, for these you may use services as <!-- w --><a class="postlink" href="http://www.dns2go.com">www.dns2go.com</a><!-- w --> or <!-- w --><a class="postlink" href="http://www.noip.com">www.noip.com</a><!-- w --> |
how open database INTERNET VIA ADO ? | thanks renee
but Where can Find Strings for ConneCCtion. ?
Thanks Again.. |
how open database INTERNET VIA ADO ? | [url:tun09cnv]http://www.connectionstrings.com[/url:tun09cnv]
EMG |
how open database INTERNET VIA ADO ? | thanks for help me , my friends..
But My problem Now is Other..
What the Better Class "LISTBOX" to change ADO Connection. ?
Thanks Again |
how open database INTERNET VIA ADO ? | To change?
EMG |
how open database INTERNET VIA ADO ? | I Try TCBROWSE bUT I HAVE Change TWBROWSE too... |
how open database INTERNET VIA ADO ? | You can use whatever browse you want.
EMG |
how open database INTERNET VIA ADO ? | how using whatever browse ?
thanks enrico |
how open database INTERNET VIA ADO ? | This is a sample with MSDE using TWBrowse and TCBrowse:
[code:w1ie1z59]#include "Fivewin.ch"
#include "Tcbrowse.ch"
FUNCTION MAIN()
LOCAL oRs, oErr
oRs = CREATEOBJECT( "ADODB.Recordset" )
TRY
oRs:Open( "SELECT * FROM T_Utenti ORDER BY Utente", "Provider=SQLOLEDB;Integrated Security=SSPI;Data Source=EMAG\Emag;Initial Catalog=Quadro", 1, 3 )
CATCH oErr
? oErr:Description
RETURN NIL
END TRY
WBROWSERECORDSET( oRs )
TCBROWSERECORDSET( oRs )
oRs:Close()
RETURN NIL
STATIC FUNCTION WBROWSERECORDSET( oRs )
LOCAL oDlg, oBrw
DEFINE DIALOG oDlg SIZE 300, 300
@ 0, 0 LISTBOX oBrw FIELDS oRs:Fields( "Utente" ):Value;
HEADERS "UTENTI";
ON RIGHT CLICK oBrw:Report( "TWBrowse report", .T. )
oBrw:bLogicLen = { || oRs:RecordCount }
oBrw:bGoTop = { || oRs:MoveFirst() }
oBrw:bGoBottom = { || oRs:MoveLast() }
oBrw:bSkip = { | nSkip | Skipper( oRs, nSkip ) }
oBrw:cAlias = "ARRAY"
ACTIVATE DIALOG oDlg;
ON INIT oDlg:SetControl( oBrw );
CENTER
RETURN NIL
STATIC FUNCTION TCBROWSERECORDSET( oRs )
LOCAL oDlg, oBrw, oCol
DEFINE DIALOG oDlg SIZE 300, 300
@ 0, 0 BROWSE oBrw;
ON RIGHT CLICK oBrw:Report( "TCBrowse report", .T. )
ADD COLUMN TO oBrw;
DATA oRs:Fields( "Utente" ):Value;
HEADER "UTENTI";
COLOR CLR_RED, CLR_GREEN
ADD COLUMN TO oBrw;
DATA oRs:Fields( "Utente" ):Value;
HEADER "UTENTI";
COLOR CLR_RED, CLR_GREEN
oBrw:lCellStyle = .T.
oBrw:bLogicLen = { || oRs:RecordCount }
oBrw:bGoTop = { || oRs:MoveFirst() }
oBrw:bGoBottom = { || oRs:MoveLast() }
oBrw:bSkip = { | nSkip | Skipper( oRs, nSkip ) }
oBrw:cAlias = "ARRAY"
ACTIVATE DIALOG oDlg;
ON INIT oDlg:SetControl( oBrw );
CENTER
RETURN NIL
STATIC FUNCTION SKIPPER( oRs, nSkip )
LOCAL nRec := oRs:AbsolutePosition
oRs:Move( nSkip )
IF oRs:EOF; oRs:MoveLast(); ENDIF
IF oRs:BOF; oRs:MoveFirst(); ENDIF
RETURN oRs:AbsolutePosition - nRec[/code:w1ie1z59]
EMG |
how open database INTERNET VIA ADO ? | thanks enrico |
how open database INTERNET VIA ADO ? | Thanks Enrico..
When I Insert new ReC IN TABLE , THE REGISTRY DON´T POSITION FOR BY ORDER ..
DO YOU KNOW ABOUT THIS?
I´M USING
::ADDNEW()
::alias:fields(value1):value := value2
::UPDATE()
BUT THE NEW REGISTRY DON´T CONRRECT POSITION BY ORDER;..
THANKS AGAIN ,
MAURICIO (BRASIL) |
how open database INTERNET VIA ADO ? | You have to use Requery() method followed by Find() method (to reposition the record pointer on the right record).
EMG |
how open database INTERNET VIA ADO ? | i will try
thanks enrico |
how open database INTERNET VIA ADO ? | thanks thanks , enrico ..
Your Help are very help me...
If tou permission only Ask ...
You Can Explain me As Delete Records and Align by order ?
Thanks Again |
how open database INTERNET VIA ADO ? | Please rephrase your question. I don't understand.
EMG |
how open database INTERNET VIA ADO ? | When i delete records , the position are don´t correct order LISTBOX ..
You have Samples As delete records and position correct LISTBOX
thanks enrico per attention..
mauricio |
how open database INTERNET VIA ADO ? | [code:2k3886gf]oRs:Delete()
oRs:MoveNext()
IF oRs:EOF; oRs:MovePrevious(); ENDIF[/code:2k3886gf]
EMG |
how open database INTERNET VIA ADO ? | thanks again enrico |
how print JPEG via TPRINT | Hi Friends , someone knows print JPEG with TPRINT or Other Class ?
thanks mauricio |
how print JPEG via TPRINT | Hi
you can use new Image within Freeimage to modify your Tprinter.prg code. Very Nice.
[img]
<img src="http://img91.imageshack.us/img91/8131/clip12wh.th.jpg" border="0">[/img]
Regards,
Richard |
how print JPEG via TPRINT | Sorry.
<a href="http://img91.imageshack.us/my.php?image=clip12wh.jpg" target="_blank"><img src="http://img91.imageshack.us/img91/8131/clip12wh.th.jpg" border="0" alt="Free Image Hosting at <!-- w --><a class="postlink" href="http://www.ImageShack.us">www.ImageShack.us</a><!-- w -->" /></a> |
how print JPEG via TPRINT | thanks , my friend
i will test OK
thanks again |
how store Image into Database | hi,
i want to "store" Image into Database
Question :
which Type for DBF ? "M" or "V" or ?
which Type for SQL ? "BLOB" or ?
when store "Image" into
DBF using HEX or MEMOREAD ?
SQL using HEX with "pre-FIX" ?
when XBROWSEr / EDIT how to prevent FIELD from "type into" Image FIELD ... how to "Drop into" ?
which \Sample can show me how to begin under Fivewin <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: --> |
how store Image into Database | If you are using DBF via DBFCDX, use memo fields. ( DataType 'M' )
If you are using any RDMS use BLOB fields.
DBF:
[code=fw:o3sst2l3]<div class="fw" id="{CB}" style="font-family: monospace;">FIELD->IMAGE := MEMOREAD<span style="color: #000000;">(</span> <span style="color: #ff0000;">"picture.jpg"</span> <span style="color: #000000;">)</span></div>[/code:o3sst2l3]
RDBMS:
[code=fw:o3sst2l3]<div class="fw" id="{CB}" style="font-family: monospace;">oRs:<span style="color: #0000ff;">image</span> := MEMOREAD<span style="color: #000000;">(</span> <span style="color: #ff0000;">"picture.jpg"</span> <span style="color: #000000;">)</span></div>[/code:o3sst2l3]
If you are browsing in XBrowse, you can copy image from any source and paste into the cell.
This works for all datasources, viz, dbf, tdatabase, ado, fwmysql, dolphin, tmysql, postgre, arrays, etc. |
how store Image into Database | If you are using DBF via DBFCDX, use memo fields. ( DataType 'M' )
If you are using any RDMS use BLOB fields.
DBF:
[code=fw:153gbf68]<div class="fw" id="{CB}" style="font-family: monospace;">FIELD->IMAGE := MEMOREAD<span style="color: #000000;">(</span> <span style="color: #ff0000;">"picture.jpg"</span> <span style="color: #000000;">)</span></div>[/code:153gbf68]
RDBMS:
[code=fw:153gbf68]<div class="fw" id="{CB}" style="font-family: monospace;">oRs:<span style="color: #0000ff;">image</span> := MEMOREAD<span style="color: #000000;">(</span> <span style="color: #ff0000;">"picture.jpg"</span> <span style="color: #000000;">)</span></div>[/code:153gbf68]
If you are browsing in XBrowse, you can copy image from any source and paste into the cell.
This works for all datasources, viz, dbf, tdatabase, ado, fwmysql, dolphin, tmysql, postgre, arrays, etc. |
how store Image into Database | hi,
thx for Answer
[quote="nageswaragunupudi":3qpbwgpu]This works for all datasources, viz, dbf, tdatabase, ado, fwmysql, dolphin, tmysql, postgre, arrays, etc.[/quote:3qpbwgpu]
found out
when want to use Postgre i NEED to use TPQserver / TPQquery as it is "hardcode" in Source
[code=fw:3qpbwgpu]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">METHOD</span> Load<span style="color: #000000;">(</span> lBlank <span style="color: #000000;">)</span> <span style="color: #00C800;">CLASS</span> TDataRow<br /><br /> ELSEIF VALTYPE<span style="color: #000000;">(</span> ::<span style="color: #000000;">uSource</span> <span style="color: #000000;">)</span> == <span style="color: #ff0000;">'O'</span><br /> <span style="color: #00C800;">IF</span> ::<span style="color: #000000;">uSource</span>:<span style="color: #000000;">ClassName</span> == <span style="color: #ff0000;">"TOLEAUTO"</span><br /> ... <br /> ELSEIF ::<span style="color: #000000;">uSource</span>:<span style="color: #000000;">IsKindOf</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">'TDOLPHINQRY'</span> <span style="color: #000000;">)</span><br /> ELSEIF ::<span style="color: #000000;">uSource</span>:<span style="color: #000000;">IsKindOf</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"TMSQUERY"</span> <span style="color: #000000;">)</span><br /> ELSEIF ::<span style="color: #000000;">uSource</span>:<span style="color: #000000;">IsKindOf</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"TPQQUERY"</span> <span style="color: #000000;">)</span><br /> ELSEIF ::<span style="color: #000000;">uSource</span>:<span style="color: #000000;">IsKindOf</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"TXBROWSE"</span> <span style="color: #000000;">)</span><br /> ELSEIF VALTYPE<span style="color: #000000;">(</span> ::<span style="color: #000000;">uSource</span> <span style="color: #000000;">)</span> $ <span style="color: #ff0000;">'AH'</span></div>[/code:3qpbwgpu]
so i have to revise my CODE to use these CLASS to work with Fivewin Controls |
how to exchange data between online and offline | Hello,
How should we organize the exchange of data between online and offline.
SQL Transfer or FTP?
Thank you in advance
Otto |
how to exchange data between online and offline | Dear Antonio,
When mod harbour servers are ready, how do you suggest to upload data from desktop to the server?
Best regards
Otto |
how to exchange data between online and offline | Dear Otto,
SFTP or SSH
You can use midnight commander to easily do it <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> |
how to exchange data between online and offline | Dear Antonio,
Thank you.
What is if FTP is blocked.
I ask, as in many cases, sysadmins block FTP at the customer side.
Are there other ways. HTTP?
Thank you and best regards
Otto |
how to exchange data between online and offline | Yes, http can be used too
Please review mod_harbour\samples\sendfile.prg |
how to exchange data between online and offline | Here is a broader consideration.
Some commercial applications are synchronized with the online database. That means the data pool exists on both the cloud server, and the local machine. If an internet connection is lost, the user continues to work on the local machine / data, but when the connection resumes, the data is automatically synchronized. In this scenario, the actual forms, etc, are maintained on the local machine ( app ), but the data is maintained in the cloud.
IMO, when we can accomplish this, we truly add deep value to our offerings. |
how to exchange data between online and offline | If we are talking about a web app then "local storage" limitations apply:
[url:kutz8ql9]https://stackoverflow.com/questions/2989284/what-is-the-max-size-of-localstorage-values[/url:kutz8ql9] |
how to ""Set"" Image on TFolderEx() ? | Using BitMaps 16x16 in large folderex:
[url:21u35tox]https://imgur.com/apziN3X[/url:21u35tox]
[img:21u35tox]https://i.imgur.com/apziN3X.png[/img:21u35tox]
Regards, saludos |
how to ""Set"" Image on TFolderEx() ? | hi
thx for Answer.
i do create TAB of FOLDEREX in a Loop using OOP CODE
now i want to "switch" Icon of TAB depend on "active"
[code=fw:1sv07ws0]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">LOCAL</span> nOption := oTab:<span style="color: #000000;">nOption</span><br /><span style="color: #00C800;">LOCAL</span> nTabs := LEN<span style="color: #000000;">(</span> oTab:<span style="color: #000000;">aBitmaps</span> <span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">FOR</span> ii := <span style="color: #000000;">1</span> <span style="color: #0000ff;">TO</span> nTabs<br /> <span style="color: #00C800;">IF</span> ii = nOption<br /> oTab:<span style="color: #000000;">SetBitmap</span><span style="color: #000000;">(</span> ´MYACTIVE´, nOption <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">ELSE</span><br /> oTab:<span style="color: #000000;">SetBitmap</span><span style="color: #000000;">(</span> ´MYTRANSPARENT´, ii <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">ENDIF</span><br /> oTab:<span style="color: #0000ff;">Update</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">NEXT</span></div>[/code:1sv07ws0]
it seem to work but i´m not sure if i need to "destroy" Bitmap before o:SetBitmap() <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: --> |
how to ""Set"" Image on TFolderEx() ? | hi,
my App often crash at Start when "Set" Image on TFolderEx() <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: -->
it does fail on "destroy" Image of TFolderEx() ...
[quote:3hpjx5jq]Called from (b)ERRORSYS(24) in .\source\function\ERRSYSW.PRG
Called from (b)FWDELRESOURCE(36) in .\source\function\CHECKRES.PRG
Called from ASCAN(0)
Called from FWDELRESOURCE(36) in .\source\function\CHECKRES.PRG
Called from DELETEOBJECT(0)
Called from GRADIENTBRUSH(815) in .\source\classes\BRUSH.PRG
Called from TFOLDEREX:SETFLDCOLORS(1695) in .\source\classes\TFOLDEX.PRG
Called from (b)TFOLDEREX_NEW(214) in .\source\classes\TFOLDEX.PRG
Called from TFOLDEREX:PAINTTB(1477) in .\source\classes\TFOLDEX.PRG
Called from TFOLDEREX:PAINT(1202) in .\source\classes\TFOLDEX.PRG
Called from (b)TFOLDEREX(121) in .\source\classes\TFOLDEX.PRG
Called from TFOLDEREX:DISPLAY(0) in .\source\classes\TFOLDEX.PRG
Called from TCONTROL:HANDLEEVENT(1823) in .\source\classes\CONTROL.PRG
Called from TFOLDEREX:HANDLEEVENT(997) in .\source\classes\TFOLDEX.PRG
Called from _FWH(3681) in .\source\classes\WINDOW.PRG
Called from WINRUN(0)
Called from TWINDOW:ACTIVATE(1114) in .\source\classes\WINDOW.PRG
Called from MAIN(878) in .\DUALGRID.PRG[/quote:3hpjx5jq]
[quote:3hpjx5jq] Called from: .\source\function\CHECKRES.PRG => (b)FWDELRESOURCE( 36 )
Called from: => ASCAN( 0 )
Called from: .\source\function\CHECKRES.PRG => FWDELRESOURCE( 36 )
Called from: => DELETEOBJECT( 0 )
Called from: .\source\classes\BRUSH.PRG => GRADIENTBRUSH( 815 )
Called from: .\source\classes\TFOLDEX.PRG => TFOLDEREX:SETFLDCOLORS( 1695 )
Called from: .\source\classes\TFOLDEX.PRG => (b)TFOLDEREX_NEW( 214 )
Called from: .\source\classes\TFOLDEX.PRG => TFOLDEREX:PAINTTB( 1477 )
Called from: .\source\classes\TFOLDEX.PRG => TFOLDEREX:PAINT( 1202 )
Called from: .\source\classes\TFOLDEX.PRG => (b)TFOLDEREX( 121 )
Called from: .\source\classes\TFOLDEX.PRG => TFOLDEREX:DISPLAY( 0 )
Called from: .\source\classes\CONTROL.PRG => TCONTROL:HANDLEEVENT( 1823 )
Called from: .\source\classes\TFOLDEX.PRG => TFOLDEREX:HANDLEEVENT( 997 )
Called from: .\source\classes\WINDOW.PRG => _FWH( 3681 )
Called from: => WINRUN( 0 )
Called from: .\source\classes\WINDOW.PRG => TWINDOW:ACTIVATE( 1114 )
Called from: .\DUALGRID.PRG => MAIN( 878 )[/quote:3hpjx5jq]
not sure "where" i got the Error <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: -->
---
DUALGRID can use "multi" TAB. now it "store" all TAB and "restore" them at Start
since that Point i got the "Problem" but most it did work without Problem ...
any Idea what i can search for <!-- s:idea: --><img src="{SMILIES_PATH}/icon_idea.gif" alt=":idea:" title="Idea" /><!-- s:idea: -->
need some help please |
how to ""Set"" Image on TFolderEx() ? | [code=fw:31gaeqn9]<div class="fw" id="{CB}" style="font-family: monospace;"><br /> <span style="color: #B900B9;">/*<br /> LOCAL aBitmaps := { "C:\FWH\bitmaps\32x32\users.bmp", ;<br /> "C:\FWH\bitmaps\32x32\delete.bmp", ;<br /> "C:\FWH\bitmaps\32x32\fivetech.bmp", ;<br /> "C:\FWH\bitmaps\32x32\quit.bmp", }<br /> */</span><br /><br /><br /> @ <span style="color: #000000;">3</span>, <span style="color: #000000;">3</span> FOLDEREX oFld <span style="color: #0000ff;">PIXEL</span> STRETCH ;<br /> <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"&Cadastro"</span>, <span style="color: #ff0000;">"Futuro"</span> ;<br /> TAB HEIGHT <span style="color: #000000;">35</span> <span style="color: #0000ff;">ROUND</span> <span style="color: #000000;">5</span> ;<br /> <span style="color: #0000ff;">BITMAPS</span> <span style="color: #ff0000;">"FERRARI"</span>, <span style="color: #ff0000;">"FERRARI2"</span> ; <span style="color: #B900B9;">// 32 x 32</span><br /> TOP ALIGN FLDBMP_LEFT, FLDBMP_LEFT ;<br /> OPTION <span style="color: #000000;">1</span> ;<br /> <span style="color: #0000ff;">COLOR</span> CLR_AzulDark <span style="color: #0000ff;">FONT</span> oFont<br /><br /> oFld:<span style="color: #000000;">nLayOut</span> := <span style="color: #000000;">1</span> <span style="color: #B900B9;">//2 -> LEFT</span><br /><br /> oFld:<span style="color: #000000;">aEnable</span><span style="color: #000000;">[</span><span style="color: #000000;">2</span><span style="color: #000000;">]</span> := .F.<br /> </div>[/code:31gaeqn9]
Regards, saludos. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.