messages
listlengths
1
1
topic
stringlengths
2
60
[ { "date": "2017-07-24", "forum": "FiveWin for Harbour/xHarbour", "text": "Enrico,\n\njust had a quick look into errsysw.prg and found this comment in it:\n\n[code=fw:321dhwe8]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #B900B9;\">// Note: automatically executes at startup</span><br /><br />proc ErrorSys<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; ErrorBlock<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">&#123;</span> | e | ErrorDialog<span style=\"color: #000000;\">&#40;</span> e <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">return</span><br />&nbsp;</div>[/code:321dhwe8]\n\nSo I assume as it executes automatically at startup and it is fivehx.lib which contains ErrorSys(), it will automatically be linked in, increasing the file size of our .exe", "time": "21:40", "topic": "Bloated EXEs (reprise)", "username": "gkuhnert" } ]
Bloated EXEs (reprise)
[ { "date": "2017-07-24", "forum": "FiveWin for Harbour/xHarbour", "text": "No, I already tried this (read carefully all the messages please!):\n\n[code=fw:34gmlode]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00C800;\">FUNCTION</span> MAIN<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />    <span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span><br /><br /><br /><span style=\"color: #00C800;\">FUNCTION</span> ERRORSYS<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />    <span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span></div>[/code:34gmlode]\n\nEMG", "time": "21:54", "topic": "Bloated EXEs (reprise)", "username": "Enrico Maria Giordano" } ]
Bloated EXEs (reprise)
[ { "date": "2017-07-25", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote:28woy7wb]Allright, but note what increase problem is no a fwh problem or harbour problem: it's a C linker problem[/quote:28woy7wb]\n\n[quote=\"Enrico Maria Giordano\":28woy7wb]No, it isn't. If I remove or add an unused lib from the list, the EXE size doesn't change.\n\nEMG[/quote:28woy7wb]\n\n\nNo, it isn't ?? <!-- s:shock: --><img src=\"{SMILIES_PATH}/icon_eek.gif\" alt=\":shock:\" title=\"Shocked\" /><!-- s:shock: --> \n\nBuilding exe is task of linker. If exe no decrease on remove lib is a linker problem.\n\nWhich is your linker name ?", "time": "08:30", "topic": "Bloated EXEs (reprise)", "username": "hmpaquito" } ]
Bloated EXEs (reprise)
[ { "date": "2017-07-25", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"hmpaquito\":3eexn822]Building exe is task of linker. If exe no decrease on remove lib is a linker problem.[/quote:3eexn822]\n\nThe linker is forced to link a module if a symbol of that module is referenced in the program. In my sample, no FWH symbols are referenced. This is demonstrated by the fact that the linker doesn't complain if I remove the FWH libs from the list. So we have to find the reason why 2.4 MB of FWH modules are linked but not used. The only reason I can think of is that FWH redefines some of the xHarbour symbols.\n\n[quote=\"hmpaquito\":3eexn822]Which is your linker name ?[/quote:3eexn822]\n\nilink32. But that's irrelevant.\n\nEMG", "time": "08:43", "topic": "Bloated EXEs (reprise)", "username": "Enrico Maria Giordano" } ]
Bloated EXEs (reprise)
[ { "date": "2017-07-25", "forum": "FiveWin for Harbour/xHarbour", "text": "Can you paste a map file piece ?\n\nPerhap, the trick is searchs map some file symbol in rtl of xHarbour and if founded then they are.\n\nYou work es very usefull for found if fwh overwrite some basis rtl functions.\n\nI have a no explicable problem with harbour+ fwh... only if fwh is linking, <!-- l --><a class=\"postlink-local\" href=\"http://forums.fivetechsupport.com/viewtopic.php?f=6&t=33754&start=0\">viewtopic.php?f=6&t=33754&start=0</a><!-- l -->", "time": "09:09", "topic": "Bloated EXEs (reprise)", "username": "hmpaquito" } ]
Bloated EXEs (reprise)
[ { "date": "2017-07-25", "forum": "FiveWin for Harbour/xHarbour", "text": "It's almost 1 MB, too much to paste here. Please send me a private message and I will send back the map file to you.\n\nEMG", "time": "09:51", "topic": "Bloated EXEs (reprise)", "username": "Enrico Maria Giordano" } ]
Bloated EXEs (reprise)
[ { "date": "2017-07-25", "forum": "FiveWin for Harbour/xHarbour", "text": "send me your .mak file, pls.", "time": "10:42", "topic": "Bloated EXEs (reprise)", "username": "hmpaquito" } ]
Bloated EXEs (reprise)
[ { "date": "2017-07-25", "forum": "FiveWin for Harbour/xHarbour", "text": "You can use buildx.bat.\n\nEMG", "time": "11:14", "topic": "Bloated EXEs (reprise)", "username": "Enrico Maria Giordano" } ]
Bloated EXEs (reprise)
[ { "date": "2017-07-25", "forum": "FiveWin for Harbour/xHarbour", "text": "I wanted to share my observations.\n\nFirst, on WIndows, I use msvc and msvc64 exclusively. Never BCC.\n\nIf I compile the sample program as is I wind up with a 650 KB executable.\n\nIf I add #include \"fivewin.ch\" to the top of the sample, but still with no calls at all to FWH code, and no other changes to my build scripts, I wind up with a 3.8 MB executable.\n\nWhen I write programs that need to run as services I never include any part of FWH as it was not designed to run headless in a service, and will surprise with popups (MsgInfo(), etc. buried in certain classes and functions) where there should never be any desktop interaction. I share this because it is where I first noticed the .exe size differences, but I never thought much about it because the larger was always something destined for the desktop.\n\nRobb", "time": "20:46", "topic": "Bloated EXEs (reprise)", "username": "rhlawek" } ]
Bloated EXEs (reprise)
[ { "date": "2017-07-26", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"gkuhnert\":xtnfo2n1]Antonio, \ndid you mean by \"FWH libs replace Harbour errorsys\", that the FWH owned errorsys is linked automatically and the size of the .exe can be explained by this?[/quote:xtnfo2n1]\n\nyes", "time": "03:12", "topic": "Bloated EXEs (reprise)", "username": "Antonio Linares" } ]
Bloated EXEs (reprise)
[ { "date": "2017-07-26", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"Antonio Linares\":3cbd2fht][quote=\"gkuhnert\":3cbd2fht]Antonio, \ndid you mean by \"FWH libs replace Harbour errorsys\", that the FWH owned errorsys is linked automatically and the size of the .exe can be explained by this?[/quote:3cbd2fht]\n\nyes[/quote:3cbd2fht]\n\nThen why this sample is still 3195904 in size?\n\n[code=fw:3cbd2fht]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00C800;\">FUNCTION</span> MAIN<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />    <span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span><br /><br /><br /><span style=\"color: #00C800;\">FUNCTION</span> ERRORSYS<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />    <span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span></div>[/code:3cbd2fht]\n\nEMG", "time": "08:03", "topic": "Bloated EXEs (reprise)", "username": "Enrico Maria Giordano" } ]
Bloated EXEs (reprise)
[ { "date": "2017-07-26", "forum": "FiveWin for Harbour/xHarbour", "text": "Please check the linked modules in the map file\n\nthere is no other way to know it", "time": "10:47", "topic": "Bloated EXEs (reprise)", "username": "Antonio Linares" } ]
Bloated EXEs (reprise)
[ { "date": "2017-07-26", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\nI already sent the map to you. It looks like most of FWH modules is linked and I can't understand the reason why they should... <!-- s:-( --><img src=\"{SMILIES_PATH}/icon_sad.gif\" alt=\":-(\" title=\"Sad\" /><!-- s:-( -->\n\nEMG", "time": "10:53", "topic": "Bloated EXEs (reprise)", "username": "Enrico Maria Giordano" } ]
Bloated EXEs (reprise)
[ { "date": "2017-07-26", "forum": "FiveWin for Harbour/xHarbour", "text": "Enrico,\n\nPrevious to link, delete exe file and rebuild, pls.\n\nWhy ? Ilink32 have a incremental mode.", "time": "11:13", "topic": "Bloated EXEs (reprise)", "username": "hmpaquito" } ]
Bloated EXEs (reprise)
[ { "date": "2017-07-26", "forum": "FiveWin for Harbour/xHarbour", "text": "I already disabled incremental mode. Anyway, I tried: same result.\n\nEMG", "time": "11:48", "topic": "Bloated EXEs (reprise)", "username": "Enrico Maria Giordano" } ]
Bloated EXEs (reprise)
[ { "date": "2017-07-26", "forum": "FiveWin for Harbour/xHarbour", "text": "Enrico,\n\nIf you link the FWH libraries, then the errorsys is replaced and FWH's one uses dialogs, so Class TWindow, TDialog, etc (many of them) get linked in", "time": "16:50", "topic": "Bloated EXEs (reprise)", "username": "Antonio Linares" } ]
Bloated EXEs (reprise)
[ { "date": "2009-10-21", "forum": "All products support", "text": "Salve,\navendo una situazione di questo tipo\n\nFunction Main()\n..\nFrPrn:StartmanualBuild({ | | Test()},0,0)\n..\nreturn\n\nFunction Test()\n..\nreturn\n\nVorrei che l'esecuzione del programma Main() non prosegua oltre FrPrn:StartmanualBuild({ | | Test()},0,0) finché l'esecuzione del codeblock (e quindi di test()) non è terminata. \n\ncome posso fare ?\n\nGrazie", "time": "11:45", "topic": "Bloccare esecuzione di un codeblock", "username": "Marco Turco" } ]
Bloccare esecuzione di un codeblock
[ { "date": "2009-10-21", "forum": "All products support", "text": "Cosa hai messo in Test()? Sicuramente una finestra non modale, giusto? Se sì, il problema è solo quello, devi rendere la finestra modale. Se in Test() ci fossero solo istruzioni, certamente il programma non andrebbe avanti nella Main() prima di averle eseguite tutte.\n\nEMG", "time": "17:29", "topic": "Bloccare esecuzione di un codeblock", "username": "Enrico Maria Giordano" } ]
Bloccare esecuzione di un codeblock
[ { "date": "2009-10-25", "forum": "All products support", "text": "Ok. Provo. Grazie del suggerimento", "time": "19:06", "topic": "Bloccare esecuzione di un codeblock", "username": "Marco Turco" } ]
Bloccare esecuzione di un codeblock
[ { "date": "2014-01-09", "forum": "FiveWin for Harbour/xHarbour", "text": "Hello,\nI am trying to block the ENTER Key from \"Clicking\" buttons.\nI have a touch screen (Point of Sale) application with about 45 buttons on the screen using TSBUTTONs. If the ENTER Key is pressed on the keyboard it activates the last button that had been pressed. I've been playing with SETFOCUS() but still can not get it to block the enter key. The Dialog is from a RESOURCE, is there anything in it I could do to block it.\nI now need some expert help to solve my problem. The code is simple here is an example.\n\n REDEFINE SBUTTON oBtnBmp ID m_ButtonLoop OF oMainDlg ;\n FILE m_KeyBmp ;\n ACTION( ProcessKey( &buttonmac, &plubuttonmac ) ) ;\n prompt m_KeyDesc ;\n TEXT ON_CENTER ;\n FONT oButtonFont update ;\n NOBORDER COLOR m_TextColor, CLR_BLACK\n\n.....\n\nFunction ProcessKey(TheKey, ThePLU)\n\n Do Case\n ..... Processes each button that was pressed\n EndCase\n\nReturn\n\nThanks.", "time": "17:21", "topic": "Block Enter Key from Keyboard.", "username": "bradmaudlin" } ]
Block Enter Key from Keyboard.
[ { "date": "2014-01-09", "forum": "FiveWin for Harbour/xHarbour", "text": "Brad,\n\nWhat TSBUTTON version are you using ?\n\nIf you have its source code, please post it here so we can tell you how to modify it, thanks", "time": "18:46", "topic": "Block Enter Key from Keyboard.", "username": "Antonio Linares" } ]
Block Enter Key from Keyboard.
[ { "date": "2014-01-09", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\nThanks for the quick response. I didn't think to look in the TSBUTTON lib.\nI tracked it down and commented out the KeyDown() Carriage Return code, re-compiled the lib and it is now acting the way I would like.\n\nAgain, thanks for a GREAT produce and GREAT support.", "time": "19:59", "topic": "Block Enter Key from Keyboard.", "username": "bradmaudlin" } ]
Block Enter Key from Keyboard.
[ { "date": "2014-01-09", "forum": "FiveWin for Harbour/xHarbour", "text": "Brad,\n\nvery good, thanks <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->", "time": "21:34", "topic": "Block Enter Key from Keyboard.", "username": "Antonio Linares" } ]
Block Enter Key from Keyboard.
[ { "date": "2006-07-31", "forum": "FiveWin para Harbour/xHarbour", "text": "El código que sigue, debería poner la ventana siempre visible y no debería perder foco nunca a menos que se cerrara.\nSi bien queda siempre visible, el block bLostFocus que debería volver el foco a la ventana no lo hace, probé con GotFocus y SetFocus y es lo mismo, parece que ignora el block.\nAlguien me puede ayudar? aquí va el código:\n\n#define SWP_NOSIZE 0x0001\n#define SWP_NOMOVE 0x0002\n#define SWP_NOACTIVATE 0x0010\n#define SWP_SHOWWINDOW 0x0040\n#define HWND_TOPMOST -1\n//\n#include \"FiveWin.ch\"\n\nFUNCTION MAIN\n LOCAL oDlg, oGet, oGet2, oBtn, Capt:=Space(10), Capt2:=\" \"\n\n DEFINE DIALOG oDlg RESOURCE \"Dialogo\" Title \"Captura\"\n REDEFINE GET oGet VAR Capt ID 101 OF oDlg;\n PICTURE \"!!!!!!!!!!\" VALID MsgInfo(Capt)\n oGet:bLostFocus:={||(oGet:SetText:=\"\", oGet:SetFocus() )}\n ACTIVATE DIALOG oDlg CENTER ON INIT ( WindowTopMost( oDlg ), ;\n oDlg:bLostFocus := { || oDlg:SetFocus() } ) //esta linea\n\nRETURN NIL\n\nFUNCTION WindowTopMost( oWnd ) \n SetWindowPos( oWnd:hWnd, HWND_TOPMOST,;\n 0, 0, 0, 0, ;\n SWP_NOMOVE |;\n SWP_NOSIZE |;\n SWP_SHOWWINDOW |;\n SWP_NOACTIVATE )\nRETURN NIL", "time": "13:29", "topic": "Block bLostFocus() de Windows o Dialog", "username": "jose_murugosa" } ]
Block bLostFocus() de Windows o Dialog
[ { "date": "2013-02-04", "forum": "FiveWin for Harbour/xHarbour", "text": "I have a Window \n\n nWd := GetSysMetrics(SM_CXSCREEN) * 0.6\n nHt := GetSysMetrics(SM_CYSCREEN) * 0.56\n\n DEFINE WINDOW oWnd Title \"Test Resized xBrowse \" from 12,11 to nHt, nWd PIXEL\n\n ACTIVATE WINDOW oWnd\n\n\nI wish resize it but I not wish shrink the window but only until the initial coordinates \n\nHow I can make it ?", "time": "13:49", "topic": "Block window size", "username": "Silvio.Falconi" } ]
Block window size
[ { "date": "2018-04-04", "forum": "FiveWin for Harbour/xHarbour", "text": "Dear Antonio,\n\nAre there any plans to incorporate Blockchain initiatives in to FWH?\n\nThank you,", "time": "13:42", "topic": "Blockchain - Antonio", "username": "cdmmaui" } ]
Blockchain - Antonio
[ { "date": "2018-04-04", "forum": "FiveWin for Harbour/xHarbour", "text": "Darrell,\n\n[url:hjxm56va]https&#58;//medium&#46;com/@lhartikk/a-blockchain-in-200-lines-of-code-963cc1cc0e54[/url:hjxm56va]\n\nWhat do you need it for ?", "time": "15:30", "topic": "Blockchain - Antonio", "username": "Antonio Linares" } ]
Blockchain - Antonio
[ { "date": "2018-04-04", "forum": "FiveWin for Harbour/xHarbour", "text": "Dear Antonio,\n\nWe have been invited to be part of the global supply chain and logistics platform with IBM and Maersk (one of the largest shipping companies in the world). We are looking at available platforms and moving forward. It would be great if FWH had these capabilities.\n\nSincerely,", "time": "23:52", "topic": "Blockchain - Antonio", "username": "cdmmaui" } ]
Blockchain - Antonio
[ { "date": "2018-04-05", "forum": "FiveWin for Harbour/xHarbour", "text": "Dear Darrell,\n\nThe key concept of the blockchain is this one:\n\n[quote:15ymap55]The hash of the previous block must be found in the block to preserve the chain integrity[/quote:15ymap55]\n\nSo you can easily apply this concept to a database table records, or to an invoice, etc. Simply select which data to control, generate its hash and store it in the next record.\n\nIf a record is modified, the hash no longer matches and the blockchain is broken and can be detected where it got broken.\n\nA question arises: What if a record has to be modified ? In such case, all records must modify their hashes. Or modifications are not allowed.\n\nIn example: when we use GIT for source control, every change is tracked. There is no way to \"modify\" a change. You simply add a \"new\" change.\n\nApplying these two simple ideas, you can blockchain whatever you want <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->", "time": "08:07", "topic": "Blockchain - Antonio", "username": "Antonio Linares" } ]
Blockchain - Antonio
[ { "date": "2018-04-05", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\nA prototype in fivewin Will be great!!.", "time": "15:40", "topic": "Blockchain - Antonio", "username": "lucasdebeltran" } ]
Blockchain - Antonio
[ { "date": "2018-04-07", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\nVery interesting the \"FWH Blockchain initiative\" proposed by Darrell.\nI think the Fivewin community, as a whole, should support it, as this would introduce Fivewin into the new distributed database development environment.\n\nRegards,\n\nGeorge", "time": "16:34", "topic": "Blockchain - Antonio", "username": "George" } ]
Blockchain - Antonio
[ { "date": "2018-04-08", "forum": "FiveWin for Harbour/xHarbour", "text": "This example shows how to create a Blockchain using an array:\n\nThe third element of each subarray contains the hash of the previous subarray. As soon as an element of a subarray is modified, we can detect\nwhere the blockchain has been modified.\n\nThis same concept can be taken into a DBF so each record keeps a hash of the previous record. In fact we can easily modify FWH Class TDataBase to\nautomatically implement this on a DBF and thus provide the Blockchain security to our DBFs or SQL tables <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->\n\nblockchain.prg (c) FiveTech Software 2018\n[code=fw:9fci8zis]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00C800;\">function</span> Main<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> aBlocks := <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">1</span>, <span style=\"color: #ff0000;\">\"first\"</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#125;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">2</span>, <span style=\"color: #ff0000;\">\"second\"</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#125;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">3</span>, <span style=\"color: #ff0000;\">\"third\"</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#125;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">4</span>, <span style=\"color: #ff0000;\">\"fourth\"</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#125;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">5</span>, <span style=\"color: #ff0000;\">\"fifth\"</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span><br /><br />&nbsp; &nbsp;AEval<span style=\"color: #000000;\">&#40;</span> aBlocks, <span style=\"color: #000000;\">&#123;</span> | aBlock, n | <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">&#40;</span> n > <span style=\"color: #000000;\">1</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; aBlock<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">3</span> <span style=\"color: #000000;\">&#93;</span> := hb_HMAC_SHA256<span style=\"color: #000000;\">&#40;</span> aBlocks<span style=\"color: #000000;\">&#91;</span> n - <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#93;</span><span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#93;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aBlocks<span style=\"color: #000000;\">&#91;</span> n - <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#93;</span><span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">3</span> <span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#41;</span>,<span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;aBlocks<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">3</span> <span style=\"color: #000000;\">&#93;</span><span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#93;</span> = <span style=\"color: #ff0000;\">\"changed!\"</span> &nbsp; &nbsp; <br /><br />&nbsp; &nbsp;AEval<span style=\"color: #000000;\">&#40;</span> aBlocks, <span style=\"color: #000000;\">&#123;</span> | aBlock, n | <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">&#40;</span> n > <span style=\"color: #000000;\">1</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">&#40;</span> aBlock<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">3</span> <span style=\"color: #000000;\">&#93;</span> != hb_HMAC_SHA256<span style=\"color: #000000;\">&#40;</span> aBlocks<span style=\"color: #000000;\">&#91;</span> n - <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#93;</span><span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#93;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aBlocks<span style=\"color: #000000;\">&#91;</span> n - <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#93;</span><span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">3</span> <span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">MsgInfo</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"blockchain modified at \"</span> + AllTrim<span style=\"color: #000000;\">&#40;</span> Str<span style=\"color: #000000;\">&#40;</span> n - <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> + ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #ff0000;\">\"element\"</span> <span style=\"color: #000000;\">&#41;</span>, <span style=\"color: #000000;\">&#41;</span>, <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span> &nbsp; <br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span> &nbsp;</div>[/code:9fci8zis]", "time": "16:43", "topic": "Blockchain - Antonio", "username": "Antonio Linares" } ]
Blockchain - Antonio
[ { "date": "2018-04-09", "forum": "FiveWin for Harbour/xHarbour", "text": "Please look this sample\n\n<!-- l --><a class=\"postlink-local\" href=\"http://forums.fivetechsupport.com/viewtopic.php?f=17&t=34973&p=211321#p211321\">viewtopic.php?f=17&t=34973&p=211321#p211321</a><!-- l -->", "time": "18:53", "topic": "Blockchain - Antonio", "username": "cnavarro" } ]
Blockchain - Antonio
[ { "date": "2018-04-23", "forum": "FiveWin for Harbour/xHarbour", "text": "[url:gzv0rba5]https&#58;//aws&#46;amazon&#46;com/es/blockchain/templates/[/url:gzv0rba5]", "time": "09:20", "topic": "Blockchain - Antonio", "username": "Antonio Linares" } ]
Blockchain - Antonio
[ { "date": "2017-11-21", "forum": "Off Topic / Otros temas", "text": "[quote:22ootf4d][b:22ootf4d]Blockchain Gets a Wall Street Win: ‘We Know the Thing Works Now’[/b:22ootf4d][/quote:22ootf4d]\n\n[url:22ootf4d]https&#58;//www&#46;bloomberg&#46;com/amp/news/articles/2017-11-20/blockchain-gets-a-wall-street-win-we-know-the-thing-works-now[/url:22ootf4d]", "time": "11:37", "topic": "Blockchain moving forward...", "username": "Antonio Linares" } ]
Blockchain moving forward...
[ { "date": "2010-04-09", "forum": "FiveWin for Harbour/xHarbour", "text": "Hi,\n\nI am blocking certain characters in a get with the following code:\n[code=fw:27gypk6r]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00C800;\">Function</span> CheckName<span style=\"color: #000000;\">&#40;</span>oGet<span style=\"color: #000000;\">&#41;</span><br />   <span style=\"color: #00C800;\">Local</span> cChar := <span style=\"color: #0000ff;\">RIGHT</span><span style=\"color: #000000;\">&#40;</span> ALLTRIM<span style=\"color: #000000;\">&#40;</span>oGet:<span style=\"color: #000000;\">cText</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span>,<span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#41;</span><br />   <span style=\"color: #00C800;\">IF</span> cChar $ <span style=\"color: #ff0000;\">\"!@#$%^&*+=[]<span style=\"color: #000000;\">\\|</span>:;,./?<>\"</span> .or. cChar=chr<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">34</span><span style=\"color: #000000;\">&#41;</span> .or. cChar=chr<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">39</span><span style=\"color: #000000;\">&#41;</span><br />      oget:<span style=\"color: #000000;\">oget</span>:<span style=\"color: #000000;\">backspace</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />      oget:<span style=\"color: #000000;\">editupdate</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />      <span style=\"color: #0000ff;\">MsgInfo</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"You cannot use \"</span>+cChar+<span style=\"color: #ff0000;\">\" in this field\"</span>,<span style=\"color: #ff0000;\">\"Invalid Charactor\"</span><span style=\"color: #000000;\">&#41;</span><br />   <span style=\"color: #00C800;\">endif</span><br /><span style=\"color: #00C800;\">Return</span> .t.</div>[/code:27gypk6r]\n\nCan someone tell me how I would do this with a Combobox?", "time": "00:51", "topic": "Blocking characters", "username": "Jeff Barnes" } ]
Blocking characters
[ { "date": "2010-04-09", "forum": "FiveWin for Harbour/xHarbour", "text": "As dropdown style combobox has a GET on it, you may try to use oCbx:oGet in your code.\n\nEMG", "time": "08:28", "topic": "Blocking characters", "username": "Enrico Maria Giordano" } ]
Blocking characters
[ { "date": "2010-11-11", "forum": "FiveWin para Pocket PC", "text": "It happens very often that we get unwanted calls in our life but you can do nothing about it. It maybe someone you are familar with or someone you never know, it maybe a relentless salesman, or an annoying ex, or a harassment call from freaks. It is disturbing, it is torturing, you are totally pissed off. it is helpless, right? Well, if you are a Winodws Mobile user, there is one way out. \n\nPocket Call Blocker is a very easy-to-use application especially designd for Window Mobile Phones. you can use it to block unwanted incoming calls. You simply add blocking calls to the list. You can block calls by specific numbers, wildcard numbers, anonymous numbers, category numbers etc. Moreever, Pocket Call Blocker can also block text messages from a number of a group of numbers. \n\nPocket Call Blocker can be downloaded for free [url=http&#58;//rapidshare&#46;com/#!download|358|429722833|pocket-call-blocker-v1&#46;0&#46;zip|154:2ix1k228]here[/url:2ix1k228].\n\nBelow is a step by step tutorial on blocking a phone call on your Window mobile. \n\nStep 1: Turn on the Call Blocking Service\nIn the main window of Pocket Call Blocker, click the \"OFF\" button to switch the call blocking status to \"ON\".\n[img:2ix1k228]http&#58;//www&#46;pocketcallblocker&#46;com/images/install-pocket-call-blocker-04&#46;jpg[/img:2ix1k228]\n \nStep 2: Add a new call blocking rules\nGo to the \"Rules\" tab -> \"Menu\" -> \"Add\" -> \"Call Rule\" to create a incoming call blocking rule.\n[img:2ix1k228]http&#58;//www&#46;pocketcallblocker&#46;com/images/block-unwant-phone-number&#46;jpg[/img:2ix1k228]\n\nStep 3: Assign numbers to the filter\nAfter input a rule name, you are negative to the \"filter\" tab, and then go to the \"number\" menu -> \"Add\" to assign some numbers to the filter. The software offers 4 types of numbers adding:\nPhone Contacts: To add phone numbers from Phone Contacts;\nSim Card Contacts: To add phone numbers from Sim Card Contacts;\nCall History: To add phone numbers from All Call History;\nNumber: Manually type the exact numbers to the filter;\n[img:2ix1k228]http&#58;//www&#46;pocketcallblocker&#46;com/images/block-cell-phone-calls&#46;jpg[/img:2ix1k228]\n \nStep 4: Choose what to do when a rule is filtered\nAfter you add numbers to the filter successfully, negative to the \"Action\" tab, there are 3 kinds of action:\n[img:2ix1k228]http&#58;//www&#46;pocketcallblocker&#46;com/images/auto-hand-up-unwanted-numbers&#46;jpg[/img:2ix1k228]\n\nIn the advanced tab, you could block ALL Incoming Calls, Unknown Numbers - Filter numbers that are not alike to any numbers from Outlook Contacts or SIM Contacts, and Anonymous - Filters calls without caller numbers without sender numbers. You could also use the wildcard characters '*' to block some kinds of numbers in the <Block Number> blank of Advanced tab.\nFor example, to block any phone number containing 9, enter *9*; \nTo block any phone number begin as 9, enter 9*; \nTo block any phone number end as 9, enter *9;\nWarning: You could not add an exact number in the <Block Number> blank of advanced tab, to block exact number, please refer to the step 3.\n \nDownload Pocket Call Blockerfor free [url=http&#58;//rapidshare&#46;com/#!download|358|429722833|pocket-call-blocker-v1&#46;0&#46;zip|154:2ix1k228]here[/url:2ix1k228], or go to [url=http&#58;//www&#46;pocketcallblocker&#46;com:2ix1k228]Pocket Call Blocker website[/url:2ix1k228] to know more.", "time": "08:39", "topic": "Blocking unwanted incoming calls and sms on Windows Mobile", "username": "dolphin200988" } ]
Blocking unwanted incoming calls and sms on Windows Mobile
[ { "date": "2008-12-20", "forum": "FiveWin para Harbour/xHarbour", "text": "Amigos:\r\n\r\nTal como les comenté en un post anterior, he abierto mi blog donde he escrito mis experiencias sobre ADO, MySQl, xHarbour y desde luego nuestro querido FWH con el único fin de allanar un poco el camino para los que vienen detras y como una muestra de agradecimiento al foro que de tantos problemas me ha sacado.\r\n\r\nLes recomiendo lo lean para que tomen la hebra de la madeja y se inicien en este adictivo mundo de ADO y MySql.\r\n\r\n<!-- m --><a class=\"postlink\" href=\"http://sqlcmd.blogspot.com/\">http://sqlcmd.blogspot.com/</a><!-- m -->\r\n\r\nSaludos", "time": "21:37", "topic": "Blog sobre ADO y MySql", "username": "Armando" } ]
Blog sobre ADO y MySql
[ { "date": "2008-12-21", "forum": "FiveWin para Harbour/xHarbour", "text": "Armando.\r\n\r\n Muchas gracias por compartir con nostros tu experiancia con MySql. Yo no tenia la menor idea por donde empezar, en tu blog he encontrado informacion que me hubiera tomado mucho tiempo investigar y entender. \r\n\r\n Saludos.\r\n\r\n Jose Rios.", "time": "05:43", "topic": "Blog sobre ADO y MySql", "username": "José Ríos" } ]
Blog sobre ADO y MySql
[ { "date": "2008-12-22", "forum": "FiveWin para Harbour/xHarbour", "text": "Armando,\r\nComo siempre muy oportuno con tu ayuda y agradecido por brindarnos tu tiempo y tu investigacion.\r\nsalu2 y EXITO!!\r\nPaco", "time": "16:58", "topic": "Blog sobre ADO y MySql", "username": "Francisco Horta" } ]
Blog sobre ADO y MySql
[ { "date": "2008-12-22", "forum": "FiveWin para Harbour/xHarbour", "text": "Armando:\r\n\r\n\r\nQué Dios y la Virgen María te bendigan a ti y toda tu familia. Que tengas una feliz navidad y un año lleno de alegrías y satisfacciones personales. Que tu altruismo siga creciendo para el bienestar de nuestra comunidad. \r\n\r\nPD: Sigue pendiente la invitación que te hicimos hace como seis (6) a visitar nuestro país. Nunca se me olvida la ayuda que nos diste cuando iniciamos en FW.\r\n\r\nSaludos Cordiales.", "time": "17:51", "topic": "Blog sobre ADO y MySql", "username": "MauroArevalo" } ]
Blog sobre ADO y MySql
[ { "date": "2008-12-22", "forum": "FiveWin para Harbour/xHarbour", "text": "Armando:\r\n\r\n\r\nQué Dios y la Virgen María te bendigan a ti y toda tu familia. Que tengas una feliz navidad y un año lleno de alegrías y satisfacciones personales. Que tu altruismo siga creciendo para el bienestar de nuestra comunidad. \r\n\r\nPD: Sigue pendiente la invitación que te hicimos hace como seis (6) a visitar nuestro país. Nunca se me olvida la ayuda que nos diste cuando iniciamos en FW.\r\n\r\nSaludos Cordiales.", "time": "17:51", "topic": "Blog sobre ADO y MySql", "username": "MauroArevalo" } ]
Blog sobre ADO y MySql
[ { "date": "2008-12-22", "forum": "FiveWin para Harbour/xHarbour", "text": "Gracias Armando,\r\n\r\nsaludos.. y seguimos en contacto.", "time": "21:42", "topic": "Blog sobre ADO y MySql", "username": "sysctrl2" } ]
Blog sobre ADO y MySql
[ { "date": "2008-12-22", "forum": "FiveWin para Harbour/xHarbour", "text": "Mauro:\r\n\r\nMuchas gracias a ti y a Leandro por la reiterada invitación.\r\n\r\nA lo mejor un día de estos me decido.\r\n\r\nSaludos y felíz año\r\n\r\nArmando", "time": "23:38", "topic": "Blog sobre ADO y MySql", "username": "Armando" } ]
Blog sobre ADO y MySql
[ { "date": "2008-12-26", "forum": "FiveWin para Harbour/xHarbour", "text": "Hola Armando\r\n\r\nEl blog esta ok, yo tambien no sabia ni entendia ni papa sobre el tema,\r\nahora con tu blog he aprendido algo... y estoy haciendo las pruebas respectivas. Tengo un par de dudas.\r\n\r\n1.- Donde estan las base de datos fisicamente cuendo se crean?\r\n2.- En el ejemplo de imprimir me sale un mensaje de error en \r\n oImprimir:lCreated en bskip: ... un error de array o algo asi?\r\n\r\nGracias \r\n\r\nSalu2\r\n\r\nFrancis", "time": "20:10", "topic": "Blog sobre ADO y MySql", "username": "Francis" } ]
Blog sobre ADO y MySql
[ { "date": "2008-12-26", "forum": "FiveWin para Harbour/xHarbour", "text": "Francis:\r\n\r\nLas tablas se crean y permanecen en el servidor, y el servidor puede ser desde una humilde PC o un servidor con toda la barba.\r\n\r\nComo breviario te puedo comentar que tu aplicación no \"toca\" la información de las tablas, de eso se encarga MySql. Tu aplicación envía las ordenes (comandos) que haya que ejecutar pero MySql es quien se encarga de ejecutar los comandos.\r\n\r\nLos ejemplos que he puesto en el blog son totalmente funcionales tomados de la aplicación que tengo instalada y funcionando. Tal vez el error que te tira se deba a la versión de FW que usas, yo uso la 8.07.\r\n\r\nSaludos", "time": "23:30", "topic": "Blog sobre ADO y MySql", "username": "Armando" } ]
Blog sobre ADO y MySql
[ { "date": "2008-12-27", "forum": "FiveWin para Harbour/xHarbour", "text": "Hola Armando\r\n\r\nok, gracias por las respuestas, pero yo queria saber si podria ver el archivo fisicamente como en los dbfs, para poder verlos.\r\nEn el caso de las impresiones uso fwh 8.10, y copie todo el ejemplo que haces de impresion de catalogos de unidades de medida...\r\n\r\nDe todas formas revisare el codigo...\r\n\r\nSalu2\r\n\r\nFrancis", "time": "16:43", "topic": "Blog sobre ADO y MySql", "username": "Francis" } ]
Blog sobre ADO y MySql
[ { "date": "2008-12-27", "forum": "FiveWin para Harbour/xHarbour", "text": "Francis:\r\n\r\nOoopss, ahora entiendo tu pregunta <!-- s:oops: --><img src=\"{SMILIES_PATH}/icon_redface.gif\" alt=\":oops:\" title=\"Embarassed\" /><!-- s:oops: --> \r\n\r\nLas tablas se guardan en la carpeta \\DATA que se encuentra\r\nabajo de la carpeta donde instalaste MySql.\r\n\r\nEn mi caso es así:\r\n\r\nC:\\Archivos de programa\\MySql\\MySql Server 5.0\\Data\r\n\r\nAhí se crea una carpeta por cada base de datos que para mi\r\ncaso queda así\r\n\r\nC:\\Archivos de programa\\MySql\\MySql Server 5.0\\Data\\SapWin\r\n\r\nY en la carpeta \\SapWin estan todas mis tablas.\r\n\r\nEspero que ahora sí te haya entendido.\r\n\r\nPara abrir las tablas puedes hacerlo con el Query Browser, es una utileria\r\nque debiste haber instalado junto con MySql Server.\r\n\r\nOtra alternativa es que uses Navicat Lite for MySql, es free.\r\n\r\nRespecto al error, si pudieras publicar tu código para \"echarle un ojo\".\r\n\r\nSaludos", "time": "18:08", "topic": "Blog sobre ADO y MySql", "username": "Armando" } ]
Blog sobre ADO y MySql
[ { "date": "2008-12-27", "forum": "FiveWin para Harbour/xHarbour", "text": "Francis,\r\n\r\nNo soy Armando, pero espero poder aclarar tus dudas.\r\n\r\nPrimero que nada, lo que siempre les he comentado a mis amigos, el tema SQL no es algo que tenga que ver con código solamente, sino también de mentalidad, y ahí reside realmente el exito.\r\n\r\nMysql es un motor de base de datos (yo los llamo contenedores), mysql los administra totalmente, cuando tu lo instalas, estos se crean en una carpeta (generalmente, mysql 5.x) y ahi se instala todo lo que tenga que ver con el motor, ahí se instala una carpeta DATA que es en donde se encuentran los contenedores, en cada contenedor se encuentran las tablas y obviamente en cada tabla, los campos (llamados columnas).\r\n\r\nExisten varios tipos de contenedores: myIsam; estos crean una carpeta con el nombre del contenedor y archivos que se refieren a cada tabla, otro tipo es el innoDB, este formato solo tiene dos archivos donde se concentran todos los contenedores y sus respectivas tablas (en lo particular me han funcionado sin problemas en una aplicación que lleva dos años en producción ininterrumpidos).\r\n\r\nNota: Creo que lo primero es leer un buen manual para entender los principios básicos del lenguaje SQL.", "time": "18:20", "topic": "Blog sobre ADO y MySql", "username": "wmormar" } ]
Blog sobre ADO y MySql
[ { "date": "2008-12-27", "forum": "FiveWin para Harbour/xHarbour", "text": "en la pagina de mysql puedes bajarte \r\n\r\nMySql Administrator,\r\n\r\nahi puedes , crear un contenedor ( base de datos)\r\n\r\ncrear tambien las tablas que van dentro de contenedor,\r\n\r\nagregar campos a una tabla existente,\r\n\r\nojearla, editarla, etc. etc.\r\n\r\npara ver tu bases de dats y tablas, puedes tambien utilizar,\r\n\r\neste, [url:3aliu81z]http&#58;//www&#46;sqldeveloper&#46;net/download&#46;html[/url:3aliu81z]\r\n\r\nes free,\r\n\r\nsaludos..", "time": "21:08", "topic": "Blog sobre ADO y MySql", "username": "sysctrl2" } ]
Blog sobre ADO y MySql
[ { "date": "2011-03-04", "forum": "FiveWin para Harbour/xHarbour", "text": "Hola,\nMe gustaría conocer blogs que hablen sobre [x]Harbour y/o FWH. Los que conozco son estos\n* <!-- m --><a class=\"postlink\" href=\"http://tdolphin.blogspot.com/\">http://tdolphin.blogspot.com/</a><!-- m --> de Daniel García-Gil\n* <!-- m --><a class=\"postlink\" href=\"http://harbourlanguage.blogspot.com/\">http://harbourlanguage.blogspot.com/</a><!-- m -->\n\ny pocos más. En mi sitio web - <!-- m --><a class=\"postlink\" href=\"http://www.alanit.com/blog\">http://www.alanit.com/blog</a><!-- m --> - escribo sobre lo que hago con mis programas, pero no es estrictamente sobre Harbour/FWH, pero también me gustaría conocer blogs de programadores que usen estos lenguajes. Me da igual en español o inglés.\nSaludos,\n\nJosé Luis Sánchez\n\nPD: Echo de menos los post de Biel, a Carlos Mora, a The Full,... Animaros a escribir otra vez, que esto está muy aburrido.", "time": "10:22", "topic": "Blogs que traten sobre FWH/Harbour", "username": "José Luis Sánchez" } ]
Blogs que traten sobre FWH/Harbour
[ { "date": "2011-03-04", "forum": "FiveWin para Harbour/xHarbour", "text": "José Luis:\n\nTal vez pueda interesarte mi blog sobre xHarbour + FW + ADO para atacar MySql como\nmotor de la base de datos.\n\n<!-- m --><a class=\"postlink\" href=\"http://sqlcmd.blogspot.com/\">http://sqlcmd.blogspot.com/</a><!-- m -->\n\nSaludos", "time": "18:10", "topic": "Blogs que traten sobre FWH/Harbour", "username": "Armando" } ]
Blogs que traten sobre FWH/Harbour
[ { "date": "2011-03-04", "forum": "FiveWin para Harbour/xHarbour", "text": "Buenas Jose Luis.\n\nYa también echo de menos tus post sobre productividad, productos, etc... <!-- s;-) --><img src=\"{SMILIES_PATH}/icon_wink.gif\" alt=\";-)\" title=\"Wink\" /><!-- s;-) -->\nAhora mismo, estoy en muchos frentes, todos diferentes, y en la medida que puedo, suelto algún post sobre \nalgo que no he encontrado por ningún lado y creo que es interesante para la comunidad xBase.\n\nLo que pasa, al menos a mí me da esa sensación, es que creo que ahora hay mucha más información que la que había en el tiempo\nen el que dedicaba horas a aprender FW, y en hacer esos post tan y tan largos, eso y que uno se hace viejo , jejeje.\n\nTambién , ahora hay MUCHO , MUCHO más en Harbour, solo lo que hay en las CONTRIBS, hay para escribir un libro.\nY es triste que la mayoría de la gente no sepa ni que existe , por poner un ejemplo, de la librería curl portada a Harbour,\ny de la potencia que esconde en su interior.\n\nMira , quizás haga algún post sobre ello... ( Cuando consiga generar la maldita librería , jejeje )\n\nO, como manejar JSON en Harbour, que nos puede servir para atacar a bases No-SQL como CouchDB, también, daría para \nescribir un libro. ( En eso estoy ahora, y veo que hay cosa realiza en Harbour )\n\nTemas hay como hay meigas en Galicia <!-- s;-) --><img src=\"{SMILIES_PATH}/icon_wink.gif\" alt=\";-)\" title=\"Wink\" /><!-- s;-) --> , el mayor problema es el tiempo disponible para muchos de nosotros, y eso unido\na la dispersión que ha ocurrido al haber otras herramientas, pues es normal que ya no se publique cosas tan interesantes como antaño\no que las publicaciones son para público ya muy concreto.", "time": "22:03", "topic": "Blogs que traten sobre FWH/Harbour", "username": "thefull" } ]
Blogs que traten sobre FWH/Harbour
[ { "date": "2011-03-04", "forum": "FiveWin para Harbour/xHarbour", "text": "Hola Rafa,\n\nHe estado intentando buscar el PDF de tu libro sobre FWH y no lo encuentro.\n\nPor favor, ¿podrías volverlo a subir?.\n\nMuchas gracias.", "time": "22:59", "topic": "Blogs que traten sobre FWH/Harbour", "username": "mgsoft" } ]
Blogs que traten sobre FWH/Harbour
[ { "date": "2011-03-05", "forum": "FiveWin para Harbour/xHarbour", "text": "Hola,\n\nSin ningún orden particular:\n\n<!-- m --><a class=\"postlink\" href=\"http://sites.google.com/site/vivaclipper2/enlaces\">http://sites.google.com/site/vivaclipper2/enlaces</a><!-- m -->\n<!-- m --><a class=\"postlink\" href=\"http://groups.google.com/group/harbour-users/web/how-find-harbour-info-link?hl=it\">http://groups.google.com/group/harbour- ... link?hl=it</a><!-- m -->\n<!-- m --><a class=\"postlink\" href=\"http://harbourlanguage.blogspot.com/\">http://harbourlanguage.blogspot.com/</a><!-- m -->\n<!-- m --><a class=\"postlink\" href=\"http://codigo-base.blogspot.com/\">http://codigo-base.blogspot.com/</a><!-- m -->\n<!-- m --><a class=\"postlink\" href=\"http://cch4clipper.blogspot.com/\">http://cch4clipper.blogspot.com/</a><!-- m -->\n<!-- m --><a class=\"postlink\" href=\"http://marcosgambeta.wordpress.com/\">http://marcosgambeta.wordpress.com/</a><!-- m -->\n<!-- m --><a class=\"postlink\" href=\"http://hmgextended.com/\">http://hmgextended.com/</a><!-- m -->\n<!-- m --><a class=\"postlink\" href=\"http://harbour-minigui.wikispaces.com/\">http://harbour-minigui.wikispaces.com/</a><!-- m -->\n<!-- m --><a class=\"postlink\" href=\"http://dicasprog.codigolivre.org.br/harbour/index.php\">http://dicasprog.codigolivre.org.br/harbour/index.php</a><!-- m -->\n<!-- m --><a class=\"postlink\" href=\"http://sites.google.com/site/hblibs/\">http://sites.google.com/site/hblibs/</a><!-- m -->\n<!-- m --><a class=\"postlink\" href=\"http://nelson-pires.blogspot.com/\">http://nelson-pires.blogspot.com/</a><!-- m -->\n<!-- m --><a class=\"postlink\" href=\"http://hmgforum.com/\">http://hmgforum.com/</a><!-- m -->\n<!-- m --><a class=\"postlink\" href=\"http://www.puertosur.blogspot.com/\">http://www.puertosur.blogspot.com/</a><!-- m -->\n\nSaludos", "time": "09:51", "topic": "Blogs que traten sobre FWH/Harbour", "username": "hmpaquito" } ]
Blogs que traten sobre FWH/Harbour
[ { "date": "2011-03-09", "forum": "FiveWin para Harbour/xHarbour", "text": "Buenas Jose Luis, y lectores del foro.\n\ncomo se puede ver en este hilo, todavia sigue habiendo blogs activos sobre el tema, lo que pasa es que hay rotación de autores. \n\nYo personalmente no le puedo dedicar el tiempo que le dedicaba antaño, tanto al foro como a mi blog, sigo de reojo FW y Harbour, pero mis desarrollos actuales y mis areas de investigación, están algo alejadas de xBase. \n\nPero bueno, la historia esta llena de tesis y antitesis, ir y venir, por eso no descarto el poder volver a participar mas activamente en la comunidad xBase.\n\nSaludos.", "time": "08:45", "topic": "Blogs que traten sobre FWH/Harbour", "username": "Biel EA6DD" } ]
Blogs que traten sobre FWH/Harbour
[ { "date": "2009-02-20", "forum": "FiveWin para Harbour/xHarbour", "text": "Muy buenas, me podrían decir como puedo bloquear todas las columnas de un xBrowse para que no las muevan. He probado con nFreeze pero no funciona.\n\nUn Saludo.", "time": "10:06", "topic": "Bloquear Columnas xBrowse", "username": "softruz" } ]
Bloquear Columnas xBrowse
[ { "date": "2009-02-20", "forum": "FiveWin para Harbour/xHarbour", "text": "[code=fw:t1b5fd3q]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />oBrw:<span style=\"color: #000000;\">lAllowColSwapping</span>:=.F.<br />&nbsp;</div>[/code:t1b5fd3q]", "time": "11:44", "topic": "Bloquear Columnas xBrowse", "username": "Biel EA6DD" } ]
Bloquear Columnas xBrowse
[ { "date": "2020-03-04", "forum": "FiveWin para Harbour/xHarbour", "text": "Hola amigos, necesito bloquear los dias de un calendario\n\tREDEFINE dtPicker aGets[ 3 ] VAR oFechaIni ID 101 OF oDlg UPDATE\n\ntengo eso, pero los dias anteriores de la fecha actual hay que bloquearlos}\npor ejemplo el dias 1, 2, 3 DEBEN ESTAR BLOQUEADOS\n\nsaludos", "time": "15:34", "topic": "Bloquear Dias Calendario", "username": "jbrita" } ]
Bloquear Dias Calendario
[ { "date": "2020-03-04", "forum": "FiveWin para Harbour/xHarbour", "text": "Intenta con:\n\n[code=fw:315aezpn]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">IF</span> lCondicion<br /><br />&nbsp; &nbsp;aGets<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">3</span> <span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">Disable</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp;</div>[/code:315aezpn]", "time": "15:50", "topic": "Bloquear Dias Calendario", "username": "karinha" } ]
Bloquear Dias Calendario
[ { "date": "2020-03-04", "forum": "FiveWin para Harbour/xHarbour", "text": "Amigo solo quiero bloquear del calendario esos dias y no todos\n\nsaludos", "time": "15:55", "topic": "Bloquear Dias Calendario", "username": "jbrita" } ]
Bloquear Dias Calendario
[ { "date": "2020-03-04", "forum": "FiveWin para Harbour/xHarbour", "text": "Hello, muestre un ejemplo simples porfa. No uso este calendario. Saludos.", "time": "18:19", "topic": "Bloquear Dias Calendario", "username": "karinha" } ]
Bloquear Dias Calendario
[ { "date": "2020-03-04", "forum": "FiveWin para Harbour/xHarbour", "text": "revisa este link\n<!-- m --><a class=\"postlink\" href=\"https://www.recorrido.cl/es\">https://www.recorrido.cl/es</a><!-- m --> \n\ny dale click a la fecha, veras que los dias anteriores estan bloqueados\n\nsaludos", "time": "21:29", "topic": "Bloquear Dias Calendario", "username": "jbrita" } ]
Bloquear Dias Calendario
[ { "date": "2020-03-05", "forum": "FiveWin para Harbour/xHarbour", "text": "you can make it with Nages calendar", "time": "09:29", "topic": "Bloquear Dias Calendario", "username": "Silvio.Falconi" } ]
Bloquear Dias Calendario
[ { "date": "2020-03-05", "forum": "FiveWin para Harbour/xHarbour", "text": "Que classe controla el dtPicker? No uso dtPicker aún. Saludos.", "time": "14:10", "topic": "Bloquear Dias Calendario", "username": "karinha" } ]
Bloquear Dias Calendario
[ { "date": "2020-03-06", "forum": "FiveWin para Harbour/xHarbour", "text": "con dtPicker se podrá bloquear algúnos días pasados\n\nsaludos", "time": "16:50", "topic": "Bloquear Dias Calendario", "username": "jbrita" } ]
Bloquear Dias Calendario
[ { "date": "2021-08-13", "forum": "FiveWin para Harbour/xHarbour", "text": "Saludos estimados\n\nEstoy usando un GET para el ingreso de un password, pero me piden que en ese GET no se permita copiar informacion, osea impedir el PASTE o la combinacion CTRL+V, alguna idea para impedirlo (abajo la linea que uso) GRACIAS\n\nREDEFINE GET oPass VAR cPass ID 120 OF oDlg PICTURE \"@KR\" VALID chkvalpas(cPass) ACTION ( oPass:lPassword := !oPass:lPassword, oPass:Refresh() ) BITMAP \"#8007\"", "time": "00:32", "topic": "Bloquear PASTE y CTRL+V en un GET", "username": "Enrrique Vertiz" } ]
Bloquear PASTE y CTRL+V en un GET
[ { "date": "2021-08-13", "forum": "FiveWin para Harbour/xHarbour", "text": "Saludos,\n\nYo lo Hago mandando a grabar un valor nulo al portapapeles cuando el get toma el foco. \nEs una idea, seguro los amigos del foro aportaran otras más.\n\n[code=fw:1npc1peg]<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;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />  <span style=\"color: #00C800;\">Local</span> oDlg, oClp, oGetPassword<br />  <span style=\"color: #00C800;\">Local</span> cGetPassword:=Spac<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">8</span><span style=\"color: #000000;\">&#41;</span><br /><br />  <span style=\"color: #0000ff;\">Define</span> <span style=\"color: #0000ff;\">Dialog</span> oDlg<br />   <span style=\"color: #0000ff;\">Define</span> CLIPBOARD oClp <span style=\"color: #0000ff;\">OF</span> oDlg<br />   <br />   <span style=\"color: #0000ff;\">Redefine</span> <span style=\"color: #0000ff;\">get</span> oGetPassWord <span style=\"color: #0000ff;\">Var</span> cGetPassWord <span style=\"color: #0000ff;\">Id</span> <span style=\"color: #000000;\">4002</span> <span style=\"color: #0000ff;\">of</span> oDlg<br />   oGetPassWord:<span style=\"color: #000000;\">bGotFocus</span>:=<span style=\"color: #000000;\">&#123;</span>|| oClp:<span style=\"color: #000000;\">SetText</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">''</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</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.</div>[/code:1npc1peg]", "time": "02:36", "topic": "Bloquear PASTE y CTRL+V en un GET", "username": "JoseAlvarez" } ]
Bloquear PASTE y CTRL+V en un GET
[ { "date": "2021-08-13", "forum": "FiveWin para Harbour/xHarbour", "text": "Saludos Jose\n\nFunciona ... no permite el copiado, Gracias", "time": "06:52", "topic": "Bloquear PASTE y CTRL+V en un GET", "username": "Enrrique Vertiz" } ]
Bloquear PASTE y CTRL+V en un GET
[ { "date": "2012-02-27", "forum": "FiveWin para Harbour/xHarbour", "text": "Hola foro,\n\nTengo un proceso donde quiero bloquear el teclado, cuaquier tecla que pulsen,,, ya que muestro un dialogo con un mensaje de \"espere un momento\", pero cuando esta el mensaje, pulsan cualquier tecla o ESC y el proceso se aborta no termina completo, este es mi codigo con un dialogo NOMODAL\n[code=fw:37mjgz4e]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDls <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"DLG_AVISO\"</span> <span style=\"color: #0000ff;\">TITLE</span> <span style=\"color: #ff0000;\">\"Procesando..\"</span> <span style=\"color: #0000ff;\">FONT</span> ::<span style=\"color: #000000;\">oFont</span><span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#93;</span><br /><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">SAY</span> oSay <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Espere un momento ...\"</span> <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">100</span> <span style=\"color: #0000ff;\">OF</span> oDls<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">REDEFINE</span> BUTTONBMP oBtnB &nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">101</span> <span style=\"color: #0000ff;\">OF</span> oDls<br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDls <span style=\"color: #0000ff;\">CENTERED</span> <span style=\"color: #0000ff;\">NOWAIT</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">INIT</span> <span style=\"color: #000000;\">&#40;</span> oBtnB:<span style=\"color: #000000;\">Hide</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;_Proceso<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;oDls:<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp;</div>[/code:37mjgz4e]\n\nsaludos\npaco", "time": "18:15", "topic": "Bloquear Teclado", "username": "Francisco Horta" } ]
Bloquear Teclado
[ { "date": "2012-02-27", "forum": "FiveWin para Harbour/xHarbour", "text": "Ya probastes con msgrun()..? saludos... <!-- s:shock: --><img src=\"{SMILIES_PATH}/icon_eek.gif\" alt=\":shock:\" title=\"Shocked\" /><!-- s:shock: -->", "time": "19:25", "topic": "Bloquear Teclado", "username": "joseluisysturiz" } ]
Bloquear Teclado
[ { "date": "2012-02-27", "forum": "FiveWin para Harbour/xHarbour", "text": "que tal jose luis,\n\nsi uso msgrun( \"espere un momento...\",\"aviso\",{|| Proceso()})\n\ny cuando aparece el dialgo pulso ESC\nel proceso se trunca\notra opcion?\n<!-- s:-( --><img src=\"{SMILIES_PATH}/icon_sad.gif\" alt=\":-(\" title=\"Sad\" /><!-- s:-( -->\ngracias\npaco", "time": "22:17", "topic": "Bloquear Teclado", "username": "Francisco Horta" } ]
Bloquear Teclado
[ { "date": "2012-02-27", "forum": "FiveWin para Harbour/xHarbour", "text": "Paco,\n\nPrueba deshabilitando el diálogo:\n\n[code=fw:1wiw2n59]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"> &nbsp; <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDls <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"DLG_AVISO\"</span> <span style=\"color: #0000ff;\">TITLE</span> <span style=\"color: #ff0000;\">\"Procesando..\"</span> <span style=\"color: #0000ff;\">FONT</span> ::<span style=\"color: #000000;\">oFont</span><span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#93;</span><br /><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">SAY</span> oSay <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Espere un momento ...\"</span> <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">100</span> <span style=\"color: #0000ff;\">OF</span> oDls<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">REDEFINE</span> BUTTONBMP oBtnB &nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">101</span> <span style=\"color: #0000ff;\">OF</span> oDls<br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDls <span style=\"color: #0000ff;\">CENTERED</span> <span style=\"color: #0000ff;\">NOWAIT</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">INIT</span> <span style=\"color: #000000;\">&#40;</span> oBtnB:<span style=\"color: #000000;\">Hide</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; oDls:<span style=\"color: #000000;\">Disable</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;_Proceso<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;oDls:<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span></div>[/code:1wiw2n59]", "time": "23:36", "topic": "Bloquear Teclado", "username": "Antonio Linares" } ]
Bloquear Teclado
[ { "date": "2012-02-27", "forum": "FiveWin para Harbour/xHarbour", "text": "Antonio,,\n\nprobado con oDls:Disable(), y no funciona, si presiono varias veces ESC procesa los eventos posterior al cerrar el dialogo,\nprobe con:\n\n ACTIVATE DIALOG oDls CENTERED NOWAIT ;\n ON INIT ( oBtnB:Hide() )\n\n EnableWindow( oDls:hWnd, .F. )\n\n _Proceso()\n\n EnableWindow( oDls:hWnd, .T. )\n\n oDls:End()\n\npero de cualquier manera procesa los que se pulso al activar EnableWindow( oDls:hWnd, .T.)\npor eso la necesidad de limpiar el buffer, algo parecido al clear typeahead y no procese nada...\nalguna otra sugerencia?\ngracias\npaco", "time": "23:59", "topic": "Bloquear Teclado", "username": "Francisco Horta" } ]
Bloquear Teclado
[ { "date": "2012-02-28", "forum": "FiveWin para Harbour/xHarbour", "text": "Francisco\n\nIntenta con:\n[code=fw:35zwas2n]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />SetDialogEsc<span style=\"color: #000000;\">&#40;</span>.F.<span style=\"color: #000000;\">&#41;</span> <span style=\"color: #B900B9;\">//Desactiva la tecla ESC</span><br />&nbsp;</div>[/code:35zwas2n]\n\nSaludos,\n\nAdhemar", "time": "01:02", "topic": "Bloquear Teclado", "username": "acuellar" } ]
Bloquear Teclado
[ { "date": "2022-09-22", "forum": "FiveWin para Harbour/xHarbour", "text": "Buenas\n\nMe interesaría saber como puedo impedir si estoy usando una función, que alguien de la red local, pueda acceder a ésta función, que le avise que no puede acceder ya que esta siendo usada.\n\nMuchas gracias", "time": "13:29", "topic": "Bloquear acceso a una funcion (Solucionado)", "username": "JoseLuis" } ]
Bloquear acceso a una funcion (Solucionado)
[ { "date": "2022-09-22", "forum": "FiveWin para Harbour/xHarbour", "text": "Buen día. Yo lo haría así: Crearía una variable LÓGICA en una Base de Datos y al ingresar a la función, le pasaría el .T. si alguien más entrara y fuera .T. advirtió que la función ya está en uso. Al salir, reenviaría a la base de datos que ya no estoy en la función y escribiría .F. ¿él entiende?\n\nO bloquee abriendo la base de datos con el comando USED(), por ejemplo. Hay varias otras formas. que ahora no recuerdo. jajajajajajaja\n\nRegards, saludos.", "time": "13:57", "topic": "Bloquear acceso a una funcion (Solucionado)", "username": "karinha" } ]
Bloquear acceso a una funcion (Solucionado)
[ { "date": "2022-09-22", "forum": "FiveWin para Harbour/xHarbour", "text": "por ejemplo:\n\n[code=fw:3gtj47pk]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #00C800;\">STATIC</span> lAbrePropo := .F., <br /><br /><span style=\"color: #00C800;\">FUNCTION</span>...<br /><br />&nbsp; &nbsp;<span style=\"color: #B900B9;\">// Para Impedir Uma 2¦ Abertura de Janela!!!</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">IF</span> lAbrePropo = .F.<br /><br />&nbsp; &nbsp; &nbsp; lAbrePropo := .T.<br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">ELSE</span><br /><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">MsgInfo</span><span style=\"color: #000000;\">&#40;</span> OemToAnsi<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"ATEN€ÇO: &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \"</span> +CRLF+ ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #ff0000;\">\"A JANELA DA PROPOSTA Jµ ESTµ &nbsp; &nbsp; \"</span> +CRLF+ ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #ff0000;\">\"ABERTA NO RODAP DO PROGRAMA &nbsp; &nbsp; \"</span> +CRLF+ ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #ff0000;\">\"MAXIMIZE A JANELA PARA TRABALHAR.\"</span> +CRLF+ ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #ff0000;\">\"USE O BOTÇO <Saida> PARA FECHAR. \"</span> +CRLF+ ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #ff0000;\">\"CUIDADO PODE QUEBRAR OS BANCOS. &nbsp;\"</span> <span style=\"color: #000000;\">&#41;</span>, &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;OemToAnsi<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"JANELA Jµ ESTA ABERTA NO RODAP. \"</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; lLigaBtnPropo := .F.<br /><br />&nbsp; &nbsp; &nbsp; oPropo:<span style=\"color: #000000;\">Disable</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; oPropo:<span style=\"color: #0000ff;\">Refresh</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; lAbrePropo := .F.<br /><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">ENDIF</span><br /><br /><span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span><br />&nbsp;</div>[/code:3gtj47pk]\n\nRegards, saludos.", "time": "14:07", "topic": "Bloquear acceso a una funcion (Solucionado)", "username": "karinha" } ]
Bloquear acceso a una funcion (Solucionado)
[ { "date": "2022-09-22", "forum": "FiveWin para Harbour/xHarbour", "text": "Origen:\n\n[code=fw:20mvzl34]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #B900B9;\">// Bmp_Rand.Prg - Criador Autom tico de BitMaps Para o Fundo de Tela.</span><br /><span style=\"color: #B900B9;\">//-----------------------------------------------------------------------------</span><br /><span style=\"color: #B900B9;\">//</span><br /><span style=\"color: #B900B9;\">// Random BMP Para Fundo de Tela(Ventana) em Fivewin.</span><br /><span style=\"color: #B900B9;\">// C‚sar E. Lozada, Oct. 10-2001 - Original em: <!-- w --><a class=\"postlink\" href=\"http://www.dbwide.com.ar\">www.dbwide.com.ar</a><!-- w --></span><br /><span style=\"color: #B900B9;\">// <!-- e --><a href=\"mailto:cesarlozada@hotmail.com\">cesarlozada@hotmail.com</a><!-- e --></span><br /><span style=\"color: #B900B9;\">// Modificado em: 22/09/2022 - Por Joao Santos - <!-- e --><a href=\"mailto:kapiabafwh@gmail.com\">kapiabafwh@gmail.com</a><!-- e --></span><br /><span style=\"color: #B900B9;\">// Incorporar ao RKM e LNK fazer chamada no Menu Principal</span><br /><span style=\"color: #B900B9;\">//-----------------------------------------------------------------------------</span><br /><br /><span style=\"color: #00D7D7;\">#Include</span> <span style=\"color: #ff0000;\">\"Fivewin.Ch\"</span><br /><br /><span style=\"color: #00D7D7;\">#Define</span> CLR_LGRAY &nbsp; &nbsp; nRGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">230</span>, <span style=\"color: #000000;\">230</span>, <span style=\"color: #000000;\">230</span> <span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00D7D7;\">#Define</span> CLR_LGREEN &nbsp; &nbsp;nRGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">190</span>, <span style=\"color: #000000;\">215</span>, <span style=\"color: #000000;\">190</span> <span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00D7D7;\">#Define</span> CLR_AMARELO &nbsp; nRGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">255</span>, <span style=\"color: #000000;\">255</span>, <span style=\"color: #000000;\">000</span> <span style=\"color: #000000;\">&#41;</span> &nbsp;<span style=\"color: #B900B9;\">//--> Amarelo Para o Fundo</span><br /><br /><span style=\"color: #00D7D7;\">#Define</span> CLR_WINDOW &nbsp; &nbsp;nRgb<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">130</span>, <span style=\"color: #000000;\">130</span>, <span style=\"color: #000000;\">130</span> <span style=\"color: #000000;\">&#41;</span> &nbsp;<span style=\"color: #B900B9;\">// 16 // COR DO WINDOWS DEFINIDA 16 BITS</span><br /><br /><span style=\"color: #00C800;\">Static</span> oWnd, lAbertura := .F.<br /><br /><span style=\"color: #00C800;\">Function</span> Bmp_Rand<span style=\"color: #000000;\">&#40;</span> cWidth, cHeight <span style=\"color: #000000;\">&#41;</span><br />&nbsp; <br />&nbsp; &nbsp; <span style=\"color: #00C800;\">Local</span> oBrush, oBar, oHand, oIco<br />&nbsp; &nbsp; <span style=\"color: #00C800;\">Local</span> NN<br />&nbsp; &nbsp; <span style=\"color: #00C800;\">Local</span> cBmpFile &nbsp;:= <span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"FUNDOWND.BMP\"</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #B900B9;\">// Nao pode mudar este nome, senao...</span><br /><br />&nbsp; &nbsp; <span style=\"color: #B900B9;\">// Para Impedir Uma 2¦ Abertura de Janela!!!</span><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">IF</span> lAbertura = .F.<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; lAbertura := .T.<br /><br />&nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">ELSE</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">MsgInfo</span><span style=\"color: #000000;\">&#40;</span> OemToAnsi<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Esta Janela J  Est  em Uso...\"</span> +CRLF+ ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #ff0000;\">\"Verifique Rodap‚ do &nbsp;Windows.\"</span> +CRLF+ ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #ff0000;\">\"Ou Minimize o Programa... &nbsp; &nbsp;\"</span> +CRLF+ ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #ff0000;\">\"Pois Ela &nbsp;Pode Estar Por Tr s\"</span> +CRLF+ ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #ff0000;\">\"do Menu Principal. Verifique!\"</span><span style=\"color: #000000;\">&#41;</span>, &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #ff0000;\">\"Verifique, Por Favor!\"</span> <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span><br /><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">ENDIF</span><br /><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">DEFAULT</span> cWidth &nbsp;:= <span style=\"color: #ff0000;\">'65'</span><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">DEFAULT</span> cHeight := cWidth<br /><br />&nbsp; &nbsp; <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">CURSOR</span> oHand <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"Dedo\"</span><br />&nbsp; &nbsp; <span style=\"color: #B900B9;\">//DEFINE ICON OICO FILE \".\\BRASIL__.BMP\"</span><br />&nbsp; &nbsp; <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">ICON</span> oIco <span style=\"color: #0000ff;\">NAME</span> <span style=\"color: #ff0000;\">\"CASA\"</span><br /><br />&nbsp; &nbsp; <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWnd &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">FROM</span> <span style=\"color: #000000;\">6.70</span>, <span style=\"color: #000000;\">5</span> <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #000000;\">34</span>, <span style=\"color: #000000;\">95</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">BRUSH</span> oBrush &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">ICON</span> &nbsp;oIco &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;NOZOOM &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;NOSYSMENU &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;BORDER SINGLE &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">TITLE</span> <span style=\"color: #ff0000;\">\"Criando Fundo Para Janela do Sistema(Brush) - \"</span> + ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #ff0000;\">\"Modelos - Troque o Fundo em: Trocar Fundo da \"</span> &nbsp;+ ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #ff0000;\">\"Janela do Sistema\"</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #B900B9;\">/*<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;NO CAPTION &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;NOICONIZE &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; // NÆo Quero Icone...<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;*/</span><br />&nbsp; &nbsp; <span style=\"color: #B900B9;\">/*<br />&nbsp; &nbsp; DEFINE BUTTONBAR OBAR &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;_3DLOOK &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;SIZE 70, 26 &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;TOP &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;OF oWnd &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;CURSOR oHand<br />&nbsp; &nbsp; */</span><br /><br />&nbsp; &nbsp; <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTONBAR</span> OBAR &nbsp; &nbsp; &nbsp; ; <span style=\"color: #B900B9;\">// 40,50 Fica Muito Legal</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;BUTTONSIZE <span style=\"color: #000000;\">50</span>, <span style=\"color: #000000;\">50</span> &nbsp; &nbsp;; <span style=\"color: #B900B9;\">// Cawind.prg &nbsp;// 47.50,50</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;_3DLOOK &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; <span style=\"color: #B900B9;\">// Imagem na Tela em 3D // _3DLOOK</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;TOP &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">OF</span> oWnd &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">CURSOR</span> oHand <span style=\"color: #000000;\">2007</span> &nbsp; &nbsp; &nbsp;<span style=\"color: #B900B9;\">// ESTA EM C:\\SAMPLES\\TESTGRAD.PRG</span><br /><br />&nbsp; &nbsp; oBar:<span style=\"color: #000000;\">bRClicked</span> := <span style=\"color: #000000;\">&#123;</span> || <span style=\"color: #000000;\">&#40;</span> <span style=\"color: #00C800;\">NIL</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #B900B9;\">// Mouse Direito</span><br />&nbsp; &nbsp; oBar:<span style=\"color: #000000;\">bLClicked</span> := <span style=\"color: #000000;\">&#123;</span> || <span style=\"color: #000000;\">&#40;</span> <span style=\"color: #00C800;\">NIL</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #B900B9;\">// Mouse Esquerdo</span><br />&nbsp; &nbsp; <span style=\"color: #B900B9;\">//oBar:SetColor( CLR_LIGHTGRAY, CLR_LGREEN )</span><br />&nbsp; &nbsp; oBar:<span style=\"color: #000000;\">SetColor</span><span style=\"color: #000000;\">&#40;</span> CLR_BLACK, CLR_WINDOW <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; oBar:<span style=\"color: #0000ff;\">Adjust</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; <span style=\"color: #B900B9;\">/*<br />&nbsp; &nbsp; DEFINE BUTTON OF OBAR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;FILE \".\\BROWSE.BMP\" &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;MESSAGE ( OemToAnsi( \"Criar e Gravar Novo Fundo de Tela\" ) ) &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;PROMPT \"Criar Fundo\" &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ACTION ( CriaRandBmp( cBmpFile, Val( cWidth ), Val( cHeight ) ) ) ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;CENTER<br />&nbsp; &nbsp; */</span><br /><br />&nbsp; &nbsp; <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;\">\"CAIXA3\"</span> <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Fundo\"</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #000000;\">&#40;</span> CriaRandBmp<span style=\"color: #000000;\">&#40;</span> cBmpFile, Val<span style=\"color: #000000;\">&#40;</span> cWidth <span style=\"color: #000000;\">&#41;</span>, Val<span style=\"color: #000000;\">&#40;</span> cHeight <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">MESSAGE</span> <span style=\"color: #000000;\">&#40;</span> OemToAnsi<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Criar e Gravar Novo Fundo de Tela\"</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;TOOLTIP <span style=\"color: #ff0000;\">\"Criar Novo Fundo de Tela Para o Programa\"</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;NOBORDER GROUP TOP<br /><br />&nbsp; &nbsp; <span style=\"color: #B900B9;\">/*<br />&nbsp; &nbsp; DEFINE BUTTON OF OBAR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;FILE \".\\BROWSE.BMP\" &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;MESSAGE ( \"Saida do Programa\" ) &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;PROMPT \"&Saida\" &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ACTION ( Click(), OWND:END() ) &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;CENTER<br />&nbsp; &nbsp; */</span><br /><br />&nbsp; &nbsp; <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;\">\"SAIDA\"</span>, <span style=\"color: #ff0000;\">\"SAIR2\"</span> <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Saida\"</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">MESSAGE</span> <span style=\"color: #ff0000;\">\"Saida do Programa\"</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;TOOLTIP <span style=\"color: #ff0000;\">\"Saida do Programa \"</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #000000;\">&#40;</span> <span style=\"color: #0000ff;\">Click</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>, OWND:<span style=\"color: #000000;\">END</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;NOBORDER GROUP TOP<br /><br />&nbsp; &nbsp; SET <span style=\"color: #0000ff;\">MESSAGE</span> <span style=\"color: #0000ff;\">OF</span> oWnd <span style=\"color: #0000ff;\">TO</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #ff0000;\">\"Criando Fundo Para Janela do Sistema(Brush) - \"</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; + &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #ff0000;\">\"Modelos - Troque o Fundo em: Trocar Fundo da Janela do Sistema\"</span> &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">COLOR</span> CLR_HBLUE &nbsp;<span style=\"color: #0000ff;\">CENTERED</span> <span style=\"color: #000000;\">2007</span><br /><br />&nbsp; &nbsp; <span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">WINDOW</span> OWND ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">VALID</span><span style=\"color: #000000;\">&#40;</span> PorFalso<span style=\"color: #000000;\">&#40;</span> @lAbertura <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; <span style=\"color: #0000ff;\">RELEASE</span> ALL<br />&nbsp; &nbsp; <span style=\"color: #0000ff;\">RELEASE</span> <span style=\"color: #0000ff;\">BRUSH</span> oBrush<br /><br /><span style=\"color: #00C800;\">Return</span> <span style=\"color: #00C800;\">Nil</span><br /><br /><span style=\"color: #B900B9;\">//-----------------------------------------------------------------------------</span><br /><span style=\"color: #B900B9;\">//</span><br /><span style=\"color: #B900B9;\">// Random BMP y Random Texture</span><br /><span style=\"color: #B900B9;\">// C‚sar E. Lozada, Oct. 10-2001</span><br /><span style=\"color: #B900B9;\">// <!-- e --><a href=\"mailto:cesarlozada@hotmail.com\">cesarlozada@hotmail.com</a><!-- e --></span><br /><span style=\"color: #B900B9;\">//</span><br /><span style=\"color: #B900B9;\">//-----------------------------------------------------------------------------</span><br /><br />#xTranslate <span style=\"color: #0000ff;\">Frac</span><span style=\"color: #000000;\">&#40;</span><n><span style=\"color: #000000;\">&#41;</span> => <n>-Int<span style=\"color: #000000;\">&#40;</span><n><span style=\"color: #000000;\">&#41;</span><br />#xTranslate Random<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> => nRandom<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">999999</span><span style=\"color: #000000;\">&#41;</span>/<span style=\"color: #000000;\">1000000</span><br /><br /><span style=\"color: #B900B9;\">//-----------------------------------------------------------------------------</span><br /><br /><span style=\"color: #00C800;\">Function</span> CriaRandBmp<span style=\"color: #000000;\">&#40;</span> cBmpFile, nWidth, nHeight <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">Local</span> F, GF2, nBmpSize, nFileSize, oConfirme, nI, nJ, I, J, aData, oDlg, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oGet, oGet2<br />&nbsp; &nbsp; <span style=\"color: #00C800;\">Local</span> nLinhaGet &nbsp; &nbsp;:= <span style=\"color: #000000;\">25</span><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">Local</span> nColunaGet &nbsp; := <span style=\"color: #000000;\">06</span><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">Local</span> nLinhaBotao &nbsp;:= <span style=\"color: #000000;\">35</span><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">Local</span> nColunaBotao := <span style=\"color: #000000;\">59</span><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">Local</span> nLinhaSay &nbsp; &nbsp;:= <span style=\"color: #000000;\">05</span><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">Local</span> nColunaSay &nbsp; := <span style=\"color: #000000;\">05</span><br /><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">Local</span> cBmpGrava &nbsp; &nbsp;:= <span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\" &nbsp; &nbsp; &nbsp; &nbsp;\"</span> <span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #B900B9;\">//-------------------Divisao da Dialog--Caixa de Dialogo-----------------------</span><br /><br />&nbsp; &nbsp; <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">TITLE</span> <span style=\"color: #ff0000;\">\"Nome do Arquivo BitMap\"</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">STYLE</span> nOR<span style=\"color: #000000;\">&#40;</span> DS_MODALFRAME <span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;COLORS nRGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">127</span>, <span style=\"color: #000000;\">127</span>, <span style=\"color: #000000;\">127</span> <span style=\"color: #000000;\">&#41;</span>, nRGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">255</span>, <span style=\"color: #000000;\">215</span>, &nbsp; <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; @ nLinhaSay, nColunaSay &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">SAY</span> <span style=\"color: #000000;\">&#40;</span> OemToAnsi<span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"Informe Nome da BitMap(Arquivo) \"</span> + ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #ff0000;\">\"Sem a ExtensÆo(.BMP) \"</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">OF</span> oDlg &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">PIXEL</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">COLOR</span> CLR_HRED, nRGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">255</span>, <span style=\"color: #000000;\">215</span>, &nbsp; <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; nLinhaSay := nLinhaSay + <span style=\"color: #000000;\">10</span><br /><br />&nbsp; &nbsp; @ nLinhaSay, nColunaSay &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">SAY</span> <span style=\"color: #000000;\">&#40;</span> OemToAnsi<span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"Este Nome ‚ o Default\"</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #0000ff;\">OF</span> oDlg &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">PIXEL</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">COLOR</span> CLR_HRED, nRGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">255</span>, <span style=\"color: #000000;\">215</span>, &nbsp; <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; @ nLinhaGet, nColunaGet &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">GET</span> oGet <span style=\"color: #0000ff;\">VAR</span> cBmpFile <span style=\"color: #0000ff;\">OF</span> oDlg &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">50</span>, <span style=\"color: #000000;\">10</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">PIXEL</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">COLOR</span> CLR_HRED, CLR_HCYAN &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">VALID</span> !Empty<span style=\"color: #000000;\">&#40;</span> cBmpFile <span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">CENTER</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">WHEN</span><span style=\"color: #000000;\">&#40;</span> .F. <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; @ nLinhaSay, nColunaSay + <span style=\"color: #000000;\">97</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">SAY</span> <span style=\"color: #000000;\">&#40;</span> OemToAnsi<span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"Este ‚ o Novo Nome\"</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #0000ff;\">OF</span> oDlg ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">PIXEL</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">COLOR</span> CLR_HRED, nRGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">255</span>, <span style=\"color: #000000;\">215</span>, &nbsp; <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; @ nLinhaGet, nColunaGet + <span style=\"color: #000000;\">97</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">GET</span> oGet2 <span style=\"color: #0000ff;\">VAR</span> cBmpGrava &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">Picture</span> <span style=\"color: #ff0000;\">\"@K!\"</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">OF</span> oDlg ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">50</span>, <span style=\"color: #000000;\">10</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">PIXEL</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">COLOR</span> CLR_HRED, CLR_AMARELO &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">VALID</span> !Empty<span style=\"color: #000000;\">&#40;</span> cBmpGrava <span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">CENTER</span><br /><br />&nbsp; &nbsp; oGet2:<span style=\"color: #000000;\">cToolTip</span> := <span style=\"color: #000000;\">&#40;</span> OemToAnsi<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Informe Nome do\"</span> +CRLF+ ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #ff0000;\">\"Arquivo &nbsp;Sem &nbsp;a\"</span> +CRLF+ ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #ff0000;\">\"ExtensÆo-(.BMP)\"</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; @ nLinhaBotao, nColunaBotao &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">BUTTON</span> oConfirme &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"&Confirme\"</span> &nbsp;<span style=\"color: #0000ff;\">OF</span> oDlg ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">40</span>, <span style=\"color: #000000;\">12</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">PIXEL</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #000000;\">&#40;</span> oDlg:<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> CANCEL <span style=\"color: #0000ff;\">UPDATE</span><br /><br />&nbsp; &nbsp; oConfirme:<span style=\"color: #000000;\">cToolTip</span> := <span style=\"color: #000000;\">&#40;</span> OemToAnsi<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"ConfirmeÿNomeÿdoÿArquivo.ÿ &nbsp;Vazio,\"</span> +CRLF+ ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #ff0000;\">\"NÆo Grava Nada. S¢ Mostra Modelos.\"</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; <span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">CENTERED</span><br /><br /><span style=\"color: #B900B9;\">//-------------------Divisao da Gravacao---------------------------------------</span><br /><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">DEFAULT</span> nWidth &nbsp;:= <span style=\"color: #000000;\">65</span><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">DEFAULT</span> nHeight := nWidth<br /><br />&nbsp; &nbsp; nBmpSize &nbsp;:= nWidth * <span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">3</span> * nHeight + <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">&#40;</span> nHeight % <span style=\"color: #000000;\">2</span> = <span style=\"color: #000000;\">1</span>, <span style=\"color: #000000;\">1</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; nFileSize := nBmpSize + <span style=\"color: #000000;\">54</span><br /><br />&nbsp; &nbsp; <span style=\"color: #B900B9;\">// Gravacao do Primeiro Arquivo - Default, ‚ Obrigat¢rio.</span><br />&nbsp; &nbsp; F := fCreate<span style=\"color: #000000;\">&#40;</span> cBmpFile <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; fwrite<span style=\"color: #000000;\">&#40;</span> F, <span style=\"color: #ff0000;\">'BM'</span> <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; fWrite<span style=\"color: #000000;\">&#40;</span> F, n2dword<span style=\"color: #000000;\">&#40;</span> nFileSize <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #B900B9;\">// filesize</span><br />&nbsp; &nbsp; fWrite<span style=\"color: #000000;\">&#40;</span> F, n2dword<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">0</span> &nbsp;<span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #B900B9;\">// reserved</span><br /><br />&nbsp; &nbsp; fWrite<span style=\"color: #000000;\">&#40;</span> F, n2dword<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">54</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #B900B9;\">// offset</span><br />&nbsp; &nbsp; fWrite<span style=\"color: #000000;\">&#40;</span> F, n2dword<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">40</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #B900B9;\">// header len</span><br /><br />&nbsp; &nbsp; fWrite<span style=\"color: #000000;\">&#40;</span> F, n2dword<span style=\"color: #000000;\">&#40;</span> nWidth &nbsp;<span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> &nbsp; <span style=\"color: #B900B9;\">// width</span><br />&nbsp; &nbsp; fWrite<span style=\"color: #000000;\">&#40;</span> F, n2dword<span style=\"color: #000000;\">&#40;</span> nHeight <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> &nbsp; <span style=\"color: #B900B9;\">// height</span><br /><br />&nbsp; &nbsp; fWrite<span style=\"color: #000000;\">&#40;</span> F, n2dword<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">1</span>, &nbsp;.T. <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> &nbsp; <span style=\"color: #B900B9;\">// planes</span><br />&nbsp; &nbsp; fWrite<span style=\"color: #000000;\">&#40;</span> F, n2dword<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">24</span>, .T. <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> &nbsp; <span style=\"color: #B900B9;\">// colors</span><br /><br />&nbsp; &nbsp; fWrite<span style=\"color: #000000;\">&#40;</span> F, n2dword<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #B900B9;\">// compression</span><br /><br />&nbsp; &nbsp; fWrite<span style=\"color: #000000;\">&#40;</span> F, n2dword<span style=\"color: #000000;\">&#40;</span> nBmpSize <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> &nbsp;<span style=\"color: #B900B9;\">// Size of bmp in bytes</span><br /><br />&nbsp; &nbsp; fWrite<span style=\"color: #000000;\">&#40;</span> F, n2dword<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">3780</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; &nbsp;<span style=\"color: #B900B9;\">// Pixel /meter horz</span><br />&nbsp; &nbsp; fWrite<span style=\"color: #000000;\">&#40;</span> F, n2dword<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">3780</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; &nbsp;<span style=\"color: #B900B9;\">// Pixel /meter vert</span><br /><br />&nbsp; &nbsp; fWrite<span style=\"color: #000000;\">&#40;</span> F, n2dword<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #B900B9;\">// important colors</span><br />&nbsp; &nbsp; fWrite<span style=\"color: #000000;\">&#40;</span> F, n2dword<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #B900B9;\">// important colors</span><br />&nbsp; &nbsp; <span style=\"color: #B900B9;\">// Fim da Gravacao do Primeiro Arquivo</span><br /><br />&nbsp; &nbsp; <span style=\"color: #B900B9;\">// Gravacao do Segundo Arquivo - ExtensÆo *.BMP ‚ Obrigat¢rio</span><br />&nbsp; &nbsp; GF2 := fCreate<span style=\"color: #000000;\">&#40;</span> cBmpGrava + <span style=\"color: #ff0000;\">'.BMP'</span> <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; fwrite<span style=\"color: #000000;\">&#40;</span> GF2, <span style=\"color: #ff0000;\">'BM'</span> <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; fWrite<span style=\"color: #000000;\">&#40;</span> GF2, n2dword<span style=\"color: #000000;\">&#40;</span> nFileSize <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #B900B9;\">// filesize</span><br />&nbsp; &nbsp; fWrite<span style=\"color: #000000;\">&#40;</span> GF2, n2dword<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">0</span> &nbsp;<span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #B900B9;\">// reserved</span><br /><br />&nbsp; &nbsp; fWrite<span style=\"color: #000000;\">&#40;</span> GF2, n2dword<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">54</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #B900B9;\">// offset</span><br />&nbsp; &nbsp; fWrite<span style=\"color: #000000;\">&#40;</span> GF2, n2dword<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">40</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #B900B9;\">// header len</span><br /><br />&nbsp; &nbsp; fWrite<span style=\"color: #000000;\">&#40;</span> GF2, n2dword<span style=\"color: #000000;\">&#40;</span> nWidth &nbsp;<span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> &nbsp; <span style=\"color: #B900B9;\">// width</span><br />&nbsp; &nbsp; fWrite<span style=\"color: #000000;\">&#40;</span> GF2, n2dword<span style=\"color: #000000;\">&#40;</span> nHeight <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> &nbsp; <span style=\"color: #B900B9;\">// height</span><br /><br />&nbsp; &nbsp; fWrite<span style=\"color: #000000;\">&#40;</span> GF2, n2dword<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">1</span>, &nbsp;.T. <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> &nbsp; <span style=\"color: #B900B9;\">// planes</span><br />&nbsp; &nbsp; fWrite<span style=\"color: #000000;\">&#40;</span> GF2, n2dword<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">24</span>, .T. <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> &nbsp; <span style=\"color: #B900B9;\">// colors</span><br /><br />&nbsp; &nbsp; fWrite<span style=\"color: #000000;\">&#40;</span> GF2, n2dword<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #B900B9;\">// compression</span><br /><br />&nbsp; &nbsp; fWrite<span style=\"color: #000000;\">&#40;</span> GF2, n2dword<span style=\"color: #000000;\">&#40;</span> nBmpSize <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> &nbsp;<span style=\"color: #B900B9;\">// Size of bmp in bytes</span><br /><br />&nbsp; &nbsp; fWrite<span style=\"color: #000000;\">&#40;</span> GF2, n2dword<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">3780</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; &nbsp;<span style=\"color: #B900B9;\">// Pixel /meter horz</span><br />&nbsp; &nbsp; fWrite<span style=\"color: #000000;\">&#40;</span> GF2, n2dword<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">3780</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; &nbsp;<span style=\"color: #B900B9;\">// Pixel /meter vert</span><br /><br />&nbsp; &nbsp; fWrite<span style=\"color: #000000;\">&#40;</span> GF2, n2dword<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #B900B9;\">// important colors</span><br />&nbsp; &nbsp; fWrite<span style=\"color: #000000;\">&#40;</span> GF2, n2dword<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #B900B9;\">// important colors</span><br />&nbsp; &nbsp; <span style=\"color: #B900B9;\">// Fim da Gravacao do Segundo Arquivo</span><br /><br />&nbsp; &nbsp; aData := BmpRand<span style=\"color: #000000;\">&#40;</span> nWidth, nHeight <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; nI &nbsp; &nbsp;:= <span style=\"color: #0000ff;\">Round</span><span style=\"color: #000000;\">&#40;</span> nHeight / <span style=\"color: #000000;\">2</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; nJ &nbsp; &nbsp;:= <span style=\"color: #0000ff;\">Round</span><span style=\"color: #000000;\">&#40;</span> nWidth &nbsp;/ <span style=\"color: #000000;\">2</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; <span style=\"color: #B900B9;\">// For/Next da Primeira Gravacao Arquivo Default 1</span><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">For</span> I := <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">To</span> nHeight<br />&nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">For</span> J := <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">To</span> nWidth<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;fWrite<span style=\"color: #000000;\">&#40;</span> F, aData<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">&#40;</span> I <= nI, I, nHeight + <span style=\"color: #000000;\">1</span> - I <span style=\"color: #000000;\">&#41;</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">&#40;</span> J <= nJ, J, nWidth &nbsp;+ <span style=\"color: #000000;\">1</span> - J <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">Next</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">If</span> nHeight % <span style=\"color: #000000;\">2</span> = <span style=\"color: #000000;\">1</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; fWrite<span style=\"color: #000000;\">&#40;</span> F, chr<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">0</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">Endif</span><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">Next</span><br /><br />&nbsp; &nbsp; <span style=\"color: #B900B9;\">// For/Next da Segunda Gravacao Arquivo Novo 2</span><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">For</span> I := <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">To</span> nHeight<br />&nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">For</span> J := <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">To</span> nWidth<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;fWrite<span style=\"color: #000000;\">&#40;</span> GF2, aData<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">&#40;</span> I <= nI, I, nHeight + <span style=\"color: #000000;\">1</span> - I <span style=\"color: #000000;\">&#41;</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">&#40;</span> J <= nJ, J, nWidth &nbsp;+ <span style=\"color: #000000;\">1</span> - J <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">Next</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">If</span> nHeight % <span style=\"color: #000000;\">2</span> = <span style=\"color: #000000;\">1</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; fWrite<span style=\"color: #000000;\">&#40;</span> GF2, chr<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">0</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">Endif</span><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">Next</span><br /><br />&nbsp; &nbsp; fClose<span style=\"color: #000000;\">&#40;</span> F <span style=\"color: #000000;\">&#41;</span> &nbsp; <span style=\"color: #B900B9;\">// Fecha o Arquivo Default 1</span><br />&nbsp; &nbsp; fClose<span style=\"color: #000000;\">&#40;</span> GF2 <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #B900B9;\">// Fecha o Arquivo Novo &nbsp; &nbsp;2</span><br /><br />&nbsp; &nbsp; oWnd:<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #B900B9;\">// Fecha Janela Aberta, senÆo da Pau na Reapresenta‡Æo</span><br /><br /><span style=\"color: #00C800;\">Return</span><span style=\"color: #000000;\">&#40;</span> Bmp_Rand<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #B900B9;\">//-----------------------------------------------------------------------------</span><br /><br /><span style=\"color: #00C800;\">Static</span> <span style=\"color: #00C800;\">Function</span> BmpRand<span style=\"color: #000000;\">&#40;</span> nWidth, nHeight <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">Local</span> I, J, K, iJ<br />&nbsp; &nbsp; <span style=\"color: #00C800;\">Local</span> C0, C1, C, CC<br />&nbsp; &nbsp; <span style=\"color: #00C800;\">Local</span> D, dMax<br /><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">Local</span> nI &nbsp; &nbsp;:= <span style=\"color: #0000ff;\">Round</span><span style=\"color: #000000;\">&#40;</span> nHeight / <span style=\"color: #000000;\">2</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">Local</span> nJ &nbsp; &nbsp;:= <span style=\"color: #0000ff;\">Round</span><span style=\"color: #000000;\">&#40;</span> nWidth &nbsp;/ <span style=\"color: #000000;\">2</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">Local</span> aData := array<span style=\"color: #000000;\">&#40;</span> nI, nJ <span style=\"color: #000000;\">&#41;</span><br />&nbsp;<br />&nbsp; &nbsp; <span style=\"color: #00C800;\">Local</span> bMetric<br /><br />&nbsp; &nbsp; K := nRandom<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">4</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">If</span> K = <span style=\"color: #000000;\">0</span><br />&nbsp; &nbsp; &nbsp; &nbsp; bMetric := <span style=\"color: #000000;\">&#123;</span> |x,y| sqrt<span style=\"color: #000000;\">&#40;</span> x^<span style=\"color: #000000;\">2</span>+y^<span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br />&nbsp; &nbsp; &nbsp;ElseIf K = <span style=\"color: #000000;\">1</span><br />&nbsp; &nbsp; &nbsp; &nbsp; bMetric := <span style=\"color: #000000;\">&#123;</span> |x,y| <span style=\"color: #0000ff;\">Abs</span><span style=\"color: #000000;\">&#40;</span>x<span style=\"color: #000000;\">&#41;</span> + <span style=\"color: #0000ff;\">Abs</span><span style=\"color: #000000;\">&#40;</span>y<span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br />&nbsp; &nbsp; &nbsp;ElseIf K = <span style=\"color: #000000;\">2</span><br />&nbsp; &nbsp; &nbsp; &nbsp; bMetric := <span style=\"color: #000000;\">&#123;</span> |x,y| <span style=\"color: #0000ff;\">Max</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #0000ff;\">Abs</span><span style=\"color: #000000;\">&#40;</span>x<span style=\"color: #000000;\">&#41;</span>, <span style=\"color: #0000ff;\">Abs</span><span style=\"color: #000000;\">&#40;</span>y<span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br />&nbsp; &nbsp; &nbsp;ElseIf K = <span style=\"color: #000000;\">3</span><br />&nbsp; &nbsp; &nbsp; &nbsp; bMetric := <span style=\"color: #000000;\">&#123;</span> |x,y| Sqrt<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #0000ff;\">Abs</span><span style=\"color: #000000;\">&#40;</span>x<span style=\"color: #000000;\">&#41;</span> * <span style=\"color: #0000ff;\">Abs</span><span style=\"color: #000000;\">&#40;</span>y<span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br />&nbsp; &nbsp; &nbsp;ElseIf K = <span style=\"color: #000000;\">4</span><br />&nbsp; &nbsp; &nbsp; &nbsp; bMetric := <span style=\"color: #000000;\">&#123;</span> |x,y| <span style=\"color: #000000;\">&#40;</span> <span style=\"color: #0000ff;\">Abs</span><span style=\"color: #000000;\">&#40;</span>x<span style=\"color: #000000;\">&#41;</span> + <span style=\"color: #0000ff;\">Abs</span><span style=\"color: #000000;\">&#40;</span>y<span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> / <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#125;</span><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">Endif</span><br /><br />&nbsp; &nbsp; C0 &nbsp; := <span style=\"color: #000000;\">&#123;</span> nRandom<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">255</span> <span style=\"color: #000000;\">&#41;</span>, nRandom<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">255</span> <span style=\"color: #000000;\">&#41;</span>, nRandom<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">255</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br />&nbsp; &nbsp; C1 &nbsp; := <span style=\"color: #000000;\">&#123;</span> nRandom<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">255</span> <span style=\"color: #000000;\">&#41;</span>, nRandom<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">255</span> <span style=\"color: #000000;\">&#41;</span>, nRandom<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">255</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br />&nbsp; <br />&nbsp; &nbsp; K &nbsp; &nbsp;:= <span style=\"color: #000000;\">1</span> + nRandom<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#41;</span>; CC := nRandom<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">255</span> <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; dMax := Eval<span style=\"color: #000000;\">&#40;</span> bMetric, -nI + <span style=\"color: #000000;\">1</span>, -nJ + <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">For</span> I := -nI + <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">To</span> <span style=\"color: #000000;\">0</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">For</span> J := -nJ + <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">to</span> <span style=\"color: #000000;\">0</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; D := Eval<span style=\"color: #000000;\">&#40;</span> bMetric, I, J <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; C := <span style=\"color: #000000;\">&#123;</span> C0<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span> + Int<span style=\"color: #000000;\">&#40;</span> D * <span style=\"color: #000000;\">&#40;</span> C1<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span> - C0<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#41;</span> / dMax <span style=\"color: #000000;\">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; C0<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#93;</span> + Int<span style=\"color: #000000;\">&#40;</span> D * <span style=\"color: #000000;\">&#40;</span> C1<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#93;</span> - C0<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#93;</span><span style=\"color: #000000;\">&#41;</span> / dMax <span style=\"color: #000000;\">&#41;</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; C0<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">3</span><span style=\"color: #000000;\">&#93;</span> + Int<span style=\"color: #000000;\">&#40;</span> D * <span style=\"color: #000000;\">&#40;</span> C1<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">3</span><span style=\"color: #000000;\">&#93;</span> - C0<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">3</span><span style=\"color: #000000;\">&#93;</span><span style=\"color: #000000;\">&#41;</span> / dMax <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; aData<span style=\"color: #000000;\">&#91;</span> I + nI, J + nJ <span style=\"color: #000000;\">&#93;</span> := Chr<span style=\"color: #000000;\">&#40;</span> C<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span><span style=\"color: #000000;\">&#41;</span> + Chr<span style=\"color: #000000;\">&#40;</span> C<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#93;</span><span style=\"color: #000000;\">&#41;</span> + Chr<span style=\"color: #000000;\">&#40;</span> C<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">3</span><span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">Next</span><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">Next</span><br /><br /><span style=\"color: #00C800;\">Return</span> aData<br /><br /><span style=\"color: #B900B9;\">//-----------------------------------------------------------------------------</span><br /><br /><span style=\"color: #00C800;\">Static</span> <span style=\"color: #00C800;\">Function</span> n2dword<span style=\"color: #000000;\">&#40;</span> N, lWord <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">Local</span> C := <span style=\"color: #ff0000;\">''</span><br /><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">DEFAULT</span> lWord := .F.<br /><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">Do</span> <span style=\"color: #00C800;\">While</span> n><span style=\"color: #000000;\">0</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; C += chr<span style=\"color: #000000;\">&#40;</span> N % <span style=\"color: #000000;\">256</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; N := Int<span style=\"color: #000000;\">&#40;</span> N / <span style=\"color: #000000;\">256</span> <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">Enddo</span><br /><br /><span style=\"color: #00C800;\">Return</span> PadR<span style=\"color: #000000;\">&#40;</span> C, <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">&#40;</span> lWord, <span style=\"color: #000000;\">2</span>, <span style=\"color: #000000;\">4</span> <span style=\"color: #000000;\">&#41;</span>, Chr<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #B900B9;\">//-----------------------------------------------------------------------------</span><br /><br /><span style=\"color: #00C800;\">Function</span> a2RGB<span style=\"color: #000000;\">&#40;</span> aBGR <span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #B900B9;\">//</span><br /><span style=\"color: #00C800;\">Return</span> aBGR<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">3</span><span style=\"color: #000000;\">&#93;</span> + <span style=\"color: #000000;\">256</span> * <span style=\"color: #000000;\">&#40;</span> aBGR<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#93;</span> + <span style=\"color: #000000;\">256</span> * aBGR<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #B900B9;\">// -------------------------------------------------------------------</span><br /><span style=\"color: #B900B9;\">// Fun‡Æo ....: PorFalso( lVariavel )</span><br /><span style=\"color: #B900B9;\">// Descri‡Æo..: Poe o valor de uma variavel l¢gica como Falso.</span><br /><span style=\"color: #B900B9;\">// Parametros.: lVariavel -> Variavel l¢gica</span><br /><span style=\"color: #B900B9;\">// Devolve....: .T. &nbsp; &nbsp; &nbsp; -> para poder Fechar a Janela</span><br /><span style=\"color: #B900B9;\">// -------------------------------------------------------------------</span><br /><span style=\"color: #00C800;\">FUNCTION</span> PorFalso<span style=\"color: #000000;\">&#40;</span> lVariavel <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;lVariavel := .F.<br /><br /><span style=\"color: #00C800;\">RETURN</span> .T.<br /><br /><span style=\"color: #B900B9;\">// -------------------------------------------------------------------</span><br /><br /><span style=\"color: #B900B9;\">// FIM DE BMP_RAND.PRG</span><br />&nbsp;</div>[/code:20mvzl34]\n\nRegards, saludos.", "time": "14:14", "topic": "Bloquear acceso a una funcion (Solucionado)", "username": "karinha" } ]
Bloquear acceso a una funcion (Solucionado)
[ { "date": "2022-09-22", "forum": "FiveWin para Harbour/xHarbour", "text": "Muchas gracias Joao", "time": "17:42", "topic": "Bloquear acceso a una funcion (Solucionado)", "username": "JoseLuis" } ]
Bloquear acceso a una funcion (Solucionado)
[ { "date": "2016-05-27", "forum": "FiveWin para Harbour/xHarbour", "text": "Hola amigos.,\nComo puedo bloquear una o varias columnas para evitar la edición por celdas en un xbrowse?, \nSalu2", "time": "02:22", "topic": "Bloquear edicion por celdas en xbrowse", "username": "Willi Quintana" } ]
Bloquear edicion por celdas en xbrowse
[ { "date": "2016-05-27", "forum": "FiveWin para Harbour/xHarbour", "text": "Hola Willi:\nNo se si es a esto lo que te refieres, pero si solo le indicas cuales son editables puedes hacerlo asi:\n[code=fw:25kg9ill]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">XBROWSE</span> oBrw DATASOURCE oQry;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; COLUMNS <span style=\"color: #ff0000;\">\"ticomp\"</span>,<span style=\"color: #ff0000;\">\"numcomp\"</span>,<span style=\"color: #ff0000;\">\"fecha\"</span>,<span style=\"color: #ff0000;\">\"saldo\"</span>,<span style=\"color: #ff0000;\">\"pagado\"</span>,<span style=\"color: #ff0000;\">\"saldonue\"</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; HEADERS <span style=\"color: #ff0000;\">\"Tipo\"</span>,<span style=\"color: #ff0000;\">\"Nro. Compr.\"</span>,<span style=\"color: #ff0000;\">\"Fecha\"</span>,<span style=\"color: #ff0000;\">\"Saldo\"</span>,<span style=\"color: #ff0000;\">\"Pagado\"</span>,<span style=\"color: #ff0000;\">\"Nuevo Saldo\"</span> FOOTERS;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SIZES <span style=\"color: #000000;\">63</span>,<span style=\"color: #000000;\">165</span>,<span style=\"color: #000000;\">80</span>,<span style=\"color: #000000;\">105</span>,<span style=\"color: #000000;\">95</span>,<span style=\"color: #000000;\">95</span> <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">120</span> <span style=\"color: #0000ff;\">OF</span> oDlg <br />&nbsp; &nbsp; oBrw:<span style=\"color: #000000;\">aCols</span><span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">4</span><span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">nFooterType</span> := AGGR_SUM<br />&nbsp; &nbsp; oBrw:<span style=\"color: #000000;\">aCols</span><span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">5</span><span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">nFooterType</span> := AGGR_SUM<br />&nbsp; &nbsp; oBrw:<span style=\"color: #000000;\">aCols</span><span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">6</span><span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">nFooterType</span> := AGGR_SUM<br />&nbsp; &nbsp; oBrw:<span style=\"color: #000000;\">aCols</span><span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">5</span><span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">lAutoSave</span> := .t.<br />&nbsp; &nbsp; oBrw:<span style=\"color: #000000;\">nMoveType</span> := <span style=\"color: #000000;\">4</span><br />&nbsp; &nbsp; oBrw:<span style=\"color: #000000;\">aCols</span><span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">5</span><span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">nEditType</span> := EDIT_GET &nbsp; &nbsp;<br />&nbsp; &nbsp; oBrw:<span style=\"color: #000000;\">aCols</span><span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">5</span><span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">bEditValid</span> &nbsp;:= <span style=\"color: #000000;\">&#123;</span>|oGet, oCol| ControlSaldo<span style=\"color: #000000;\">&#40;</span>oGet:<span style=\"color: #000000;\">value</span>,EVAL<span style=\"color: #000000;\">&#40;</span>oBrw:<span style=\"color: #000000;\">aCols</span><span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">4</span><span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">bEditValue</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#125;</span> <span style=\"color: #B900B9;\">//Control saldo es una funcion que valida el dato ingresado</span><br />&nbsp; &nbsp; oBrw:<span style=\"color: #000000;\">aCols</span><span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">5</span><span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">bOnPostEdit</span> := <span style=\"color: #000000;\">&#123;</span>|oCol, xVal, nKey | CambiaSaldo<span style=\"color: #000000;\">&#40;</span>xval<span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#125;</span> &nbsp; <span style=\"color: #B900B9;\">// Cambia saldo me cambia la columna 6 que tiene el nuevo saldo</span><br />&nbsp;</div>[/code:25kg9ill]\nEspero te sirva", "time": "13:30", "topic": "Bloquear edicion por celdas en xbrowse", "username": "cmsoft" } ]
Bloquear edicion por celdas en xbrowse
[ { "date": "2016-05-28", "forum": "FiveWin para Harbour/xHarbour", "text": "Gracias sr.\nSalu2", "time": "04:47", "topic": "Bloquear edicion por celdas en xbrowse", "username": "Willi Quintana" } ]
Bloquear edicion por celdas en xbrowse
[ { "date": "2021-09-07", "forum": "FiveWin para Harbour/xHarbour", "text": "Hola Amigo del forum.\n\n\nComo hago para bloquear un registro en un browse, y enviar un mensaje que ese registro esta ocupado, para que otras terminales no las tomen este el codigo:\nEstoy usando FWH MySQL\n\n[code=fw:3w4rypnv]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"FiveWin.ch\"</span><br /><br /><br /><span style=\"color: #00C800;\">static</span> norden1,oRsContribu,ordenarcontri,oCn,oError,oRsContribu_1<br /><br /><span style=\"color: #00C800;\">function</span> Main<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">local</span> cServer     := <span style=\"color: #ff0000;\">\"localhost\"</span><br /><span style=\"color: #00C800;\">local</span> cDataBase   := <span style=\"color: #ff0000;\">\"indfundacion\"</span><br /><span style=\"color: #00C800;\">local</span> cUser       := <span style=\"color: #ff0000;\">\"Adolfredo\"</span><br /><span style=\"color: #00C800;\">local</span> cPassWord   := <span style=\"color: #ff0000;\">\"19585287amf\"</span><br /><span style=\"color: #00C800;\">local</span> nPort     := <span style=\"color: #000000;\">3307</span><br /><span style=\"color: #00C800;\">local</span> nFlags    := <span style=\"color: #000000;\">0</span>,oProgFont,oBrwFont,oHeadFont,oFootFont<br /><span style=\"color: #00C800;\">local</span> oDlg, oBrw,cText := <span style=\"color: #ff0000;\">\"\"</span>,oapp,aClrCol<br /><br /><br />    <span style=\"color: #00C800;\">if</span> oCn == <span style=\"color: #00C800;\">nil</span> .or. oCn:<span style=\"color: #000000;\">Ping</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> = .F. <br />      MsgRun<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Connecting to Server\"</span>, <span style=\"color: #ff0000;\">\"CLOUD SERVER\"</span>, ;<br />      <span style=\"color: #000000;\">&#123;</span> || oCn   := maria_Connect<span style=\"color: #000000;\">&#40;</span>  <span style=\"color: #000000;\">&#123;</span>cServer, cDataBase, cUser, cPassWord, nPort <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span>    <br />    <span style=\"color: #00C800;\">endif</span><br />    <br />    <span style=\"color: #00C800;\">if</span> oCn == <span style=\"color: #00C800;\">nil</span><br />      ? <span style=\"color: #ff0000;\">\"Failed to connect\"</span><br />     <span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br />      <span style=\"color: #00C800;\">else</span><br />      cText += <span style=\"color: #ff0000;\">\"Connection OK\"</span> + CRLF<br />      cText += <span style=\"color: #ff0000;\">\"Host: \"</span> + cServer +CRLF<br />      cText += <span style=\"color: #ff0000;\">\"Database: \"</span> +cDataBase + CRLF<br />      cText += <span style=\"color: #ff0000;\">\"\"</span> + CRLF<br />      cText += <span style=\"color: #ff0000;\">\"\"</span><br />      <span style=\"color: #0000ff;\">msginfo</span><span style=\"color: #000000;\">&#40;</span> cText ,<span style=\"color: #ff0000;\">\"Conexion Exitosa\"</span><span style=\"color: #000000;\">&#41;</span><br />    <span style=\"color: #00C800;\">ENDIF</span><br /><br />   oCn:<span style=\"color: #000000;\">lShowErrors</span> := .t.<br />   oRsContribu   :=oCn:<span style=\"color: #000000;\">RowSet</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"SELECT * FROM contrib ORDER BY codigo\"</span><span style=\"color: #000000;\">&#41;</span><br /><br /><br />    oProgFont  := TFont<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #00C800;\">New</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"TAHOMA\"</span>,,<span style=\"color: #000000;\">-14</span>,.F.,.F. ,,,,.F. <span style=\"color: #000000;\">&#41;</span><br />    oBrwFont   := TFont<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #00C800;\">New</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"TAHOMA\"</span>,,<span style=\"color: #000000;\">-12</span>,.F.,.F.,,,,.F.<span style=\"color: #000000;\">&#41;</span><br />    oHeadFont  := TFont<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #00C800;\">New</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"TAHOMA\"</span>,,<span style=\"color: #000000;\">-14</span>,.F.,.F.,,,,.F.<span style=\"color: #000000;\">&#41;</span><br />    oFootFont  := TFont<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #00C800;\">New</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"TAHOMA\"</span>,,<span style=\"color: #000000;\">-14</span>,.F.,.F.,,,,.F.<span style=\"color: #000000;\">&#41;</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;\">1000</span>,<span style=\"color: #000000;\">600</span> <span style=\"color: #0000ff;\">PIXEL</span><br /><br />   @ <span style=\"color: #000000;\">50</span>,<span style=\"color: #000000;\">10</span> <span style=\"color: #0000ff;\">XBROWSE</span> oBrw   OBJECT oRsContribu <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">-10</span>,<span style=\"color: #000000;\">-10</span> <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">OF</span> oDlg ;<br />       COLUMNS <span style=\"color: #ff0000;\">\"NIT\"</span>,<span style=\"color: #ff0000;\">\"RAZON\"</span>,<span style=\"color: #ff0000;\">\"PROPIETA\"</span>,<span style=\"color: #ff0000;\">\"DIRECC\"</span>,<span style=\"color: #ff0000;\">\"INDENTIF\"</span>,<span style=\"color: #ff0000;\">\"TELEFONO\"</span>;<br />       HEADERS <span style=\"color: #ff0000;\">\"Nit\"</span>, <span style=\"color: #ff0000;\">\"Razon Social\"</span>, <span style=\"color: #ff0000;\">\"Representante Legal\"</span>, <span style=\"color: #ff0000;\">\"Direccion\"</span>, <span style=\"color: #ff0000;\">\"Identificacion\"</span>, <span style=\"color: #ff0000;\">\"Telefono\"</span> CELL LINES AUTOSORT<br />  <br /><br />   WITH OBJECT oBrw<br />      :<span style=\"color: #000000;\">bRecSeldata</span>   := <span style=\"color: #000000;\">&#123;</span> || oBrw:<span style=\"color: #000000;\">KeyNo</span> <span style=\"color: #000000;\">&#125;</span><br />      :<span style=\"color: #000000;\">nRecSelWidth</span>  := <span style=\"color: #ff0000;\">\"999,999\"</span><br />      :<span style=\"color: #000000;\">bRecSelFooter</span> := <span style=\"color: #000000;\">&#123;</span> || oBrw:<span style=\"color: #000000;\">nLen</span> <span style=\"color: #000000;\">&#125;</span><br />        :<span style=\"color: #000000;\">nColDividerStyle</span>      := LINESTYLE_LIGHTGRAY<br />        :<span style=\"color: #000000;\">nRowDividerStyle</span>      := LINESTYLE_LIGHTGRAY<br />        :<span style=\"color: #000000;\">lColDividerComplete</span>   := <span style=\"color: #000000;\">&#40;</span>.F.<span style=\"color: #000000;\">&#41;</span><br />        :<span style=\"color: #000000;\">nHeaderHeight</span>         := <span style=\"color: #000000;\">25</span><br />        :<span style=\"color: #000000;\">nRowHeight</span>            := <span style=\"color: #000000;\">22</span><br />        :<span style=\"color: #000000;\">nHeaderLines</span>            := <span style=\"color: #000000;\">1</span><br />        :<span style=\"color: #000000;\">nDataLines</span>            := <span style=\"color: #000000;\">1</span><br />        :<span style=\"color: #000000;\">nFooterHeight</span>         := <span style=\"color: #000000;\">20</span><br />        :<span style=\"color: #000000;\">nFooterLines</span>            := <span style=\"color: #000000;\">1</span><br />        :<span style=\"color: #000000;\">lFooter</span>               := <span style=\"color: #000000;\">&#40;</span>.T.<span style=\"color: #000000;\">&#41;</span><br />        :<span style=\"color: #000000;\">lHScroll</span>               := <span style=\"color: #000000;\">&#40;</span>.T.<span style=\"color: #000000;\">&#41;</span><br /><br />        :<span style=\"color: #000000;\">l2015</span>            := .T.<br />        :<span style=\"color: #000000;\">bClrGrad</span>         := <span style=\"color: #000000;\">&#123;</span> | lInvert | <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">&#40;</span> ! lInvert,<span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">0.50</span>,<span style=\"color: #000000;\">16294002</span>,<span style=\"color: #000000;\">15263976</span> <span style=\"color: #000000;\">&#125;</span>, <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">0.50</span>,<span style=\"color: #000000;\">15263976</span>,<span style=\"color: #000000;\">16294002</span>  <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span>,<span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">0.50</span>,<span style=\"color: #000000;\">8388608</span>,<span style=\"color: #000000;\">15263976</span> <span style=\"color: #000000;\">&#125;</span>,<span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">0.50</span>,<span style=\"color: #000000;\">15263976</span>,<span style=\"color: #000000;\">8388608</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br />        :<span style=\"color: #000000;\">bClrStd</span> := <span style=\"color: #000000;\">&#123;</span> || aClrCol<span style=\"color: #000000;\">&#91;</span> oBrw:<span style=\"color: #000000;\">KeyNo</span> % <span style=\"color: #000000;\">2</span> + <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#125;</span><br />        :<span style=\"color: #000000;\">bClrSelFocus</span>     := <span style=\"color: #000000;\">&#123;</span> || <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">16777215</span>,<span style=\"color: #000000;\">16288063</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span><br />        :<span style=\"color: #000000;\">bClrHeader</span>       := <span style=\"color: #000000;\">&#123;</span> || <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">16288063</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span><br />        :<span style=\"color: #000000;\">bClrFooter</span>       := <span style=\"color: #000000;\">&#123;</span> || <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">0</span>,<span style=\"color: #000000;\">16288063</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span><br />        :<span style=\"color: #000000;\">bClrSel</span>          := <span style=\"color: #000000;\">&#123;</span> || <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">16777215</span>,<span style=\"color: #000000;\">16288063</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span><br />        :<span style=\"color: #000000;\">nRecSelColor</span> := <span style=\"color: #000000;\">16776960</span> <span style=\"color: #B900B9;\">//color de la columna activa primera</span><br />        :<span style=\"color: #000000;\">oFont</span>            := oBrwFont<br />        :<span style=\"color: #000000;\">hRowPen</span> := CreatePen<span style=\"color: #000000;\">&#40;</span> PS_SOLID,<span style=\"color: #000000;\">2</span>,<span style=\"color: #000000;\">8388608</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #B900B9;\">//el grueso de la fila</span><br />        :<span style=\"color: #000000;\">hColPen</span> := CreatePen<span style=\"color: #000000;\">&#40;</span> PS_SOLID,<span style=\"color: #000000;\">2</span>,<span style=\"color: #000000;\">8388608</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #B900B9;\">// el grueso de la columna</span><br />        :<span style=\"color: #000000;\">nRowHeight</span> := <span style=\"color: #000000;\">20</span>  <span style=\"color: #B900B9;\">//ancho de la celda</span><br />   <br />      :<span style=\"color: #000000;\">CreateFromCode</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />   END<br />   aClrCol := <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">16777215</span> <span style=\"color: #000000;\">&#125;</span>, <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">16579010</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #B900B9;\">//color de la fila selecionado y color de la letra en la final</span><br /><br /> BtnBar<span style=\"color: #000000;\">&#40;</span> oBrw,oDlg,oRsContribu <span style=\"color: #000000;\">&#41;</span><br /> <br />   <br />   <span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">CENTERED</span><br /><br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /><br /><br /><span style=\"color: #B900B9;\">//-------------------------------------------------------------//</span><br /><span style=\"color: #00C800;\">static</span> <span style=\"color: #00C800;\">function</span> btnBar<span style=\"color: #000000;\">&#40;</span> oBrw,oDlg,oRsContribu  <span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #B900B9;\">//-------------------------------------------------------------//</span><br />   <span style=\"color: #00C800;\">local</span> oBar1, oBtn<br /><br />   <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTONBAR</span> oBar1 <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">70</span>, <span style=\"color: #000000;\">70</span> <span style=\"color: #000000;\">2010</span><br /><br />   <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #0000ff;\">OF</span> oBar1 <span style=\"color: #0000ff;\">ACTION</span> Nuevocontri<span style=\"color: #000000;\">&#40;</span>oBrw,.T.,oRsContribu <span style=\"color: #000000;\">&#41;</span>;<br />      FILENAME <span style=\"color: #ff0000;\">\"c:<span style=\"color: #000000;\">\\P</span>REDSANTANA13.01<span style=\"color: #000000;\">\\b</span>itmap<span style=\"color: #000000;\">\\n</span>uevo.bmp\"</span> <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Nuevo\"</span> TOOLTIP <span style=\"color: #ff0000;\">\"Nuevo\"</span><br /><br />   <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #0000ff;\">OF</span> oBar1 <span style=\"color: #0000ff;\">ACTION</span> Nuevocontri<span style=\"color: #000000;\">&#40;</span>oBrw,.F.,oRsContribu <span style=\"color: #000000;\">&#41;</span>;<br />      FILENAME <span style=\"color: #ff0000;\">\"c:<span style=\"color: #000000;\">\\P</span>REDSANTANA13.01<span style=\"color: #000000;\">\\b</span>itmap<span style=\"color: #000000;\">\\m</span>odificar.bmp\"</span> <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Editar\"</span> ;<br />      TOOLTIP <span style=\"color: #ff0000;\">\"Editar\"</span><br /><br />   <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #0000ff;\">OF</span> oBar1 <span style=\"color: #0000ff;\">ACTION</span> Elimicontri<span style=\"color: #000000;\">&#40;</span>oBrw<span style=\"color: #000000;\">&#41;</span> GROUP ;<br />      FILENAME <span style=\"color: #ff0000;\">\"c:<span style=\"color: #000000;\">\\P</span>REDSANTANA13.01<span style=\"color: #000000;\">\\b</span>itmap<span style=\"color: #000000;\">\\b</span>orrar.bmp\"</span> <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Eliminar\"</span> TOOLTIP <span style=\"color: #ff0000;\">\"Eliminar\"</span><br /><br />   <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #0000ff;\">OF</span> oBar1  <span style=\"color: #0000ff;\">ACTION</span> Buscontrib<span style=\"color: #000000;\">&#40;</span>oBrw,norden1<span style=\"color: #000000;\">&#41;</span>;<br />      FILENAME <span style=\"color: #ff0000;\">\"c:<span style=\"color: #000000;\">\\P</span>REDSANTANA13.01<span style=\"color: #000000;\">\\b</span>itmap<span style=\"color: #000000;\">\\b</span>uscar.bmp\"</span> <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Buscar\"</span> TOOLTIP <span style=\"color: #ff0000;\">\"Buscar Un Registro\"</span><br /><br /><br />  <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #0000ff;\">OF</span> oBar1 <span style=\"color: #0000ff;\">ACTION</span> This:<span style=\"color: #000000;\">ShowPopUp</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> ;<br />    <span style=\"color: #0000ff;\">MENU</span> ordenarcontri<span style=\"color: #000000;\">&#40;</span> oBrw <span style=\"color: #000000;\">&#41;</span> ;<br />     <span style=\"color: #0000ff;\">MESSAGE</span> <span style=\"color: #ff0000;\">\"Ordenar la Base de Datos por Codigo, Apellidos o Direccion del Contribuente\"</span> ;<br />     FILENAME <span style=\"color: #ff0000;\">\"c:<span style=\"color: #000000;\">\\P</span>REDSANTANA13.01<span style=\"color: #000000;\">\\b</span>itmap<span style=\"color: #000000;\">\\i</span>ndex.bmp\"</span>  <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Ordenar Por\"</span> TOOLTIP <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\"Una Base Datos de Catastro\"</span>, <span style=\"color: #ff0000;\">\"Ordenar\"</span> <span style=\"color: #000000;\">&#125;</span><br /><br /><br />  <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #0000ff;\">OF</span> oBar1 <span style=\"color: #0000ff;\">action</span><span style=\"color: #000000;\">&#40;</span> oDlg:<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span> ;<br />      FILENAME <span style=\"color: #ff0000;\">\"c:<span style=\"color: #000000;\">\\P</span>REDSANTANA13.01<span style=\"color: #000000;\">\\b</span>itmap<span style=\"color: #000000;\">\\s</span>alir.bmp\"</span> <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Salir\"</span> TOOLTIP <span style=\"color: #ff0000;\">\"Salir de la Ventana\"</span><br /><br /><br /><span style=\"color: #00C800;\">return</span> oBar1<br /><br /><br /> </div>[/code:3w4rypnv]", "time": "22:38", "topic": "Bloquear un registro en el xbrowse", "username": "Adolfredo Martinez" } ]
Bloquear un registro en el xbrowse
[ { "date": "2021-09-08", "forum": "FiveWin para Harbour/xHarbour", "text": "Use this method for edit\n[code=fw:170sxpth]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />EditBaseRecord<span style=\"color: #000000;\">&#40;</span> cFieldList, lNew, bEdit, oBrw, lLock <span style=\"color: #000000;\">&#41;</span><br />&nbsp;</div>[/code:170sxpth]\nand use .T. for the last parameter for lLock.", "time": "16:51", "topic": "Bloquear un registro en el xbrowse", "username": "nageswaragunupudi" } ]
Bloquear un registro en el xbrowse
[ { "date": "2021-05-20", "forum": "FiveWin para Harbour/xHarbour", "text": "Buenas tardes, compañeros:\n\nEn mi APP tengo servicio de actualización siguiendo instrucciones del blog de nuestro amigo Gabriel Maimó: [url:2jck5do2]http&#58;//bielsys&#46;blogspot&#46;com/2009/02/actualizacion-automatica-de&#46;html[/url:2jck5do2]\nFunciona perfecto en todos los windows,[color=#FF0000:2jck5do2] excepto en W10[/color:2jck5do2]\n\nTambién tengo servicio de email, donde el usuario puede cumplimentar formulario de sugerencia y enviarme un email.\n[code=fw:2jck5do2]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">oCfg := CreateObject<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"CDO.Configuration\"</span> <span style=\"color: #000000;\">&#41;</span><br />      With Object oCfg:<span style=\"color: #000000;\">Fields</span><br />         :<span style=\"color: #000000;\">Item</span><span style=\"color: #000000;\">&#40;</span> cdoSMTPServer <span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #000000;\">Value</span>     := Trim<span style=\"color: #000000;\">&#40;</span> cMailServer <span style=\"color: #000000;\">&#41;</span><br />         :<span style=\"color: #000000;\">Item</span><span style=\"color: #000000;\">&#40;</span> cdoSMTPServerPort <span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #000000;\">Value</span> := nPort<br />         :<span style=\"color: #000000;\">Item</span><span style=\"color: #000000;\">&#40;</span> cdoSendUsing <span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #000000;\">Value</span>      := nSendOpt<br />         <span style=\"color: #00C800;\">If</span> lAuth<br />            :<span style=\"color: #000000;\">Item</span><span style=\"color: #000000;\">&#40;</span> cdoSMTPAuthenticate <span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #000000;\">Value</span> := <span style=\"color: #000000;\">1</span><br />            :<span style=\"color: #000000;\">Item</span><span style=\"color: #000000;\">&#40;</span> cdoSendUserName <span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #000000;\">Value</span>     := Trim<span style=\"color: #000000;\">&#40;</span> cUser <span style=\"color: #000000;\">&#41;</span><br />            :<span style=\"color: #000000;\">Item</span><span style=\"color: #000000;\">&#40;</span> cdoSendPassword <span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #000000;\">Value</span>     := Trim<span style=\"color: #000000;\">&#40;</span> cPass <span style=\"color: #000000;\">&#41;</span><br />            :<span style=\"color: #000000;\">Item</span><span style=\"color: #000000;\">&#40;</span> cdoSMTPUseSSL <span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #000000;\">Value</span> := <span style=\"color: #000000;\">1</span><br />         <span style=\"color: #00C800;\">EndIf</span><br />         :<span style=\"color: #0000ff;\">Update</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />      End With<br />      oMsg := CreateObject<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"CDO.Message\"</span> <span style=\"color: #000000;\">&#41;</span><br />      With Object oMsg<br />         :<span style=\"color: #000000;\">Configuration</span> := oCfg<br />         :<span style=\"color: #0000ff;\">From</span>          := Trim<span style=\"color: #000000;\">&#40;</span> cFrom <span style=\"color: #000000;\">&#41;</span><br />         :<span style=\"color: #0000ff;\">To</span>            := Trim<span style=\"color: #000000;\">&#40;</span> cTo <span style=\"color: #000000;\">&#41;</span><br />         :<span style=\"color: #0000ff;\">Subject</span>       := Trim<span style=\"color: #000000;\">&#40;</span> cSubject <span style=\"color: #000000;\">&#41;</span><br />         :<span style=\"color: #000000;\">TextBody</span>      := Trim<span style=\"color: #000000;\">&#40;</span> cBody+ctex <span style=\"color: #000000;\">&#41;</span><br />         <span style=\"color: #00C800;\">For</span> nEle := <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">To</span> Len<span style=\"color: #000000;\">&#40;</span> aAttach <span style=\"color: #000000;\">&#41;</span><br />            :<span style=\"color: #000000;\">AddAttachment</span> := AllTrim<span style=\"color: #000000;\">&#40;</span> aAttach<span style=\"color: #000000;\">&#91;</span> nEle <span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#41;</span><br />         <span style=\"color: #00C800;\">Next</span><br />         <span style=\"color: #00C800;\">If</span> ! Empty<span style=\"color: #000000;\">&#40;</span> cBCC <span style=\"color: #000000;\">&#41;</span><br />            :<span style=\"color: #000000;\">BCC</span> := Trim<span style=\"color: #000000;\">&#40;</span> cBCC <span style=\"color: #000000;\">&#41;</span><br />         <span style=\"color: #00C800;\">EndIf</span><br />         :<span style=\"color: #000000;\">Send</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />      End With</div>[/code:2jck5do2]\n\nFunciona también perfecto, [color=#FF0000:2jck5do2]excepto en W10'[/color:2jck5do2]\n\n¿Por qué? Revisé configuración firewall y tiene agregado el EXE\n¿Se puede configurar w10 desde la APP en tiempo de ejecución?\n¿Hay que configurar algo en W10 para que permita esta actualización/envio de email?\n¿Existe otro método que NO bloquee w10?\n\nsaludos.\nLORENZO.", "time": "13:03", "topic": "Bloqueo al Actualizar y al enviar email", "username": "Loren" } ]
Bloqueo al Actualizar y al enviar email
[ { "date": "2021-05-20", "forum": "FiveWin para Harbour/xHarbour", "text": "Lorenzo,\n\nMuestra algún mensaje ó error ?", "time": "13:07", "topic": "Bloqueo al Actualizar y al enviar email", "username": "Antonio Linares" } ]
Bloqueo al Actualizar y al enviar email
[ { "date": "2021-05-20", "forum": "FiveWin para Harbour/xHarbour", "text": "Hola, ¿cuál es el proveedor?\n\nSaludos.", "time": "15:37", "topic": "Bloqueo al Actualizar y al enviar email", "username": "karinha" } ]
Bloqueo al Actualizar y al enviar email
[ { "date": "2021-05-21", "forum": "FiveWin para Harbour/xHarbour", "text": "Hola Antonio, hola Karinha\n\nNo muestra error ninguno. Simplemente no actualiza/no envía email.\n\nProveedor: gmail (y en mi configuración de gmail tengo permitido el “acceso a aplicaciones menos seguras”)\n\nHe indagado más y me di cuenta que entre los clientes con w10 algunos pueden actualizar y otros no. \n\nGracias por vuestro interés.\nLorenzo.", "time": "16:28", "topic": "Bloqueo al Actualizar y al enviar email", "username": "Loren" } ]
Bloqueo al Actualizar y al enviar email
[ { "date": "2021-05-21", "forum": "FiveWin para Harbour/xHarbour", "text": "No estoy seguro, pero creo que gmail.com ya no es gratuito. Sería necesario contactar con su soporte. Abrazos.\n\n[url:3iamfcvx]https&#58;//support&#46;google&#46;com/mail/answer/9312312?hl=es[/url:3iamfcvx]\n\nRegards, saludos.", "time": "17:38", "topic": "Bloqueo al Actualizar y al enviar email", "username": "karinha" } ]
Bloqueo al Actualizar y al enviar email
[ { "date": "2021-05-25", "forum": "FiveWin para Harbour/xHarbour", "text": "Hola,\n\nPerdonadme, pero creo que el problema NO es Gmail. Con W7, Wvista, Wxp... etc... funciona perfecto!!.\nEl problema está con algunos equipos con W10. Hay usuarios que no pueden actualizar/enviar email y otros sí pueden. Así que debe ser la propia configuración de w10.\nDeberá ser la configuración de windows defender, firewall, o filtro \"Smart-Screen\" que por defecto bloquean la descarga de archivos EXE para las actualizaciones (potencialmente peligrosos)\n\n¿Existe la posibilidad de poder configurar o alterar esta configuración en tiempo de ejecución?\n\nsaludos.\nLORENZO.", "time": "11:08", "topic": "Bloqueo al Actualizar y al enviar email", "username": "Loren" } ]
Bloqueo al Actualizar y al enviar email
[ { "date": "2021-05-25", "forum": "FiveWin para Harbour/xHarbour", "text": "Activar/Inhabilitar la verificación en dos pasos\nAbra su cuenta de Google.\nEn la sección \"Seguridad\", seleccione la verificación en dos pasos. Es posible que deba iniciar sesión.\nSeleccione Activar/Desactivar.\nAparecerá una ventana emergente para confirmar que desea activar/deshabilitar la verificación en dos pasos. Seleccione Activar/Desactivar. Mantenga su teléfono a su lado para recibir un código de Google.\n\n\n[url]chrome&#058;//settings/security[/url]\n\nSaludos.", "time": "13:10", "topic": "Bloqueo al Actualizar y al enviar email", "username": "karinha" } ]
Bloqueo al Actualizar y al enviar email
[ { "date": "2021-05-25", "forum": "FiveWin para Harbour/xHarbour", "text": "De momento, porque es muy cambiante, yo estoy pudiendo enviar, en gmail, archivos .exe COMPRIMIDOS en formato bzip2 (7zip tiene esa posibilidad)\n\n\n[quote=\"Loren\":2wf8ymby]Hola,\n\nPerdonadme, pero creo que el problema NO es Gmail. Con W7, Wvista, Wxp... etc... funciona perfecto!!.\nEl problema está con algunos equipos con W10. Hay usuarios que no pueden actualizar/enviar email y otros sí pueden. Así que debe ser la propia configuración de w10.\nDeberá ser la configuración de windows defender, firewall, o filtro \"Smart-Screen\" que por defecto bloquean la descarga de archivos EXE para las actualizaciones (potencialmente peligrosos)\n\n¿Existe la posibilidad de poder configurar o alterar esta configuración en tiempo de ejecución?\n\nsaludos.\nLORENZO.[/quote:2wf8ymby]", "time": "15:24", "topic": "Bloqueo al Actualizar y al enviar email", "username": "hmpaquito" } ]
Bloqueo al Actualizar y al enviar email
[ { "date": "2019-04-05", "forum": "FiveWin para Harbour/xHarbour", "text": "Hola Amigos, necesito de su ayuda tengo una tabla llamada PARAMETROS en donde tengo 2 registro uno llamado pasajes y el otro llamado reserva, es un sistema de ventas de pasajes de buses, resulta que cada cierto tiempo( digamos que meses) en un mometo esa tabla s bloquea y me deja todos los puntos de ventas sin poder hacer nada, ya que de ahi se obtiendo los parametros de pasajes y reserva ya que cada punto de ventas graba se va aumentando en uno.\ntrabajo con TDOLPHIN\nasi obtengo los datos\n\ncPara:=xServer:Query( \"SELECT * FROM parametro Where ma_codi = '\"+\"PASAJE\"+\"'\" )\n If cPara:LastRec() > 0\n nPasaje:=cPara:ma_nume\n Endif\ncPara:End()\n\n * ACA CAPTURA EL NUMERO DE RESERVA Y LO AUMENTA\n *----------------------------------------------\n cSql:=\"UPDATE parametro SET ma_nume=LAST_INSERT_ID(ma_nume+1) WHERE ma_codi='\"+\"RESERVA'\"\n xServer:Execute( cSql )\n\n oQryId := xServer:Query( \"SELECT last_insert_id() AS nId\")\n nReserva := oQryId:nId\n\n\n aCampos := { 'ma_nume' }\n aValues := { nPasaje+1}\n aWhere := \"ma_codi= '\"+\"PASAJE\"+\"'\"\n xServer :Update( \"parametro\", aCampos, aValues, aWhere )\n\nesto es lo que tengo..\nasi necesito su ayuda\n\nsaludos", "time": "12:31", "topic": "Bloqueo de Tabla", "username": "jbrita" } ]
Bloqueo de Tabla
[ { "date": "2007-01-13", "forum": "FiveWin para Harbour/xHarbour", "text": "Hola amigos\nTengo un trabajo entre manos y no se como resolverlo\nLa idea es que en un directorio hay varios ficheros .jpg que contienen imagenes de albaranes, cargarlos en un array, y presentar siempre el primero para trabajar, una vez hecho el trabajo, borrar dicho fichero. Hasta ahí no hay problema si hubiera un solo operador, pero en un sistema de red, si un operador tiene el jpg en pantalla y todavía no lo ha destruido, al cargar otro operador el array, también cargaría en pantalla el mismo fichero, ya que sería el primero del array; por lo que los dos trabajarían en el mismo albarán.\n\nMe gustaría saber si hay alguna forma de cuando trabajo con un .jpg, bloquearlo para que no lo pueda capturar otro operador.\n\nSi no fuera así, sería buena idea para impedir duplicidad, copiar éste fichero en otro directorio temporal y borrarlo del directorio anterior mientras se meten los datos de éste?\n\nSaludos\n\nJose Luis", "time": "00:17", "topic": "Bloqueo de fichero", "username": "JoseLuis" } ]
Bloqueo de fichero
[ { "date": "2007-01-13", "forum": "FiveWin para Harbour/xHarbour", "text": "Jose Luis:\n\nQuizas te pueda servir:\nArchivos: Alba1.jpg, Alba2.jpg, Alba3.jpg, .... \n\nBase de datos: con 2 campos nombre y estatus: \nNombre -> Alba1 \nEstatus -> H (Habilitado), U (usando,en uso)\n\nCuando borras el archivo tambien lo borras de la base de datos.\n\nEs lo que se me ocurre.\n\nSaludos\n\nRuben Fernandez.", "time": "05:53", "topic": "Bloqueo de fichero", "username": "Ruben Fernandez" } ]
Bloqueo de fichero
[ { "date": "2007-01-13", "forum": "FiveWin para Harbour/xHarbour", "text": "Complementando...\n\nTus jpg se encuentran inscritas en la BD. Si uno está en uso el flag de estatus debe ponerse en \"U\" y por tanto no se carga a tu array... cuando terminan el trabajo el status cambia a \"H\".\n\nMe parece que sía una solución por la via que estás yendo.\n\n[quote=\"Ruben Fernandez\":1hgh3khd]Jose Luis:\n\nQuizas te pueda servir:\nArchivos: Alba1.jpg, Alba2.jpg, Alba3.jpg, .... \n\nBase de datos: con 2 campos nombre y estatus: \nNombre -> Alba1 \nEstatus -> H (Habilitado), U (usando,en uso)\n\nCuando borras el archivo tambien lo borras de la base de datos.\n\nEs lo que se me ocurre.\n\nSaludos\n\nRuben Fernandez.[/quote:1hgh3khd]", "time": "06:27", "topic": "Bloqueo de fichero", "username": "Armando Picon" } ]
Bloqueo de fichero
[ { "date": "2007-01-13", "forum": "FiveWin para Harbour/xHarbour", "text": "Entonces deduzco por vuestra idea, que tendría que haber una BD por ejemplo \"Imagenes.DBF\", en la que cuando un operador cualquiera entre en ésta opción haga lo siguiente:\n - 1º Cargar un array con los nombres de los documentos que hay en el directorio.\n - 2º Comprobar los nombres de éste array con los que hay en la BD\n - 3º Añadir los que no existan.\n - 4º Cuando se ponga a trabajar con ellos, que marque el que está en uso\n\nTendré que usar ésta opción, ya que no veo otra en la que no se duplique el trabajo en un momento dado.\n\nMuchas gracias por vuestra ayuda\n\nSaludos\n\nJose Luis", "time": "11:06", "topic": "Bloqueo de fichero", "username": "JoseLuis" } ]
Bloqueo de fichero
[ { "date": "2007-01-13", "forum": "FiveWin para Harbour/xHarbour", "text": "Esa es la idea...!!! De ese modo aseguras que no haya uso duplicado o mas segun los usuarios de tu programa.", "time": "16:54", "topic": "Bloqueo de fichero", "username": "Armando Picon" } ]
Bloqueo de fichero