messages
listlengths 1
1
| topic
stringlengths 2
60
|
|---|---|
[
{
"date": "2023-07-31",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Dear Michel,\n\nAccording to google Bard it can be done this way:\n[code=fw:3961x1c1]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00D7D7;\">#include</span> <windows.h><br /><br />int main<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">{</span><br /> <span style=\"color: #B900B9;\">// Get the handle of the Word application.</span><br /> HWND word_app = FindWindow<span style=\"color: #000000;\">(</span>L<span style=\"color: #ff0000;\">\"Word.Application\"</span>, <span style=\"color: #00C800;\">NULL</span><span style=\"color: #000000;\">)</span>;<br /><br /> <span style=\"color: #B900B9;\">// Get the handle of the macjuda.dot file.</span><br /> HMODULE macjuda_dot = LoadLibrary<span style=\"color: #000000;\">(</span>L<span style=\"color: #ff0000;\">\"macjuda.dot\"</span><span style=\"color: #000000;\">)</span>;<br /><br /> <span style=\"color: #B900B9;\">// Disconnect the macjuda.dot file from Word.</span><br /> DisconnectObject<span style=\"color: #000000;\">(</span>word_app, macjuda_dot<span style=\"color: #000000;\">)</span>;<br /><br /> <span style=\"color: #00C800;\">return</span> <span style=\"color: #000000;\">0</span>;<br /><span style=\"color: #000000;\">}</span></div>[/code:3961x1c1]",
"time": "06:56",
"topic": "Another Question about FWH and Word",
"username": "Antonio Linares"
}
] |
Another Question about FWH and Word
|
[
{
"date": "2023-08-10",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Antonio,\n\nUnfortunately, I wasn't able to use your suggestion because I got a lot of errors.\n\nBut maybe I can solve it is you can help me to transate this VBA-sentence into FWH :[code=fw:2yug2lcp]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">AddIns<span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"C:<span style=\"color: #000000;\">\\U</span>sers<span style=\"color: #000000;\">\\M</span>ichel<span style=\"color: #000000;\">\\A</span>ppData<span style=\"color: #000000;\">\\R</span>oaming<span style=\"color: #000000;\">\\M</span>icrosoft<span style=\"color: #000000;\">\\W</span>ord<span style=\"color: #000000;\">\\S</span>TARTUP<span style=\"color: #000000;\">\\M</span>acJuda.dotm\"</span><span style=\"color: #000000;\">)</span>.Installed = <span style=\"color: #00C800;\">False</span></div>[/code:2yug2lcp]Any idea?\n\nThanks a lot in advance.",
"time": "16:11",
"topic": "Another Question about FWH and Word",
"username": "driessen"
}
] |
Another Question about FWH and Word
|
[
{
"date": "2023-08-11",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Dear Michel,\n\nchatgpt proposes this code, not sure if it will work as expected. You can easily port it to FWH\n[code=fw:1hc9zhrq]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00D7D7;\">#include</span> <stdio.h><br /><span style=\"color: #00D7D7;\">#include</span> <windows.h><br /><br />int main<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">{</span><br /> HKEY hKey;<br /> const char *regPath = <span style=\"color: #ff0000;\">\"Software<span style=\"color: #000000;\">\\\\</span>Microsoft<span style=\"color: #000000;\">\\\\</span>Office<span style=\"color: #000000;\">\\\\</span>Word<span style=\"color: #000000;\">\\\\</span>Addins<span style=\"color: #000000;\">\\\\</span>MacJuda.dotm\"</span>;<br /> <br /> <span style=\"color: #00C800;\">if</span> <span style=\"color: #000000;\">(</span>RegOpenKeyEx<span style=\"color: #000000;\">(</span>HKEY_CURRENT_USER, regPath, <span style=\"color: #000000;\">0</span>, KEY_WRITE, &hKey<span style=\"color: #000000;\">)</span> == ERROR_SUCCESS<span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">{</span><br /> DWORD value = <span style=\"color: #000000;\">0</span>;<br /> <span style=\"color: #00C800;\">if</span> <span style=\"color: #000000;\">(</span>RegSetValueEx<span style=\"color: #000000;\">(</span>hKey, <span style=\"color: #ff0000;\">\"Installed\"</span>, <span style=\"color: #000000;\">0</span>, REG_DWORD, <span style=\"color: #000000;\">(</span>const BYTE*<span style=\"color: #000000;\">)</span>&value, sizeof<span style=\"color: #000000;\">(</span>DWORD<span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span> == ERROR_SUCCESS<span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">{</span><br /> printf<span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"Value 'Installed' set to False.<span style=\"color: #000000;\">\\n</span>\"</span><span style=\"color: #000000;\">)</span>;<br /> <span style=\"color: #000000;\">}</span> <span style=\"color: #00C800;\">else</span> <span style=\"color: #000000;\">{</span><br /> printf<span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"Error setting value.<span style=\"color: #000000;\">\\n</span>\"</span><span style=\"color: #000000;\">)</span>;<br /> <span style=\"color: #000000;\">}</span><br /> RegCloseKey<span style=\"color: #000000;\">(</span>hKey<span style=\"color: #000000;\">)</span>;<br /> <span style=\"color: #000000;\">}</span> <span style=\"color: #00C800;\">else</span> <span style=\"color: #000000;\">{</span><br /> printf<span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"Error opening registry key.<span style=\"color: #000000;\">\\n</span>\"</span><span style=\"color: #000000;\">)</span>;<br /> <span style=\"color: #000000;\">}</span><br /> <br /> <span style=\"color: #00C800;\">return</span> <span style=\"color: #000000;\">0</span>;<br /><span style=\"color: #000000;\">}</span><br /> </div>[/code:1hc9zhrq]",
"time": "05:35",
"topic": "Another Question about FWH and Word",
"username": "Antonio Linares"
}
] |
Another Question about FWH and Word
|
[
{
"date": "2023-08-11",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Atonio,\n\nThank you for your efforts.\n\nUnfortunately, this isn't working.",
"time": "10:04",
"topic": "Another Question about FWH and Word",
"username": "driessen"
}
] |
Another Question about FWH and Word
|
[
{
"date": "2009-04-14",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Dragging the horizontal thumb to the very right or left will cause a msgalert(\"1\") to appear.\n[img:3gc7emcj]http://img518.imageshack.us/img518/1183/xbrowse.jpg[/img:3gc7emcj]",
"time": "03:16",
"topic": "Another bug in 9.04's xbrowse",
"username": "hua"
}
] |
Another bug in 9.04's xbrowse
|
[
{
"date": "2009-04-15",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Tested using \\fwh\\samples\\testxbr3.prg with FWH 9.04 15th Apr. Still happens.\n\nMaybe this short video capture can show it better, <!-- m --><a class=\"postlink\" href=\"http://screencast.com/t/O7Rq5WHP\">http://screencast.com/t/O7Rq5WHP</a><!-- m -->",
"time": "03:26",
"topic": "Another bug in 9.04's xbrowse",
"username": "hua"
}
] |
Another bug in 9.04's xbrowse
|
[
{
"date": "2009-04-15",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Yes. This alert pops up even when we click on the horizontal thumbpos. There is no problem with vertical scroll bar",
"time": "05:12",
"topic": "Another bug in 9.04's xbrowse",
"username": "nageswaragunupudi"
}
] |
Another bug in 9.04's xbrowse
|
[
{
"date": "2009-04-15",
"forum": "FiveWin for Harbour/xHarbour",
"text": "This problem started with version 9.03. version 9.02 works fine.",
"time": "05:32",
"topic": "Another bug in 9.04's xbrowse",
"username": "nageswaragunupudi"
}
] |
Another bug in 9.04's xbrowse
|
[
{
"date": "2009-04-15",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Here is the bug\nPlease see line 2119 of XBrowse.Prg ( Method SelectCol( ... ) )\n[code=fw:2i8rss4v]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">? ::<span style=\"color: #000000;\">nColSel</span> := <span style=\"color: #0000ff;\">Min</span><span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">nColSel</span>, ::<span style=\"color: #000000;\">LastDisplayPos</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span><br /> </div>[/code:2i8rss4v]\nIt is the inadvertant typing of \"?\" in the beginning of the line that is causing this problem.\nPlease remove this \"?\" at the beginning of the line and recompile. \nThat is the fix for this bug.",
"time": "06:01",
"topic": "Another bug in 9.04's xbrowse",
"username": "nageswaragunupudi"
}
] |
Another bug in 9.04's xbrowse
|
[
{
"date": "2009-04-15",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Yes! Thanks NageswaraRao! \n\nActually, what's the correct short-form for your name <!-- s:) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":)\" title=\"Smile\" /><!-- s:) --> ? Is it Nages?",
"time": "07:09",
"topic": "Another bug in 9.04's xbrowse",
"username": "hua"
}
] |
Another bug in 9.04's xbrowse
|
[
{
"date": "2009-04-15",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Rao,\n\nFixed, thanks <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->\n\nWe have just published a new FWH 9.04 build.",
"time": "09:45",
"topic": "Another bug in 9.04's xbrowse",
"username": "Antonio Linares"
}
] |
Another bug in 9.04's xbrowse
|
[
{
"date": "2009-04-15",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Mr Hua\n\n>\nwhat's the correct short-form for your name ? Is it Nages?\n>\nYou may address me as Rao, or Nageswar.",
"time": "10:49",
"topic": "Another bug in 9.04's xbrowse",
"username": "nageswaragunupudi"
}
] |
Another bug in 9.04's xbrowse
|
[
{
"date": "2009-04-16",
"forum": "FiveWin for Harbour/xHarbour",
"text": "[quote=\"nageswaragunupudi\":2j46ocj1]Mr Hua\nYou may address me as Rao, or Nageswar.[/quote:2j46ocj1]\n\nOk Mr Rao <!-- s:) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":)\" title=\"Smile\" /><!-- s:) --> Thanks again.",
"time": "02:18",
"topic": "Another bug in 9.04's xbrowse",
"username": "hua"
}
] |
Another bug in 9.04's xbrowse
|
[
{
"date": "2007-04-21",
"forum": "FiveWin for Harbour/xHarbour",
"text": "[code:or4jtkan]#include \"Fivewin.ch\"\n\n\nFUNCTION MAIN()\n\n LOCAL oDlg, oBrw\n\n USE TEST\n\n DEFINE DIALOG oDlg\n\n @ 0, 0 LISTBOX oBrw FIELDS\n\n ACTIVATE DIALOG oDlg;\n ON INIT oDlg:SetControl( oBrw );\n CENTER\n\n CLOSE\n\n RETURN NIL[/code:or4jtkan]\n\nTry to press PAGEDOWN and then PAGEUP: the scrollbar should go back to the top but it doesn't.\n\nEMG",
"time": "10:46",
"topic": "Another bug in TWBrowse scrollbar",
"username": "Enrico Maria Giordano"
}
] |
Another bug in TWBrowse scrollbar
|
[
{
"date": "2007-04-21",
"forum": "FiveWin for Harbour/xHarbour",
"text": "[code:7yhll7jz]METHOD PageUp( nLines ) CLASS TWBrowse\n\n local nSkipped\n\n DEFAULT nLines := ::nRowCount()\n\n nSkipped = ::Skip( -nLines )\n\n if ( ::nLen := Eval( ::bLogicLen, Self ) ) < 1\n return nil\n endif\n\n if ! ::lHitTop\n if nSkipped == 0\n ::lHitTop = .t.\n else\n ::lHitBottom = .f.\n if -nSkipped < nLines\n ::nRowPos = 1\n if ::oVScroll != nil\n ::VSetPos( 1 )\n endif\n else\n\n //nSkipped = ::Skip( -nLines )\n //::Skip( -nSkipped )[/code:7yhll7jz]\n\nCommenting out those last two statements seems to solve the problem but I'm not sure if this is the right fix. Antonio, please review.\n\nEMG",
"time": "12:23",
"topic": "Another bug in TWBrowse scrollbar",
"username": "Enrico Maria Giordano"
}
] |
Another bug in TWBrowse scrollbar
|
[
{
"date": "2007-04-22",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Enrico,\n\n> Try to press PAGEDOWN and then PAGEUP: the scrollbar should go back to the top but it doesn't. \n\nIn Vista is working fine without modifying the method. Going to try it in XP (edited: same behavior in XP).\n\nHow many records Test.dbf has ? (Here just 2).",
"time": "06:44",
"topic": "Another bug in TWBrowse scrollbar",
"username": "Antonio Linares"
}
] |
Another bug in TWBrowse scrollbar
|
[
{
"date": "2007-04-22",
"forum": "FiveWin for Harbour/xHarbour",
"text": "No, you will see the problem only when you have a certain amount of record. I tried with xHarbour sample TEST.DBF that has 500 record.\n\nEMG",
"time": "08:07",
"topic": "Another bug in TWBrowse scrollbar",
"username": "Enrico Maria Giordano"
}
] |
Another bug in TWBrowse scrollbar
|
[
{
"date": "2007-04-22",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Enrico,\n\nThis seems the right fix. Its just needed to change the order of the call to ::VSetPos()\n[code:3memk2jx]\n...\n else\n\n if ::oVScroll != nil\n ::VSetPos( ::VGetPos() + nSkipped )\n endif\n\n nSkipped = ::Skip( -nLines )\n ::Skip( -nSkipped )\n\n endif\n...\n[/code:3memk2jx]",
"time": "17:10",
"topic": "Another bug in TWBrowse scrollbar",
"username": "Antonio Linares"
}
] |
Another bug in TWBrowse scrollbar
|
[
{
"date": "2007-04-22",
"forum": "FiveWin for Harbour/xHarbour",
"text": "I confirm the fix, thank you!\n\nEMG",
"time": "17:32",
"topic": "Another bug in TWBrowse scrollbar",
"username": "Enrico Maria Giordano"
}
] |
Another bug in TWBrowse scrollbar
|
[
{
"date": "2015-12-19",
"forum": "FiveWin for Harbour/xHarbour",
"text": "I'm preparing a sample. Please delay the release of the new FWH build...\n\nEMG",
"time": "10:37",
"topic": "Another bug in menu",
"username": "Enrico Maria Giordano"
}
] |
Another bug in menu
|
[
{
"date": "2015-12-19",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Here it is:\n\n[code=fw:4yqyd83m]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"Fivewin.ch\"</span><br /><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> oWnd, oMenu<br /><br /> <span style=\"color: #0000ff;\">MENU</span> oMenu <span style=\"color: #000000;\">2007</span><br /> <span style=\"color: #0000ff;\">MENUITEM</span> <span style=\"color: #ff0000;\">\"Test&1\"</span> <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #0000ff;\">MSGINFO</span><span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"1\"</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #0000ff;\">MENUITEM</span> <span style=\"color: #ff0000;\">\"Test&2\"</span> <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #0000ff;\">MSGINFO</span><span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"2\"</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #0000ff;\">MENUITEM</span> <span style=\"color: #ff0000;\">\"Test&3\"</span> <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #0000ff;\">MSGINFO</span><span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"3\"</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #0000ff;\">ENDMENU</span><br /><br /> <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWnd <span style=\"color: #0000ff;\">MDI</span>;<br /> <span style=\"color: #0000ff;\">TITLE</span> <span style=\"color: #ff0000;\">\"MDI Test\"</span>;<br /> <span style=\"color: #0000ff;\">MENU</span> oMenu<br /><br /> <span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWnd;<br /> <span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">INIT</span> CREATECHILD<span style=\"color: #000000;\">(</span> oWnd <span style=\"color: #000000;\">)</span><br /><br /> <span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span><br /><br /><br /><span style=\"color: #00C800;\">STATIC</span> <span style=\"color: #00C800;\">FUNCTION</span> CREATECHILD<span style=\"color: #000000;\">(</span> oMdi <span style=\"color: #000000;\">)</span><br /><br /> <span style=\"color: #00C800;\">LOCAL</span> oWnd, oMenu<br /><br /> <span style=\"color: #0000ff;\">MENU</span> oMenu <span style=\"color: #000000;\">2007</span><br /> <span style=\"color: #0000ff;\">MENUITEM</span> <span style=\"color: #ff0000;\">\"Changed&1\"</span> <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #0000ff;\">MSGINFO</span><span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"1\"</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #0000ff;\">MENUITEM</span> <span style=\"color: #ff0000;\">\"Changed&2\"</span> <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #0000ff;\">MSGINFO</span><span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"2\"</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #0000ff;\">MENUITEM</span> <span style=\"color: #ff0000;\">\"Changed&3\"</span> <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #0000ff;\">MSGINFO</span><span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"3\"</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #0000ff;\">ENDMENU</span><br /><br /> <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWnd <span style=\"color: #0000ff;\">MDICHILD</span> <span style=\"color: #0000ff;\">OF</span> oMdi;<br /> <span style=\"color: #0000ff;\">TITLE</span> <span style=\"color: #ff0000;\">\"MDI Child Test\"</span>;<br /> <span style=\"color: #0000ff;\">MENU</span> oMenu<br /><br /> <span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWnd;<br /> <span style=\"color: #0000ff;\">VALID</span> !GETKEYSTATE<span style=\"color: #000000;\">(</span> VK_ESCAPE <span style=\"color: #000000;\">)</span>;<br /> <span style=\"color: #0000ff;\">MAXIMIZED</span><br /><br /> <span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span></div>[/code:4yqyd83m]\n\nEMG",
"time": "10:44",
"topic": "Another bug in menu",
"username": "Enrico Maria Giordano"
}
] |
Another bug in menu
|
[
{
"date": "2015-12-19",
"forum": "FiveWin for Harbour/xHarbour",
"text": "The bugs:\n\n1. the area to the right of the menu is not properly painted\n\n2. Pressing ALT-2 you will get 1 instead of 2\n\n3. Pressing ALT-1 and then ESC and ESC again the menu icon to the left vanishes\n\nEMG",
"time": "10:46",
"topic": "Another bug in menu",
"username": "Enrico Maria Giordano"
}
] |
Another bug in menu
|
[
{
"date": "2015-12-19",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Enrico, I'm watching your example\nThis bug also it appears with previous versions FWH 15.04\nI tried it with version 13.12\nYou can check this?\nExcept that is to correctly paint the menubar\n\nAnyway, obviously I will look how to fix it\n\nRegards",
"time": "12:07",
"topic": "Another bug in menu",
"username": "cnavarro"
}
] |
Another bug in menu
|
[
{
"date": "2015-12-19",
"forum": "FiveWin for Harbour/xHarbour",
"text": "[quote=\"cnavarro\":14p7k71r]Enrico, I'm watching your example\nThis bug also it appears with previous versions FWH 15.04\nI tried it with version 13.12\nYou can check this?\nExcept that is to correctly paint the menubar\n\nAnyway, obviously I will look how to fix it\n\nRegards[/quote:14p7k71r]\n\nYes, bugs 2 and 3 are very old ones. Thank you for looking at them!\n\nEMG",
"time": "12:22",
"topic": "Another bug in menu",
"username": "Enrico Maria Giordano"
}
] |
Another bug in menu
|
[
{
"date": "2015-12-19",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Enrico, thanks for you feedback",
"time": "12:27",
"topic": "Another bug in menu",
"username": "cnavarro"
}
] |
Another bug in menu
|
[
{
"date": "2015-12-19",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Enrico, bug 1 fixed\n\nMenubar is painted correctly\n\n[url=http://postimage.org/:2eb5gcop][img:2eb5gcop]http://s21.postimg.org/j3vqmi1h3/Title247.png[/img:2eb5gcop][/url:2eb5gcop]",
"time": "12:50",
"topic": "Another bug in menu",
"username": "cnavarro"
}
] |
Another bug in menu
|
[
{
"date": "2015-12-19",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Cristobal,\n\ngreat! <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->\n\nEMG",
"time": "12:53",
"topic": "Another bug in menu",
"username": "Enrico Maria Giordano"
}
] |
Another bug in menu
|
[
{
"date": "2016-01-01",
"forum": "FiveWin for Harbour/xHarbour",
"text": "[quote=\"Enrico Maria Giordano\":vc9kn96y]Cristobal,\n\ngreat! <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->\n\nEMG[/quote:vc9kn96y]\n\nEnrico\n\nI'm working in it\nIn the next version it is already included some improved in [b:vc9kn96y]old BUGs[/b:vc9kn96y] ( before FWH 14.12 ) in menus with MDI windows, and also\n\n\n<!-- l --><a class=\"postlink-local\" href=\"http://forums.fivetechsupport.com/viewtopic.php?f=6&t=31535&p=185453#p185453\">viewtopic.php?f=6&t=31535&p=185453#p185453</a><!-- l -->",
"time": "12:58",
"topic": "Another bug in menu",
"username": "cnavarro"
}
] |
Another bug in menu
|
[
{
"date": "2016-01-01",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Thank you, Cristobal!\n\nEMG",
"time": "13:09",
"topic": "Another bug in menu",
"username": "Enrico Maria Giordano"
}
] |
Another bug in menu
|
[
{
"date": "2018-11-09",
"forum": "FiveWin for Harbour/xHarbour",
"text": "I 'm trying to run a small test into Lan Network\n\nNow it seem run, I can open and save customer.dbf\n\n[img:1oze71j6]https://i.postimg.cc/1z6nQ4Y2/n.png[/img:1oze71j6]\n\nI made\n\n[b:1oze71j6]USE &(oApp():cDbfPath+cDbf+\".dbf\") ;\n INDEX &(oApp():cDbfPath+cDbf+\".cdx\") ;\n ALIAS &(cAlias) NEW SHARE[/b:1oze71j6]\n\nand I change giving to oApp():cDbfPath all the exact directory \n\n ::cExePath := cFilePath(GetModuleFileName(GetInstance())) //+ \"\\\"\n\n oApp:cYearPath := \"2018\"\n\noApp:cDbfPath := ::cExePath+oApp:cYearPath+\"\\dbf\"+\"\\\"\n\nBut I'm not convinced yet,\n\nthe program never stops even when it has to delete a record that another computer is editing, \n\n I have deleted the number 1 from the customer.dbf file but this record was in edit mode on another computer \n\nhow is this possible?\n\nobviously in the save record I used\n\n\n[code=fw:1oze71j6]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"> <span style=\"color: #00C800;\">If</span> !Occupated<span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"CU\"</span><span style=\"color: #000000;\">)</span><br /> Replace CU->Id with nId<br /> Replace CU->First with cFirst<br /> Replace CU->Last with cLast<br /> Replace CU->street with cstreet<br /> Replace CU->City with cCity<br /> Replace CU->State with cState<br /> Replace CU->Zip with nZip<br /> Replace CU->Hiredate with dHiredate<br /> Replace CU->Married with lMarried<br /> Replace CU->Age with nAge<br /> Replace CU->Salary with nSalary<br /> CU-><span style=\"color: #000000;\">(</span>DbCommit<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span><br /> CU-><span style=\"color: #000000;\">(</span>Dbunlock<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">Endif</span></div>[/code:1oze71j6]\n\n[b:1oze71j6]the function Occupated(cAlias) with Rlock[/b:1oze71j6]\n\n[code=fw:1oze71j6]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00C800;\">FUNCTION</span> Occupated<span style=\"color: #000000;\">(</span>cAlias<span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">LOCAL</span> lRet:=.F., Sigue:=<span style=\"color: #000000;\">5</span><br /> <span style=\"color: #00C800;\">DEFAULT</span> cAlias:=<span style=\"color: #0000ff;\">Alias</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">DO</span> <span style=\"color: #00C800;\">WHILE</span> Sigue><span style=\"color: #000000;\">0</span><br /> <span style=\"color: #00C800;\">IF</span> <span style=\"color: #000000;\">(</span>cAlias<span style=\"color: #000000;\">)</span>-><span style=\"color: #000000;\">(</span>RLock<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span><br /> Sigue:=<span style=\"color: #000000;\">0</span><br /> <span style=\"color: #00C800;\">ELSE</span><br /> INKEY<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">0.5</span><span style=\"color: #000000;\">)</span><br /> Sigue:=Sigue<span style=\"color: #000000;\">-0.5</span><br /> <span style=\"color: #00C800;\">IF</span> Sigue<=<span style=\"color: #000000;\">0</span> .AND.;<br /> MsgYesNo<span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"!Registration occupied by another user!\"</span>+CRLF+ ;<br /> <span style=\"color: #ff0000;\">\" Please wait... \"</span>, <span style=\"color: #ff0000;\">\"Conferma...\"</span><span style=\"color: #000000;\">)</span><br /> Sigue:=<span style=\"color: #000000;\">3</span><br /> <span style=\"color: #00C800;\">ELSE</span><br /> lRet:=.T.<br /> <span style=\"color: #00C800;\">ENDIF</span><br /> <span style=\"color: #00C800;\">ENDIF</span><br /> <span style=\"color: #00C800;\">ENDDO</span><br /><span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #000000;\">(</span>lRet<span style=\"color: #000000;\">)</span></div>[/code:1oze71j6]\n\n\nI'm not convinced that this can work",
"time": "10:15",
"topic": "Another for Lan Network",
"username": "Silvio.Falconi"
}
] |
Another for Lan Network
|
[
{
"date": "2018-11-10",
"forum": "FiveWin for Harbour/xHarbour",
"text": "There are two methods of file locking, optimistic and pessimistic.\n\nWith optimistic, the user loads and edits the file, then when they are done, the record is locked, saved, and unlocked.\n\nWith pessimistic, the record is locked, the user edits it, then it is saved and unlocked.\n\nI have always used optimistic locking and have had few problems. Pessimistic can cause problems with users walking away from their computer while it is in edit mode. Nobody else can edit the record until they save it.\n\nThe experience that you had is unusual but can be handled. If the record was legitimately deleted, the save should fail gracefully saying the record has been deleted. It would seem to be a rare case when one user is updating a record that another user feels should be deleted. If there was good reason for deleting it, then there is no loss if the edited data doesn't get saved. You could provide the option for the user trying to save the updates, to undelete the record and then save.\n\nThere is really no right or wrong way. If something like this does happen the best you can do is guess the best solution and record what happened so it can be later undone.\n\nIt's not a perfect world...\n\nJames\n\n[i:2tudi0al]If the world were perfect, it wouldn't be.[/i:2tudi0al]--Yogi Berra",
"time": "01:58",
"topic": "Another for Lan Network",
"username": "James Bott"
}
] |
Another for Lan Network
|
[
{
"date": "2018-11-10",
"forum": "FiveWin for Harbour/xHarbour",
"text": "James, \nfor this topic I not use tdata but only new share",
"time": "17:05",
"topic": "Another for Lan Network",
"username": "Silvio.Falconi"
}
] |
Another for Lan Network
|
[
{
"date": "2018-11-10",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hello Silvio\nIf you want the behavior you descript you must lock the record when the user starts editing the record.\nYou lock immediately before saving the changes. So another user can delete the record in the mean time. \nThen you can be sure that no one can change or delete this record.\nBest regards\nOtto",
"time": "19:57",
"topic": "Another for Lan Network",
"username": "Otto"
}
] |
Another for Lan Network
|
[
{
"date": "2018-11-10",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Silvio,\n\nI can't think of a good reason to ever delete a customer. Perhaps move them to an \"archive\" database after a certain period of inactivity, but I wouldn't delete them.\n\nIf you allowed a customer to be deleted then you would also have to delete all related records such as orders, invoices, etc. You can see that this could be a nightmare. What about unpaid bills, unprocessed orders, etc. You would have to do all kinds of checks before even allowing a delete. Much better would be to move the customer and everything related to archive databases. Then they can be recovered.",
"time": "20:24",
"topic": "Another for Lan Network",
"username": "James Bott"
}
] |
Another for Lan Network
|
[
{
"date": "2008-02-09",
"forum": "FiveWin for Harbour/xHarbour",
"text": "I must create two index ord on a table of a Mdb\n\nMdb : ecom\nTable : Utenti\n\nfirst = Id\nsecond = cognome\n\nHow I must make it ?",
"time": "12:07",
"topic": "Another for MDB recorset",
"username": "Silvio"
}
] |
Another for MDB recorset
|
[
{
"date": "2008-02-09",
"forum": "FiveWin for Harbour/xHarbour",
"text": "When we deal with RDMS, it is not necessary to create any index to read the table in a particular order. Careful choice of indexes on very large table improves the performance of queries. \n\nIf you want to read the columns in the order of Id the query should be \"SELECT ID, COGNOME FROM UTENTI ORDER BY ID\" or if you want to read in the order or cognome, say ORDERY BY COGNOME.\n\nYou can even change the order after reading the recordset.\n\noRs:Sort := 'ID' \nor \noRs:Sort := 'COGNOME'\n\nFor all this it is not necessary to create indexes.",
"time": "12:39",
"topic": "Another for MDB recorset",
"username": "nageswaragunupudi"
}
] |
Another for MDB recorset
|
[
{
"date": "2008-02-09",
"forum": "FiveWin for Harbour/xHarbour",
"text": "i WANTED TO CREATE A TAB WITH TWO FOLDER\nON THE FIRST i MUST INSERT \"id\" AND ON THE SECOND \"cOGNOME\"\n\nWHEN i CLICK ON FIRST TAB THE XBROWSE MUST CHANGE VISUALIZATION\n @ oApp():oDlg:nGridBottom, nSplit+2 TABS oApp():oTab ;\n OPTION nOrder SIZE oApp():oWndMain:nWidth()-50, 12 PIXEL OF oApp():oDlg ;\n ITEMS ' First ', ' Last '\n [b:2eoazn1a]ACTION ( nOrder := oApp():oTab:nOption ,;\n CU->(DbSetOrder(nOrder)),;\n CU->(DbGoTop()) ,;[/b:2eoazn1a] oApp():oGrid:Refresh(.t.) ,;\n RefreshCont(oCont, \"CU\") ) \n IMAGES \"image1.bmp\",\"image2.bmp\"\n\nHOW i CAN MAKE IT?",
"time": "12:53",
"topic": "Another for MDB recorset",
"username": "Silvio"
}
] |
Another for MDB recorset
|
[
{
"date": "2008-02-09",
"forum": "FiveWin for Harbour/xHarbour",
"text": "For RecordSets:\n\noRs:Sort := \"ID\"\n\nis equilvalent to ALIAS->(ORDSETFOCUS(\"ID\"))\n\nYou can change sort orders viewed by simply assigning the values to oRs:Sort\n\nExamples:\n\noRs:Sort := \"COLNAME\"\noBrw:Refresh()",
"time": "13:09",
"topic": "Another for MDB recorset",
"username": "nageswaragunupudi"
}
] |
Another for MDB recorset
|
[
{
"date": "2008-02-09",
"forum": "FiveWin for Harbour/xHarbour",
"text": "ok but Ihave an variable \nnOrder := 1\n\nand then on tab I insert \n\n ACTION ( [b:3uxd3vmf]nOrder[/b:3uxd3vmf] := oApp():oTab:nOption ,;\n oRs:Sort := ([b:3uxd3vmf]nOrder[/b:3uxd3vmf]),;\n oRs:MoveFirst()) \n\nit make error !!\n\n[code:3uxd3vmf]\n Path and name: C:\\work\\prg\\Mwopen_W\\source\\FSDI2006.Exe (32 bits)\n Size: 1,709,568 bytes\n Time from start: 0 hours 0 mins 4 secs \n Error occurred at: 11-02-2008, 13:21:36\n Error description: Error ADODB.Recordset/16389 E_FAIL: _SORT\n Args:\n [ 1] = N 2\n\nStack Calls\n===========\n Called from: win32ole.prg => TOLEAUTO:_SORT(0)\n Called from: pcustomer.prg => (b)CUSTOMER(208)\n Called from: TTabs.prg => TTABS:SETOPTION(712)\n Called from: TTabs.prg => TTABS:LBUTTONDOWN(632)\n Called from: => TWINDOW:HANDLEEVENT(0)\n Called from: CONTROL.PRG => TTABS:HANDLEEVENT(0)\n Called from: WINDOW.PRG => _FWH(0)\n Called from: => WINRUN(0)\n Called from: WINDOW.PRG => TWINDOW:ACTIVATE(0)\n Called from: main.prg => TAPPLICATION:ACTIVATE(148)\n Called from: main.prg => MAIN(36)[/code:3uxd3vmf]\n\n\n\n\n\n\n\n\nI write this \n\n\n @ oApp():oDlg:nGridBottom, nSplit+2 TABS oApp():oTab ;\n OPTION nOrder SIZE oApp():oWndMain:nWidth()-50, 12 PIXEL OF oApp():oDlg ;\n ITEMS ' First ', ' Last ' ;\n ACTION ( nOrder := oApp():oTab:nOption ,;\n oRs:Sort := (nOrder),;\n oRs:MoveFirst() ,;\n oApp():oGrid:Refresh(.t.) ,;\n RefreshCont(oCont,oRs) )",
"time": "13:17",
"topic": "Another for MDB recorset",
"username": "Silvio"
}
] |
Another for MDB recorset
|
[
{
"date": "2008-02-09",
"forum": "FiveWin for Harbour/xHarbour",
"text": "You should assign column name or names delimited by commas. Not Numeric Values.\n\nCORRECT :\noRs:Sort := 'ID' \noRs:Sort := 'COGNOME'\n\nWRONG:\noRs:Sort := 1 or 2\n\nTry something like this:\n\n[code:2jgx799z]\n ACTION ( nOrder := oApp():oTab:nOption , oRs:Sort := oRs:Fields(nOrder-1):Name, ..... )\n[/code:2jgx799z]",
"time": "13:34",
"topic": "Another for MDB recorset",
"username": "nageswaragunupudi"
}
] |
Another for MDB recorset
|
[
{
"date": "2008-02-09",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Now I made \n\n @ oApp():oDlg:nGridBottom, nSplit+2 TABS oApp():oTab ;\n OPTION nOrder SIZE oApp():oWndMain:nWidth()-50, 12 PIXEL OF oApp():oDlg ;\n ITEMS ' First ', ' Last ' ;\n ACTION ( nOrder := oApp():oTab:nOption ,;\n [b:2so0w4q1]oRs:Sort := oRs:Fields(nOrder-1):Name[/b:2so0w4q1],;\n oRs:MoveFirst() ,;\n oApp():oGrid:Refresh(.t.) ,;\n RefreshCont(oCont,oRs) ) \n\n\n\n\nApplication\n===========\n Path and name: C:\\work\\prg\\Mwopen_W\\source\\FSDI2006.Exe (32 bits)\n Size: 1,789,952 bytes\n Time from start: 0 hours 0 mins 3 secs \n Error occurred at: 11-02-2008, 14:00:09\n Error description: Error ADODB.Recordset/16389 E_FAIL: _SORT\n Args:\n [ 1] = C UserID\n\nStack Calls\n===========\n Called from: win32ole.prg => TOLEAUTO:_SORT(0)\n Called from: pcustomer.prg => (b)CUSTOMER(206)\n Called from: TTabs.prg => TTABS:SETOPTION(712)\n Called from: TTabs.prg => TTABS:LBUTTONDOWN(632)\n Called from: => TWINDOW:HANDLEEVENT(0)\n Called from: CONTROL.PRG => TTABS:HANDLEEVENT(0)\n Called from: WINDOW.PRG => _FWH(0)\n Called from: => WINRUN(0)\n Called from: WINDOW.PRG => TWINDOW:ACTIVATE(0)\n Called from: main.prg => TAPPLICATION:ACTIVATE(149)\n Called from: main.prg => MAIN(37)\n\n\ni'm afraid thart oRs:Sort take only filed name and not field number \n\nany idea ?",
"time": "13:59",
"topic": "Another for MDB recorset",
"username": "Silvio"
}
] |
Another for MDB recorset
|
[
{
"date": "2008-02-09",
"forum": "FiveWin for Harbour/xHarbour",
"text": "> 'm afraid thart oRs:Sort take only filed name and not field number \n\nYes. It takes only field name. but not field number.\n\nmake sure you assign the right field names to oRs:Sort",
"time": "14:03",
"topic": "Another for MDB recorset",
"username": "nageswaragunupudi"
}
] |
Another for MDB recorset
|
[
{
"date": "2008-02-09",
"forum": "FiveWin for Harbour/xHarbour",
"text": "I made this but not run \n\noRs:Sort :=iff( norder=1, oRs:Fields( \"ID\" ):Name,oRs:Fields( \"Cognome\" ):Name);",
"time": "14:07",
"topic": "Another for MDB recorset",
"username": "Silvio"
}
] |
Another for MDB recorset
|
[
{
"date": "2008-02-09",
"forum": "FiveWin for Harbour/xHarbour",
"text": "and \n\n\n @ oApp():oDlg:nGridBottom, nSplit+2 TABS oApp():oTab ;\n OPTION nOrder SIZE oApp():oWndMain:nWidth()-50, 12 PIXEL OF oApp():oDlg ;\n ITEMS ' First ', ' Last ' ;\n ACTION ( nOrder := oApp():oTab:nOption ,;\n if( norder=1, oRs:Sort( \"ID\" ),oRs:Sort( \"Cognome\" )),;\n oRs:MoveFirst() ,;\n oApp():oGrid:Refresh(.t.) ,;\n RefreshCont(oCont,oRs) ) \n\nbut it not run !!",
"time": "14:10",
"topic": "Another for MDB recorset",
"username": "Silvio"
}
] |
Another for MDB recorset
|
[
{
"date": "2008-02-09",
"forum": "FiveWin for Harbour/xHarbour",
"text": "I try also this but not run \n\n\n@ oApp():oDlg:nGridBottom, nSplit+2 TABS oApp():oTab ;\n OPTION nOrder SIZE oApp():oWndMain:nWidth()-50, 12 PIXEL OF oApp():oDlg ;\n ITEMS ' First ', ' Last ' ;\n ACTION ( nOrder := oApp():oTab:nOption ,;\n if( norder=1, oRs:Sort := 'ID' ,oRs:Sort := 'COGNOME' ),;\n oRs:MoveFirst() ,;\n oApp():oGrid:Refresh(.t.) ,;\n RefreshCont(oCont,oRs) )",
"time": "14:12",
"topic": "Another for MDB recorset",
"username": "Silvio"
}
] |
Another for MDB recorset
|
[
{
"date": "2008-02-09",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Please send to my personal email, zip of your mdb, if it is not confidential. I send back a simple working code, which you can incorporate.",
"time": "14:26",
"topic": "Another for MDB recorset",
"username": "nageswaragunupudi"
}
] |
Another for MDB recorset
|
[
{
"date": "2008-02-09",
"forum": "FiveWin for Harbour/xHarbour",
"text": "> if( norder=1, oRs:Sort := 'ID' ,oRs:Sort := 'COGNOME' ),;\n\nThis should run ok.",
"time": "14:59",
"topic": "Another for MDB recorset",
"username": "nageswaragunupudi"
}
] |
Another for MDB recorset
|
[
{
"date": "2008-02-09",
"forum": "FiveWin for Harbour/xHarbour",
"text": "question ... on a related note .. consider this query :\n\nSelect lname,fname from Customer order by lname\n...\n...\n\nlets say I want to re-order my existing recordset created by the above query .. are you saying I can oRs:Sort := 'fname' to reorder ?? or do I need to re-create the query with order by fname ?\n\nRick Lipkin",
"time": "15:53",
"topic": "Another for MDB recorset",
"username": "Rick Lipkin"
}
] |
Another for MDB recorset
|
[
{
"date": "2008-02-09",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Mr Rick Liptin\n\n>\nets say I want to re-order my existing recordset created by the above query .. are you saying I can oRs:Sort := 'fname' to reorder ?? \n>\n\nYes.\n\n>\nor do I need to re-create the query with order by fname ? \n>\nNo need at all. \n\nIf we do, that will increase response time and unnecessary burden on the server and also the network traffic.\n\nActually, it is a good idea not to request an ordered set from the server, but to do the sorting on the client. When we request an ordered set, the sever has to do an additional work of sorting, creating temporary tables and so on. We should place the least strain on the server and and the network bandwidth.",
"time": "16:03",
"topic": "Another for MDB recorset",
"username": "nageswaragunupudi"
}
] |
Another for MDB recorset
|
[
{
"date": "2008-02-09",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Outstanding .. I did not know you can re-sort a recordset .. many times I have a 'find' routine that I need to re-order the same information .. to do this I have used my origional order by query ( lname ) and if I needed to find a group of records matching a like % on fname ...I used the oRs:Filter .. but the filter is a bit clumsy and you have to release the filter\n\nThanks for the information .. \n\nRick Lipkin\n\nfyi .. I have not given up on oracle .. I have the oracle 11 disks and plan on trying to load the client in the near future to see if I can connect",
"time": "16:16",
"topic": "Another for MDB recorset",
"username": "Rick Lipkin"
}
] |
Another for MDB recorset
|
[
{
"date": "2008-02-09",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Mr Rick Liptin\n\nStill Find is very powerful. It is like our classical locate and locate next in xBase. But we can as well use it in the place of Seek.\n\n> but the filter is a bit clumsy and you have to release the filter \n\nYet, it is powerful. We can even set filter to an array of book marks. At times very handy and useful. oRs:Filter := { bm1, bm2, ....} \n\nIf you find setting and releasing filters needs special attention, consider an alternative, create a clone, set filter and then close it.\n\noRs2 := oRs:Clone()\noRs2:Filter := ................ \ndo something with oRs2\noRs2:Close\n\nThese are some ideas",
"time": "16:28",
"topic": "Another for MDB recorset",
"username": "nageswaragunupudi"
}
] |
Another for MDB recorset
|
[
{
"date": "2008-02-10",
"forum": "FiveWin for Harbour/xHarbour",
"text": "NageswaraRao,\n\nCan you sort recordsets on more complex information like concantated multiple fields? How about descending?\n\nJames",
"time": "02:12",
"topic": "Another for MDB recorset",
"username": "James Bott"
}
] |
Another for MDB recorset
|
[
{
"date": "2008-02-10",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Mr James\n\nYes\n\noRs:Sort := \"FIRST , CITY DESC\" \nASC is assumed if not specified.\n\nalso we can sort on multiple fields of char, number, dates etc.",
"time": "02:36",
"topic": "Another for MDB recorset",
"username": "nageswaragunupudi"
}
] |
Another for MDB recorset
|
[
{
"date": "2008-02-10",
"forum": "FiveWin for Harbour/xHarbour",
"text": "I'm afrad that Sort() method works only with MDB. As an example, it doesn't work with MSDE.\n\nEMG",
"time": "09:22",
"topic": "Another for MDB recorset",
"username": "Enrico Maria Giordano"
}
] |
Another for MDB recorset
|
[
{
"date": "2008-02-10",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Sort works with MDB, Oracle, MSSQL Server.\n\nActually it is an internal feature of ADO and has nothing to do with the data provider, because the ADO engine sorts the recordset within memory totally on the client. The server does not come into picture at all. It even works with synthetic recordsets totally built on the client. It is something analogous to sorting an array after we read data into an array in the memory of our PC.\n \nKindly recheck.\n\nI use the syntax oRs:Sort = <expression>. I do not know if oRs:Sort( <exp> ) works. Does it work this way also ?",
"time": "10:17",
"topic": "Another for MDB recorset",
"username": "nageswaragunupudi"
}
] |
Another for MDB recorset
|
[
{
"date": "2008-02-10",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Mr Enrico\n\n[quote=\"Enrico Maria Giordano\":3ojfphdw]I'm afrad that Sort() method works only with MDB. As an example, it doesn't work with MSDE.\n\nEMG[/quote:3ojfphdw]\n\nI have not worked with MSDE. May I know how is your experience with the product? Do you think we can do development work with this before we test on real servers ? \n\nThanks in advance.",
"time": "10:24",
"topic": "Another for MDB recorset",
"username": "nageswaragunupudi"
}
] |
Another for MDB recorset
|
[
{
"date": "2008-02-10",
"forum": "FiveWin for Harbour/xHarbour",
"text": "[quote=\"nageswaragunupudi\":2tuvhja2]I have not worked with MSDE. May I know how is your experience with the product? Do you think we can do development work with this before we test on real servers ? \n\nThanks in advance.[/quote:2tuvhja2]\n\nI have MSDE installed and Sort() method doesn't seem to work. So I think it doesn't work with MS SQL Server either. I don't know about MySQL and other engines but yes, I'd test real servers before using Sort() method estensively.\n\nEMG",
"time": "10:35",
"topic": "Another for MDB recorset",
"username": "Enrico Maria Giordano"
}
] |
Another for MDB recorset
|
[
{
"date": "2008-02-10",
"forum": "FiveWin for Harbour/xHarbour",
"text": "This is the sample I tried:\n\n[code:1eazt2yk]#define adOpenForwardOnly 0\n#define adOpenKeyset 1\n#define adOpenDynamic 2\n#define adOpenStatic 3\n\n#define adLockReadOnly 1\n#define adLockPessimistic 2\n#define adLockOptimistic 3\n#define adLockBatchOptimistic 4\n\n\nFUNCTION MAIN()\n\n LOCAL oRs\n\n oRs = CREATEOBJECT( \"ADODB.Recordset\" )\n\n oRs:Open( \"SELECT * FROM T_Utenti ORDER BY Utente\", \"Provider=SQLOLEDB;Integrated Security=SSPI;Data Source=EMAG\\Emag;Initial Catalog=Quadro\", adOpenForwardOnly, adLockReadOnly )\n\n oRs:Sort = \"Passw\"\n\n WHILE !oRs:EOF\n ? oRs:Fields( \"Utente\" ):Value, oRs:Fields( \"Passw\" ):Value\n oRs:MoveNext()\n ENDDO\n\n oRs:Close()\n\n INKEY( 0 )\n\n RETURN NIL[/code:1eazt2yk]\n\nAnd this is the error I get:\n\n[code:1eazt2yk]Error ADODB.Recordset/6 DISP_E_UNKNOWNNAME: _SORT Arguments: ( [ 1] = Type: C Val: Passw)[/code:1eazt2yk]\n\nDo you see any problems in my sample that can explain the error?\n\nEMG",
"time": "10:39",
"topic": "Another for MDB recorset",
"username": "Enrico Maria Giordano"
}
] |
Another for MDB recorset
|
[
{
"date": "2008-02-10",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Found! I have to use\n\n[code:1kwob13q]oRs:CursorLocation = adUseClient[/code:1kwob13q]\n\nIt is perfectly logical. But still I don't know if it is a good idea to use a technique that forces client cursor usage.\n\nEMG",
"time": "10:41",
"topic": "Another for MDB recorset",
"username": "Enrico Maria Giordano"
}
] |
Another for MDB recorset
|
[
{
"date": "2008-02-11",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Mr Enrico\n\nYou found the reason. Most of the data and methods do not work on serverside cursors and some work only for serverside cursors but not for clientside.\n\nI have a few advices to make in general, based on theory, widely accepted good practices, confirmed by our own experiences.\n\nIt is desirable and the normal practice to open recordsets on the client side only. Opening serverside cursors is an exception.\n\nIn real life situations the applications are supposed to put least demands on Server and Network resources. Therefore the best practices are ( our discussion is limited to client-server 2-tier architecture only ) :-\n\n1. Dont open more than one connection per application.\n2. Ask the server for just enough information required for the purpose. Quickly retrieve it and say Thanks. Leave the Server free to attend to other requests from other users / applications.\n\nI have seen in our forums that every record set is opened with connection information. \n\nDisadvantages:\n\na) While opening each recordset we are opening a new connection and leaving those connections open on the server till we finish our work at our liesure. Imagine hundreds or users opening tens of connections each and locking the server's limited resources. It is not surprising if the server soon starts denying further requests till previous resources are released. Or server's performance gets bogged down.\n \nb) Opening a connection takes more time. Opening a recordset with a connection already opened is faster.\n\nIt seems this usage is adopted from sources available from asp codes and webpage sources. That is 3-tier architecture. There is an application server sitting between us and the server. That situation is much different and good practices are diferent.\nc) Classified information like server names, database names, passwords are scattered all around our modules in the application code. Serious security lapse. If the connection is opened in only one function, that alone can be changed whenever passwords and usernames are changed by the administrators for security reasons.\n\nRecommendations:\ni) Open one connection at the beginning and store it in a global variable ( better as a return value of a function ). Use the connection as RecordSet's ActiveConnection property while opening a new Recordset. We open the recordset faster ( our users are happy with our program ) and consume minimum resources of the server ( Our System Adminstrator friends are thankful to us.). Amy periodical changes in the connection parameters can be easily changed. Actually it is better not to hardcode such params.\n\nii) Ask the minimum information and give the server the minimum work. Example, we can sort the recordset at the client instead of bothering the server. After getting the information, disconnect the recordset and leave the server for other works. We can always reconnect if we want to make any updates or resyncs.\n\niii) More and more advanced our programming needs are more and more complex our sql queries become. Tuning of sql queries is an essential knowledge we need to aquire. Badly drafted sql's can lock server resources for unduly long periods, bringing down the server performance.\n\niii) Unless required, open client server cursors. Application performance will be very fast. Users will be happy with the blazing speeds of browses. Serverside cursors are not only slow but also keep the server tied up. Also there is a known issue with opening more than one serverside cursor on mssql server at the same time. Easier way is Open the connection at the outset with cursor location set to adUseClient. By default all recordsets will be opened client side.",
"time": "00:46",
"topic": "Another for MDB recorset",
"username": "nageswaragunupudi"
}
] |
Another for MDB recorset
|
[
{
"date": "2008-02-11",
"forum": "FiveWin for Harbour/xHarbour",
"text": "EMG or nageswaragunupudi\n\n\nI must implement an TAB \nI want inser this tab to the bottom of a xbrowse\nwhen I clicl on a folder the Xbrowse must order the record to one order\n\n@ oApp():oDlg:nGridBottom, nSplit+2 TABS oApp():oTab ; \nOPTION nOrder SIZE oApp():oWndMain:nWidth()-50, 12 PIXEL OF oApp():oDlg ; \nITEMS ' First ', ' Last ' \nACTION ( nOrder := oApp():oTab:nOption ,; \noRs:Sort (nOrder)),; \noRs:movetop() ,; oApp():oGrid:Refresh(.t.) ,; \n\n\nHow I can make it ?\n )",
"time": "08:59",
"topic": "Another for MDB recorset",
"username": "Silvio"
}
] |
Another for MDB recorset
|
[
{
"date": "2008-02-11",
"forum": "FiveWin for Harbour/xHarbour",
"text": "I think we discussed this earlier. Depending on nOption, set oRs:Sort := <columnname>, oBrw:Refresh().\n\nMake sure you opened the recordset with adUseClient option. The above code will work",
"time": "09:04",
"topic": "Another for MDB recorset",
"username": "nageswaragunupudi"
}
] |
Another for MDB recorset
|
[
{
"date": "2008-02-11",
"forum": "FiveWin for Harbour/xHarbour",
"text": "[quote=\"nageswaragunupudi\":zh7f4662]I have seen in our forums that every record set is opened with connection information.[/quote:zh7f4662]\n\nThey are only minimal samples. Nothing more.\n\n[quote=\"nageswaragunupudi\":zh7f4662]Recommendations: [...][/quote:zh7f4662]\n\nThat's why I don't like client/server at all. Too much constraints. An archaic technology passed off as new.\n\nEMG",
"time": "09:28",
"topic": "Another for MDB recorset",
"username": "Enrico Maria Giordano"
}
] |
Another for MDB recorset
|
[
{
"date": "2008-02-11",
"forum": "FiveWin for Harbour/xHarbour",
"text": "nageswaragunupudi,\n\nThanks for the client-side/server-side cursor explanations.\n\n> Open one connection at the beginning and store it in a global variable ( better as a return value of a function ). \n\nThis sounds like good use for a connection object. You could put a connection object inside a SET/GET function. Then you could retrieve the connection object and use it's methods or vars anywhere in the application. You could do things like this:\n\noConnection:= TCSConnection():new( ... )\nconnection( oConnection )\nconnection():activate()\nconnection():open()\nconnection():close()\n\nRegards,\nJames",
"time": "10:04",
"topic": "Another for MDB recorset",
"username": "James Bott"
}
] |
Another for MDB recorset
|
[
{
"date": "2008-02-11",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Dear nageswaragunupudi\nI made a s you sad but it make erro on Sort command\nI try with :\nors:sort:=\"First\" \nor \nors:sort:field(\"first\"):value \nor \nors:sort:field(\"first\")::name \n\nI must create a small sample to see it ...",
"time": "10:08",
"topic": "Another for MDB recorset",
"username": "Silvio"
}
] |
Another for MDB recorset
|
[
{
"date": "2008-02-11",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Mr James\n\nYes thats is what I suggest.\n\nYou and me being OOPS fans, we better have a Class for Connection. Make a base class for Ado Connection and then we have derived classes for oracle, mssql, etc. with their specific features,\n\nIn fact thats what I do. Like you I have one public function which returns the connection object. With my oops model, I finally program like this\n\noTable := MyServer():OpenTable( <csql>, ... params )\n\nMy oTable class is like your TData class. It is wrapper for recordset. Bridges behavioral gaps of dbf and recset.\n\nNow I am sure you know what I mean and what I am doing, without futher elaboration.",
"time": "10:15",
"topic": "Another for MDB recorset",
"username": "nageswaragunupudi"
}
] |
Another for MDB recorset
|
[
{
"date": "2008-02-11",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Mr Silvio\n\nPlease make a very short program.\nOpen recordset.\nThen write this line oRs:Sort := <first column name>\nPost the code here.",
"time": "10:18",
"topic": "Another for MDB recorset",
"username": "nageswaragunupudi"
}
] |
Another for MDB recorset
|
[
{
"date": "2008-02-12",
"forum": "FiveWin for Harbour/xHarbour",
"text": "try it \n\n[code:4wkyq5oc]\n#include \"FiveWin.ch\"\n#include \"Splitter.ch\"\n\n\nSTATIC oDb, oRs\n\n\nFUNCTION Customer()\n\n LOCAL aBrowse\n LOCAL nSplit :=102\n LOCAL nOrder :=1\n LOCAL nRecno :=1\n LOCAL oDlg,oFont,oTab\n\n oRs = CREATEOBJECT( \"ADODB.Recordset\" )\n TRY\n oRs:Open( \"SELECT * FROM Utenti ORDER BY COGNOME\", \"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=ecom.mdb\", 1, 3 )\n CATCH oErr\n ? oErr:Description\n RETURN NIL\n END TRY\n\n DEFINE FONT oFont NAME \"TAHOMA\" SIZE 0,-12\n DEFINE DIALOG oDlg from 2,4 to 24,80;\n TITLE \"test xbrowse with tabs with MDB\" ;\n FONT oFont\n\n oBrw := TXBrowse():New( oDlg )\n WITH OBJECT oBrw\n :nTop := 10\n :nLeft := 20\n :nBottom := 150\n :nRight := 300\n END\n\n\n\n aBrowse := { { { || STR( oRs:Fields( \"ID\" ):Value) }, i18n(\"Codice\"), 50, 0 },;\n { { || oRs:Fields( \"Nome\" ):Value }, i18n(\"Nome\"), 150, 0 },;\n { { || oRs:Fields( \"Cognome\" ):Value}, i18n(\"Cognome\"), 150, 0 },;\n { { || oRs:Fields( \"Via\" ):Value} , i18n(\"Indirizzo\"), 150, 0 } ,;\n { { || oRs:Fields( \"Civico\" ):Value} , i18n(\"Civico\"), 150, 0 },;\n { { || oRs:Fields( \"Citta\" ):Value} , i18n(\"Città\"), 150, 0 } ,;\n { { || oRs:Fields( \"Provincia\" ):Value} , i18n(\"Prov\"), 150, 0 }}\n\n\n\n\n\n FOR i := 1 TO Len(aBrowse)\n oCol := oBrw:AddCol()\n oCol:bStrData := aBrowse[ i, 1 ]\n oCol:cHeader := aBrowse[ i, 2 ]\n oCol:nWidth := aBrowse[ i, 3 ]\n oCol:nDataStrAlign := aBrowse[ i, 4 ]\n oCol:nHeadStrAlign := aBrowse[ i, 4 ]\n NEXT\n\n oBrw:SetADO( oRs )\n oBrw:CreateFromCode()\n\n\n\n oBrw:nRowHeight := 21\n oBrw:nHeaderHeight := 36\n\n\n\n @ oBrw:nBottom+1,20 TABS oTab ;\n OPTION nOrder SIZE oDlg:nWidth()-50, 12 PIXEL OF oDlg ;\n ITEMS ' First ', ' Last ' ;\n ACTION ( nOrder := oTab:nOption ,;\n if( norder=1, oRs:Sort := 'ID' ,oRs:Sort := 'COGNOME' ),;\n oRs:MoveFirst() ,;\n oBrw:Refresh(.t.) )\n\n\n\n\n\n\n\n ACTIVATE DIALOG oDlg\nRETURN NIL\n\n[/code:4wkyq5oc]",
"time": "00:51",
"topic": "Another for MDB recorset",
"username": "Silvio"
}
] |
Another for MDB recorset
|
[
{
"date": "2008-02-12",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Please insert this line \noRs:CursorLocation := 3 \njust after creating the recordset object\n[code:3kp2lrdl]\n oRs = CREATEOBJECT( \"ADODB.Recordset\" )\n\n oRs:CursorLocation := 3 // insert this line here\n\n TRY\n\n[/code:3kp2lrdl]\nNow please try",
"time": "02:35",
"topic": "Another for MDB recorset",
"username": "nageswaragunupudi"
}
] |
Another for MDB recorset
|
[
{
"date": "2008-02-12",
"forum": "FiveWin for Harbour/xHarbour",
"text": "thanks now run ok",
"time": "10:22",
"topic": "Another for MDB recorset",
"username": "Silvio"
}
] |
Another for MDB recorset
|
[
{
"date": "2008-02-12",
"forum": "FiveWin for Harbour/xHarbour",
"text": "THE PROBLEM IS ANOTHER :\n\nNOW i MUST SORT ON TWO FIELD :\n\n if( norder=1, oRs:Sort := 'ID' ,oRs:Sort := 'COGNOME' ),;\n\n\nBUT IF i MUST SORT ON MANY FIELDS HOW i CAN MAKE ?\n\ni NEED CREATE SOMETHING OF \n\n @ oBrw:nBottom+1,20 TABS oTab ;\n OPTION nOrder SIZE oDlg:nWidth()-50, 12 PIXEL OF oDlg ; \n ITEMS ' CODICE ', ' COGNOME ' ;\n ACTION ( nOrder := oTab:nOption ,[b:tbg7wy2x]oRs:sort:=nOrder[/b:tbg7wy2x]; \n oRs:MoveFirst() ,; \n oBrw:Refresh(.t.) )",
"time": "10:25",
"topic": "Another for MDB recorset",
"username": "Silvio"
}
] |
Another for MDB recorset
|
[
{
"date": "2008-02-12",
"forum": "FiveWin for Harbour/xHarbour",
"text": "oRs:Sort := \"ID,COGNOME\"",
"time": "10:27",
"topic": "Another for MDB recorset",
"username": "nageswaragunupudi"
}
] |
Another for MDB recorset
|
[
{
"date": "2008-02-12",
"forum": "FiveWin for Harbour/xHarbour",
"text": "ok but I have a variable norder\n\nand this variable I must use with Tab noption\n\nthe sort read only the field name oRs:sort:=\"Id,cognome,nome\"\n\nbut there is not a command to sort on number of field ?\n\nsample \n\noRs:sort=norder\n\n\nI cannot use the fieldname because i must rewrite each program",
"time": "10:32",
"topic": "Another for MDB recorset",
"username": "Silvio"
}
] |
Another for MDB recorset
|
[
{
"date": "2008-02-12",
"forum": "FiveWin for Harbour/xHarbour",
"text": ">\nbut there is not a command to sort on number of field ? \n>\n\nNO\n\n>\noRs:sort=norder \n>\n\nInstead, you create an array of sort orders. example:\naOrders := { \"ID\", \"ONE,TWO\", \"ID,NAME DESC\", .... }\n\nthen depending on the option, say oRs:Sort := aOrders[oTabs:nOption]",
"time": "10:37",
"topic": "Another for MDB recorset",
"username": "nageswaragunupudi"
}
] |
Another for MDB recorset
|
[
{
"date": "2008-02-12",
"forum": "FiveWin for Harbour/xHarbour",
"text": "ok this is a good idea i try to improved it",
"time": "10:40",
"topic": "Another for MDB recorset",
"username": "Silvio"
}
] |
Another for MDB recorset
|
[
{
"date": "2008-02-12",
"forum": "FiveWin for Harbour/xHarbour",
"text": "ok this run ok \n[code:218uxccn]\n#include \"FiveWin.ch\"\n#include \"Splitter.ch\"\n\n\nSTATIC oDb, oRs\n\n\nFUNCTION Customer()\n\n LOCAL aBrowse\n LOCAL nSplit :=102\n LOCAL nOrder :=1\n LOCAL nRecno :=1\n LOCAL oDlg,oFont,oTab\n\n Local aOrders := { \"ID\", \"NOME\", \"COGNOME\", \"CITTA\" }\n\n oRs = CREATEOBJECT( \"ADODB.Recordset\" )\n oRs:CursorLocation := 3 // insert this line here\n TRY\n oRs:Open( \"SELECT * FROM Utenti ORDER BY COGNOME\", \"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=ecom.mdb\", 1, 3 )\n CATCH oErr\n ? oErr:Description\n RETURN NIL\n END TRY\n\n DEFINE FONT oFont NAME \"TAHOMA\" SIZE 0,-12\n DEFINE DIALOG oDlg from 2,4 to 24,80;\n TITLE \"test xbrowse with tabs with MDB\" ;\n FONT oFont\n\n oBrw := TXBrowse():New( oDlg )\n WITH OBJECT oBrw\n :nTop := 10\n :nLeft := 20\n :nBottom := 150\n :nRight := 300\n END\n\n\n\n aBrowse := { { { || STR( oRs:Fields( \"ID\" ):Value) }, i18n(\"Codice\"), 50, 0 },;\n { { || oRs:Fields( \"Nome\" ):Value }, i18n(\"Nome\"), 150, 0 },;\n { { || oRs:Fields( \"Cognome\" ):Value}, i18n(\"Cognome\"), 150, 0 },;\n { { || oRs:Fields( \"Via\" ):Value} , i18n(\"Indirizzo\"), 150, 0 } ,;\n { { || oRs:Fields( \"Civico\" ):Value} , i18n(\"Civico\"), 150, 0 },;\n { { || oRs:Fields( \"Citta\" ):Value} , i18n(\"Città\"), 150, 0 } ,;\n { { || oRs:Fields( \"Provincia\" ):Value} , i18n(\"Prov\"), 150, 0 }}\n\n\n\n\n\n FOR i := 1 TO Len(aBrowse)\n oCol := oBrw:AddCol()\n oCol:bStrData := aBrowse[ i, 1 ]\n oCol:cHeader := aBrowse[ i, 2 ]\n oCol:nWidth := aBrowse[ i, 3 ]\n oCol:nDataStrAlign := aBrowse[ i, 4 ]\n oCol:nHeadStrAlign := aBrowse[ i, 4 ]\n NEXT\n\n oBrw:SetADO( oRs )\n oBrw:CreateFromCode()\n\n\n\n oBrw:nRowHeight := 21\n oBrw:nHeaderHeight := 36\n\n\n\n @ oBrw:nBottom+1,20 TABS oTab ;\n OPTION nOrder SIZE oDlg:nWidth()-50, 12 PIXEL OF oDlg ;\n ITEMS ' CODICE ', 'NOME' ,'COGNOME';\n ACTION ( nOrder := oTab:nOption ,;\n oRs:Sort := aOrders[oTab:nOption],;\n oRs:MoveFirst() ,;\n oBrw:Refresh(.t.) )\n\n\n\n\n\n\n\n ACTIVATE DIALOG oDlg\nRETURN NIL\n[/code:218uxccn]",
"time": "11:36",
"topic": "Another for MDB recorset",
"username": "Silvio"
}
] |
Another for MDB recorset
|
[
{
"date": "2018-04-30",
"forum": "FiveWin for Harbour/xHarbour",
"text": "I understood that there is an sample called sockserv.prg \n\nOne time I run the exe it listen if there are oclients on lan ( sockcli.prg)\n\n\nI understood I must make an array to save all client is connected to server ( I must save the nsocket, the name and the ip of client)\n\nThe server before must connect to one oclient and then can called this oclient with msg the oclient. ok \nthis because the server is connected with the last oclient connected to server\n \nthere are many problems I not understood also ....\n\nfor a sample I not understood how a client can send a msg with another oclent\n\nAnother thing ...If it is true that for the communication via socket (tcip) between clients it always takes the server and the client I did not understand how it can run an application I found it on the internet called popmessenger which uses the tcip protocol and has the ports inserted and the IP address but I do not see any server program (<!-- m --><a class=\"postlink\" href=\"http://www.leadmind.com\">http://www.leadmind.com</a><!-- m -->)",
"time": "09:56",
"topic": "Another for Sockserv and sockcli",
"username": "Silvio.Falconi"
}
] |
Another for Sockserv and sockcli
|
[
{
"date": "2013-03-14",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Dear Friend,\nLook this please \n\n\n[img:s8i756zd]http://img823.imageshack.us/img823/7321/errport1.jpg[/img:s8i756zd]\n\n\nthe procedure does not show exactly the right reservation \n\non My archive I have the room n. 7 has a different date range\n\n[img:s8i756zd]http://img822.imageshack.us/img822/7908/arch1jv.jpg[/img:s8i756zd]\n\nWhy it show other dates ? \n\n\n\nI explain You \n\nI have RESERVA->CHECK_IN and RESERVA->CHECK_OUT on reserva.dbf and I must show the reservation \n\nthe final user can select the dates fron datepich control , the datepich are on the ribbonbar ( I select from 23.02.2013 to 23.02.2013) \n\n\n\n\n\n\nwhen I show the bitmaps I made a dbseek on number of room to se the state of each room\n\nIF RESERVA->( DbSeek( nRoom ) )\n\nand then \n\n IF DToS( RESERVA->CHECK_OUT ) > DToS( dStart ) .AND. DToS( RESERVA->CHECK_IN ) < DToS( dEnd )\n nStato:= val(RESERVA->STATUS)\nendif\n\nELSE\n nStato:= 0\n \n ENDIF\n\n\n\n\nI tried also with \n\n IF (DToS( RESERVA->CHECK_IN ) >= DToS( dStart ) .AND. DToS( RESERVA->CHECK_IN ) <= DToS( dEnd ) ) .OR.;\n (DToS( RESERVA->CHECK_OUT ) >= DToS( dStart ) .AND. DToS( RESERVA->CHECK_OUT ) <= DToS( dEnd ))\n\n\nbut it make error !!!! ( the same)",
"time": "19:47",
"topic": "Another for date Range",
"username": "Silvio.Falconi"
}
] |
Another for date Range
|
[
{
"date": "2013-10-08",
"forum": "FiveWin for Harbour/xHarbour",
"text": "I saw the fwstring not show the character & for the button .... why ?\n\n[img:37m23l36]http://img820.imageshack.us/img820/7527/4v6g.jpg[/img:37m23l36]",
"time": "16:38",
"topic": "Another for fwstring",
"username": "Silvio.Falconi"
}
] |
Another for fwstring
|
[
{
"date": "2011-11-22",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hello,\n\nI had a look at a 32 Bit-Resource-editor I found.\nFor the Moment, I don`t have the Time, to test it ( to big )\nSome Futures are included, I didn't see before ( visual design ).\nMaybe useful for FWH-users ( it seems, Assembler-Source and Resources are included ) ?\nNo problem, to import BCC-Rc-files.\n\n[color=#FF0000:flokqb0l]Features.\nThe resource editor handles the following resource types:\n? Dialogs with more than 30 defined windows controls.\n? Menus.\n? String tables.\n? Accelerator tables.\n? Version info.\n? Language setting.\n? Resources like bitmaps, icons, manifest and several others.\n? Unlimitted Undo / Redo on dialog editor.\n? No installation needed.\n? Visual dialog editor.\n? Custom controls.[/color:flokqb0l]\n\n<!-- m --><a class=\"postlink\" href=\"http://www.oby.ro/rad_asm/resed/index.html\">http://www.oby.ro/rad_asm/resed/index.html</a><!-- m -->\n\n[img:flokqb0l]http://www.pflegeplus.com/pictures/resedit.jpg[/img:flokqb0l]\n\n[img:flokqb0l]http://www.pflegeplus.com/pictures/resource6.jpg[/img:flokqb0l]\n\n[img:flokqb0l]http://www.pflegeplus.com/pictures/resstyle1.jpg[/img:flokqb0l]\n[img:flokqb0l]http://www.pflegeplus.com/pictures/resstyle2.jpg[/img:flokqb0l]\n\nHave a look at the Help-files, before You start, there are many possible settings :\n\n[img:flokqb0l]http://www.pflegeplus.com/pictures/resource7.jpg[/img:flokqb0l]\n\nBest Regards\nUwe <!-- s:lol: --><img src=\"{SMILIES_PATH}/icon_lol.gif\" alt=\":lol:\" title=\"Laughing\" /><!-- s:lol: -->",
"time": "23:52",
"topic": "Another free 32 Bit Resource-Editor ( maybe useful ? )",
"username": "ukoenig"
}
] |
Another free 32 Bit Resource-Editor ( maybe useful ? )
|
[
{
"date": "2011-11-23",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Uwe,\n\nVery good, thanks! <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->\n\nAlready available from FiveWin Contributions site:\n[url:4jzh2qva]http://code.google.com/p/fivewin-contributions/downloads/list[/url:4jzh2qva]\n[url:4jzh2qva]http://code.google.com/p/fivewin-contributions/downloads/detail?name=ResEd.zip&can=2&q=[/url:4jzh2qva]",
"time": "03:25",
"topic": "Another free 32 Bit Resource-Editor ( maybe useful ? )",
"username": "Antonio Linares"
}
] |
Another free 32 Bit Resource-Editor ( maybe useful ? )
|
[
{
"date": "2020-05-31",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hi !,\n\nToday connected the group of mod Harbour and commmanded by Mr. Antonio we have entered the dimension of being able to debug at the harbour code level with Visual Code.\n\nSimply spectacular !\n\nC.",
"time": "18:58",
"topic": "Another historic moment in Harbour ...",
"username": "Carles"
}
] |
Another historic moment in Harbour ...
|
[
{
"date": "2020-06-01",
"forum": "FiveWin for Harbour/xHarbour",
"text": "1. Download and install Visual Studio Community from here:\n[url:266s5z2o]https://visualstudio.microsoft.com/vs/community/[/url:266s5z2o]\n\n2. git clone <!-- m --><a class=\"postlink\" href=\"https://github.com/FiveTechSoft/harbour_app_msvc64_sources\">https://github.com/FiveTechSoft/harbour ... 64_sources</a><!-- m -->\n\n3. Double click on the Harbour_app.sln file\n\n4. Search for hb_vmInit() from the solution explorer and set a breakpoint there\n\n5. Click on run and see Harbour working internally <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->",
"time": "07:13",
"topic": "Another historic moment in Harbour ...",
"username": "Antonio Linares"
}
] |
Another historic moment in Harbour ...
|
[
{
"date": "2020-06-01",
"forum": "FiveWin for Harbour/xHarbour",
"text": "[url:123vs0mz]https://youtu.be/VYA7B1otyVo[/url:123vs0mz]",
"time": "07:59",
"topic": "Another historic moment in Harbour ...",
"username": "Antonio Linares"
}
] |
Another historic moment in Harbour ...
|
[
{
"date": "2009-12-23",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hello friends of the forum.\n\nI've been testing the evaluation Image2PDF DLL, I made use of \"RPrevUserBtns\" from the main program for which I work on all reports and works well:\n\n[code=fw:rpz5k7hs]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">RPrevUserBtns<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">{</span> | oPrev, oBar | MyButtons<span style=\"color: #000000;\">(</span> oPrev, oBar <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">}</span> <span style=\"color: #000000;\">)</span> && Botones adicionales<br /><br />...<br /><br /><span style=\"color: #00C800;\">FUNCTION</span> MyButtons<span style=\"color: #000000;\">(</span> oPreview, oBar <span style=\"color: #000000;\">)</span><br /><br /> <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #0000ff;\">OF</span> oBar <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"PDF\"</span> <span style=\"color: #0000ff;\">ACTION</span> SavePDF<span style=\"color: #000000;\">(</span> oPreview:<span style=\"color: #000000;\">oDevice</span> <span style=\"color: #000000;\">)</span> ;<br /> TOOLTIP <span style=\"color: #ff0000;\">\"Generar archivo PDF\"</span><br /><br /> <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #0000ff;\">OF</span> oBar <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"Email\"</span> <span style=\"color: #0000ff;\">ACTION</span> Send2Email<span style=\"color: #000000;\">(</span> oPreview <span style=\"color: #000000;\">)</span> ;<br /> TOOLTIP <span style=\"color: #ff0000;\">\"Enviar en email como archivo PDF adjunto\"</span><br /><br /> <span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span><br /> </div>[/code:rpz5k7hs]\n\nThe code to use with Image2PDF (Posted below) only converts the text of the report, I can not see images in the preview, this is because the evaluation version or there is an error?\nSomeone has done a completely Image2PDF, I can help.\n\n[code=fw:rpz5k7hs]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00C800;\">FUNCTION</span> SavePDF<span style=\"color: #000000;\">(</span> oDevice, cMyNombrePDF <span style=\"color: #000000;\">)</span><br /><br /> <span style=\"color: #00C800;\">LOCAL</span> error, hLibImg2PDF<br /> <span style=\"color: #00C800;\">LOCAL</span> imageFilename:=<span style=\"color: #ff0000;\">\" \"</span><br /> <span style=\"color: #00C800;\">LOCAL</span> cPdfFilename<br /> <span style=\"color: #00C800;\">LOCAL</span> nI, iErr:=<span style=\"color: #000000;\">0</span><br /> <span style=\"color: #00C800;\">LOCAL</span> aFiles:=<span style=\"color: #000000;\">{</span><span style=\"color: #000000;\">}</span>, cTemp<br /><br /> cPdfFileName:= oApp:<span style=\"color: #000000;\">Path_PDF</span> + oDevice:<span style=\"color: #000000;\">cDocument</span> + <span style=\"color: #ff0000;\">\".Pdf\"</span><br /> aFiles:=oDevice:<span style=\"color: #000000;\">aMeta</span><br /> hLibImg2PDF:=LoadLib32<span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"Image2PDF\"</span> <span style=\"color: #000000;\">)</span><br /><br /> <span style=\"color: #00C800;\">IF</span> ValType<span style=\"color: #000000;\">(</span>aFiles<span style=\"color: #000000;\">)</span>==<span style=\"color: #ff0000;\">\"A\"</span><br /> I2PDF_License<span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"LICENCIA\"</span><span style=\"color: #000000;\">)</span><br /> iErr:=IPMeta<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #B900B9;\">// Flag that his is a meta file</span><br /> iErr:=IPSize<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #B900B9;\">// Reset the size</span><br /> iErr:=IPMetaAdjustText<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> iErr:=IPSetDPI<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">0</span><span style=\"color: #000000;\">)</span> <span style=\"color: #B900B9;\">// Set DPI to the default for PDF's. It works better</span><br /> <span style=\"color: #00C800;\">FOR</span> nI:=<span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">TO</span> Len<span style=\"color: #000000;\">(</span>aFiles<span style=\"color: #000000;\">)</span> <span style=\"color: #B900B9;\">// Build the pages using the array of temp files</span><br /> CursorWait<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> imageFilename:=aFiles<span style=\"color: #000000;\">[</span>nI<span style=\"color: #000000;\">]</span><br /> iErr:=IPAddImg<span style=\"color: #000000;\">(</span>imageFilename<span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">NEXT</span> nI<br /> CursorWait<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> iErr:=IPMakePDF<span style=\"color: #000000;\">(</span>cPdfFileName,<span style=\"color: #000000;\">0</span>,error,<span style=\"color: #000000;\">40</span><span style=\"color: #000000;\">)</span> <span style=\"color: #B900B9;\">// Create the PDF.</span><br /> <span style=\"color: #00C800;\">ENDIF</span><br /><br /> FreeLib32<span style=\"color: #000000;\">(</span>hLibImg2PDF<span style=\"color: #000000;\">)</span><br /> CursorArrow<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">IF</span> cMyNombrePDF != <span style=\"color: #00C800;\">NIL</span><br /> cMyNombrePDF := cPdfFileName<br /> <span style=\"color: #00C800;\">ELSE</span><br /> <span style=\"color: #00C800;\">IF</span> !File<span style=\"color: #000000;\">(</span>cPdfFileName<span style=\"color: #000000;\">)</span><br /> <span style=\"color: #0000ff;\">MsgInfo</span><span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"No se generó el archivo PDF.\"</span>,<span style=\"color: #ff0000;\">\"Información!\"</span><span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">ELSE</span><br /> ShellExecute<span style=\"color: #000000;\">(</span>,<span style=\"color: #ff0000;\">\"Open\"</span>,cPdfFileName,<span style=\"color: #ff0000;\">\"\"</span>,<span style=\"color: #ff0000;\">\".<span style=\"color: #000000;\">\\\"</span>,.T.)<br /> ENDIF<br /> ENDIF<br /> <br />RETURN (NIL)<br /><br />//--- Wrappers ---------------------------------------------------------------//<br /><br /> DLL32 STATIC FUNCTION I2PDF_License( code AS LPSTR) AS LONG;<br /> PASCAL FROM \"</span>I2PDF_License<span style=\"color: #ff0000;\">\" LIB \"</span>IMAGE2PDF.dll<span style=\"color: #ff0000;\">\"<br /><br /> DLL32 STATIC FUNCTION IPMeta( ) AS LONG;<br /> PASCAL FROM \"</span>I2PDF_MetaToNativePDF<span style=\"color: #ff0000;\">\" LIB \"</span>Image2PDF.dll<span style=\"color: #ff0000;\">\"<br /><br /> DLL32 STATIC FUNCTION IPMetaAdjustText() AS LONG;<br /> PASCAL FROM \"</span>I2PDF_MetaTextFitBoundingRect<span style=\"color: #ff0000;\">\" LIB \"</span>Image2PDF.dll<span style=\"color: #ff0000;\">\"<br /><br /> DLL32 STATIC FUNCTION IPSize( ) AS LONG;<br /> PASCAL FROM \"</span>I2PDF_UseEMFDeviceSize<span style=\"color: #ff0000;\">\" LIB \"</span>Image2PDF.DLL<span style=\"color: #ff0000;\">\"<br /><br /> DLL32 STATIC FUNCTION IPAddImg( cImage AS LPSTR ) AS LONG;<br /> PASCAL FROM \"</span>I2PDF_AddImage<span style=\"color: #ff0000;\">\" LIB \"</span>Image2PDF.dll<span style=\"color: #ff0000;\">\"<br /><br /> DLL32 STATIC FUNCTION IPSetDpi( nDpi AS LONG ) AS LONG;<br /> PASCAL FROM \"</span>I2PDF_SetDPI<span style=\"color: #ff0000;\">\" LIB \"</span>Image2PDF.dll<span style=\"color: #ff0000;\">\"<br /><br /> DLL32 STATIC FUNCTION IPMakePDF( cOutFile AS LPSTR, nOptions AS LONG, cErrTxt AS LPSTR, nMaxESize AS LONG ) AS LONG;<br /> PASCAL FROM \"</span>I2PDF_MakePDF<span style=\"color: #ff0000;\">\" LIB \"</span>Image2PDF.dll<span style=\"color: #ff0000;\">\"<br /><br /> DLL32 FUNCTION COPYFILE( cExistName AS LPSTR, cNewName AS LPSTR, nFailIfExist AS LONG ) AS BOOL;<br /> PASCAL FROM \"</span>CopyFileA<span style=\"color: #ff0000;\">\" LIB \"</span>kernel32.dll<span style=\"color: #ff0000;\">\"<br /><br /> DLL32 FUNCTION xI2PDF_BatesFormat( format AS LPSTR ) AS LONG;<br /> PASCAL FROM \"</span>I2PDF_BatesFormat<span style=\"color: #ff0000;\">\" LIB \"</span>Image2PDF.dll<span style=\"color: #ff0000;\">\"<br /><br /> DLL32 FUNCTION xI2PDF_BatesLocation( verticalPosition AS LONG, horizontalPosition AS LONG, orientation AS LONG, margin AS LONG) AS LONG;<br /> PASCAL FROM \"</span>I2PDF_BatesLocation<span style=\"color: #ff0000;\">\" LIB \"</span>Image2PDF.dll<span style=\"color: #ff0000;\">\"<br /><br /> DLL32 FUNCTION xI2PDF_BatesFont_Int( iSize AS LONG, FontID AS LPSTR, fillRed AS LONG, fillGreen AS LONG, fillBlue AS LONG, iStyle AS LONG, otherRed AS LONG, otherGreen AS LONG, otherBlue AS LONG) AS LONG;<br /> PASCAL FROM \"</span>I2PDF_BatesFont_Int<span style=\"color: #ff0000;\">\" LIB \"</span>Image2PDF.dll<span style=\"color: #ff0000;\">\"<br /><br /> DLL32 FUNCTION xI2PDF_BatesBackground_Int( shape AS LONG, bkRed AS LONG, bkGreen AS LONG, bkBlue AS LONG, borderRed AS LONG, borderGreen AS LONG, borderBlue AS LONG ) AS LONG;<br /> PASCAL FROM \"</span>I2PDF_BatesBackground_Int<span style=\"color: #ff0000;\">\" LIB \"</span>Image2PDF.dll<span style=\"color: #ff0000;\">\"<br /></span></div>[/code:rpz5k7hs]\n\n\nThanks in advance.\n\nBest regards <!-- s:) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":)\" title=\"Smile\" /><!-- s:) -->",
"time": "22:48",
"topic": "Another more about RPreview and Image2PDF",
"username": "Blessed"
}
] |
Another more about RPreview and Image2PDF
|
[
{
"date": "2009-12-24",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hello again\n\nI just wanted to make mention that the images, are on the same page.\nI know I can add pictures in a different page.\n\nWith the instruction:\n\n[code=fw:2tp9d63n]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">iErr:=IPAddImg<span style=\"color: #000000;\">(</span>imageFilename<span style=\"color: #000000;\">)</span></div>[/code:2tp9d63n]\n\nSooner or later, but I need the image is on the same page.\n\nThanks in advance.\n\nBest regards <!-- s:) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":)\" title=\"Smile\" /><!-- s:) -->",
"time": "00:57",
"topic": "Another more about RPreview and Image2PDF",
"username": "Blessed"
}
] |
Another more about RPreview and Image2PDF
|
[
{
"date": "2009-12-24",
"forum": "FiveWin for Harbour/xHarbour",
"text": "There is no problem having images in the same page , i don't know about ehe evaluation version , maybe ...\n\ntry adding this\n\n iErr := I2PDF_MetaToNativePDF()\n iErr := I2PDF_MetaTextFitBoundingRect()\n iErr := I2PDF_UseEMFDeviceSize( )\n iErr := I2PDF_SetDPI(0) // Set PDF DPI to the same as the image\n iErr := I2PDF_MetamMargins()\n\nI use Image2pdf since several years and it is an excellent product\n\nHTH\n\nRichard",
"time": "06:06",
"topic": "Another more about RPreview and Image2PDF",
"username": "Richard Chidiak"
}
] |
Another more about RPreview and Image2PDF
|
[
{
"date": "2009-12-25",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Richard, I appreciate your time.\n\nTry suggesting, not turned, and still more, download the trial version 2.52, and neither, I will be inclined to think that being a demo.\n\nYet despite that, engaging in the purchase.\n\nBest regards",
"time": "07:46",
"topic": "Another more about RPreview and Image2PDF",
"username": "Blessed"
}
] |
Another more about RPreview and Image2PDF
|
[
{
"date": "2010-08-02",
"forum": "FiveWin for Harbour/xHarbour",
"text": "hola \nnecesito convertir wmf a pdf, pero en este codigo no veo como enviar el oPreview...¿?\n\nalguien tiene el codigo completo\ngracias\nsaludos",
"time": "16:50",
"topic": "Another more about RPreview and Image2PDF",
"username": "Miguel Salas"
}
] |
Another more about RPreview and Image2PDF
|
[
{
"date": "2020-06-11",
"forum": "FiveWin for Harbour/xHarbour",
"text": "I use btnbmp to open a Selection as you can see on this snapshot \n\n[img:3g8euama]https://i.postimg.cc/9MDvNzgL/ttttt.png[/img:3g8euama]\n\nwhen I click on btnbmp is on the dialog lookup return this error\n\nthis is the error \n\n[code=fw:3g8euama]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">Application<br />===========<br /> Path and <span style=\"color: #0000ff;\">name</span>: <span style=\"color: #000000;\">C</span>:\\Work\\Errori\\Numeri_Ombrelloni_sezione\\test.Exe <span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">32</span> bits<span style=\"color: #000000;\">)</span><br /> <span style=\"color: #0000ff;\">Size</span>: <span style=\"color: #000000;\">3</span>,<span style=\"color: #000000;\">994</span>,<span style=\"color: #000000;\">624</span> bytes<br /> Compiler version: <span style=\"color: #000000;\">Harbour</span> <span style=\"color: #000000;\">3.2</span>.0dev <span style=\"color: #000000;\">(</span>r1904111533<span style=\"color: #000000;\">)</span><br /> FiveWin version: <span style=\"color: #000000;\">FWH</span> <span style=\"color: #000000;\">20.04</span><br /> C compiler version: <span style=\"color: #000000;\">Borland</span>/Embarcadero C++ <span style=\"color: #000000;\">7.0</span> <span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">32</span>-bit<span style=\"color: #000000;\">)</span><br /> Windows version: <span style=\"color: #000000;\">6.2</span>, Build <span style=\"color: #000000;\">9200</span> <br /><br /> Time <span style=\"color: #0000ff;\">from</span> start: <span style=\"color: #000000;\">0</span> hours <span style=\"color: #000000;\">0</span> mins <span style=\"color: #000000;\">4</span> secs <br /> Error occurred <span style=\"color: #00C800;\">at</span>: <span style=\"color: #000000;\">06</span>/<span style=\"color: #000000;\">11</span>/<span style=\"color: #000000;\">20</span>, <span style=\"color: #000000;\">10</span>:<span style=\"color: #000000;\">03</span>:<span style=\"color: #000000;\">52</span><br /> Error description: <span style=\"color: #000000;\">Error</span> BASE/<span style=\"color: #000000;\">1004</span> No exported <span style=\"color: #00C800;\">method</span>: <span style=\"color: #0000ff;\">ACTIVATE</span><br /> Args:<br /> <span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">]</span> = U <br /> <span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">]</span> = N <span style=\"color: #000000;\">42</span><br /> <span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">3</span><span style=\"color: #000000;\">]</span> = N <span style=\"color: #000000;\">34</span><br /> <span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">4</span><span style=\"color: #000000;\">]</span> = O TDIALOG<br /> <span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">5</span><span style=\"color: #000000;\">]</span> = L .F.<br /><br />Stack Calls<br />===========<br /> Called <span style=\"color: #0000ff;\">from</span>: => <span style=\"color: #0000ff;\">ACTIVATE</span><span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">)</span><br /> Called <span style=\"color: #0000ff;\">from</span>: .\\source\\classes\\<span style=\"color: #0000ff;\">BTNBMP</span>.PRG => TBTNBMP:<span style=\"color: #000000;\">LBUTTONUP</span><span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">981</span> <span style=\"color: #000000;\">)</span><br /> Called <span style=\"color: #0000ff;\">from</span>: .\\source\\classes\\CONTROL.PRG => TCONTROL:<span style=\"color: #000000;\">HANDLEEVENT</span><span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">1817</span> <span style=\"color: #000000;\">)</span><br /> Called <span style=\"color: #0000ff;\">from</span>: .\\source\\classes\\<span style=\"color: #0000ff;\">BTNBMP</span>.PRG => TBTNBMP:<span style=\"color: #000000;\">HANDLEEVENT</span><span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">2043</span> <span style=\"color: #000000;\">)</span><br /> Called <span style=\"color: #0000ff;\">from</span>: .\\source\\classes\\<span style=\"color: #0000ff;\">WINDOW</span>.PRG => _FWH<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">3559</span> <span style=\"color: #000000;\">)</span><br /> Called <span style=\"color: #0000ff;\">from</span>: => DIALOGBOXINDIRECT<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">)</span><br /> Called <span style=\"color: #0000ff;\">from</span>: .\\source\\classes\\<span style=\"color: #0000ff;\">DIALOG</span>.PRG => TDIALOG:<span style=\"color: #0000ff;\">ACTIVATE</span><span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">304</span> <span style=\"color: #000000;\">)</span><br /> Called <span style=\"color: #0000ff;\">from</span>: <span style=\"color: #000000;\">test2</span>.prg => TE</div>[/code:3g8euama]\n\nhere the test\n[code=fw:3g8euama]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"fivewin.ch\"</span><br /><br /><br /><span style=\"color: #00C800;\">Function</span> Test<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">Local</span> oDlg,oBtnSel<br /> <span style=\"color: #00C800;\">local</span> nElemento:=<span style=\"color: #000000;\">35</span><br /> <span style=\"color: #00C800;\">local</span> ctype:=<span style=\"color: #ff0000;\">\"01\"</span><br /> <span style=\"color: #00C800;\">local</span> dFirst:=date<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">local</span> dLast:=date<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><br /><br /> <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">200</span>,<span style=\"color: #000000;\">200</span><br /><br /> @ <span style=\"color: #000000;\">07</span>,<span style=\"color: #000000;\">17</span> <span style=\"color: #0000ff;\">BTNBMP</span> oBtnSel FILENAME <span style=\"color: #ff0000;\">\"selbtn.png\"</span>;<br /> FLAT <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">20</span>,<span style=\"color: #000000;\">14</span> <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">OF</span> oDlg NOBORDER<br /><br /> oBtnSel:<span style=\"color: #000000;\">oPopUp</span>:= <span style=\"color: #000000;\">{</span> |oBtn| ElementiVicini<span style=\"color: #000000;\">(</span>nElemento,ctype,dFirst,dLast,oBtn<span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">}</span><br /><br /><br /> <span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDLG<br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /><br /><span style=\"color: #B900B9;\">//----------------------------------------------------------------//</span><br /><br /><span style=\"color: #00C800;\">Function</span> ElementiVicini<span style=\"color: #000000;\">(</span>nElemento,ctype,dFirst,dLast,ocontrol<span style=\"color: #000000;\">)</span><br /><br /><span style=\"color: #00C800;\">local</span> abtn:=array<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">)</span><br /><br /><span style=\"color: #00C800;\">Local</span> nBtnW :=<span style=\"color: #000000;\">25</span><br /><span style=\"color: #00C800;\">Local</span> nBtnH :=<span style=\"color: #000000;\">15</span><br /><span style=\"color: #00C800;\">local</span> nSelection:=<span style=\"color: #000000;\">0</span><br /><span style=\"color: #00C800;\">local</span> n:= <span style=\"color: #000000;\">1</span><br /><span style=\"color: #00C800;\">Local</span> nRow:=<span style=\"color: #000000;\">10</span><br /><span style=\"color: #00C800;\">Local</span> nCol:=<span style=\"color: #000000;\">1</span><br /><br /><span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">260</span>,<span style=\"color: #000000;\">190</span><br /> <span style=\"color: #00C800;\">for</span> n=<span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">to</span> len<span style=\"color: #000000;\">(</span>abtn<span style=\"color: #000000;\">)</span><br /> @ nRow,nCol <span style=\"color: #0000ff;\">BTNBMP</span> abtn<span style=\"color: #000000;\">[</span>n<span style=\"color: #000000;\">]</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">SIZE</span> nBtnW,nBtnH FLAT <span style=\"color: #0000ff;\">CENTER</span><br /> abtn<span style=\"color: #000000;\">[</span>n<span style=\"color: #000000;\">]</span>:<span style=\"color: #000000;\">bAction</span> := <span style=\"color: #000000;\">{</span> | o | nSelection := o:<span style=\"color: #000000;\">Cargo</span>, oDlg:<span style=\"color: #000000;\">end</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">}</span><br /> <span style=\"color: #00C800;\">next</span><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> nSelection<br /> </div>[/code:3g8euama]",
"time": "09:12",
"topic": "Another problem with Btnbmp",
"username": "Silvio.Falconi"
}
] |
Another problem with Btnbmp
|
[
{
"date": "2020-06-11",
"forum": "FiveWin for Harbour/xHarbour",
"text": "In the function ElementiVicini, declare oBtn as local variable",
"time": "09:31",
"topic": "Another problem with Btnbmp",
"username": "nageswaragunupudi"
}
] |
Another problem with Btnbmp
|
[
{
"date": "2020-06-11",
"forum": "FiveWin for Harbour/xHarbour",
"text": "make the same",
"time": "09:51",
"topic": "Another problem with Btnbmp",
"username": "Silvio.Falconi"
}
] |
Another problem with Btnbmp
|
[
{
"date": "2011-04-05",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hi,\n\nagain I've found a problem with TFolderEx. Everything right from and beneath the checkbox I go over with the mouse disappears.\n\nIt only happens with windows XP (and XP-Mode on Win7) using the classic design of windows XP and a manifest.\nOn Win7 with classic design it also happens if you first click checkbox \"Test1\" and then checkbox \"Test2\"\nI guess there are some problems with the paint event, which also could have to do with my previously reported problem (which also still is unanswered), that it isn't possible to disable a label (say)\n\nWho can help me solve these issues?\n\nDialog freshly painted\n[img:2h6nwwhm]http://www.ctosoftware.de/images/stories/fivetech/checkbox-folderex1.jpg[/img:2h6nwwhm]\n\nAfter going over Test2 on TFolderEx with mouse (or clicking Test1 / Button1):\n[img:2h6nwwhm]http://www.ctosoftware.de/images/stories/fivetech/checkbox-folderex2.jpg[/img:2h6nwwhm]\n\nMy source code of a working example:\n[code=fw:2h6nwwhm]<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<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><span style=\"color: #00C800;\">local</span> oDlg, oFld<br /><span style=\"color: #00C800;\">local</span> lCheck, lCheck2<br /><span style=\"color: #00C800;\">local</span> oBtn1, oBtn2<br /><span style=\"color: #00C800;\">local</span> oSay1<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;\">5</span>, <span style=\"color: #000000;\">5</span> <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #000000;\">35</span>, <span style=\"color: #000000;\">60</span> <span style=\"color: #0000ff;\">TITLE</span> <span style=\"color: #ff0000;\">\"A Dialog Box\"</span><br /><br /> @ <span style=\"color: #000000;\">1</span>, <span style=\"color: #000000;\">2</span> <span style=\"color: #0000ff;\">CHECKBOX</span> lCheck <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Test1\"</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">80</span>,<span style=\"color: #000000;\">13</span><br /><br /> @ <span style=\"color: #000000;\">2</span>, <span style=\"color: #000000;\">2</span> <span style=\"color: #0000ff;\">BUTTON</span> oBtn1 <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Button1\"</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #0000ff;\">MsgInfo</span><span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"ButtonTest\"</span><span style=\"color: #000000;\">)</span><br /><br /> @ <span style=\"color: #000000;\">4</span>, <span style=\"color: #000000;\">2</span> <span style=\"color: #0000ff;\">SAY</span> <span style=\"color: #ff0000;\">\"Hello\"</span> <span style=\"color: #0000ff;\">OF</span> oDlg<br /><br /> @ <span style=\"color: #000000;\">75</span>, <span style=\"color: #000000;\">10</span> FOLDEREX oFld <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">200</span>, <span style=\"color: #000000;\">100</span> ;<br /> <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Page 1\"</span>, <span style=\"color: #ff0000;\">\"Page 2\"</span>, <span style=\"color: #ff0000;\">\"Page 3\"</span><br /><br /> @ <span style=\"color: #000000;\">1</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">CHECKBOX</span> lCheck2 <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Test2\"</span> <span style=\"color: #0000ff;\">OF</span> oFld:<span style=\"color: #000000;\">aDialogs</span><span style=\"color: #000000;\">[</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">]</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">100</span>,<span style=\"color: #000000;\">13</span><br /> @ <span style=\"color: #000000;\">2</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">SAY</span> oSay1 <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Page 1\"</span> <span style=\"color: #0000ff;\">OF</span> oFld:<span style=\"color: #000000;\">aDialogs</span><span style=\"color: #000000;\">[</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">]</span><br /> @ <span style=\"color: #000000;\">3</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">BUTTON</span> oBtn2 <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Button1\"</span> <span style=\"color: #0000ff;\">OF</span> oFld:<span style=\"color: #000000;\">aDialogs</span><span style=\"color: #000000;\">[</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">]</span> <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #0000ff;\">MsgInfo</span><span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"ButtonTest\"</span><span style=\"color: #000000;\">)</span><br /> @ <span style=\"color: #000000;\">2</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">SAY</span> <span style=\"color: #ff0000;\">\"Seite 2\"</span> <span style=\"color: #0000ff;\">OF</span> oFld:<span style=\"color: #000000;\">aDialogs</span><span style=\"color: #000000;\">[</span><span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">]</span><br /><br /> oSay1:<span style=\"color: #000000;\">Disable</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 /><br /><span style=\"color: #00C800;\">return</span> .t.<br /> </div>[/code:2h6nwwhm]\n\nand the text in the manifest (just save it as example.exe.manifest if the example is called example.prg)\n[code=fw:2h6nwwhm]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><?xml version=<span style=\"color: #ff0000;\">\"1.0\"</span> encoding=<span style=\"color: #ff0000;\">\"UTF-8\"</span> standalone=<span style=\"color: #ff0000;\">\"yes\"</span>?><br /> <assembly xmlns=<span style=\"color: #ff0000;\">\"urn:schemas-microsoft-com:asm.v1\"</span> manifestVersion=<span style=\"color: #ff0000;\">\"1.0\"</span>><br /> <dependency><br /> <dependentAssembly><br /> <assemblyIdentity type=<span style=\"color: #ff0000;\">\"win32\"</span> <span style=\"color: #0000ff;\">name</span>=<span style=\"color: #ff0000;\">\"Microsoft.Windows.Common-Controls\"</span> version=<span style=\"color: #ff0000;\">\"6.0.0.0\"</span> processorArchitecture=<span style=\"color: #ff0000;\">\"*\"</span> publicKeyToken=<span style=\"color: #ff0000;\">\"6595b64144ccf1df\"</span> language=<span style=\"color: #ff0000;\">\"*\"</span> /> <br /> </dependentAssembly><br /> </dependency><br /> </assembly><br /> </div>[/code:2h6nwwhm]",
"time": "16:27",
"topic": "Another problem with TFolderEx",
"username": "gkuhnert"
}
] |
Another problem with TFolderEx
|
[
{
"date": "2008-09-10",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hello,\r\n\r\nI have a very strange problem with dialog boxes. The dialog boxes are build from resources.\r\n\r\nThe code looks like this :[code:qtfuif89]PRIVATE LnDlg,ClkDlg\n......\n\nDEFINE DIALOG LnDlg NAME ...\n......\nACTIVATE DIALOG LnDlg NOWAIT ...\n\n......\n\nDEFINE DIALOG ClkDlg NAME ...\n......\nACTIVATE DIALOG ClkDlg NOWAIT ...\n[/code:qtfuif89]\nAt a certain point, one dialog box needs to be ended. To do this, I use :[code:qtfuif89]ClkDlg:End()[/code:qtfuif89]\r\n\r\nBut what happens ? When the dialog box ClkDlg is ended here, the dialog box LnDlg is ended as well.\r\n\r\nI also noticed that the problem only occurs when ClkDlg is defined before LnDlg is defined. If LnDlg is defined before ClkDlg, then the problem doesn't occur.\r\n\r\nHow can there be any connection between those dialog boxes ?\r\nWhy does LnDlg end when ClkDlg is ended ?\r\n\r\nThank you very much in advance for any help.",
"time": "16:12",
"topic": "Another problem with dialog boxes",
"username": "driessen"
}
] |
Another problem with dialog boxes
|
[
{
"date": "2008-09-10",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Michel,\r\n\r\nYou are using private variables and non modal dialogboxes. As they are non modal, the execution of the PRG does not stop there and you exit from your function and those private variables get destroyed.\r\n\r\nPlease change those private variables into static variables",
"time": "16:18",
"topic": "Another problem with dialog boxes",
"username": "Antonio Linares"
}
] |
Another problem with dialog boxes
|
[
{
"date": "2008-09-10",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Antonio,\r\n\r\nThanks for your quick answer.\r\n\r\nI defined those variables as PRIVATE right at the start of my main program. Is that not the same as a STATIC variable ?\r\n\r\nI'll try your suggestion and I let you know the outcome.\r\n\r\nThanks a lot.",
"time": "16:24",
"topic": "Another problem with dialog boxes",
"username": "driessen"
}
] |
Another problem with dialog boxes
|
[
{
"date": "2008-09-10",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Michel,\r\n\r\nThen use public variables",
"time": "16:32",
"topic": "Another problem with dialog boxes",
"username": "Antonio Linares"
}
] |
Another problem with dialog boxes
|
[
{
"date": "2008-09-10",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Antonio,\r\n\r\nI changed the PRIVATE variables first to STATIC variables.\r\n\r\nAt the ClkDlg:End(), I got an error that \"Variable ClkDlg doesn't exist\".\r\n\r\nThen I changed those variables to PUBLIC variables but than the behaviour is just the same as it was with PRIVATE variables.\r\n\r\nWhat now ?\r\n\r\nThanks.",
"time": "16:48",
"topic": "Another problem with dialog boxes",
"username": "driessen"
}
] |
Another problem with dialog boxes
|
[
{
"date": "2008-09-10",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Michel,\r\n\r\nCould you provide me a small example to test here ? thanks <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->",
"time": "16:52",
"topic": "Another problem with dialog boxes",
"username": "Antonio Linares"
}
] |
Another problem with dialog boxes
|
[
{
"date": "2008-09-10",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Antonio,\r\n\r\nI wish I could provide you with a example.\r\n\r\nIt a some very small parts of a huge application (more than 120.000 lines of code). Second problem that OLE is involved (for a connection with Word).\r\n\r\nI'll try to give some more explanation :\r\n\r\nClkDlg is a small dialogbox. In combination, a timer is started for the user to know the time he has been using for a certain job. The dialogbox is used to end the clock and a registration of the time used is saved into a timesheet.\r\n\r\nWhile the timer is running, a document in Word can be made. During the time, the document in Word is active, a small dialogbox is defined which contains some buttons for the user to be able to close Word and to save the document into the archive of the system.\r\n\r\nSo a small summary :\r\n\r\n1. The clock is started (ClkDlg).\r\n2. Word is starten through OLE with its dialog box (LnDlg).\r\n3. ClkDlg is clicked to halt the time and the time used is registered.\r\n4. And now, I notice that LnDlg has disappeared too (I found out through the debugger that LnDlg is closed at the instruction ClkDlg:End() )\r\n\r\nIn this case the problem does NOT happen :\r\n\r\n1. Word is starten through OLE with its dialog box (LnDlg).\r\n2. The clock is started (ClkDlg).\r\n3. ClkDlg is clicked to halt the time and the time used is registered.\r\n4. LnDlg is still available.\r\n\r\nDo you have any idea ?\r\n\r\nThanks.",
"time": "17:11",
"topic": "Another problem with dialog boxes",
"username": "driessen"
}
] |
Another problem with dialog boxes
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.