messages
listlengths
1
1
topic
stringlengths
2
60
[ { "date": "2023-04-02", "forum": "FiveWin for Harbour/xHarbour", "text": "I have been using Windows servers for many years (Server 2008, 2012, etc., even earlier and later versions), and, in addition to having to try to program my software as well as possible, I have had many problems due to the choice of hardware, which, in addition from the need to invest in its acquisition, then I have had to maintain and pay for said maintenance.\nThat was left behind, since with the offers that are currently in the cloud, I can have adequate hardware, with a Windows Server of the latest version, for an affordable price.\nIf I take account of what I pay monthly, it is cheaper than investing in equipment that after a few years I have to change again, in addition to not having to pay for hardware maintenance.\nScalability in these cases is an important factor to consider. If more resources are needed, it is essential to know that I will be able to scale it up or down without problem.\nmy two cents", "time": "00:20", "topic": "Advise in Server hardware", "username": "cnavarro" } ]
Advise in Server hardware
[ { "date": "2023-04-02", "forum": "FiveWin for Harbour/xHarbour", "text": "Dear Cristobal,\n\nI fully agree with you <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->", "time": "15:05", "topic": "Advise in Server hardware", "username": "Antonio Linares" } ]
Advise in Server hardware
[ { "date": "2023-04-03", "forum": "FiveWin for Harbour/xHarbour", "text": "Hello friends,\nfor our use I9 processors would be best:\n\n[quote:rz7l5yis]When comparing high-end Xeon and i9 processors for running 5 virtual machines and RDP for 5 users, both can deliver impressive performance. If your primary concern is speed, a high-end i9 processor may offer slightly higher clock speeds and better single-threaded performance[/quote:rz7l5yis]. \n\nI think in a small entrepreneur-led company, speed is the most important thing.\n\nBest regards,\nOtto", "time": "20:31", "topic": "Advise in Server hardware", "username": "Otto" } ]
Advise in Server hardware
[ { "date": "2023-04-03", "forum": "FiveWin for Harbour/xHarbour", "text": "Cristobal, you may be right in general.\nBut not in the case of Marc. It is an entrepreneurial company and here it is not about money but about his personal time. \n\nA RDP server in the own network, data backup directly with WINDOWS server backup on connected hard disks. \n\nAnd the most important: my data is mine and inhouse.\n\nBest regards,\nOtto", "time": "21:07", "topic": "Advise in Server hardware", "username": "Otto" } ]
Advise in Server hardware
[ { "date": "2023-04-03", "forum": "FiveWin for Harbour/xHarbour", "text": "Thanks for several inputs on my question.\n\nI'm sure that I will not start using the special servers system that come for 3500 euro. More hardware than needed.\n\nCloud : tja... I think that there will always be smarther people that can have access and maybe block data. even FaceBook ect. where hit. And so, I like to keep my data inhouse.\nBut I did a request for information and will see for a test scenerio, just to have the feel of it.\n\nDesktop versus Laptop : At this moment Desktop because when something is wrong, we can open it and mostly repair it. Desktop fault is mostly 'call the shop'. Rearly happens I have to say.\n\n\n64 GR ram : Will FW ever use it ? Is FW limited to 16-32 ram ? \nSSD = most speed for now\nThat 1 Gig Network. There are 10 gig cards and corresponding hardware. 10 Gig will make a difference in a typical dbf/Xbrowse system not ? or due to using Server 2019 and RDP Cards with 1 versus 10 won't matter, since all\nprocessing is done on the I9\n\nThis Desktop has nice specs for € 999\n\nIntel Core i9 10900 (10 Cores - 20 Threads) Processor\nMoederbord met H410-chipset\n64GB DDR4 (max. 3200MHz) Werkgeheugen\n2000GB NVMe M.2 SSD Opslag\nIntel UHD Graphics 630 onboard\n1 Gigabit Netwerkcontroller onboard\n5.1-kanaals Audiocontroller onboard\n420 watt ATX Voeding\nWiFi 5 (Wireless-N+AC) en Bluetooth 4.2\nZwarte M-ATX Mini-tower Behuizing\nAfmetingen: 36 x 18 x 39 cm (HxBxD)", "time": "23:07", "topic": "Advise in Server hardware", "username": "Marc Venken" } ]
Advise in Server hardware
[ { "date": "2023-04-03", "forum": "FiveWin for Harbour/xHarbour", "text": "About Windows Server 2019 STANDARD\n\nI have not had a price yet for a Server 2019 program and licence.\n\nWe are with 3 people so the licence of 5 will be needed.\n\nHowever, I heard that it was possible that we can have a 2 person licence, or it is included in the server 2019 standard program.... and the third person could work on the server itself like it is here computer.\nShe only works very short time on the cpu and always on the most light software purpose, simply and a amount of products that are diliverd. (Stock changes)\n\nThere are several server 2019 versions. For very small business, what you suggest ?\n\nI'm in the final face now and like to desited witch system to go for\n\nThanks already for helping", "time": "23:21", "topic": "Advise in Server hardware", "username": "Marc Venken" } ]
Advise in Server hardware
[ { "date": "2023-04-04", "forum": "FiveWin for Harbour/xHarbour", "text": "hi Marc,\n[quote=\"Marc Venken\":12i4ro9h]Intel Core i9 10900 (10 Cores - 20 Threads) Processor[/quote:12i4ro9h]\ndon´t know if \"Desktop\"-CPU work fine with Server Software\nthose newer \"Desktop\" CPU have \"P\"-Core and \"E\"-Core\n\n\"real\" Server most use Intel XEON or AMD EPYC CPU and use ECC RAM\nthose CPU have no \"E\"-Core so i don´t know how Server 2019 / 2022 Software will react\n\nread here : Alder Lake 12th Gen Intel CPU won't boot on Windows Server 2022 with HyperV enabled\n[url:12i4ro9h]https&#58;//techcommunity&#46;microsoft&#46;com/t5/windows-server-for-it-pro/alder-lake-12th-gen-intel-cpu-won-t-boot-on-windows-server-2022/td-p/3010622[/url:12i4ro9h]\n---\n\nas Tim say : how much Server Power do you need <!-- s:?: --><img src=\"{SMILIES_PATH}/icon_question.gif\" alt=\":?:\" title=\"Question\" /><!-- s:?: --> \n\ni know People run many \"virtual-Machine\" on Server which need much CPU Power and RAM\n\nbut if you run only PostgreSQL or MySQL, a \"Celeron\" CPU will do the Job for 3 (fast) Workstation\nit is like a NAS which have \"build-in\" Support for PostgreSQL or MySQL\n\n---\n\nabout RAM\nin my \"Mini\" Server i have 2 x 4 GB \"Dual-Channel\" DDR4 RAM\nfor PostgreSQL Server i use 50 % of RAM as \"Cache\"\n\nremember when use PostgreSQL or MySQL to \"optimize\" RAM for \"Cache\"\n\n[quote:12i4ro9h]\\PostgreSQL\\xx.x\\data\\postgresql.conf\n\\ProgramData\\MySQL\\MySQL Server 8.0\\my.ini[/quote:12i4ro9h]\n\n---\nofficial Microsoft\n[quote:12i4ro9h]Microsoft Windows Server 2019 RDS User CAL - 5x Remote Desktop Client User Access Lizenz 821,00 €\nMicrosoft Windows Server 2022 5x RDS User CAL - 5x Remote Desktop Client User Access Lizenz 862,00 €[/quote:12i4ro9h]\nhave a look @ Ebay <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D --> \n\n! Note : if it is for DELL or HP than it is \"bundle\" to Hardware so DON´T buy this\n\n---\n\nWorkstation : do you need a Windows 11 \"ready\" PC for 299,- € <!-- s:?: --><img src=\"{SMILIES_PATH}/icon_question.gif\" alt=\":?:\" title=\"Question\" /><!-- s:?: --> \n[quote:12i4ro9h]\nAMD Ryzen 5 PRO 4650G (Zen 2), 6-Core ( 6× 3700 MHz, Turbo 4200 MHz) + HT\n16 GB DDR4 , Dual-Channel (2 x 8 GB), 3200 MHz Kingston FURY Beast \n500 GB Kingston® NV2 NVMe, max. 3500 MB/s | 2100 MB/s \n\nGigabyte A520M K V2, \n1× PCIe 3.0 ×16 (×16 Modus), 1× PCIe 3.0 ×1 \n1× M.2, Key M, 2280 (PCIe 3.0 ×4/SATA),\n4× SATA 6 GBit/s mit RAID 0, 1, 10\n\nExtern (I/O-Panel)\n4× USB 3.2 Gen1, Typ A\n2× USB 2.0\n\nIntern (Header)\n2× USB 3.2 Gen1\n4× USB 2.0\n\n1× HDMI 2.1 (2160p@60Hz)\n1× D-Sub (VGA)\nHDCP 2.3[/quote:12i4ro9h]\n[url:12i4ro9h]https&#58;//www&#46;csl-computer&#46;com/pc-csl-sprint-5710-ryzen-5&#46;html[/url:12i4ro9h]\n\nyou only need to buy a \"License Key\" for Windows 7/8/10 which can be used for Windows 11\n\nif you use Server 2019 / 2022 buy a \"PRO\" Version \"License Key\" and use MediaCreationTool \nyou can to download ISO or let MediaCreationTool write on a 8 GB USB.Stick (will FORMAT it)", "time": "05:18", "topic": "Advise in Server hardware", "username": "Jimmy" } ]
Advise in Server hardware
[ { "date": "2023-04-04", "forum": "FiveWin for Harbour/xHarbour", "text": "All of my clients are \"multi-user\". Some have true Windows Server software but most just use Windows 10 or 11 Pro.\n\nWhile some have been using ADS ( Client Server ), in more recent years, 3 - 5 users, on current computers, have NO complaints about speed / performance.\n\nMost are using an i5 processor on the server. Right now, I'm using a Dell Inspiron AIO, with ADS, as a \"server\". That's a non-power computer. I access it with Windows Remote Desktop from a Mac, two Macs running Parallels, and a Surface 4 notebook. I can do data intensive work, multiple files open at once ( with indexes ), etc. and NEVER have performance issues in real world processing.\n\nThat computer an i7 processor with 16GB of RAM and an SSD. For an office, it is certainly good enough. Of course, in my previous note I mentioned a super inexpensive computer I bought for testing and it works fine as a server, or can also be a workstation to the Dell. I also don't know that you will be disappointed with the performance of your Gigabit internet cards. They will probably be just fine.\n\nAgain, you are talking about a small, in-house, system for 3 users. It's not about test numbers. How well will it work with the data you currently process in your daily work ? That is what is important.\n\nMy clients are ALL repair shops. Some are small and others are quite large, and even multi-location. No one using current Windows 11 computers is having any problems using the software on 3 to 5 workstations, and they are processing data, and searching for parts and information on the web, all day long.", "time": "23:22", "topic": "Advise in Server hardware", "username": "TimStone" } ]
Advise in Server hardware
[ { "date": "2023-04-05", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"TimStone\":3c1zo4o5]\n\nMost are using an i5 processor on the server. Right now, I'm using a Dell Inspiron AIO, with ADS, as a \"server\". That's a non-power computer. I access it with Windows Remote Desktop from a Mac, two Macs running Parallels, and a Surface 4 notebook. I can do data intensive work, multiple files open at once ( with indexes ), etc. and NEVER have performance issues in real world processing.\n\n[/quote:3c1zo4o5]\n\nThis is the kind of setup i'm trying out. Have to do some adjustmens in my software for paths, but than I have RDS working. No server, just a Win 10 computer. Like You, Otto is also happy with this config, so it should be more than enough for my small business. I'm Not using a ADS software however because i'm into dbf,cdx\n\nI discoverd a maybe bigger problem in my software. Using Xbrowse as my core system in almost all code, I see that moving the cursor in the cells, functions are executed like retrieving data. Normaly this should only happen when data is changed, so I have codeblocks wrong in use. I have to digg a bit deeper into this and post some issues here when I find them.", "time": "20:42", "topic": "Advise in Server hardware", "username": "Marc Venken" } ]
Advise in Server hardware
[ { "date": "2023-04-06", "forum": "FiveWin for Harbour/xHarbour", "text": "Do I have to see Windows server 2019 and RDS as 2 software items ?\nUsing RDS I don't need Windows server then ?\n\nThe CPU I9 mentioned above has a win11-Pro installed.", "time": "10:19", "topic": "Advise in Server hardware", "username": "Marc Venken" } ]
Advise in Server hardware
[ { "date": "2013-03-06", "forum": "FiveWin for Harbour/xHarbour", "text": "Hi,\nProblem related to Harbour , but I'm thinking that this forum can help too ... <!-- s:) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":)\" title=\"Smile\" /><!-- s:) --> I'm creating project with minGw , it's running OK . Also I'm trying to build that with Borland ( Bcc 582 ) . Compiler return error , which related to SWITCH / CASE . It says that integer or char vr must be . Sample from TMySql.prg :\n[code=fw:3bihxyk6]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #00C800;\">SWITCH</span> ::<span style=\"color: #000000;\">aFieldStruct</span><span style=\"color: #000000;\">&#91;</span> nNum <span style=\"color: #000000;\">&#93;</span><span style=\"color: #000000;\">&#91;</span> MYSQL_FS_TYPE <span style=\"color: #000000;\">&#93;</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">CASE</span> MYSQL_TYPE_TINY<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #ff0000;\">\"L\"</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">CASE</span> MYSQL_TYPE_SHORT<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">CASE</span> MYSQL_TYPE_LONG<br />&nbsp;</div>[/code:3bihxyk6]\nVars \"MYSQL_\" indetifiers are in mysql.ch and related to integers . This ch is in hrb\\include ... \nWhy I'm getting this error ?", "time": "08:11", "topic": "Advise is needfull ..", "username": "Rimantas" } ]
Advise is needfull ..
[ { "date": "2006-05-06", "forum": "FiveWin para Harbour/xHarbour", "text": "Olá Antonio,\n\nSeria possível mudar o método \"Aevalwhen\" de WINDOW.PRG para trabalhar com FOR EACH de xharbour ? Veja um exemplo abaixo:\n\n[code:35xwhpax]\n#include \"FiveWin&#46;ch\"\n\nfunction Main&#40;&#41;\n\n local oDlg, cName &#58;= Space&#40; 10 &#41;\n\n DEFINE DIALOG oDlg TITLE \"Testing ForEach for speed\"\n\n @ 1, 2 SAY \"Name&#58;\"\n\n @ 1, 7 GET cName\n\n @ 2, 5 BUTTON \"AEvalWhen&#40;&#41; of FWH\" ACTION FWH_EVAL&#40; oDlg &#41;\n\n @ 3, 5 BUTTON \"My AEvalWhen&#40;&#41;\" ACTION MY_EVAL&#40; oDlg &#41;\n\n ACTIVATE DIALOG oDlg\n\nreturn nil\n\nfunction FWH_EVAL&#40; oDlg &#41;\n\n local x, nStart\n\n nStart &#58;= Seconds&#40;&#41;\n\n for X = 1 to 100000\n oDlg&#58;AEvalWhen&#40;&#41;\n next\n\n msgstop&#40; Seconds&#40;&#41; - nStart &#41;\n\nreturn NIL\n\n//----------------------------------------------------------------------------//\n\nfunction MY_EVAL&#40; oDlg &#41;\n\n local n\n local aControls &#58;= oDlg&#58;aControls, aVarray\n local x, nStart\n\n nStart &#58;= Seconds&#40;&#41;\n\n for X = 1 to 100000\n if aControls != nil &#46;and&#46; ! Empty&#40; aControls &#41;\n for each aVarray IN oDlg&#58;aControls\n if aVarray != nil &#46;and&#46; aVarray&#58;bWhen != nil\n if Eval&#40; aVarray&#58;bWhen &#41;\n aVarray&#58;Enable&#40;&#41; // keep this as &#58;&#58;\n else\n aVarray&#58;Disable&#40;&#41; // keep this as &#58;&#58;\n endif\n endif\n next\n endif\n next\n\n msgstop&#40; Seconds&#40;&#41; - nStart &#41;\n\nreturn NIL\n\n* Extract from WINDOW&#46;PRG\n*METHOD AEvalWhen&#40;&#41; CLASS TWindow\n* local n\n* local aControls &#58;= &#58;&#58;aControls, aVarray\n*\n* if aControls != nil &#46;and&#46; ! Empty&#40; aControls &#41;\n* for each aVarray IN &#58;&#58;aControls\n* if aVarray != nil &#46;and&#46; aVarray&#58;bWhen != nil\n* if Eval&#40; aVarray&#58;bWhen &#41;\n* aVarray&#58;Enable&#40;&#41; // keep this as &#58;&#58;\n* else\n* aVarray&#58;Disable&#40;&#41; // keep this as &#58;&#58;\n* endif\n* endif\n* next\n** for n = 1 to Len&#40; aControls &#41;\n** if aControls&#91; n &#93; != nil &#46;and&#46; aControls&#91; n &#93;&#58;bWhen != nil\n** if Eval&#40; aControls&#91; n &#93;&#58;bWhen &#41;\n** &#58;&#58;aControls&#91; n &#93;&#58;Enable&#40;&#41; // keep this as &#58;&#58;\n** else\n** &#58;&#58;aControls&#91; n &#93;&#58;Disable&#40;&#41; // keep this as &#58;&#58;\n** endif\n** endif\n** next\n* endif\n*return nil\n[/code:35xwhpax]\n\nExecutando o exemplo acima em meu computador o tempo fica assim:\n\nClicando em \"AEvalWhen() of FWH\" gasta o tempo de 1.203 segundos\nClicando em \"My AEvalWhen()\" gasta o tempo de 0.625 segundos, ou seja quase a metade do tempo <!-- s:lol: --><img src=\"{SMILIES_PATH}/icon_lol.gif\" alt=\":lol:\" title=\"Laughing\" /><!-- s:lol: --> \n\nObrigado,\n\nRossine.", "time": "20:31", "topic": "AevalWhen de WINDOW.PRG", "username": "Rossine" } ]
AevalWhen de WINDOW.PRG
[ { "date": "2006-05-07", "forum": "FiveWin para Harbour/xHarbour", "text": "Rossine \n\n Para cuando el twbrowse para xharbour free ?\n\n\n Un saludo", "time": "00:07", "topic": "AevalWhen de WINDOW.PRG", "username": "Frafive" } ]
AevalWhen de WINDOW.PRG
[ { "date": "2006-05-08", "forum": "FiveWin para Harbour/xHarbour", "text": "Olá Frafive,\n\nAqui eu gerei o WBROWSE.LIB para bcc 5.5 sem nenhum problema. Qual erro está aparecendo para você ?\n\nAbraços,\n\nRossine.", "time": "15:06", "topic": "AevalWhen de WINDOW.PRG", "username": "Rossine" } ]
AevalWhen de WINDOW.PRG
[ { "date": "2006-05-08", "forum": "FiveWin para Harbour/xHarbour", "text": "Hola Rossine\n\n Desde Recusos no funciona el twbrowse.\n\n Un saludo", "time": "15:16", "topic": "AevalWhen de WINDOW.PRG", "username": "Frafive" } ]
AevalWhen de WINDOW.PRG
[ { "date": "2006-05-08", "forum": "FiveWin para Harbour/xHarbour", "text": "Olá Frafive,\n\nCompilei o programa abaixo que usa recursos, e funcionou 100%.\n\n[code:ndnfh4jz]\n#include \"fivewin&#46;ch\"\n\nexternal dbfcdx, ordkeyno, ordkeygoto, ordkeycount\n\n// Sample by Carlos Vargas\n\nfunction main&#40;&#41;\n local oDlg\n\n #ifdef __CLIPPER__\n local hBorl &#58;= LoadLibrary&#40; \"BWCC&#46;dll\" &#41;\n #else \n local hBorl &#58;= LoadLibrary&#40; \"BWCC32&#46;dll\" &#41;\n BWCCRegister&#40;GetResources&#40;&#41;&#41;\n #endif \n\n private cCodigo &#58;= space&#40;7&#41;\n rddsetdefault&#40; \"DBFCDX\" &#41;\n\n use cuentas alias TEST\n index on codcta tag codigo\n index on nombre tag nombre\n ordsetfocus&#40;\"codigo\"&#41;\n\n define dialog odlg name \"DLG_TEST\" title \"Pruba de DBSearch&#40;&#41; com REDEFINES\"\n\n redefine get cCodigo;\n id 101 of odlg;\n update\n\n redefine btnbmp;\n id 102 of odlg;\n action &#40; TEST->&#40; DBSearch&#40; \"Catalogo de cuentas\",; //Titulo\n &#123;||&#123; TEST->codcta, TEST->nombre &#125; &#125;,; //Campos\n &#123;\"Codigo\" ,\"Nombre\"&#125;,; //Headers\n &#123;&#123;\"Codigo cuenta\",\"Nombre Cuenta\"&#125;,; //Array Index \"campos\"\n &#123;\"codigo\" ,\"nombre\"&#125;&#125; &#41; &#41;,; // \"Titulos\"\n cCodigo &#58;= TEST->codcta,;\n odlg&#58;update&#40;&#41; &#41;\n redefine button id 201 of odlg action odlg&#58;end&#40;&#41;\n redefine button id 202 of odlg action odlg&#58;end&#40;&#41; cancel\n\n activate dialog odlg center\n\n close all\n\n FreeLibrary&#40; hBorl &#41;\n\nreturn\n\n//============================================================================//\n\n*DLL32 FUNCTION BWCCRegister&#40; hInst AS LONG&#41; AS WORD PASCAL LIB \"BWCC32&#46;DLL\"\n\n//============================================================================//\n\n#define TRUE &#46;t&#46;\n#define FALSE &#46;f&#46;\n\n\nFUNCTION DBSearch&#40; cTitle, aFields, aHeaders, aOrders, oWnd &#41;\n\n PRIVATE oDlgS ,;\n oBrw ,;\n oCombo,;\n oSayRec,;\n oSaySeek,;\n cOldOrder &#58;= ordsetfocus&#40;&#41;,;\n lOk &#58;= FALSE,; \n nOrden &#58;= 1\n \n DEFAULT oWnd &#58;= GetWndDefault&#40;&#41;\n\n //salta al inicio de la tabla \n dbgotop&#40;&#41;\n\n //define dialogo\n DEFINE DIALOG oDlgS NAME \"DLG_LISTA\";\n TITLE cTitle;\n OF oWnd\n \n REDEFINE LISTBOX oBrw ;\n FIELDS;\n ID 102;\n OF oDlgS;\n UPDATE;\n ON DBLCLICK &#40; lOk&#58;=TRUE, oDlgS&#58;end&#40;&#41; &#41;;\n ON CHANGE ShowPos&#40; recno&#40;&#41;, ordkeycount&#40;&#41;, oSayRec&#41;\n\n oBrw&#58;Set3DStyle&#40;&#41;\n oBrw&#58;nHeaderHeight &#58;= 18\n oBrw&#58;nLineHeight &#58;= 15\n oBrw&#58;cAlias &#58;= alias&#40;&#41;\n oBrw&#58;bLine &#58;= aFields\n oBrw&#58;aHeaders &#58;= aHeaders\n oBrw&#58;aJustify &#58;= &#123;2,0&#125;\n oBrw&#58;bSeek &#58;= &#123;|lRet| oBrw&#58;DbfSeek&#40; &#46;F&#46; ,&#123;|| Tone&#40;500,3&#41; &#125;&#41; &#125;\n oBrw&#58;bUpdateBuffer &#58;= &#123;|| UpdateBuffer&#40; oSaySeek, oBrw&#58;cBuffer &#41; &#125;\n\n oBrw&#58;lRecSel &#58;= &#46;t&#46;\n oBrw&#58;lTheader &#58;= &#46;t&#46;\n oBrw&#58;lDrawTitle &#58;= &#46;t&#46;\n oBrw&#58;cHeaderTitle &#58;= \"Tabela do Cadastro de Clientes\"\n oBrw&#58;nTitleHeight &#58;= 30\n oBrw&#58;aHeaderSort &#58;= &#123; 1, \"BOTTOM\", \"TOP&#46;BMP\", \"BOTTOM&#46;BMP\" &#125;\n oBrw&#58;HeaderTImg &#58;= &#123; \"\\fwh\\icons\\chart&#46;ico\" &#125;\n oBrw&#58;HeaderHImg &#58;= &#123; \"\\fwh\\bitmaps\\16x16\\explorer&#46;bmp\", ;\n \"\\fwh\\icons\\dialog2&#46;ico\" , ;\n \"\\fwh\\icons\\msdos&#46;ico\" , ;\n \"\\fwh\\icons\\summer&#46;ico\" , ;\n \"\\fwh\\icons\\contar&#46;ico\" &#125;\n* oBrw&#58;HeaderFImg &#58;= oBrw&#58;HeaderHImg\n\n REDEFINE SAY oSayRec ;\n ID 103 OF oDlgS COLOR CLR_BLUE\n\n REDEFINE SAY oSaySeek PROMPT \"\" ;\n ID 104 OF oDlgS COLOR CLR_BLUE\n\n REDEFINE BUTTON ;\n ID 201 ;\n OF oDlgS ;\n ACTION &#40; lOk &#58;= TRUE, oDlgS&#58;end&#40;&#41; &#41;\n\n REDEFINE BUTTON ;\n ID 202 ;\n OF oDlgS ;\n ACTION &#40; lOk &#58;= FALSE, oDlgS&#58;end&#40;&#41; &#41; \n \n ACTIVATE DIALOG oDlgS ;\n CENTER ;\n ON INIT &#40; ToolBar&#40;aOrders&#41; ,;\n oBrw&#58;nHeight -= 85 &#41;\n\n ordsetfocus&#40; cOldOrder &#41;\n\nRETURN &#40; lOk &#41;\n\nSTATIC PROCEDURE ToolBar&#40;aOrders&#41;\n LOCAL oToolBar\n\n //define la barra de herramientas con el combobox de tag's\n DEFINE BUTTONBAR oToolBar OF oDlgS SIZE 30,30 3D\n\n @ 5, oToolBar&#58;GetBtnLeft&#40;&#41; + 3;\n COMBOBOX oCombo VAR nOrden ;\n ITEMS aOrders&#91;1&#93;;\n SIZE oDlgs&#58;nWidth - 25, 200;\n OF oToolBar PIXEL FONT oDlgS&#58;oFont;\n ON CHANGE &#40; ordsetfocus&#40; aOrders&#91;2, nOrden &#93; &#41;,;\n oBrw&#58;refresh&#40;TRUE&#41;,;\n oBrw&#58;setfocus&#40;&#41;, Tone&#40;650,3&#41; &#41;\n\n oDlgS&#58;SetControl&#40;oBrw&#41;\n\nRETURN\n\nSTATIC PROCEDURE ShowPos&#40;nActual, nTotal, oSay&#41;\n oSay&#58;SetText&#40; alltrim&#40; str&#40;nActual&#41; &#41;+\"/\"+alltrim&#40;str&#40;nTotal&#41;&#41; &#41;\n oSay&#58;refresh&#40;&#41;\nRETURN\n\n\nSTATIC FUNCTION UpdateBuffer&#40; oSay, cBuffer &#41;\n LOCAL cMsg\n\n IF len&#40; cBuffer &#41; > 0\n cMsg &#58;= cBuffer\n ELSE\n cMsg &#58;= \"\"\n ENDIF\n oSay&#58;SetText&#40;cMsg&#41;\n\nRETURN Nil\n\n\n//----------------------------------------------------------------------------//\n\nDLL32 FUNCTION BWCCRegister&#40; hInst AS LONG &#41; AS WORD PASCAL LIB \"BWCC32&#46;DLL\"\n\n//----------------------------------------------------------------------------//\n\n[/code:ndnfh4jz]\n\n[img:ndnfh4jz]http&#58;//geocities&#46;yahoo&#46;com&#46;br/qiinformatica2000/wbrwrec&#46;PNG[/img:ndnfh4jz]\n\nVeja se você consegue gerar e executar este exemplo, ok ? Ele se chama SAMPLE04.PRG que se encontra junto com os fontes de wbrowse que eu modifiquei.\n\nAbraços,\n\nRossine.", "time": "17:25", "topic": "AevalWhen de WINDOW.PRG", "username": "Rossine" } ]
AevalWhen de WINDOW.PRG
[ { "date": "2006-05-09", "forum": "FiveWin para Harbour/xHarbour", "text": "Hoa Rossine\n\n Desde recursos no funciona el twbrowse, si creas el twbrowse en unas coordenadas en archivo de RC, despues no te lo pinta bien, lo pinta siempre en TOP.\n\nun saludo y gracias", "time": "23:04", "topic": "AevalWhen de WINDOW.PRG", "username": "Frafive" } ]
AevalWhen de WINDOW.PRG
[ { "date": "2006-05-10", "forum": "FiveWin para Harbour/xHarbour", "text": "Rossine,\n\nNo podemos usar FOR EACH ya que no lo soporta ni Clipper, ni Xbase++ ni C3.", "time": "09:07", "topic": "AevalWhen de WINDOW.PRG", "username": "Antonio Linares" } ]
AevalWhen de WINDOW.PRG
[ { "date": "2006-05-10", "forum": "FiveWin para Harbour/xHarbour", "text": "OK Antonio <!-- s:) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":)\" title=\"Smile\" /><!-- s:) --> \n\nun saludo y gracias\n\nRossine.", "time": "12:56", "topic": "AevalWhen de WINDOW.PRG", "username": "Rossine" } ]
AevalWhen de WINDOW.PRG
[ { "date": "2013-04-29", "forum": "FiveWin for Harbour/xHarbour", "text": "Hello,\n\nI need the new object-position afer move ( NO resize ) from inside a dialog.\nI want to move the SAYS, to find the best textcolors in relation to the gradient.\nThe return-values are wrong. My test :\n\n[color=#0000FF:1oi2ht5n][b:1oi2ht5n]oSay1:bMoved := {|| ( nTxtTop1 := oSay1:nTop, nTxtLeft1 := oSay1:nLeft ) }\noSay2:bMoved := {|| ( nTxtTop2 := oSay2:nTop, nTxtLeft2 := oSay1:nLef2 ) }\noSay3:bMoved := {|| ( nTxtTop3 := oSay3:nTop, nTxtLeft3 := oSay1:nLef3 ) }[/b:1oi2ht5n][/color:1oi2ht5n]\n\n[img:1oi2ht5n]http&#58;//www&#46;pflegeplus&#46;com/pictures/OMove1&#46;jpg[/img:1oi2ht5n]\n\n[size=150:1oi2ht5n]I only moved to LEFT with the same TOP[/size:1oi2ht5n]\nA left mouseclick shows the values.\n\n[img:1oi2ht5n]http&#58;//www&#46;pflegeplus&#46;com/pictures/OMove2&#46;jpg[/img:1oi2ht5n]\n\nThe Top / Left of the 3 says are STATIC\nThe new values after MOVE I have to save.\n\nnTxtTop1, nTxtLeft1 \nnTxtTop2, nTxtLeft2 \nnTxtTop3, nTxtLeft3 \n\n[code=fw:1oi2ht5n]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #00C800;\">FUNCTION</span> SHOW_DLG<span style=\"color: #000000;\">&#40;</span> oWnd <span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">LOCAL</span> oBtn30, nRadio1 := <span style=\"color: #000000;\">1</span>, lCheck1 := .T.<br /><span style=\"color: #00C800;\">LOCAL</span> oSay1, oSay2, oSay3, oRadio1, oCheck1<br /><span style=\"color: #00C800;\">LOCAL</span> oSlide, oSlide1, oSlide2, oSlide3<br /><span style=\"color: #00C800;\">LOCAL</span> nVar1 := <span style=\"color: #000000;\">150</span>, nVar2 := <span style=\"color: #000000;\">100</span>, nVar3 := <span style=\"color: #000000;\">150</span><br /><br />lGDialog := .T.<br /><br /><span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oGDialog <span style=\"color: #0000ff;\">FROM</span> nDlgTop, nDlgLeft <span style=\"color: #0000ff;\">TO</span> nDlgHeight, nDlgWidth  <span style=\"color: #0000ff;\">OF</span> oWnd <span style=\"color: #0000ff;\">PIXEL</span> ;<br /><span style=\"color: #0000ff;\">TITLE</span> <span style=\"color: #ff0000;\">\"Dialog GRADIENT\"</span><br /><br />oGDialog:<span style=\"color: #000000;\">bLClicked</span> := <span style=\"color: #000000;\">&#123;</span>|| MsgAlert<span style=\"color: #000000;\">&#40;</span> ;<br />                   <span style=\"color: #ff0000;\">\"Dialog Top / Left / Width / Height : \"</span> + ALLTRIM<span style=\"color: #000000;\">&#40;</span>STR<span style=\"color: #000000;\">&#40;</span>oGDialog:<span style=\"color: #000000;\">nTop</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span> + <span style=\"color: #ff0000;\">\" / \"</span> +  ALLTRIM<span style=\"color: #000000;\">&#40;</span>STR<span style=\"color: #000000;\">&#40;</span>oGDialog:<span style=\"color: #000000;\">nLeft</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span> + <span style=\"color: #ff0000;\">\" / \"</span> + ;<br />                                                                                   ALLTRIM<span style=\"color: #000000;\">&#40;</span>STR<span style=\"color: #000000;\">&#40;</span>oGDialog:<span style=\"color: #000000;\">nWidth</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span> + <span style=\"color: #ff0000;\">\" / \"</span> +  ALLTRIM<span style=\"color: #000000;\">&#40;</span>STR<span style=\"color: #000000;\">&#40;</span>oGDialog:<span style=\"color: #000000;\">nHeight</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span> + CRLF + ;<br />                   <span style=\"color: #ff0000;\">\"Top / Left 1 : \"</span> + ALLTRIM<span style=\"color: #000000;\">&#40;</span>STR<span style=\"color: #000000;\">&#40;</span>nTxtTop1<span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span> + <span style=\"color: #ff0000;\">\" / \"</span> +  ALLTRIM<span style=\"color: #000000;\">&#40;</span>STR<span style=\"color: #000000;\">&#40;</span>nTxtLeft1<span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span> + CRLF + ;<br />                   <span style=\"color: #ff0000;\">\"Top / Left 2 : \"</span> + ALLTRIM<span style=\"color: #000000;\">&#40;</span>STR<span style=\"color: #000000;\">&#40;</span>nTxtTop2<span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span> + <span style=\"color: #ff0000;\">\" / \"</span> +  ALLTRIM<span style=\"color: #000000;\">&#40;</span>STR<span style=\"color: #000000;\">&#40;</span>nTxtLeft2<span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span> + CRLF + ;<br />                   <span style=\"color: #ff0000;\">\"Top / Left 3 : \"</span> + ALLTRIM<span style=\"color: #000000;\">&#40;</span>STR<span style=\"color: #000000;\">&#40;</span>nTxtTop3<span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span> + <span style=\"color: #ff0000;\">\" / \"</span> +  ALLTRIM<span style=\"color: #000000;\">&#40;</span>STR<span style=\"color: #000000;\">&#40;</span>nTxtLeft3<span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span>, <span style=\"color: #ff0000;\">\"TextPosition\"</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br /><br />@ <span style=\"color: #000000;\">10</span>, <span style=\"color: #000000;\">5</span> <span style=\"color: #0000ff;\">RADIO</span> oRadio1 <span style=\"color: #0000ff;\">VAR</span> nRadio1 <span style=\"color: #0000ff;\">OF</span> oGDialog <span style=\"color: #0000ff;\">PIXEL</span> ;<br /><span style=\"color: #0000ff;\">ITEMS</span> <span style=\"color: #ff0000;\">\"Option &1\"</span>, <span style=\"color: #ff0000;\">\"Option &2\"</span> _3D <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">70</span>, <span style=\"color: #000000;\">15</span> <span style=\"color: #0000ff;\">COLOR</span> nWColorT1 ; <span style=\"color: #B900B9;\">// 16443068 ;</span><br />HELPID <span style=\"color: #000000;\">100</span>, <span style=\"color: #000000;\">101</span> ;<br /><span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">CHANGE</span> MsgBeep<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />oRadio1:<span style=\"color: #000000;\">SetFont</span><span style=\"color: #000000;\">&#40;</span> oFont <span style=\"color: #000000;\">&#41;</span><br />AEval<span style=\"color: #000000;\">&#40;</span> oRadio1:<span style=\"color: #000000;\">aItems</span>, <span style=\"color: #000000;\">&#123;</span> | oRad | oRad:<span style=\"color: #000000;\">lTransparent</span> := .T. <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span><br /><br />@ <span style=\"color: #000000;\">40</span>, <span style=\"color: #000000;\">10</span> <span style=\"color: #0000ff;\">CHECKBOX</span> oCheck1 <span style=\"color: #0000ff;\">VAR</span> lCheck1  <span style=\"color: #0000ff;\">COLOR</span> nWColorT1 <span style=\"color: #0000ff;\">PIXEL</span> ;<br /><span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"&ClickMe\"</span> <span style=\"color: #0000ff;\">OF</span> oGDialog <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">80</span>, <span style=\"color: #000000;\">15</span> ;<br /><span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">CHANGE</span> oCheck1:<span style=\"color: #000000;\">SetText</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"New Text\"</span> <span style=\"color: #000000;\">&#41;</span> <br />oCheck1:<span style=\"color: #000000;\">lTransparent</span> := .T. <br />oCheck1:<span style=\"color: #000000;\">SetFont</span><span style=\"color: #000000;\">&#40;</span> oFont <span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #B900B9;\">// ---------------------------</span><br /><br />@ nTxtTop1, nTxtLeft1 <span style=\"color: #0000ff;\">SAY</span> oSay1 <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Transparent Say\"</span> + CRLF + ;<br />                                                                                     <span style=\"color: #ff0000;\">\"of Gradient 1\"</span> ;<br /><span style=\"color: #0000ff;\">OF</span> oGDialog <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">90</span>, <span style=\"color: #000000;\">30</span> <span style=\"color: #0000ff;\">FONT</span> oFont2 <span style=\"color: #0000ff;\">PIXEL</span> <br />oSay1:<span style=\"color: #000000;\">bMoved</span> := <span style=\"color: #000000;\">&#123;</span>|| <span style=\"color: #000000;\">&#40;</span> nTxtTop1 := oSay1:<span style=\"color: #000000;\">nTop</span>, nTxtLeft1 := oSay1:<span style=\"color: #000000;\">nLeft</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br />oSay1:<span style=\"color: #000000;\">SetColor</span><span style=\"color: #000000;\">&#40;</span> nWColorT1, <span style=\"color: #000000;\">&#41;</span><br />oSay1:<span style=\"color: #000000;\">lTransparent</span> := .T.<br />oSay1:<span style=\"color: #000000;\">lDrag</span> := .T.<br /><br />@ nTxtTop2, nTxtLeft2 <span style=\"color: #0000ff;\">SAY</span> oSay2 <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Transparent Say\"</span> + CRLF + ;<br />                                                                                     <span style=\"color: #ff0000;\">\"of Gradient 2\"</span> ;<br /><span style=\"color: #0000ff;\">OF</span> oGDialog <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">90</span>, <span style=\"color: #000000;\">30</span> <span style=\"color: #0000ff;\">FONT</span> oFont2 <span style=\"color: #0000ff;\">PIXEL</span> <br />oSay2:<span style=\"color: #000000;\">bMoved</span> := <span style=\"color: #000000;\">&#123;</span>|| <span style=\"color: #000000;\">&#40;</span> nTxtTop2 := oSay2:<span style=\"color: #000000;\">nTop</span>, nTxtLeft2 := oSay2:<span style=\"color: #000000;\">nLeft</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br />oSay2:<span style=\"color: #000000;\">SetColor</span><span style=\"color: #000000;\">&#40;</span> nWColorT2, <span style=\"color: #000000;\">&#41;</span><br />oSay2:<span style=\"color: #000000;\">lTransparent</span> := .T.<br />oSay2:<span style=\"color: #000000;\">lDrag</span> := .T.<br /><br />@ nTxtTop3, nTxtLeft3 <span style=\"color: #0000ff;\">SAY</span> oSay3 <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Transparent Say\"</span> + CRLF + ;<br />                                                                                     <span style=\"color: #ff0000;\">\"of Bottom Color\"</span> ;<br /><span style=\"color: #0000ff;\">OF</span> oGDialog <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">90</span>, <span style=\"color: #000000;\">30</span> <span style=\"color: #0000ff;\">FONT</span> oFont2 <span style=\"color: #0000ff;\">PIXEL</span> <br />oSay3:<span style=\"color: #000000;\">bMoved</span> := <span style=\"color: #000000;\">&#123;</span>|| <span style=\"color: #000000;\">&#40;</span> nTxtTop3 := oSay3:<span style=\"color: #000000;\">nTop</span>, nTxtLeft3 := oSay3:<span style=\"color: #000000;\">nLeft</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br />oSay3:<span style=\"color: #000000;\">SetColor</span><span style=\"color: #000000;\">&#40;</span> nWColorT3, <span style=\"color: #000000;\">&#41;</span><br />oSay3:<span style=\"color: #000000;\">lTransparent</span> := .T.<br />oSay3:<span style=\"color: #000000;\">lDrag</span> := .T.<br /><br /><span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">DIALOG</span> oGDialog  <span style=\"color: #0000ff;\">NOWAIT</span> ;<br /><span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">INIT</span> <span style=\"color: #000000;\">&#40;</span> DisableX<span style=\"color: #000000;\">&#40;</span>oGDialog, .T.<span style=\"color: #000000;\">&#41;</span>, ;<br />                  GRADBRUSH<span style=\"color: #000000;\">&#40;</span> oGDialog, nTop1, nBottom1, lWDirect1, ; <span style=\"color: #B900B9;\">// Top, Bottom 1</span><br />                                               nTop2, nBottom2, lWDirect2, ; <span style=\"color: #B900B9;\">// Top, Bottom 2</span><br />                           nTop3, nBottom3 <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #B900B9;\">// Top, Bottom 3</span><br />                           <br /><span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span><br /> </div>[/code:1oi2ht5n]\n\nBest Regards\nUwe <!-- s:?: --><img src=\"{SMILIES_PATH}/icon_question.gif\" alt=\":?:\" title=\"Question\" /><!-- s:?: -->", "time": "20:11", "topic": "After object MOVE wrong position-return-values ?", "username": "ukoenig" } ]
After object MOVE wrong position-return-values ?
[ { "date": "2013-04-30", "forum": "FiveWin for Harbour/xHarbour", "text": "Mr Ukoenig,\n\nUse oWnd:CoorsUpdate() after oWnd object movement.\n\nRegards", "time": "08:28", "topic": "After object MOVE wrong position-return-values ?", "username": "Antonio Mart." } ]
After object MOVE wrong position-return-values ?
[ { "date": "2009-02-18", "forum": "FiveWin for Harbour/xHarbour", "text": "To All\n\nI am going nuts here trying to figure out why when I run a simple report from a modal dialog several dialogs deep .. when the report previewer comes up .. the previewer goes behind all my dialogs .. \n\nI do not want my dialogs to come to the forefront .. I want them to stay behind the previewer until it is closed. I have remmed out the MDIchild clause in rpreview \n\n[code=fw:2l5ryixk]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /> <span style=\"color: #00C800;\">if</span> ::<span style=\"color: #000000;\">oWndMain</span> != <span style=\"color: #00C800;\">nil</span> .and. Upper<span style=\"color: #000000;\">&#40;</span> ::<span style=\"color: #000000;\">oWndMain</span>:<span style=\"color: #000000;\">ClassName</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> == <span style=\"color: #ff0000;\">\"TMDIFRAME\"</span><br />      <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">WINDOW</span> ::<span style=\"color: #000000;\">oWnd</span> ;<br />         <span style=\"color: #0000ff;\">TITLE</span> cTitle ;<br />         <span style=\"color: #0000ff;\">COLOR</span> CLR_BLACK,CLR_LIGHTGRAY      ;<br />         <span style=\"color: #0000ff;\">ICON</span>  oIcon                        ;<br />         <span style=\"color: #0000ff;\">VSCROLL</span> <span style=\"color: #0000ff;\">HSCROLL</span> <span style=\"color: #B900B9;\">// MDICHILD</span><br />   <span style=\"color: #00C800;\">else</span><br />      <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">WINDOW</span> ::<span style=\"color: #000000;\">oWnd</span> <span style=\"color: #0000ff;\">FROM</span> <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #000000;\">24</span>, <span style=\"color: #000000;\">80</span>  ;<br />         <span style=\"color: #0000ff;\">TITLE</span> cTitle ;<br />         <span style=\"color: #0000ff;\">COLOR</span> CLR_BLACK,CLR_LIGHTGRAY      ;<br />         <span style=\"color: #0000ff;\">ICON</span>  oIcon                        ;<br />         <span style=\"color: #0000ff;\">VSCROLL</span> <span style=\"color: #0000ff;\">HSCROLL</span> <span style=\"color: #0000ff;\">MENU</span> ::<span style=\"color: #000000;\">BuildMenu</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />   <span style=\"color: #00C800;\">endif</span><br /><br /> </div>[/code:2l5ryixk]\n\nand still when the previewer comes up .. all my dialogs take the forground and I have to close all of them before I can get to the previewer ..\n\nHere is my code from the report\n\n[code=fw:2l5ryixk]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #00C800;\">STATIC</span> oDLG<br /><br /><span style=\"color: #00D7D7;\">#INCLUDE</span> <span style=\"color: #ff0000;\">\"FIVEWIN.CH\"</span><br /><br /><span style=\"color: #B900B9;\">//----------------------</span><br />Func _GenLett<span style=\"color: #000000;\">&#40;</span> cLETTEREID, cMODE, lGEN, dDATE_SENT, oRsCert <span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #00C800;\">LOCAL</span> mVIEW, lOK<br /><br />lOK   := .F.<br />mVIEW := <span style=\"color: #ff0000;\">\"V\"</span><br /><br /><span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"GENLETT\"</span>            ;<br />       <span style=\"color: #0000ff;\">TITLE</span> <span style=\"color: #ff0000;\">\"AUTOMATED Letter Print routine\"</span>    ;<br /><br />   <span style=\"color: #0000ff;\">REDEFINE</span> GET mVIEW <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">117</span> <span style=\"color: #0000ff;\">of</span> oDlg PICTURE <span style=\"color: #ff0000;\">\"@!\"</span>;<br />            <span style=\"color: #0000ff;\">valid</span> mVIEW $ <span style=\"color: #ff0000;\">'PV'</span> <span style=\"color: #0000ff;\">UPDATE</span><br /><br />   <span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> oBTN1 <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">111</span>              ;<br />       <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #000000;\">&#40;</span> lOK := _doit<span style=\"color: #000000;\">&#40;</span> cLETTEREID, cMODE, lGEN, dDATE_SENT, oRsCert, mVIEW <span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span><br /><br />   <span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> oBTN2 <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">112</span>              ;<br />       <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 /><br /><span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg<br /><br /><span style=\"color: #00C800;\">RETURN</span><span style=\"color: #000000;\">&#40;</span>lOK <span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #B900B9;\">//------------------------</span><br /><span style=\"color: #00C800;\">Static</span> Func _Doit<span style=\"color: #000000;\">&#40;</span> cLETTEREID, cMODE, lGEN, dDATE_SENT, oRsCert, mVIEW <span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #00C800;\">LOCAL</span> SAYING,oPRINT, oFONT, cTEXT<br /><span style=\"color: #00C800;\">LOCAL</span> oRsLett, cSQL, oERR, cDEFA,cTITLE<br /><br /><span style=\"color: #00C800;\">IF</span> empty<span style=\"color: #000000;\">&#40;</span> cLETTEREID <span style=\"color: #000000;\">&#41;</span> .or. cLETTEREID = <span style=\"color: #ff0000;\">\"BOGUS\"</span><br />   SAYING := <span style=\"color: #ff0000;\">\"There were no parameters for the Letter EID\"</span><br />   MsgInfo<span style=\"color: #000000;\">&#40;</span> SAYING <span style=\"color: #000000;\">&#41;</span><br />   oDlg:<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />   <span style=\"color: #00C800;\">RETURN</span><span style=\"color: #000000;\">&#40;</span>.F.<span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">ENDIF</span><br /><br /><span style=\"color: #00C800;\">IF</span> lGEN = .F.<br />   SAYING := <span style=\"color: #ff0000;\">\"The lGen parameters resolved to FALSE\"</span><br />   MsgInfo<span style=\"color: #000000;\">&#40;</span> SAYING <span style=\"color: #000000;\">&#41;</span><br />   oDlg:<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />   <span style=\"color: #00C800;\">RETURN</span><span style=\"color: #000000;\">&#40;</span>.F.<span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">ENDIF</span><br /><br /><span style=\"color: #00C800;\">IF</span> empty<span style=\"color: #000000;\">&#40;</span> dDATE_SENT <span style=\"color: #000000;\">&#41;</span> .or. dDATE_SENT = CTOD<span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"\"</span><span style=\"color: #000000;\">&#41;</span><br />   SAYING := <span style=\"color: #ff0000;\">\"It appears there was not a Legacy date sent\"</span>+chr<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">10</span><span style=\"color: #000000;\">&#41;</span><br />   SAYING += <span style=\"color: #ff0000;\">\"so there is nothing to Print or Re-print\"</span><br />   MsgInfo<span style=\"color: #000000;\">&#40;</span> SAYING <span style=\"color: #000000;\">&#41;</span><br />   oDlg:<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />   <span style=\"color: #00C800;\">RETURN</span><span style=\"color: #000000;\">&#40;</span>.F.<span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">ENDIF</span><br /><br /><span style=\"color: #00C800;\">IF</span> cMODE = <span style=\"color: #ff0000;\">\"R\"</span><br />   cTITLE := <span style=\"color: #ff0000;\">\"RE-Generating letter\"</span><br /><span style=\"color: #00C800;\">ELSE</span><br />   cTITLE := <span style=\"color: #ff0000;\">\"Creating Letter\"</span><br /><span style=\"color: #00C800;\">ENDIF</span><br /><br />oRsLett := TOleAuto<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;\">\"ADODB.Recordset\"</span> <span style=\"color: #000000;\">&#41;</span><br />oRsLett:<span style=\"color: #000000;\">CursorType</span>     := <span style=\"color: #000000;\">1</span>        <span style=\"color: #B900B9;\">// opendkeyset</span><br />oRsLett:<span style=\"color: #000000;\">CursorLocation</span> := <span style=\"color: #000000;\">3</span>        <span style=\"color: #B900B9;\">// local cache</span><br />oRsLett:<span style=\"color: #000000;\">LockType</span>       := <span style=\"color: #000000;\">3</span>        <span style=\"color: #B900B9;\">// lockoportunistic</span><br /><br />cSQL := <span style=\"color: #ff0000;\">\"SELECT * FROM LETTERS where LETTEREID = '\"</span>+cLETTEREID+<span style=\"color: #ff0000;\">\"'\"</span><br /><br /><span style=\"color: #00C800;\">TRY</span><br />  oRsLett:<span style=\"color: #000000;\">Open</span><span style=\"color: #000000;\">&#40;</span> cSQL,<span style=\"color: #ff0000;\">'Provider='</span>+xPROVIDER+<span style=\"color: #ff0000;\">';Data Source='</span>+xSOURCE+<span style=\"color: #ff0000;\">';Initial Catalog='</span>+xCATALOG+<span style=\"color: #ff0000;\">';User Id='</span>+xUSERID+<span style=\"color: #ff0000;\">';Password='</span>+xPASSWORD <span style=\"color: #000000;\">&#41;</span><br />CATCH oErr<br />   MsgInfo<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Error in Opening LETTERS table\"</span> <span style=\"color: #000000;\">&#41;</span><br />  oDlg:<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />  <span style=\"color: #00C800;\">RETURN</span><span style=\"color: #000000;\">&#40;</span>.F.<span style=\"color: #000000;\">&#41;</span><br />END <span style=\"color: #00C800;\">TRY</span><br /><br /><span style=\"color: #00C800;\">IF</span> oRsLett:<span style=\"color: #000000;\">eof</span><br />   oRsLett:<span style=\"color: #000000;\">Close</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />   SAYING := <span style=\"color: #ff0000;\">\"Sorry .. there is not any Letters associated with this Task\"</span><br />   MsgInfo<span style=\"color: #000000;\">&#40;</span> saying <span style=\"color: #000000;\">&#41;</span><br />   oDlg:<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />   <span style=\"color: #00C800;\">RETURN</span><span style=\"color: #000000;\">&#40;</span>.F.<span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">ENDIF</span><br /><br /><span style=\"color: #00C800;\">IF</span> mVIEW = <span style=\"color: #ff0000;\">\"V\"</span><br />   <span style=\"color: #0000ff;\">PRINTER</span> oPRINT <span style=\"color: #0000ff;\">FROM</span> USER                ;<br />   PREVIEW                                 ;<br />   <span style=\"color: #0000ff;\">NAME</span> cTITLE+<span style=\"color: #ff0000;\">\" for   \"</span>+xLOGIN<br /><br /><span style=\"color: #00C800;\">ELSE</span><br /><br />   <span style=\"color: #0000ff;\">PRINTER</span> oPRINT <span style=\"color: #0000ff;\">from</span> USER                ;<br />   <span style=\"color: #0000ff;\">NAME</span> cTITLE+<span style=\"color: #ff0000;\">\" for \"</span>+xLOGIN<br /><br />   <span style=\"color: #00C800;\">IF</span> EMPTY<span style=\"color: #000000;\">&#40;</span> oPRINT:<span style=\"color: #000000;\">hDC</span> <span style=\"color: #000000;\">&#41;</span><br />      MsgStop <span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Printer not Ready !\"</span> <span style=\"color: #000000;\">&#41;</span><br />      oDlg:<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />      <span style=\"color: #00C800;\">RETURN</span><span style=\"color: #000000;\">&#40;</span>.F.<span style=\"color: #000000;\">&#41;</span><br />   <span style=\"color: #00C800;\">ENDIF</span><br /><br /><span style=\"color: #00C800;\">ENDIF</span><br /><br />SysReFresh<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />CursorWait<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />cTEXT := oRsLett:<span style=\"color: #000000;\">Fields</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"letter_text\"</span><span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #000000;\">Value</span><br />oRsLett:<span style=\"color: #000000;\">Close</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />oPRINT:<span style=\"color: #000000;\">lPrvModal</span>:= .T.<br /><br /><span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">FONT</span> oFont <span style=\"color: #0000ff;\">NAME</span> <span style=\"color: #ff0000;\">\"Courier New\"</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">0</span>,<span style=\"color: #000000;\">-10</span> BOLD <span style=\"color: #0000ff;\">of</span> oPRINT  <span style=\"color: #B900B9;\">// SIZE 10 -40</span><br /><br />oPRINT:<span style=\"color: #000000;\">StartPage</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />cDEFA := SET<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">7</span><span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">IF</span> FILE<span style=\"color: #000000;\">&#40;</span> cDEFA+<span style=\"color: #ff0000;\">\"<span style=\"color: #000000;\">\\A</span>GENCY.BMP\"</span> <span style=\"color: #000000;\">&#41;</span><br />   oPRINT:<span style=\"color: #000000;\">SayBitMap</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">10</span>,<span style=\"color: #000000;\">1000</span>, cDEFA+<span style=\"color: #ff0000;\">\"<span style=\"color: #000000;\">\\A</span>GENCY.BMP\"</span>, <span style=\"color: #000000;\">600</span>,<span style=\"color: #000000;\">600</span> <span style=\"color: #000000;\">&#41;</span>    <span style=\"color: #B900B9;\">//800,500</span><br /><span style=\"color: #00C800;\">ENDIF</span><br /><br />oPRINT:<span style=\"color: #0000ff;\">EndPage</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />CursorArrow<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />OdLG:<span style=\"color: #000000;\">END</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #00C800;\">IF</span> mVIEW = <span style=\"color: #ff0000;\">'V'</span><br />   oPRINT:<span style=\"color: #000000;\">Preview</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">ELSE</span><br />   PrintEnd<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">ENDIF</span><br /><br />oFONT:<span style=\"color: #000000;\">END</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #0000ff;\">RELEASE</span> <span style=\"color: #0000ff;\">FONT</span> oFont<br /><br /><span style=\"color: #00C800;\">RETURN</span><span style=\"color: #000000;\">&#40;</span>.T.<span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #B900B9;\">// end GennLett.prg</span><br /> </div>[/code:2l5ryixk]", "time": "23:12", "topic": "After report runs all my dialogs appear", "username": "Rick Lipkin" } ]
After report runs all my dialogs appear
[ { "date": "2009-02-19", "forum": "FiveWin for Harbour/xHarbour", "text": "Rick,\n\nYou should specify the window container of the first dialog so they will not go foreground:\n[code=fw:8m3n8fha]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"GENLETT\"</span>            ;<br />       <span style=\"color: #0000ff;\">TITLE</span> <span style=\"color: #ff0000;\">\"AUTOMATED Letter Print routine\"</span> ;<br />       <span style=\"color: #0000ff;\">OF</span> oWndMain<br /> </div>[/code:8m3n8fha]\nwhere oWndMain is your main window.\n\nAlso you modification in rpreview.prg is fine. We need to set a parameter for this, so there is no need to modify it in the future.\n\nPlease try it and let me know how it goes, thanks", "time": "12:14", "topic": "After report runs all my dialogs appear", "username": "Antonio Linares" } ]
After report runs all my dialogs appear
[ { "date": "2009-02-20", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio\n\nI made sure I passed the main MDI Window object to all child process and dialogs down to the print routine .. still having the same problem when the previewer comes up .. all my dialogs come to the forefront and I have to close them all to get to the preview .. <!-- s:cry: --><img src=\"{SMILIES_PATH}/icon_cry.gif\" alt=\":cry:\" title=\"Crying or Very sad\" /><!-- s:cry: --> \n\nIf I just send the job to the printer without envoking rpreview .. I am fine .. however, I would prefer letting the user see the document first before printing ..\n\nAny other thoughts ?\n\nRick Lipkin", "time": "15:59", "topic": "After report runs all my dialogs appear", "username": "Rick Lipkin" } ]
After report runs all my dialogs appear
[ { "date": "2009-02-20", "forum": "FiveWin for Harbour/xHarbour", "text": "Rick,\n\nPlease post a screenshot, thanks", "time": "18:39", "topic": "After report runs all my dialogs appear", "username": "Antonio Linares" } ]
After report runs all my dialogs appear
[ { "date": "2009-02-20", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio\n\nI do not have access to any external file hosting sites .. ( blocked at work) .. I will send it to your private e-mail.\n\nRick", "time": "19:34", "topic": "After report runs all my dialogs appear", "username": "Rick Lipkin" } ]
After report runs all my dialogs appear
[ { "date": "2009-02-20", "forum": "FiveWin for Harbour/xHarbour", "text": "Rick,\n\nPerhaps this is a design issue. Normally dialogs have OK and Cancel buttons and when either button is pressed the dialog is closed. If you use this design then you will eliminate your problem.\n\nIf you wish to use a design where the dialog remains open, then the dialogs should be non-modal and perhaps this will fix your problem.\n\nI would use the first design.\n\nRegards,\nJames", "time": "19:36", "topic": "After report runs all my dialogs appear", "username": "James Bott" } ]
After report runs all my dialogs appear
[ { "date": "2009-02-20", "forum": "FiveWin for Harbour/xHarbour", "text": "James\n\nI have sent you the same private e-mail I sent Antonio .. I am using one MDI main menu which calls a child .. from there all the dialogs ascending are modal.\n\nSending the last two modules that go with it.\n\nLet me know if you see anything wrong ..\n\nThanks\nRick", "time": "20:20", "topic": "After report runs all my dialogs appear", "username": "Rick Lipkin" } ]
After report runs all my dialogs appear
[ { "date": "2009-02-20", "forum": "FiveWin for Harbour/xHarbour", "text": "Rick,\n \nThe preview window remains MDICHILD, thats why its placed behind the dialogs.\n \nYou may not have properly modified rpreview.prg", "time": "20:22", "topic": "After report runs all my dialogs appear", "username": "Antonio Linares" } ]
After report runs all my dialogs appear
[ { "date": "2009-02-20", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio\n\nYou won't believe this .. I modified rpreview and your msginfo showed up .. and after I closed the msginfo .. the preview worked perfect .. Damned strange .. \n\nApparently xMate even when rpreview.prg in the compile list .. did not compile the program .. perhaps a date attribute problem.. I took out the msgbox and everything works !! .. \n\nHad to be a date stamp problem on the file <!-- s:shock: --><img src=\"{SMILIES_PATH}/icon_eek.gif\" alt=\":shock:\" title=\"Shocked\" /><!-- s:shock: --> \n\nThanks for the help !!\n\nRick", "time": "20:43", "topic": "After report runs all my dialogs appear", "username": "Rick Lipkin" } ]
After report runs all my dialogs appear
[ { "date": "2009-02-20", "forum": "FiveWin for Harbour/xHarbour", "text": "Rick,\n\nglad to know it is solved <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->", "time": "21:10", "topic": "After report runs all my dialogs appear", "username": "Antonio Linares" } ]
After report runs all my dialogs appear
[ { "date": "2009-02-20", "forum": "FiveWin for Harbour/xHarbour", "text": "To All\n\nHere is what the fix was .. for some reason Rpreview.prg was not getting compiled and linked into the application .. even though it is in the compile and link list.\n\nI had this very strange and wierd thing happen with another program I was working on .. I went in and re-named my project folder .. re-compiled and things worked ..\n\nIn this case .. there was nothing wrong with the code, design, dialogs, MDI object .. for some dumb odd reason .. Rpreview was just not being compiled and linked into my program.\n\nIt was Antonio that got me to realize this with the msginfo() in the rpreview code .. it just never fired .. but re-name the entire project folder and do a total re-compile .. and it works .. rename the folder back again .. recompile and Rpreview never gets linked in..\n\nAll I can say is there has to be a global variable in xMate that is not being evaluated correctly .. when I rename the folder .. everyting gets re-compiled along with rpreview.\n\nThanks for everyone support on this\n\nRick Lipkin", "time": "22:08", "topic": "After report runs all my dialogs appear", "username": "Rick Lipkin" } ]
After report runs all my dialogs appear
[ { "date": "2008-03-06", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\nI have this error at the opening, after update to version 8.02\n\nError BASE/1004 No exported method: GENCODE\nApplication\n===========\n Path and name: C:\\DEV\\facture\\facture.Exe (32 bits)\n Size: 1,963,520 bytes\n Time from start: 0 hours 0 mins 0 secs \n Error occurred at: 03/06/08, 15:22:13\n Error description: Error BASE/1004 No exported method: GENCODE\n Args:\n [ 1] = U \n\nStack Calls\n===========\n Called from GENCODE(0)\n Called from ERRORDIALOG(55)\n Called from (b)ERRORSYS(28)\n Called from THROW(77)\n\nSystem\n\nBCC,Harbour,fivewin 8.02\n\nPatrick Chalvet", "time": "06:46", "topic": "After update to 8.02", "username": "Tevlac" } ]
After update to 8.02
[ { "date": "2008-03-06", "forum": "FiveWin for Harbour/xHarbour", "text": "Patrick,\n\nWhat source code do you have at line 77 (and some lines before and after) ?\n\nDo you use a modified errorsys of your own ?", "time": "11:40", "topic": "After update to 8.02", "username": "Antonio Linares" } ]
After update to 8.02
[ { "date": "2008-03-07", "forum": "FiveWin for Harbour/xHarbour", "text": "Is version 8.02 working with last Harbour CVS?\n\nThrow() is a function of toleauto.\n\nI install harbour from your site, the source compile Ok but no window open when i start the exe. It just stay in memory\n\nPatrick", "time": "05:12", "topic": "After update to 8.02", "username": "Tevlac" } ]
After update to 8.02
[ { "date": "2008-03-07", "forum": "FiveWin for Harbour/xHarbour", "text": "Patrick,\n\nYou have to link gtgui.lib instead of gtwin.lib\n\nPlease try to build samples/tutor02.prg and see if it works for you.\n\nIf you show me your code around line 77 we may locate what is wrong, thanks", "time": "10:37", "topic": "After update to 8.02", "username": "Antonio Linares" } ]
After update to 8.02
[ { "date": "2011-04-14", "forum": "FiveWin for Harbour/xHarbour", "text": "Hi friends !\n\n Some time ago I asked about scripting and you helped me . I tried both versions Harbour and xHarbour . Harbour in this place is better - have hb_compileBuf() function . Sorry , but I have some places where I must use xHarbour . And don't know how to solve one problem. Here is source :\n\n[code=fw:3ihmldky]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />...<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">if</span> lCompile &nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Compile<span style=\"color: #000000;\">&#40;</span> cPrg <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">endif</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">if</span> file<span style=\"color: #000000;\">&#40;</span> cMain_prgs + cPrg + <span style=\"color: #ff0000;\">\".hrb\"</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; __HrbRun<span style=\"color: #000000;\">&#40;</span> cMain_prgs + cPrg + <span style=\"color: #ff0000;\">\".hrb\"</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">endif</span><br />...<br /><span style=\"color: #00C800;\">function</span> Compile<span style=\"color: #000000;\">&#40;</span> cPrgName <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> cCmd := cMain_path + <span style=\"color: #ff0000;\">\"harbour.exe \"</span> + cMain_prgs + cPrgName + ;<br />&nbsp; &nbsp;<span style=\"color: #ff0000;\">\" /o\"</span> + cMain_prgs + <span style=\"color: #ff0000;\">\" /n /gh /ihrb_incl;fwh_incl\"</span><br />&nbsp; &nbsp;WinExec<span style=\"color: #000000;\">&#40;</span> cCmd, <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">do</span> <span style=\"color: #00C800;\">while</span> !File<span style=\"color: #000000;\">&#40;</span> cMain_prgs + cPrgName + <span style=\"color: #ff0000;\">\".hrb\"</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; SysRefresh<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">enddo</span><br /><span style=\"color: #00C800;\">return</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #00C800;\">NIL</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp;</div>[/code:3ihmldky]\n\n The main problem is that if I did mistake in prg file , how to catch error from compiler and to view errors . With xHarbour compiler . I reviewed harbour.exe options and didn't find how to do output of compilation ... <!-- s:-( --><img src=\"{SMILIES_PATH}/icon_sad.gif\" alt=\":-(\" title=\"Sad\" /><!-- s:-( --> . Or didn't understand ... <!-- s:oops: --><img src=\"{SMILIES_PATH}/icon_redface.gif\" alt=\":oops:\" title=\"Embarassed\" /><!-- s:oops: --> \n\n With best regards and thanks in advance !", "time": "20:08", "topic": "Again about scripting - __HrbRun ...", "username": "Rimantas" } ]
Again about scripting - __HrbRun ...
[ { "date": "2013-03-08", "forum": "FiveWin for Harbour/xHarbour", "text": "Hi,\n\nI think that this question is for Antonio ... <!-- s:) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":)\" title=\"Smile\" /><!-- s:) --> . It was discusion about that in earlier . You helped me in that . \nThe problem is that with more complicated PRG with some functions inside it's not working . So I leaved this question and now I want to wake up it now . As for a sample :\n\n[code=fw:2s5l31qa]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"tdolphin.ch\"</span><br /><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"xbrowse.ch\"</span><br /><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"fivewin.ch\"</span><br /><br /><span style=\"color: #B900B9;\">// external brw_menu2</span><br /><br /><span style=\"color: #00C800;\">function</span> script_test<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">local</span> oWnd, oBrw, oQry, oCol<br /><span style=\"color: #00C800;\">local</span> cFld, cSql, cStr<br /><br />cSql := <span style=\"color: #ff0000;\">\"SELECT \"</span> + cFld + <span style=\"color: #ff0000;\">\" FROM uzsakym WHERE db='\"</span> + cDb_id + <span style=\"color: #ff0000;\">\"'\"</span><br />oQry := oServ:<span style=\"color: #000000;\">Query</span><span style=\"color: #000000;\">&#40;</span> cSql <span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWnd <span style=\"color: #0000ff;\">MDICHILD</span> <span style=\"color: #0000ff;\">OF</span> wndMain<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; <br />@ <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #0000ff;\">XBROWSE</span> oBrw <span style=\"color: #0000ff;\">OF</span> oWnd DATASOURCE oQry<br /><br />oBrw:<span style=\"color: #000000;\">nMarqueeStyle</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= MARQSTYLE_HIGHLCELL<br />oBrw:<span style=\"color: #000000;\">nColDividerStyle</span> &nbsp; &nbsp; &nbsp; := LINESTYLE_BLACK<br />oBrw:<span style=\"color: #000000;\">nRowDividerStyle</span> &nbsp; &nbsp; &nbsp; := LINESTYLE_BLACK<br />oBrw:<span style=\"color: #000000;\">lColDividerComplete</span> &nbsp; &nbsp;:= .t.<br /><br />WITH OBJECT oBrw<br />&nbsp; &nbsp;:<span style=\"color: #000000;\">bClrStd</span> &nbsp; &nbsp;:= <span style=\"color: #000000;\">&#123;</span> || <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">&#40;</span> oBrw:<span style=\"color: #000000;\">KeyNo</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> % <span style=\"color: #000000;\">2</span> == <span style=\"color: #000000;\">0</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #000000;\">&#123;</span> CLR_BLACK, RGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">224</span>, <span style=\"color: #000000;\">236</span>, <span style=\"color: #000000;\">255</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #000000;\">&#123;</span> CLR_BLACK, RGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">189</span>, <span style=\"color: #000000;\">211</span>, <span style=\"color: #000000;\">253</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br />&nbsp; &nbsp;:<span style=\"color: #000000;\">bPopUp</span> &nbsp; &nbsp; := <span style=\"color: #000000;\">&#123;</span> || brw_menu2<span style=\"color: #000000;\">&#40;</span> oCol <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br />END<br /><br />oBrw:<span style=\"color: #000000;\">CreateFromCode</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />oWnd:<span style=\"color: #000000;\">oClient</span> := oBrw<br /><br /><span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWnd<br /><span style=\"color: #00C800;\">return</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #00C800;\">NIL</span> <span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #00C800;\">function</span> brw_menu2<span style=\"color: #000000;\">&#40;</span> oCol <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> oPopup<br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">MENU</span> oPopup <span style=\"color: #0000ff;\">POPUP</span> <span style=\"color: #000000;\">2007</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">MENUITEM</span> <span style=\"color: #ff0000;\">\"Filter ...\"</span> <span style=\"color: #0000ff;\">ACTION</span> MsgInf<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Will be filter \"</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">MENUITEM</span> <span style=\"color: #ff0000;\">\"Filter with input var ...\"</span> <span style=\"color: #0000ff;\">ACTION</span> MsgInf<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Advanced filter\"</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">SEPARATOR</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">MENUITEM</span> <span style=\"color: #ff0000;\">\"Clear filters\"</span> <span style=\"color: #0000ff;\">ACTION</span> MsgInf<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Clear filter\"</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">ENDMENU</span><br /><span style=\"color: #00C800;\">return</span><span style=\"color: #000000;\">&#40;</span> oPopup <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp;</div>[/code:2s5l31qa]\n\nAll source of prg as script is running OK without problem - query , xBrowse, mdi child . Until I press rigth mouse click on a browse ... <!-- s:( --><img src=\"{SMILIES_PATH}/icon_sad.gif\" alt=\":(\" title=\"Sad\" /><!-- s:( --> \n\n[code=fw:2s5l31qa]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />&nbsp; &nbsp;Error description: <span style=\"color: #000000;\">Error</span> BASE/<span style=\"color: #000000;\">1001</span> &nbsp;Undefined <span style=\"color: #00C800;\">function</span>: <span style=\"color: #000000;\">BRW_MENU2</span><br />&nbsp; &nbsp;Args:<br />&nbsp; &nbsp; &nbsp;<span style=\"color: #000000;\">&#91;</span> &nbsp; <span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span> = U &nbsp; <br /><br />Stack Calls<br />===========<br />&nbsp; &nbsp;Called <span style=\"color: #0000ff;\">from</span>: <span style=\"color: #000000;\">pcode</span>.hrb => BRW_MENU2<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;Called <span style=\"color: #0000ff;\">from</span>: <span style=\"color: #000000;\">pcode</span>.hrb => <span style=\"color: #000000;\">&#40;</span>b<span style=\"color: #000000;\">&#41;</span>UZSAK<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">120</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp;</div>[/code:2s5l31qa]\n\n It seems that script can use only one function inside ... Or not ? What can you advise in this situation ? \n\n With best regards !\n\n Old Fwh 11.11 , Harbour 3.1 MinGW", "time": "16:31", "topic": "Again about scripting ... HB_CompileBuf", "username": "Rimantas" } ]
Again about scripting ... HB_CompileBuf
[ { "date": "2013-03-08", "forum": "FiveWin for Harbour/xHarbour", "text": "Rimantas,\n\nRestore:\n[code=fw:2b3w1gbl]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #B900B9;\">// external brw_menu2</span></div>[/code:2b3w1gbl]\n\n\nRegards", "time": "17:57", "topic": "Again about scripting ... HB_CompileBuf", "username": "Antonio Mart." } ]
Again about scripting ... HB_CompileBuf
[ { "date": "2013-03-08", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"Antonio Mart.\":1ld0ixre]Rimantas,\nRestore:\n[code=fw:1ld0ixre]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #B900B9;\">// external brw_menu2</span></div>[/code:1ld0ixre]\n\nRegards[/quote:1ld0ixre]\n \n Hi Antonio ! \n\n Tried and that - the same result . I specially leave that visible .", "time": "18:14", "topic": "Again about scripting ... HB_CompileBuf", "username": "Rimantas" } ]
Again about scripting ... HB_CompileBuf
[ { "date": "2013-03-09", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"Rimantas\":117okbpd][quote=\"Antonio Mart.\":117okbpd]Rimantas,\nRestore:\n[code=fw:117okbpd]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #B900B9;\">// external brw_menu2</span></div>[/code:117okbpd]\n\nRegards[/quote:117okbpd]\n \n Hi Antonio ! \n\n Tried and that - the same result . I specially leave that visible .[/quote:117okbpd]\n\n Hi Antonio Linares ! I know that you are expert of Harbour ... Can you say some words in this theme ?\n\n With best regards !", "time": "09:20", "topic": "Again about scripting ... HB_CompileBuf", "username": "Rimantas" } ]
Again about scripting ... HB_CompileBuf
[ { "date": "2013-03-09", "forum": "FiveWin for Harbour/xHarbour", "text": "The code that is generated by the function hb_CompileBuf() can use any public function that is already *linked* to the application.\n\nIt is the programmer's responsibility to ensure that all functions used in the script are already linked, by using EXTERNAL <func> whereever necessary.", "time": "14:09", "topic": "Again about scripting ... HB_CompileBuf", "username": "nageswaragunupudi" } ]
Again about scripting ... HB_CompileBuf
[ { "date": "2013-03-09", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"nageswaragunupudi\":yk5g6d9f]The code that is generated by the function hb_CompileBuf() can use any public function that is already *linked* to the application.\n\nIt is the programmer's responsibility to ensure that all functions used in the script are already linked, by using EXTERNAL <func> whereever necessary.[/quote:yk5g6d9f]\n\nHello Rao !\n\nOther functions are working fine . Mine prg is more complex and I'm nothing saying about other externals functions . I did minimal simple sample . I'm asking about situation as described in the sample - define dialog/window with controls and other function IN THE SAME PRG( SCRIPT ) . I'm not sure that in all situations it will be enough to described SCRIPT in one function . At this moment I did a sample with xBrowse popup menu , in other script this can be other function . \n\nFrom scrpts.prg ( script.dbf memo ) in fwh\\samples . Simply do that :\n[code=fw:yk5g6d9f]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"FiveWin.ch\"</span><br /><br /><span style=\"color: #00C800;\">function</span> Main<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> oDlg<br /><br />&nbsp; &nbsp;Test<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #B900B9;\">// here was commented </span><br /><br />&nbsp; &nbsp;DEFI\u0001NE <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">TITLE</span> <span style=\"color: #ff0000;\">\"A dialog\"</span> ;<br />&nbsp; &nbsp; &nbsp; GRADIENT <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">1</span>, CLR_BLUE, RGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">120</span>, <span style=\"color: #000000;\">100</span>, <span style=\"color: #000000;\">200</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span> ;<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">500</span>, <span style=\"color: #000000;\">300</span><br /><br />&nbsp; &nbsp;@ <span style=\"color: #000000;\">7</span>, <span style=\"color: #000000;\">18</span> <span style=\"color: #0000ff;\">BTNBMP</span> <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Ok\"</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">40</span>, <span style=\"color: #000000;\">15</span> <span style=\"color: #0000ff;\">ACTION</span> oDlg:<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">2007</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: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /><br /><span style=\"color: #00C800;\">function</span> Test<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;\">\"Test\"</span> <span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">NIL</span><br />&nbsp;</div>[/code:yk5g6d9f]\n\n I only want REALLY to know - can script to run some functions ( related to each other ) inside one script ? At this moment I'm thinking that NO ... <!-- s:( --><img src=\"{SMILIES_PATH}/icon_sad.gif\" alt=\":(\" title=\"Sad\" /><!-- s:( --> . If really that no - it will be very pitty ... \n\n With best regards ...", "time": "15:09", "topic": "Again about scripting ... HB_CompileBuf", "username": "Rimantas" } ]
Again about scripting ... HB_CompileBuf
[ { "date": "2013-03-10", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"Rimantas\":1zgyl06y][quote=\"nageswaragunupudi\":1zgyl06y]The code that is generated by the function hb_CompileBuf() can use any public function that is already *linked* to the application.\n\nIt is the programmer's responsibility to ensure that all functions used in the script are already linked, by using EXTERNAL <func> whereever necessary.[/quote:1zgyl06y]\n\nHello Rao !\n\nOther functions are working fine . Mine prg is more complex and I'm nothing saying about other externals functions . I did minimal simple sample . I'm asking about situation as described in the sample - define dialog/window with controls and other function IN THE SAME PRG( SCRIPT ) . I'm not sure that in all situations it will be enough to described SCRIPT in one function . At this moment I did a sample with xBrowse popup menu , in other script this can be other function . \n\nFrom scrpts.prg ( script.dbf memo ) in fwh\\samples . Simply do that :\n[code=fw:1zgyl06y]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"FiveWin.ch\"</span><br /><br /><span style=\"color: #00C800;\">function</span> Main<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />   <span style=\"color: #00C800;\">local</span> oDlg<br /><br />   Test<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #B900B9;\">// here was commented </span><br /><br />   DEFI\u0001NE <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">TITLE</span> <span style=\"color: #ff0000;\">\"A dialog\"</span> ;<br />      GRADIENT <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">1</span>, CLR_BLUE, RGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">120</span>, <span style=\"color: #000000;\">100</span>, <span style=\"color: #000000;\">200</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span> ;<br />      <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">500</span>, <span style=\"color: #000000;\">300</span><br /><br />   @ <span style=\"color: #000000;\">7</span>, <span style=\"color: #000000;\">18</span> <span style=\"color: #0000ff;\">BTNBMP</span> <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Ok\"</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">40</span>, <span style=\"color: #000000;\">15</span> <span style=\"color: #0000ff;\">ACTION</span> oDlg:<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">2007</span><br /><br />   <span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">CENTERED</span><br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /><br /><span style=\"color: #00C800;\">function</span> Test<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;\">\"Test\"</span> <span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">NIL</span><br /> </div>[/code:1zgyl06y]\n\n I only want REALLY to know - can script to run some functions ( related to each other ) inside one script ? At this moment I'm thinking that NO ... <!-- s:( --><img src=\"{SMILIES_PATH}/icon_sad.gif\" alt=\":(\" title=\"Sad\" /><!-- s:( --> . If really that no - it will be very pitty ... \n\n With best regards ...[/quote:1zgyl06y]\n\n It seems that Antonio Linares is departed .. No any comments from them .. <!-- s:cry: --><img src=\"{SMILIES_PATH}/icon_cry.gif\" alt=\":cry:\" title=\"Crying or Very sad\" /><!-- s:cry: --> \n \n Regards !", "time": "14:34", "topic": "Again about scripting ... HB_CompileBuf", "username": "Rimantas" } ]
Again about scripting ... HB_CompileBuf
[ { "date": "2013-03-10", "forum": "FiveWin for Harbour/xHarbour", "text": "Sorry, Rimatas, I disagree with you as you can´t blame Antonio for Harbour issues.\n\nFivetech provides an extraordinary support, quick, effective and useful, which you can´t find in other xBase companies such xHarbour.com.", "time": "21:50", "topic": "Again about scripting ... HB_CompileBuf", "username": "lucasdebeltran" } ]
Again about scripting ... HB_CompileBuf
[ { "date": "2013-03-11", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"lucasdebeltran\":3pwtoyxo]Sorry, Rimatas, I disagree with you as you can´t blame Antonio for Harbour issues.\n\nFivetech provides an extraordinary support, quick, effective and useful, which you can´t find in other xBase companies such xHarbour.com.[/quote:3pwtoyxo]\n\n Hello Lucas ! \n\nWhy you are so thinking ? I know that Antonio is a good expert of Harbour and parcipicated creating Harbour . I only want to give from him advise ... 'Blame for Harbour' ... I do not have any mind of that . Sorry , if mine question and reflection raised to you such idea ... \nOK , after your answer I searched and found google groups of harbour . Simply this forum is comfortable in form and very quick in answer - I love that. In the past , harbour mailing list form was very uncomfortable . Now google group it seems is more friendly form for discusion . I'll also ask in that group this question. Nothing answered in this forum - can prg as script have some working function inside ? \n\n With best regards !", "time": "08:41", "topic": "Again about scripting ... HB_CompileBuf", "username": "Rimantas" } ]
Again about scripting ... HB_CompileBuf
[ { "date": "2013-03-11", "forum": "FiveWin for Harbour/xHarbour", "text": "Rimantas,\n\nI was travelling and could not answer yet.\n\nAre you using FWH function Execute( cCode ) ? Please check that you execute your scripts the same way as FWH/samples/scripts.prg does it", "time": "08:59", "topic": "Again about scripting ... HB_CompileBuf", "username": "Antonio Linares" } ]
Again about scripting ... HB_CompileBuf
[ { "date": "2013-03-11", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"Antonio Linares\":j8nzutg3]Rimantas,\n\nI was travelling and could not answer yet.\n\nAre you using FWH function Execute( cCode ) ? Please check that you execute your scripts the same way as FWH/samples/scripts.prg does it[/quote:j8nzutg3]\n\nWow ! Antonio ! How good is heard you ! <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D --> Greetings to you and thanks for the question ! <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) --> \n\nI was not used Execute( cCode ) . Mine last run ( I tried some versions, but without execute ) :\n\n[code=fw:j8nzutg3]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #00C800;\">function</span> Run_prg<span style=\"color: #000000;\">&#40;</span> cPrg <span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">local</span> oHrb, cResult<br /><span style=\"color: #00C800;\">if</span> !db_conn<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />   <span style=\"color: #00C800;\">return</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #00C800;\">NIL</span> <span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">endif</span><br /><span style=\"color: #00C800;\">if</span> !file<span style=\"color: #000000;\">&#40;</span> cPrg + <span style=\"color: #ff0000;\">\".prg\"</span> <span style=\"color: #000000;\">&#41;</span><br />   MsgAlert<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Nera tokio failo: \"</span> + cPrg + <span style=\"color: #ff0000;\">\".prg !\"</span> <span style=\"color: #000000;\">&#41;</span><br />   <span style=\"color: #00C800;\">return</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #00C800;\">NIL</span> <span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">endif</span><br /><br />FReOpen_Stderr<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"run_prg.log\"</span>, <span style=\"color: #ff0000;\">\"w\"</span> <span style=\"color: #000000;\">&#41;</span><br />HB_Compile<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"\"</span>, cPrg + <span style=\"color: #ff0000;\">\".prg\"</span>, <span style=\"color: #ff0000;\">\"/n\"</span>, <span style=\"color: #ff0000;\">\"/gh\"</span>, <span style=\"color: #ff0000;\">\"-ID:<span style=\"color: #000000;\">\\A</span><span style=\"color: #000000;\">\\f</span>wh<span style=\"color: #000000;\">\\i</span>nclude\"</span>, <span style=\"color: #ff0000;\">\"-ID:<span style=\"color: #000000;\">\\A</span><span style=\"color: #000000;\">\\h</span>rbg<span style=\"color: #000000;\">\\i</span>nclude\"</span> <span style=\"color: #000000;\">&#41;</span><br />oHrb = HB_HRBLOAD<span style=\"color: #000000;\">&#40;</span> cPrg + <span style=\"color: #ff0000;\">\".hrb\"</span> <span style=\"color: #000000;\">&#41;</span><br />HB_HRBDO<span style=\"color: #000000;\">&#40;</span> oHrb <span style=\"color: #000000;\">&#41;</span><br />HB_HRBUNLOAD<span style=\"color: #000000;\">&#40;</span> oHrb <span style=\"color: #000000;\">&#41;</span><br />oHrb = <span style=\"color: #00C800;\">NIL</span><br /><span style=\"color: #00C800;\">return</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #00C800;\">NIL</span> <span style=\"color: #000000;\">&#41;</span><br /> </div>[/code:j8nzutg3]\n\n I'll try execute and let know to you ...\n\n With best regards !\n\nADDED :\n\nCopied piece of source from scripts.prg :\n\nFReOpen_Stderr( \"run_prg.log\", \"w\" )\noHrb := HB_CompileFromBuf( memoread( cPrg + \".prg\" ), \"-n\", \"-ID:\\A\\fwh\\include\", \"-ID:\\A\\hrb\\include\" )\nif ! Empty( oHrb )\n hb_HrbRun( oHrb )\nendif\n\nSorry , but other function in the same scripts return error : Error description: Error BASE/1001 Undefined function: MOD_PAS .\n\nHere I simply add addidtional check for one field :\n\n :bOnPostEdit := { | oCol, xVal, nKey | If( nKey == VK_ESCAPE,,( if( mod_pas( aMod, xVal ), ( oQry:preke := xVal, oQry:Save() ), ) ) ) }\n\nAlso tried and that :\n:bPopUp := { |oCol| brw_menu3( oCol ) }\n\nfunction brw_menu3( oCol )\n local oPopup\n MsgInfo( \"second function inside script ...\" )\n MENU oPopup POPUP 2007\n MENUITEM if( cLg == \"L\", \"Filtruoti ...\", \"Filter ...\" ) ACTION MsgInf( \"filtruosim 1 \" )\n MENUITEM if( cLg == \"L\", \"Filtruoti ?vedant reikšm? ...\", \"Filter with input var ...\" ) ACTION MsgInf( \"filtruosim 2 \" )\n SEPARATOR\n MENUITEM if( cLg == \"L\", \"Pašalinti filtrus\", \"Clear filters\" ) ACTION MsgInf( \"salinsim \" )\n ENDMENU\nreturn( oPopup )\n \nUndefined function ... <!-- s:( --><img src=\"{SMILIES_PATH}/icon_sad.gif\" alt=\":(\" title=\"Sad\" /><!-- s:( --> .", "time": "09:16", "topic": "Again about scripting ... HB_CompileBuf", "username": "Rimantas" } ]
Again about scripting ... HB_CompileBuf
[ { "date": "2013-03-11", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"Antonio Linares\":1gumt8vy]Rimantas,\n\nI was travelling and could not answer yet.\nAre you using FWH function Execute( cCode ) ? Please check that you execute your scripts the same way as FWH/samples/scripts.prg does it[/quote:1gumt8vy]\n\nAntonio, I'm waiting for your word ... <!-- s:) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":)\" title=\"Smile\" /><!-- s:) --> \n\nDid as in scripts.prg , but second function in the same prg \"Undefined ...\" \n\nRegards !", "time": "18:09", "topic": "Again about scripting ... HB_CompileBuf", "username": "Rimantas" } ]
Again about scripting ... HB_CompileBuf
[ { "date": "2013-03-11", "forum": "FiveWin for Harbour/xHarbour", "text": "Rimantas,\n\nPlease try this example from FWH/samples/scripts.prg:\n\nHere it is working fine. Please ty to provide me a simple example like this one that reproduces your error, thanks\n\n[code=fw:sp4n9np3]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00C800;\">function</span> One<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />   <span style=\"color: #0000ff;\">MsgInfo</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"one\"</span> <span style=\"color: #000000;\">&#41;</span><br />   Two<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 /><span style=\"color: #00C800;\">function</span> Two<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />   <span style=\"color: #0000ff;\">MsgInfo</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"two\"</span> <span style=\"color: #000000;\">&#41;</span><br />   Three<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 /><span style=\"color: #00C800;\">function</span> Three<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />   <span style=\"color: #0000ff;\">MsgInfo</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Three\"</span> <span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /> </div>[/code:sp4n9np3]", "time": "22:22", "topic": "Again about scripting ... HB_CompileBuf", "username": "Antonio Linares" } ]
Again about scripting ... HB_CompileBuf
[ { "date": "2013-03-12", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"Antonio Linares\":1pu46yeh]Please try this example from FWH/samples/scripts.prg:\nHere it is working fine. Please ty to provide me a simple example like this one that reproduces your error, thanks\n[code=fw:1pu46yeh]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00C800;\">function</span> One<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;\">\"one\"</span> <span style=\"color: #000000;\">&#41;</span><br />   Two<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /><br /><span style=\"color: #00C800;\">function</span> Two<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;\">\"two\"</span> <span style=\"color: #000000;\">&#41;</span><br />   Three<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /><br /><span style=\"color: #00C800;\">function</span> Three<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;\">\"Three\"</span> <span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /> </div>[/code:1pu46yeh][/quote:1pu46yeh]\n\n Hello Antonio ! Tried your sample ( scripts .prg ) . I simply changed one line : oHrb = HB_CompileFromBuf( memoread( \"testxbr4.prg\" ), \"-n\", \"-I\\a\\fwh\\include\", \"-I\\a\\hb32\\include\" ) . Testxbr4.prg changed too :\n\n[code=fw:1pu46yeh]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"FiveWin.ch\"</span><br /><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"xbrowse.ch\"</span><br /><br /><span style=\"color: #00C800;\">function</span> xbr4<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />   <span style=\"color: #00C800;\">local</span> oDlg, oBrw<br />   <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">300</span>, <span style=\"color: #000000;\">200</span><br />   @ <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #0000ff;\">XBROWSE</span> oBrw <span style=\"color: #0000ff;\">OF</span> oDlg ARRAY <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\"one\"</span>,<span style=\"color: #ff0000;\">\"two\"</span>,<span style=\"color: #ff0000;\">\"three\"</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #0000ff;\">AUTOCOLS</span><br />      <br />   oBrw:<span style=\"color: #000000;\">CreateFromCode</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <br />   oBrw:<span style=\"color: #000000;\">bKeyDown</span> = <span style=\"color: #000000;\">&#123;</span> || oDlg:<span style=\"color: #000000;\">SetText</span><span style=\"color: #000000;\">&#40;</span> Str<span style=\"color: #000000;\">&#40;</span> oBrw:<span style=\"color: #000000;\">nColSel</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span>  <br />   oBrw:<span style=\"color: #000000;\">bPopUp</span>    := <span style=\"color: #000000;\">&#123;</span> |o| ColMenu<span style=\"color: #000000;\">&#40;</span> o <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 <span style=\"color: #0000ff;\">CENTER</span> <span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">INIT</span> <span style=\"color: #000000;\">&#40;</span> oDlg:<span style=\"color: #000000;\">oClient</span> := oBrw, oDlg:<span style=\"color: #000000;\">Resize</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /><br /><span style=\"color: #00C800;\">static</span> <span style=\"color: #00C800;\">function</span> ColMenu<span style=\"color: #000000;\">&#40;</span> ocol <span style=\"color: #000000;\">&#41;</span><br />   <span style=\"color: #00C800;\">local</span> oPop<br />   <span style=\"color: #0000ff;\">MENU</span> oPop <span style=\"color: #0000ff;\">POPUP</span> <span style=\"color: #000000;\">2007</span><br />      <span style=\"color: #0000ff;\">MENUITEM</span> <span style=\"color: #ff0000;\">\"Left Align\"</span> <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #0000ff;\">MsgInfo</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Left\"</span> <span style=\"color: #000000;\">&#41;</span><br />      <span style=\"color: #0000ff;\">MENUITEM</span> <span style=\"color: #ff0000;\">\"Center Align\"</span> <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #0000ff;\">MsgInfo</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Center\"</span> <span style=\"color: #000000;\">&#41;</span><br />      <span style=\"color: #0000ff;\">MENUITEM</span> <span style=\"color: #ff0000;\">\"Right Align\"</span> <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #0000ff;\">MsgInfo</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Right\"</span> <span style=\"color: #000000;\">&#41;</span><br />   <span style=\"color: #0000ff;\">ENDMENU</span><br /><span style=\"color: #00C800;\">return</span> oPop<br /> </div>[/code:1pu46yeh]\n\n Works very fine ! The other function in this simple sample is working . Now problems with mine code ... With mine source other functions inside prg are not working . Maybe I want too much and such code can't be run as script... <!-- s:( --><img src=\"{SMILIES_PATH}/icon_sad.gif\" alt=\":(\" title=\"Sad\" /><!-- s:( --> I'm copying source :\n\n[code=fw:1pu46yeh]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><br /><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"fivewin.ch\"</span><br /><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"xbrowse.ch\"</span><br /><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"tdolphin.ch\"</span><br /><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"dtpicker.ch\"</span><br /><br /><span style=\"color: #00C800;\">FUNCTION</span> uzsak<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">local</span> oWnd, oBrw, oQry, oCol, oBar, oPopup<br /><span style=\"color: #00C800;\">local</span> aDgr, aCol, aHdr, aPct, aWnd<br /><span style=\"color: #00C800;\">local</span> cFld, cSql, cStr<br /><span style=\"color: #00C800;\">local</span> cTbl := <span style=\"color: #ff0000;\">\"uzsakym\"</span><br /><span style=\"color: #00C800;\">local</span> cWnd := <span style=\"color: #ff0000;\">\"uzsakym\"</span><br /><span style=\"color: #00C800;\">local</span> nL_g := <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">&#40;</span> cLg == <span style=\"color: #ff0000;\">\"L\"</span>, <span style=\"color: #000000;\">2</span>, <span style=\"color: #000000;\">3</span> <span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">local</span> cYs  := padr<span style=\"color: #000000;\">&#40;</span> msgId<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"cTaip\"</span>, cLg <span style=\"color: #000000;\">&#41;</span>, <span style=\"color: #000000;\">4</span> <span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">local</span> cNo  := padr<span style=\"color: #000000;\">&#40;</span> msgId<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"cNe\"</span>  , cLg <span style=\"color: #000000;\">&#41;</span>, <span style=\"color: #000000;\">4</span> <span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">local</span> lEdt := .t.<br /><span style=\"color: #00C800;\">local</span> u    := <span style=\"color: #000000;\">0</span><br /><span style=\"color: #00C800;\">local</span> aMod := <span style=\"color: #000000;\">&#123;</span><span style=\"color: #000000;\">&#125;</span><br /><br /><span style=\"color: #00C800;\">local</span> aGrd := <span style=\"color: #000000;\">&#123;</span> ;<br /><span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\"uzsak\"</span>         , <span style=\"color: #ff0000;\">\"Užsak.ID\"</span>           , <span style=\"color: #ff0000;\">\"Order.ID\"</span>         , <span style=\"color: #000000;\">150</span>, <span style=\"color: #ff0000;\">\"@!\"</span>      <span style=\"color: #000000;\">&#125;</span>, ;<br /><span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\"telkinys\"</span>      , <span style=\"color: #ff0000;\">\"Telkinys\"</span>           , <span style=\"color: #ff0000;\">\"Pool\"</span>             ,  <span style=\"color: #000000;\">80</span>, <span style=\"color: #ff0000;\">\"@!K\"</span>     <span style=\"color: #000000;\">&#125;</span>, ;<br /><span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\"preke\"</span>         , <span style=\"color: #ff0000;\">\"Prek?s ID\"</span>          , <span style=\"color: #ff0000;\">\"Item ID\"</span>          , <span style=\"color: #000000;\">150</span>, <span style=\"color: #ff0000;\">\"@!K\"</span>     <span style=\"color: #000000;\">&#125;</span>, ;<br /><span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\"uzs_kiekis\"</span>    , <span style=\"color: #ff0000;\">\"Kiekis\"</span>             , <span style=\"color: #ff0000;\">\"Qty.\"</span>             ,  <span style=\"color: #000000;\">75</span>, <span style=\"color: #ff0000;\">\"@999999\"</span> <span style=\"color: #000000;\">&#125;</span>, ;<br /><span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\"svarbus\"</span>       , <span style=\"color: #ff0000;\">\"Svarbus\"</span>            , <span style=\"color: #ff0000;\">\"Important\"</span>        ,  <span style=\"color: #000000;\">50</span>, <span style=\"color: #ff0000;\">\"\"</span>        <span style=\"color: #000000;\">&#125;</span>, ;<br /><span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\"specai\"</span>        , <span style=\"color: #ff0000;\">\"Spec\"</span>               , <span style=\"color: #ff0000;\">\"Spec\"</span>             ,  <span style=\"color: #000000;\">50</span>, <span style=\"color: #ff0000;\">\"\"</span>        <span style=\"color: #000000;\">&#125;</span>, ;<br /><span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\"mazi\"</span>          , <span style=\"color: #ff0000;\">\"Mazi\"</span>               , <span style=\"color: #ff0000;\">\"Smalls\"</span>           ,  <span style=\"color: #000000;\">50</span>, <span style=\"color: #ff0000;\">\"\"</span>        <span style=\"color: #000000;\">&#125;</span>, ;<br /><span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\"uzs_spalv\"</span>     , <span style=\"color: #ff0000;\">\"Užsak.spalvos\"</span>      , <span style=\"color: #ff0000;\">\"Ord.colors\"</span>       , <span style=\"color: #000000;\">100</span>, <span style=\"color: #ff0000;\">\"@!K\"</span>     <span style=\"color: #000000;\">&#125;</span>, ;<br /><span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\"uzs_data\"</span>      , <span style=\"color: #ff0000;\">\"Užs.data\"</span>           , <span style=\"color: #ff0000;\">\"Ord.date\"</span>         , <span style=\"color: #000000;\">100</span>, <span style=\"color: #ff0000;\">\"@D\"</span>      <span style=\"color: #000000;\">&#125;</span>, ;<br /><span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\"uzs_sav\"</span>       , <span style=\"color: #ff0000;\">\"Užs.sav.\"</span>           , <span style=\"color: #ff0000;\">\"Ord.week\"</span>         ,  <span style=\"color: #000000;\">75</span>, <span style=\"color: #ff0000;\">\"\"</span>        <span style=\"color: #000000;\">&#125;</span>, ;<br /><span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\"graz_data\"</span>     , <span style=\"color: #ff0000;\">\"Gr?ž.data\"</span>          , <span style=\"color: #ff0000;\">\"Ret.date\"</span>         , <span style=\"color: #000000;\">100</span>, <span style=\"color: #ff0000;\">\"@D\"</span>      <span style=\"color: #000000;\">&#125;</span>, ;<br /><span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\"graz_sav\"</span>      , <span style=\"color: #ff0000;\">\"Gr?ž.sav.\"</span>          , <span style=\"color: #ff0000;\">\"Ret.week\"</span>         ,  <span style=\"color: #000000;\">75</span>, <span style=\"color: #ff0000;\">\"\"</span>        <span style=\"color: #000000;\">&#125;</span>, ;<br /><span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\"fakt_data\"</span>     , <span style=\"color: #ff0000;\">\"Fakt.data\"</span>          , <span style=\"color: #ff0000;\">\"Fact.date\"</span>        , <span style=\"color: #000000;\">100</span>, <span style=\"color: #ff0000;\">\"@D\"</span>      <span style=\"color: #000000;\">&#125;</span>, ;<br /><span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\"fakt_sav\"</span>      , <span style=\"color: #ff0000;\">\"Fakt.sav.\"</span>          , <span style=\"color: #ff0000;\">\"Fact.week\"</span>        ,  <span style=\"color: #000000;\">75</span>, <span style=\"color: #ff0000;\">\"\"</span>        <span style=\"color: #000000;\">&#125;</span>, ;<br /><span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\"pastabos_ord\"</span>  , <span style=\"color: #ff0000;\">\"Ord.pastaba\"</span>        , <span style=\"color: #ff0000;\">\"Ord.note\"</span>         , <span style=\"color: #000000;\">180</span>, <span style=\"color: #ff0000;\">\"@!\"</span>      <span style=\"color: #000000;\">&#125;</span>, ;<br /><span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\"zymos\"</span>         , <span style=\"color: #ff0000;\">\"Žymos\"</span>              , <span style=\"color: #ff0000;\">\"Notes\"</span>            ,  <span style=\"color: #000000;\">80</span>, <span style=\"color: #ff0000;\">\"@!\"</span>      <span style=\"color: #000000;\">&#125;</span>, ;<br /><span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\"kerpa\"</span>         , <span style=\"color: #ff0000;\">\"Kerpa\"</span>              , <span style=\"color: #ff0000;\">\"Cutting\"</span>          , <span style=\"color: #000000;\">100</span>, <span style=\"color: #ff0000;\">\"\"</span>        <span style=\"color: #000000;\">&#125;</span>, ;<br /><span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\"sukirp_lap\"</span>    , <span style=\"color: #ff0000;\">\"Suk.lapas\"</span>          , <span style=\"color: #ff0000;\">\"Cut.page\"</span>         ,  <span style=\"color: #000000;\">80</span>, <span style=\"color: #ff0000;\">\"@!K\"</span>     <span style=\"color: #000000;\">&#125;</span>, ;<br /><span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\"etiketes\"</span>      , <span style=\"color: #ff0000;\">\"Etiket?s\"</span>           , <span style=\"color: #ff0000;\">\"Labels\"</span>           ,  <span style=\"color: #000000;\">40</span>, <span style=\"color: #ff0000;\">\"@!K\"</span>     <span style=\"color: #000000;\">&#125;</span>, ;<br /><span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\"gav_data\"</span>      , <span style=\"color: #ff0000;\">\"Gavim.data\"</span>         , <span style=\"color: #ff0000;\">\"Recv.date\"</span>        , <span style=\"color: #000000;\">100</span>, <span style=\"color: #ff0000;\">\"@D\"</span>      <span style=\"color: #000000;\">&#125;</span>, ;<br /><span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\"subrang\"</span>       , <span style=\"color: #ff0000;\">\"Subrangovas\"</span>        , <span style=\"color: #ff0000;\">\"Subcontr.\"</span>        , <span style=\"color: #000000;\">100</span>, <span style=\"color: #ff0000;\">\"\"</span>        <span style=\"color: #000000;\">&#125;</span>, ;<br /><span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\"aud_nuras\"</span>     , <span style=\"color: #ff0000;\">\"Aud.nur.\"</span>           , <span style=\"color: #ff0000;\">\"Mater.off\"</span>        ,  <span style=\"color: #000000;\">60</span>, <span style=\"color: #ff0000;\">\"\"</span>        <span style=\"color: #000000;\">&#125;</span>, ;<br /><span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\"frn_nuras\"</span>     , <span style=\"color: #ff0000;\">\"Furn.nur.\"</span>          , <span style=\"color: #ff0000;\">\"Furnit.off\"</span>       ,  <span style=\"color: #000000;\">60</span>, <span style=\"color: #ff0000;\">\"\"</span>        <span style=\"color: #000000;\">&#125;</span>, ;<br /><span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\"invc_nuras\"</span>    , <span style=\"color: #ff0000;\">\"S?sk.nur.\"</span>          , <span style=\"color: #ff0000;\">\"Invoice off\"</span>      ,  <span style=\"color: #000000;\">60</span>, <span style=\"color: #ff0000;\">\"\"</span>        <span style=\"color: #000000;\">&#125;</span>, ;<br /><span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\"nav_nuras\"</span>     , <span style=\"color: #ff0000;\">\"NAV nur.\"</span>           , <span style=\"color: #ff0000;\">\"NAV off\"</span>          ,  <span style=\"color: #000000;\">60</span>, <span style=\"color: #ff0000;\">\"\"</span>        <span style=\"color: #000000;\">&#125;</span>, ;<br /><span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\"pasel_prad\"</span>    , <span style=\"color: #ff0000;\">\"Pasel.prad.\"</span>        , <span style=\"color: #ff0000;\">\"Mak.begin\"</span>        ,  <span style=\"color: #000000;\">60</span>, <span style=\"color: #ff0000;\">\"\"</span>        <span style=\"color: #000000;\">&#125;</span>, ;<br /><span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\"pokav_prad\"</span>    , <span style=\"color: #ff0000;\">\"Pokav.prad.\"</span>        , <span style=\"color: #ff0000;\">\"Pack.begin\"</span>       ,  <span style=\"color: #000000;\">60</span>, <span style=\"color: #ff0000;\">\"\"</span>        <span style=\"color: #000000;\">&#125;</span>, ;<br /><span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\"prilyg_mod\"</span>    , <span style=\"color: #ff0000;\">\"Prilyg.modelis\"</span>     , <span style=\"color: #ff0000;\">\"Equat.model\"</span>      , <span style=\"color: #000000;\">150</span>, <span style=\"color: #ff0000;\">\"@!K\"</span>     <span style=\"color: #000000;\">&#125;</span>, ;<br /><span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\"prilyg_kiekis\"</span> , <span style=\"color: #ff0000;\">\"Prilyg.kiekis\"</span>      , <span style=\"color: #ff0000;\">\"Eq.qty\"</span>           ,  <span style=\"color: #000000;\">75</span>, <span style=\"color: #ff0000;\">\"@999999\"</span> <span style=\"color: #000000;\">&#125;</span>, ;<br /><span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\"pastabos_buh\"</span>  , <span style=\"color: #ff0000;\">\"Pastabos buh.\"</span>      , <span style=\"color: #ff0000;\">\"Account notes\"</span>    , <span style=\"color: #000000;\">180</span>, <span style=\"color: #ff0000;\">\"@!\"</span>      <span style=\"color: #000000;\">&#125;</span>, ;<br /><span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\"buh_specas\"</span>    , <span style=\"color: #ff0000;\">\"Buh.spec\"</span>           , <span style=\"color: #ff0000;\">\"Buh.spec\"</span>         ,  <span style=\"color: #000000;\">60</span>, <span style=\"color: #ff0000;\">\"\"</span>        <span style=\"color: #000000;\">&#125;</span>, ;<br /><span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\"pastabos_zs\"</span>   , <span style=\"color: #ff0000;\">\"Pastabos Zarasu\"</span>    , <span style=\"color: #ff0000;\">\"Notes of Zarasai\"</span> , <span style=\"color: #000000;\">180</span>, <span style=\"color: #ff0000;\">\"@!\"</span>      <span style=\"color: #000000;\">&#125;</span>, ;<br /><span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\"pok_lap_mod\"</span>   , <span style=\"color: #ff0000;\">\"Pokav.lapo modelis\"</span> , <span style=\"color: #ff0000;\">\"Pack.list model\"</span>  , <span style=\"color: #000000;\">150</span>, <span style=\"color: #ff0000;\">\"@!K\"</span>     <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span><br /><br /><br />aWnd := wnd_rest<span style=\"color: #000000;\">&#40;</span> cWnd <span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">if</span> len<span style=\"color: #000000;\">&#40;</span> aWnd <span style=\"color: #000000;\">&#41;</span> == <span style=\"color: #000000;\">0</span><br />   aWnd := <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">20</span>, <span style=\"color: #000000;\">20</span>, <span style=\"color: #000000;\">500</span>, <span style=\"color: #000000;\">800</span>, .f. <span style=\"color: #000000;\">&#125;</span><br /><span style=\"color: #00C800;\">endif</span><br /><br />aDgr := brw_rest<span style=\"color: #000000;\">&#40;</span> cTbl, aGrd, cLg <span style=\"color: #000000;\">&#41;</span><br />cFld := aDgr<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#93;</span><br />aCol := aDgr<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#93;</span><br />aHdr := aDgr<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">3</span> <span style=\"color: #000000;\">&#93;</span><br />aPct := aDgr<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">7</span> <span style=\"color: #000000;\">&#93;</span><br /><br />cStr := <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">&#40;</span>  cLg == <span style=\"color: #ff0000;\">\"L\"</span>, <span style=\"color: #ff0000;\">\"pav_lt\"</span>, <span style=\"color: #ff0000;\">\"pav_en\"</span> <span style=\"color: #000000;\">&#41;</span><br />aMod := qry_arr<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"SELECT preke,\"</span> + cStr + <span style=\"color: #ff0000;\">\" FROM prekes WHERE prek_tipas = 'Gaminys' AND db='\"</span> + cDb_id + <span style=\"color: #ff0000;\">\"' ORDER BY preke\"</span>, <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\"preke\"</span>, cStr <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span><br /><br />cSql := <span style=\"color: #ff0000;\">\"SELECT \"</span> + cFld + <span style=\"color: #ff0000;\">\" FROM uzsakym WHERE db='\"</span> + cDb_id + <span style=\"color: #ff0000;\">\"'\"</span><br />oQry := oServ:<span style=\"color: #000000;\">Query</span><span style=\"color: #000000;\">&#40;</span> cSql <span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWnd <span style=\"color: #0000ff;\">MDICHILD</span> <span style=\"color: #0000ff;\">OF</span> wndMain<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #0000ff;\">TITLE</span> <span style=\"color: #ff0000;\">\"Užsakymai\"</span> <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">FROM</span> aWnd<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#93;</span>, aWnd<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#93;</span> <span style=\"color: #0000ff;\">TO</span> aWnd<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">3</span> <span style=\"color: #000000;\">&#93;</span>, aWnd<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">4</span> <span style=\"color: #000000;\">&#93;</span><br /><span style=\"color: #00C800;\">if</span> aWnd<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">5</span> <span style=\"color: #000000;\">&#93;</span> == .f.<br />   oWnd:<span style=\"color: #0000ff;\">Move</span><span style=\"color: #000000;\">&#40;</span> aWnd<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#93;</span>, aWnd<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#93;</span>, aWnd<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">4</span> <span style=\"color: #000000;\">&#93;</span>, aWnd<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">3</span> <span style=\"color: #000000;\">&#93;</span>, .t. <span style=\"color: #000000;\">&#41;</span><br />  <span style=\"color: #00C800;\">else</span><br />   oWnd:<span style=\"color: #000000;\">Maximize</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">endif</span><br />Ikona<span style=\"color: #000000;\">&#40;</span> oWnd <span style=\"color: #000000;\">&#41;</span><br />oWnd:<span style=\"color: #000000;\">Hide</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />oWnd:<span style=\"color: #000000;\">Cargo</span> := cWnd<br />    <br />@ <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #0000ff;\">XBROWSE</span> oBrw <span style=\"color: #0000ff;\">OF</span> oWnd DATASOURCE oQry COLUMNS aCol HEADERS aHdr PICTURES aPct AUTOSORT<br /><br />oBrw:<span style=\"color: #000000;\">nMarqueeStyle</span>          := MARQSTYLE_HIGHLROWMS<br />oBrw:<span style=\"color: #000000;\">nColDividerStyle</span>       := LINESTYLE_BLACK<br />oBrw:<span style=\"color: #000000;\">nRowDividerStyle</span>       := LINESTYLE_BLACK<br />oBrw:<span style=\"color: #000000;\">lColDividerComplete</span>    := .t.<br /><br />brw_col<span style=\"color: #000000;\">&#40;</span> oBrw, aCol <span style=\"color: #000000;\">&#41;</span><br /><br />oCol := oBrw:<span style=\"color: #000000;\">aCols</span><span style=\"color: #000000;\">&#91;</span> ascan<span style=\"color: #000000;\">&#40;</span> aCol, <span style=\"color: #ff0000;\">\"uzsak\"</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#93;</span><br />WITH OBJECT oCol<br />   :<span style=\"color: #000000;\">nEditType</span>       := <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">&#40;</span> lEdt, EDIT_GET, EDIT_NONE <span style=\"color: #000000;\">&#41;</span><br />   :<span style=\"color: #000000;\">bEditValue</span>      := <span style=\"color: #000000;\">&#123;</span> || oQry:<span style=\"color: #000000;\">uzsak</span> <span style=\"color: #000000;\">&#125;</span><br />   :<span style=\"color: #000000;\">bEditValid</span>      := <span style=\"color: #000000;\">&#123;</span> | oGet, oCol | var_not_exist<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"uzsakym\"</span>, oCol:<span style=\"color: #000000;\">cExpr</span>, oGet:<span style=\"color: #000000;\">Value</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>, <span style=\"color: #ff0000;\">\"ut\"</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br />   :<span style=\"color: #000000;\">bOnPostEdit</span>     := <span style=\"color: #000000;\">&#123;</span> | oCol, xVal, nKey | <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">&#40;</span> nKey == VK_ESCAPE,, <span style=\"color: #000000;\">&#40;</span> oQry:<span style=\"color: #000000;\">uzsak</span> := xVal, oQry:<span style=\"color: #000000;\">Save</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>, <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">&#40;</span> oQry:<span style=\"color: #000000;\">lAppend</span> == .t., oQry:<span style=\"color: #000000;\">lAppend</span> := .f., <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br />END<br /><br />oCol := oBrw:<span style=\"color: #000000;\">aCols</span><span style=\"color: #000000;\">&#91;</span> ascan<span style=\"color: #000000;\">&#40;</span> aCol, <span style=\"color: #ff0000;\">\"telkinys\"</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#93;</span><br />WITH OBJECT oCol<br />   :<span style=\"color: #000000;\">nEditType</span>       := <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">&#40;</span> lEdt, EDIT_GET, EDIT_NONE <span style=\"color: #000000;\">&#41;</span><br />   :<span style=\"color: #000000;\">bEditValue</span>      := <span style=\"color: #000000;\">&#123;</span> || oQry:<span style=\"color: #000000;\">telkinys</span> <span style=\"color: #000000;\">&#125;</span><br />   :<span style=\"color: #000000;\">bOnPostEdit</span>     := <span style=\"color: #000000;\">&#123;</span> | oCol, xVal, nKey | <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">&#40;</span> nKey == VK_ESCAPE,,<span style=\"color: #000000;\">&#40;</span> oQry:<span style=\"color: #000000;\">telkinys</span> := xVal, oQry:<span style=\"color: #000000;\">Save</span><span style=\"color: #000000;\">&#40;</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><br />END<br /><br />oCol := oBrw:<span style=\"color: #000000;\">aCols</span><span style=\"color: #000000;\">&#91;</span> ascan<span style=\"color: #000000;\">&#40;</span> aCol, <span style=\"color: #ff0000;\">\"preke\"</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#93;</span><br />WITH OBJECT oCol<br />   :<span style=\"color: #000000;\">bEditValue</span>      := <span style=\"color: #000000;\">&#123;</span> || oQry:<span style=\"color: #000000;\">preke</span> <span style=\"color: #000000;\">&#125;</span><br />   :<span style=\"color: #000000;\">nEditType</span>       := <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">&#40;</span> lEdt, EDIT_GET_BUTTON, EDIT_NONE <span style=\"color: #000000;\">&#41;</span><br />   :<span style=\"color: #000000;\">bEditBlock</span>      := <span style=\"color: #000000;\">&#123;</span> | nRow, nCol, oCol | brw_arr<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Pasirinkite !\"</span>, <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\"Modelis\"</span>, <span style=\"color: #ff0000;\">\"Model.pavadinimas\"</span> <span style=\"color: #000000;\">&#125;</span>, aMod, oCol:<span style=\"color: #000000;\">Value</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br />   :<span style=\"color: #000000;\">bEditValid</span>      := <span style=\"color: #000000;\">&#123;</span> | oGet, oCol | mod_pas<span style=\"color: #000000;\">&#40;</span> aMod, oCol:<span style=\"color: #000000;\">Value</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br />   :<span style=\"color: #000000;\">bOnPostEdit</span>     := <span style=\"color: #000000;\">&#123;</span> | oCol, xVal, nKey | <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">&#40;</span> nKey == VK_ESCAPE,,<span style=\"color: #000000;\">&#40;</span> oQry:<span style=\"color: #000000;\">preke</span> := xVal, oQry:<span style=\"color: #000000;\">Save</span><span style=\"color: #000000;\">&#40;</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><br />END<br /><br />oCol := oBrw:<span style=\"color: #000000;\">aCols</span><span style=\"color: #000000;\">&#91;</span> ascan<span style=\"color: #000000;\">&#40;</span> aCol, <span style=\"color: #ff0000;\">\"prilyg_mod\"</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#93;</span><br />WITH OBJECT oCol<br />   :<span style=\"color: #000000;\">bEditValue</span>      := <span style=\"color: #000000;\">&#123;</span> || oQry:<span style=\"color: #000000;\">prilyg_mod</span> <span style=\"color: #000000;\">&#125;</span><br />   :<span style=\"color: #000000;\">nEditType</span>       := <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">&#40;</span> lEdt, EDIT_GET_BUTTON, EDIT_NONE <span style=\"color: #000000;\">&#41;</span><br />   :<span style=\"color: #000000;\">bEditBlock</span>      := <span style=\"color: #000000;\">&#123;</span> | nRow, nCol, oCol | brw_arr<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Pasirinkite !\"</span>, <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\"Modelis\"</span>, <span style=\"color: #ff0000;\">\"Model.pavadinimas\"</span> <span style=\"color: #000000;\">&#125;</span>, aMod, oCol:<span style=\"color: #000000;\">Value</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br />   :<span style=\"color: #000000;\">bEditValid</span>      := <span style=\"color: #000000;\">&#123;</span> | oGet, oCol | mod_pas<span style=\"color: #000000;\">&#40;</span> aMod, oCol:<span style=\"color: #000000;\">Value</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br />   :<span style=\"color: #000000;\">bOnPostEdit</span>     := <span style=\"color: #000000;\">&#123;</span> | oCol, xVal, nKey | <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">&#40;</span> nKey == VK_ESCAPE,,<span style=\"color: #000000;\">&#40;</span> oQry:<span style=\"color: #000000;\">prilyg_mod</span> := xVal, oQry:<span style=\"color: #000000;\">Save</span><span style=\"color: #000000;\">&#40;</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><br />END<br /><br />oCol := oBrw:<span style=\"color: #000000;\">aCols</span><span style=\"color: #000000;\">&#91;</span> ascan<span style=\"color: #000000;\">&#40;</span> aCol, <span style=\"color: #ff0000;\">\"uzs_kiekis\"</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#93;</span><br />WITH OBJECT oCol<br />   :<span style=\"color: #000000;\">nEditType</span>       := <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">&#40;</span> lEdt, EDIT_GET, EDIT_NONE <span style=\"color: #000000;\">&#41;</span><br />   :<span style=\"color: #000000;\">bEditValue</span>      := <span style=\"color: #000000;\">&#123;</span> || oQry:<span style=\"color: #000000;\">uzs_kiekis</span> <span style=\"color: #000000;\">&#125;</span><br />   :<span style=\"color: #000000;\">bEditValid</span>      := <span style=\"color: #000000;\">&#123;</span> | oGet, oCol | oCol:<span style=\"color: #000000;\">Value</span> > <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#125;</span><br />   :<span style=\"color: #000000;\">bOnPostEdit</span>     := <span style=\"color: #000000;\">&#123;</span> | oCol, xVal, nKey | <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">&#40;</span> nKey == VK_ESCAPE,,<span style=\"color: #000000;\">&#40;</span> oQry:<span style=\"color: #000000;\">uzs_kiekis</span> := xVal, oQry:<span style=\"color: #000000;\">Save</span><span style=\"color: #000000;\">&#40;</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><br />END<br /><br />oCol := oBrw:<span style=\"color: #000000;\">aCols</span><span style=\"color: #000000;\">&#91;</span> ascan<span style=\"color: #000000;\">&#40;</span> aCol, <span style=\"color: #ff0000;\">\"prilyg_kiekis\"</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#93;</span><br />WITH OBJECT oCol<br />   :<span style=\"color: #000000;\">nEditType</span>       := <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">&#40;</span> lEdt, EDIT_GET, EDIT_NONE <span style=\"color: #000000;\">&#41;</span><br />   :<span style=\"color: #000000;\">bEditValue</span>      := <span style=\"color: #000000;\">&#123;</span> || oQry:<span style=\"color: #000000;\">prilyg_kiekis</span> <span style=\"color: #000000;\">&#125;</span><br />   :<span style=\"color: #000000;\">bEditValid</span>      := <span style=\"color: #000000;\">&#123;</span> | oGet, oCol | oCol:<span style=\"color: #000000;\">Value</span> >= <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#125;</span><br />   :<span style=\"color: #000000;\">bOnPostEdit</span>     := <span style=\"color: #000000;\">&#123;</span> | oCol, xVal, nKey | <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">&#40;</span> nKey == VK_ESCAPE,,<span style=\"color: #000000;\">&#40;</span> oQry:<span style=\"color: #000000;\">prilyg_kiekis</span> := xVal, oQry:<span style=\"color: #000000;\">Save</span><span style=\"color: #000000;\">&#40;</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><br />END<br /><br />oCol := oBrw:<span style=\"color: #000000;\">aCols</span><span style=\"color: #000000;\">&#91;</span> ascan<span style=\"color: #000000;\">&#40;</span> aCol, <span style=\"color: #ff0000;\">\"svarbus\"</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#93;</span><br />WITH OBJECT oCol<br />   :<span style=\"color: #000000;\">AddBitmap</span><span style=\"color: #000000;\">&#40;</span> cProgr_pict + <span style=\"color: #ff0000;\">\"on.bmp\"</span>  <span style=\"color: #000000;\">&#41;</span><br />   :<span style=\"color: #000000;\">AddBitmap</span><span style=\"color: #000000;\">&#40;</span> cProgr_pict + <span style=\"color: #ff0000;\">\"off.bmp\"</span> <span style=\"color: #000000;\">&#41;</span><br />   :<span style=\"color: #000000;\">bEditValue</span>      := <span style=\"color: #000000;\">&#123;</span> || oQry:<span style=\"color: #000000;\">svarbus</span> <span style=\"color: #000000;\">&#125;</span><br />   :<span style=\"color: #000000;\">bBmpData</span>        := <span style=\"color: #000000;\">&#123;</span> || <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">&#40;</span> oQry:<span style=\"color: #000000;\">svarbus</span> == .t., <span style=\"color: #000000;\">1</span>, <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br />   <span style=\"color: #00C800;\">if</span> lEdt <br />      :<span style=\"color: #000000;\">bStrData</span>        := <span style=\"color: #000000;\">&#123;</span> || <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">&#40;</span> oQry:<span style=\"color: #000000;\">svarbus</span> == .t., cYs, cNo <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span>   <br />      :<span style=\"color: #000000;\">nEditType</span>       := EDIT_LISTBOX<br />      :<span style=\"color: #000000;\">aEditListTxt</span>    := <span style=\"color: #000000;\">&#123;</span> cYs, cNo <span style=\"color: #000000;\">&#125;</span><br />      :<span style=\"color: #000000;\">aEditListBound</span>  := <span style=\"color: #000000;\">&#123;</span> .t., .f. <span style=\"color: #000000;\">&#125;</span>  <br />      :<span style=\"color: #000000;\">bOnPostEdit</span>     := <span style=\"color: #000000;\">&#123;</span> | oCol, xVal, nKey | <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">&#40;</span> nKey == VK_ESCAPE,,<span style=\"color: #000000;\">&#40;</span> oQry:<span style=\"color: #000000;\">svarbus</span> := xVal, oQry:<span style=\"color: #000000;\">Save</span><span style=\"color: #000000;\">&#40;</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><br />   <span style=\"color: #00C800;\">endif</span><br />END<br /><br />oCol := oBrw:<span style=\"color: #000000;\">aCols</span><span style=\"color: #000000;\">&#91;</span> ascan<span style=\"color: #000000;\">&#40;</span> aCol, <span style=\"color: #ff0000;\">\"specai\"</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#93;</span><br />WITH OBJECT oCol<br />   :<span style=\"color: #000000;\">AddBitmap</span><span style=\"color: #000000;\">&#40;</span> cProgr_pict + <span style=\"color: #ff0000;\">\"on.bmp\"</span>  <span style=\"color: #000000;\">&#41;</span><br />   :<span style=\"color: #000000;\">AddBitmap</span><span style=\"color: #000000;\">&#40;</span> cProgr_pict + <span style=\"color: #ff0000;\">\"off.bmp\"</span> <span style=\"color: #000000;\">&#41;</span><br />   :<span style=\"color: #000000;\">bEditValue</span>      := <span style=\"color: #000000;\">&#123;</span> || oQry:<span style=\"color: #000000;\">specai</span> <span style=\"color: #000000;\">&#125;</span><br />   :<span style=\"color: #000000;\">bBmpData</span>        := <span style=\"color: #000000;\">&#123;</span> || <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">&#40;</span> oQry:<span style=\"color: #000000;\">specai</span> == .t., <span style=\"color: #000000;\">1</span>, <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br />   <span style=\"color: #00C800;\">if</span> lEdt <br />      :<span style=\"color: #000000;\">bStrData</span>        := <span style=\"color: #000000;\">&#123;</span> || <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">&#40;</span> oQry:<span style=\"color: #000000;\">specai</span> == .t., cYs, cNo <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span>   <br />      :<span style=\"color: #000000;\">nEditType</span>       := EDIT_LISTBOX<br />      :<span style=\"color: #000000;\">aEditListTxt</span>    := <span style=\"color: #000000;\">&#123;</span> cYs, cNo <span style=\"color: #000000;\">&#125;</span><br />      :<span style=\"color: #000000;\">aEditListBound</span>  := <span style=\"color: #000000;\">&#123;</span> .t., .f. <span style=\"color: #000000;\">&#125;</span>  <br />      :<span style=\"color: #000000;\">bOnPostEdit</span>     := <span style=\"color: #000000;\">&#123;</span> | oCol, xVal, nKey | <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">&#40;</span> nKey == VK_ESCAPE,,<span style=\"color: #000000;\">&#40;</span> oQry:<span style=\"color: #000000;\">specai</span> := xVal, oQry:<span style=\"color: #000000;\">Save</span><span style=\"color: #000000;\">&#40;</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><br />   <span style=\"color: #00C800;\">endif</span><br />END<br /><br />oCol := oBrw:<span style=\"color: #000000;\">aCols</span><span style=\"color: #000000;\">&#91;</span> ascan<span style=\"color: #000000;\">&#40;</span> aCol, <span style=\"color: #ff0000;\">\"mazi\"</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#93;</span><br />WITH OBJECT oCol<br />   :<span style=\"color: #000000;\">AddBitmap</span><span style=\"color: #000000;\">&#40;</span> cProgr_pict + <span style=\"color: #ff0000;\">\"on.bmp\"</span>  <span style=\"color: #000000;\">&#41;</span><br />   :<span style=\"color: #000000;\">AddBitmap</span><span style=\"color: #000000;\">&#40;</span> cProgr_pict + <span style=\"color: #ff0000;\">\"off.bmp\"</span> <span style=\"color: #000000;\">&#41;</span><br />   :<span style=\"color: #000000;\">bEditValue</span>      := <span style=\"color: #000000;\">&#123;</span> || oQry:<span style=\"color: #000000;\">mazi</span> <span style=\"color: #000000;\">&#125;</span><br />   :<span style=\"color: #000000;\">bBmpData</span>        := <span style=\"color: #000000;\">&#123;</span> || <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">&#40;</span> oQry:<span style=\"color: #000000;\">mazi</span> == .t., <span style=\"color: #000000;\">1</span>, <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br />   <span style=\"color: #00C800;\">if</span> lEdt <br />      :<span style=\"color: #000000;\">bStrData</span>        := <span style=\"color: #000000;\">&#123;</span> || <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">&#40;</span> oQry:<span style=\"color: #000000;\">mazi</span> == .t., cYs, cNo <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span>   <br />      :<span style=\"color: #000000;\">nEditType</span>       := EDIT_LISTBOX<br />      :<span style=\"color: #000000;\">aEditListTxt</span>    := <span style=\"color: #000000;\">&#123;</span> cYs, cNo <span style=\"color: #000000;\">&#125;</span><br />      :<span style=\"color: #000000;\">aEditListBound</span>  := <span style=\"color: #000000;\">&#123;</span> .t., .f. <span style=\"color: #000000;\">&#125;</span>  <br />      :<span style=\"color: #000000;\">bOnPostEdit</span>     := <span style=\"color: #000000;\">&#123;</span> | oCol, xVal, nKey | <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">&#40;</span> nKey == VK_ESCAPE,,<span style=\"color: #000000;\">&#40;</span> oQry:<span style=\"color: #000000;\">mazi</span> := xVal, oQry:<span style=\"color: #000000;\">Save</span><span style=\"color: #000000;\">&#40;</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><br />   <span style=\"color: #00C800;\">endif</span>   <br />END<br /><br />oCol := oBrw:<span style=\"color: #000000;\">aCols</span><span style=\"color: #000000;\">&#91;</span> ascan<span style=\"color: #000000;\">&#40;</span> aCol, <span style=\"color: #ff0000;\">\"buh_specas\"</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#93;</span><br />WITH OBJECT oCol<br />   :<span style=\"color: #000000;\">AddBitmap</span><span style=\"color: #000000;\">&#40;</span> cProgr_pict + <span style=\"color: #ff0000;\">\"on.bmp\"</span>  <span style=\"color: #000000;\">&#41;</span><br />   :<span style=\"color: #000000;\">AddBitmap</span><span style=\"color: #000000;\">&#40;</span> cProgr_pict + <span style=\"color: #ff0000;\">\"off.bmp\"</span> <span style=\"color: #000000;\">&#41;</span><br />   :<span style=\"color: #000000;\">bEditValue</span>      := <span style=\"color: #000000;\">&#123;</span> || oQry:<span style=\"color: #000000;\">buh_specas</span> <span style=\"color: #000000;\">&#125;</span><br />   :<span style=\"color: #000000;\">bBmpData</span>        := <span style=\"color: #000000;\">&#123;</span> || <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">&#40;</span> oQry:<span style=\"color: #000000;\">buh_specas</span> == .t., <span style=\"color: #000000;\">1</span>, <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br />   <span style=\"color: #00C800;\">if</span> lEdt <br />      :<span style=\"color: #000000;\">bStrData</span>        := <span style=\"color: #000000;\">&#123;</span> || <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">&#40;</span> oQry:<span style=\"color: #000000;\">buh_specas</span> == .t., cYs, cNo <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span>   <br />      :<span style=\"color: #000000;\">nEditType</span>       := EDIT_LISTBOX<br />      :<span style=\"color: #000000;\">aEditListTxt</span>    := <span style=\"color: #000000;\">&#123;</span> cYs, cNo <span style=\"color: #000000;\">&#125;</span><br />      :<span style=\"color: #000000;\">aEditListBound</span>  := <span style=\"color: #000000;\">&#123;</span> .t., .f. <span style=\"color: #000000;\">&#125;</span>  <br />      :<span style=\"color: #000000;\">bOnPostEdit</span>     := <span style=\"color: #000000;\">&#123;</span> | oCol, xVal, nKey | <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">&#40;</span> nKey == VK_ESCAPE,,<span style=\"color: #000000;\">&#40;</span> oQry:<span style=\"color: #000000;\">buh_specas</span> := xVal, oQry:<span style=\"color: #000000;\">Save</span><span style=\"color: #000000;\">&#40;</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><br />   <span style=\"color: #00C800;\">endif</span>   <br />END<br /><br />oCol := oBrw:<span style=\"color: #000000;\">aCols</span><span style=\"color: #000000;\">&#91;</span> ascan<span style=\"color: #000000;\">&#40;</span> aCol, <span style=\"color: #ff0000;\">\"uzs_spalv\"</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#93;</span><br />WITH OBJECT oCol<br />   :<span style=\"color: #000000;\">nEditType</span>       := <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">&#40;</span> lEdt, EDIT_GET, EDIT_NONE <span style=\"color: #000000;\">&#41;</span><br />   :<span style=\"color: #000000;\">bEditValue</span>      := <span style=\"color: #000000;\">&#123;</span> || oQry:<span style=\"color: #000000;\">uzs_spalv</span> <span style=\"color: #000000;\">&#125;</span><br />   :<span style=\"color: #000000;\">bOnPostEdit</span>     := <span style=\"color: #000000;\">&#123;</span> | oCol, xVal, nKey | <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">&#40;</span> nKey == VK_ESCAPE,,<span style=\"color: #000000;\">&#40;</span> oQry:<span style=\"color: #000000;\">uzs_spalv</span> := xVal, oQry:<span style=\"color: #000000;\">Save</span><span style=\"color: #000000;\">&#40;</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><br />END<br /><br />oCol := oBrw:<span style=\"color: #000000;\">aCols</span><span style=\"color: #000000;\">&#91;</span> ascan<span style=\"color: #000000;\">&#40;</span> aCol, <span style=\"color: #ff0000;\">\"uzs_data\"</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#93;</span><br />WITH OBJECT oCol<br />   :<span style=\"color: #000000;\">nEditType</span>       := <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">&#40;</span> lEdt, EDIT_DATE, EDIT_NONE <span style=\"color: #000000;\">&#41;</span><br />   :<span style=\"color: #000000;\">bEditValue</span>      := <span style=\"color: #000000;\">&#123;</span> || oQry:<span style=\"color: #000000;\">uzs_data</span> <span style=\"color: #000000;\">&#125;</span><br />   :<span style=\"color: #000000;\">bOnPostEdit</span>     := <span style=\"color: #000000;\">&#123;</span> | oCol, xVal, nKey | <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">&#40;</span> nKey == VK_ESCAPE,,<span style=\"color: #000000;\">&#40;</span> oQry:<span style=\"color: #000000;\">uzs_data</span> := xVal, oQry:<span style=\"color: #000000;\">Save</span><span style=\"color: #000000;\">&#40;</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><br />END<br /><br />oCol := oBrw:<span style=\"color: #000000;\">aCols</span><span style=\"color: #000000;\">&#91;</span> ascan<span style=\"color: #000000;\">&#40;</span> aCol, <span style=\"color: #ff0000;\">\"uzs_sav\"</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#93;</span><br />WITH OBJECT oCol<br />   :<span style=\"color: #000000;\">nEditType</span>       := EDIT_NONE<br />   :<span style=\"color: #000000;\">bEditValue</span>      := <span style=\"color: #000000;\">&#123;</span> || oQry:<span style=\"color: #000000;\">uzs_sav</span> <span style=\"color: #000000;\">&#125;</span><br />END<br /><br />oCol := oBrw:<span style=\"color: #000000;\">aCols</span><span style=\"color: #000000;\">&#91;</span> ascan<span style=\"color: #000000;\">&#40;</span> aCol, <span style=\"color: #ff0000;\">\"graz_data\"</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#93;</span><br />WITH OBJECT oCol<br />   :<span style=\"color: #000000;\">nEditType</span>       := <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">&#40;</span> lEdt, EDIT_DATE, EDIT_NONE <span style=\"color: #000000;\">&#41;</span><br />   :<span style=\"color: #000000;\">bEditValue</span>      := <span style=\"color: #000000;\">&#123;</span> || oQry:<span style=\"color: #000000;\">graz_data</span> <span style=\"color: #000000;\">&#125;</span><br />   :<span style=\"color: #000000;\">bOnPostEdit</span>     := <span style=\"color: #000000;\">&#123;</span> | oCol, xVal, nKey | <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">&#40;</span> nKey == VK_ESCAPE,,<span style=\"color: #000000;\">&#40;</span> oQry:<span style=\"color: #000000;\">graz_data</span> := xVal, oQry:<span style=\"color: #000000;\">Save</span><span style=\"color: #000000;\">&#40;</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><br />END<br /><br />oCol := oBrw:<span style=\"color: #000000;\">aCols</span><span style=\"color: #000000;\">&#91;</span> ascan<span style=\"color: #000000;\">&#40;</span> aCol, <span style=\"color: #ff0000;\">\"graz_sav\"</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#93;</span><br />WITH OBJECT oCol<br />   :<span style=\"color: #000000;\">nEditType</span>       := EDIT_NONE<br />   :<span style=\"color: #000000;\">bEditValue</span>      := <span style=\"color: #000000;\">&#123;</span> || oQry:<span style=\"color: #000000;\">graz_sav</span> <span style=\"color: #000000;\">&#125;</span><br />END<br /><br />oCol := oBrw:<span style=\"color: #000000;\">aCols</span><span style=\"color: #000000;\">&#91;</span> ascan<span style=\"color: #000000;\">&#40;</span> aCol, <span style=\"color: #ff0000;\">\"fakt_data\"</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#93;</span><br />WITH OBJECT oCol<br />   :<span style=\"color: #000000;\">nEditType</span>       := <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">&#40;</span> lEdt, EDIT_DATE, EDIT_NONE <span style=\"color: #000000;\">&#41;</span><br />   :<span style=\"color: #000000;\">bEditValue</span>      := <span style=\"color: #000000;\">&#123;</span> || oQry:<span style=\"color: #000000;\">fakt_data</span> <span style=\"color: #000000;\">&#125;</span><br />   :<span style=\"color: #000000;\">bOnPostEdit</span>     := <span style=\"color: #000000;\">&#123;</span> | oCol, xVal, nKey | <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">&#40;</span> nKey == VK_ESCAPE,,<span style=\"color: #000000;\">&#40;</span> oQry:<span style=\"color: #000000;\">fakt_data</span> := xVal, oQry:<span style=\"color: #000000;\">Save</span><span style=\"color: #000000;\">&#40;</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><br />END<br /><br />oCol := oBrw:<span style=\"color: #000000;\">aCols</span><span style=\"color: #000000;\">&#91;</span> ascan<span style=\"color: #000000;\">&#40;</span> aCol, <span style=\"color: #ff0000;\">\"fakt_sav\"</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#93;</span><br />WITH OBJECT oCol<br />   :<span style=\"color: #000000;\">nEditType</span>       := EDIT_NONE<br />   :<span style=\"color: #000000;\">bEditValue</span>      := <span style=\"color: #000000;\">&#123;</span> || oQry:<span style=\"color: #000000;\">fakt_sav</span> <span style=\"color: #000000;\">&#125;</span><br />END<br /><br />oCol := oBrw:<span style=\"color: #000000;\">aCols</span><span style=\"color: #000000;\">&#91;</span> ascan<span style=\"color: #000000;\">&#40;</span> aCol, <span style=\"color: #ff0000;\">\"pastabos_ord\"</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#93;</span><br />WITH OBJECT oCol<br />   :<span style=\"color: #000000;\">nEditType</span>       := <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">&#40;</span> lEdt, EDIT_GET, EDIT_NONE <span style=\"color: #000000;\">&#41;</span><br />   :<span style=\"color: #000000;\">bEditValue</span>      := <span style=\"color: #000000;\">&#123;</span> || oQry:<span style=\"color: #000000;\">pastabos_ord</span> <span style=\"color: #000000;\">&#125;</span><br />   :<span style=\"color: #000000;\">bOnPostEdit</span>     := <span style=\"color: #000000;\">&#123;</span> | oCol, xVal, nKey | <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">&#40;</span> nKey == VK_ESCAPE,,<span style=\"color: #000000;\">&#40;</span> oQry:<span style=\"color: #000000;\">pastabos_ord</span> := xVal, oQry:<span style=\"color: #000000;\">Save</span><span style=\"color: #000000;\">&#40;</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><br />END<br /><br />oCol := oBrw:<span style=\"color: #000000;\">aCols</span><span style=\"color: #000000;\">&#91;</span> ascan<span style=\"color: #000000;\">&#40;</span> aCol, <span style=\"color: #ff0000;\">\"zymos\"</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#93;</span><br />WITH OBJECT oCol<br />   :<span style=\"color: #000000;\">nEditType</span>       := <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">&#40;</span> lEdt, EDIT_GET, EDIT_NONE <span style=\"color: #000000;\">&#41;</span><br />   :<span style=\"color: #000000;\">bEditValue</span>      := <span style=\"color: #000000;\">&#123;</span> || oQry:<span style=\"color: #000000;\">zymos</span> <span style=\"color: #000000;\">&#125;</span><br />   :<span style=\"color: #000000;\">bOnPostEdit</span>     := <span style=\"color: #000000;\">&#123;</span> | oCol, xVal, nKey | <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">&#40;</span> nKey == VK_ESCAPE,,<span style=\"color: #000000;\">&#40;</span> oQry:<span style=\"color: #000000;\">zymos</span> := xVal, oQry:<span style=\"color: #000000;\">Save</span><span style=\"color: #000000;\">&#40;</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><br />END<br /><br />oCol := oBrw:<span style=\"color: #000000;\">aCols</span><span style=\"color: #000000;\">&#91;</span> ascan<span style=\"color: #000000;\">&#40;</span> aCol, <span style=\"color: #ff0000;\">\"sukirp_lap\"</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#93;</span><br />WITH OBJECT oCol<br />   :<span style=\"color: #000000;\">nEditType</span>       := <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">&#40;</span> lEdt, EDIT_GET, EDIT_NONE <span style=\"color: #000000;\">&#41;</span><br />   :<span style=\"color: #000000;\">bEditValue</span>      := <span style=\"color: #000000;\">&#123;</span> || oQry:<span style=\"color: #000000;\">sukirp_lap</span> <span style=\"color: #000000;\">&#125;</span><br />   :<span style=\"color: #000000;\">bOnPostEdit</span>     := <span style=\"color: #000000;\">&#123;</span> | oCol, xVal, nKey | <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">&#40;</span> nKey == VK_ESCAPE,,<span style=\"color: #000000;\">&#40;</span> oQry:<span style=\"color: #000000;\">sukirp_lap</span> := xVal, oQry:<span style=\"color: #000000;\">Save</span><span style=\"color: #000000;\">&#40;</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><br />END<br /><br />oCol := oBrw:<span style=\"color: #000000;\">aCols</span><span style=\"color: #000000;\">&#91;</span> ascan<span style=\"color: #000000;\">&#40;</span> aCol, <span style=\"color: #ff0000;\">\"etiketes\"</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#93;</span><br />WITH OBJECT oCol<br />   :<span style=\"color: #000000;\">nEditType</span>       := <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">&#40;</span> lEdt, EDIT_GET, EDIT_NONE <span style=\"color: #000000;\">&#41;</span><br />   :<span style=\"color: #000000;\">bEditValue</span>      := <span style=\"color: #000000;\">&#123;</span> || oQry:<span style=\"color: #000000;\">etiketes</span> <span style=\"color: #000000;\">&#125;</span><br />   :<span style=\"color: #000000;\">bOnPostEdit</span>     := <span style=\"color: #000000;\">&#123;</span> | oCol, xVal, nKey | <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">&#40;</span> nKey == VK_ESCAPE,,<span style=\"color: #000000;\">&#40;</span> oQry:<span style=\"color: #000000;\">etiketes</span> := xVal, oQry:<span style=\"color: #000000;\">Save</span><span style=\"color: #000000;\">&#40;</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><br />END<br /><br />oCol := oBrw:<span style=\"color: #000000;\">aCols</span><span style=\"color: #000000;\">&#91;</span> ascan<span style=\"color: #000000;\">&#40;</span> aCol, <span style=\"color: #ff0000;\">\"gav_data\"</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#93;</span><br />WITH OBJECT oCol<br />   :<span style=\"color: #000000;\">nEditType</span>       := <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">&#40;</span> lEdt, EDIT_DATE, EDIT_NONE <span style=\"color: #000000;\">&#41;</span><br />   :<span style=\"color: #000000;\">bEditValue</span>      := <span style=\"color: #000000;\">&#123;</span> || oQry:<span style=\"color: #000000;\">gav_data</span> <span style=\"color: #000000;\">&#125;</span><br />   :<span style=\"color: #000000;\">bOnPostEdit</span>     := <span style=\"color: #000000;\">&#123;</span> | oCol, xVal, nKey | <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">&#40;</span> nKey == VK_ESCAPE,,<span style=\"color: #000000;\">&#40;</span> oQry:<span style=\"color: #000000;\">gav_data</span> := xVal, oQry:<span style=\"color: #000000;\">Save</span><span style=\"color: #000000;\">&#40;</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><br />END<br /><br />oCol := oBrw:<span style=\"color: #000000;\">aCols</span><span style=\"color: #000000;\">&#91;</span> ascan<span style=\"color: #000000;\">&#40;</span> aCol, <span style=\"color: #ff0000;\">\"kerpa\"</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#93;</span><br />WITH OBJECT oCol<br />   :<span style=\"color: #000000;\">bEditValue</span>      := <span style=\"color: #000000;\">&#123;</span> || oQry:<span style=\"color: #000000;\">kerpa</span> <span style=\"color: #000000;\">&#125;</span><br />   :<span style=\"color: #000000;\">nEditType</span>       := <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">&#40;</span> lEdt, EDIT_LISTBOX, EDIT_NONE <span style=\"color: #000000;\">&#41;</span><br />   :<span style=\"color: #000000;\">aEditListTxt</span>    := <span style=\"color: #000000;\">&#123;</span> padr<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Danija\"</span>, <span style=\"color: #000000;\">10</span> <span style=\"color: #000000;\">&#41;</span>, padr<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Zarasai\"</span>, <span style=\"color: #000000;\">10</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br />   :<span style=\"color: #000000;\">bOnPostEdit</span>     := <span style=\"color: #000000;\">&#123;</span> | oCol, xVal, nKey | <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">&#40;</span> nKey == VK_ESCAPE,,<span style=\"color: #000000;\">&#40;</span> oQry:<span style=\"color: #000000;\">kerpa</span> := xVal, oQry:<span style=\"color: #000000;\">Save</span><span style=\"color: #000000;\">&#40;</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><br />END<br /><br />oCol := oBrw:<span style=\"color: #000000;\">aCols</span><span style=\"color: #000000;\">&#91;</span> ascan<span style=\"color: #000000;\">&#40;</span> aCol, <span style=\"color: #ff0000;\">\"subrang\"</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#93;</span><br />WITH OBJECT oCol<br />   :<span style=\"color: #000000;\">bEditValue</span>      := <span style=\"color: #000000;\">&#123;</span> || oQry:<span style=\"color: #000000;\">subrang</span> <span style=\"color: #000000;\">&#125;</span><br />   :<span style=\"color: #000000;\">nEditType</span>       := <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">&#40;</span> lEdt, EDIT_LISTBOX, EDIT_NONE <span style=\"color: #000000;\">&#41;</span><br />   :<span style=\"color: #000000;\">aEditListTxt</span>    := <span style=\"color: #000000;\">&#123;</span> padr<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"UT\"</span>, <span style=\"color: #000000;\">10</span> <span style=\"color: #000000;\">&#41;</span>, padr<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"BR\"</span>, <span style=\"color: #000000;\">10</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br />   :<span style=\"color: #000000;\">bOnPostEdit</span>     := <span style=\"color: #000000;\">&#123;</span> | oCol, xVal, nKey | <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">&#40;</span> nKey == VK_ESCAPE,,<span style=\"color: #000000;\">&#40;</span> oQry:<span style=\"color: #000000;\">subrang</span> := xVal, oQry:<span style=\"color: #000000;\">Save</span><span style=\"color: #000000;\">&#40;</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><br />END<br /><br />oCol := oBrw:<span style=\"color: #000000;\">aCols</span><span style=\"color: #000000;\">&#91;</span> ascan<span style=\"color: #000000;\">&#40;</span> aCol, <span style=\"color: #ff0000;\">\"aud_nuras\"</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#93;</span><br />WITH OBJECT oCol<br />   :<span style=\"color: #000000;\">AddBitmap</span><span style=\"color: #000000;\">&#40;</span> cProgr_pict + <span style=\"color: #ff0000;\">\"on.bmp\"</span>  <span style=\"color: #000000;\">&#41;</span><br />   :<span style=\"color: #000000;\">AddBitmap</span><span style=\"color: #000000;\">&#40;</span> cProgr_pict + <span style=\"color: #ff0000;\">\"off.bmp\"</span> <span style=\"color: #000000;\">&#41;</span><br />   :<span style=\"color: #000000;\">bEditValue</span>      := <span style=\"color: #000000;\">&#123;</span> || oQry:<span style=\"color: #000000;\">aud_nuras</span> <span style=\"color: #000000;\">&#125;</span><br />   :<span style=\"color: #000000;\">bBmpData</span>        := <span style=\"color: #000000;\">&#123;</span> || <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">&#40;</span> oQry:<span style=\"color: #000000;\">aud_nuras</span> == .t., <span style=\"color: #000000;\">1</span>, <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br />   :<span style=\"color: #000000;\">bStrData</span>        := <span style=\"color: #000000;\">&#123;</span> || <span style=\"color: #00C800;\">NIL</span> <span style=\"color: #000000;\">&#125;</span><br />   :<span style=\"color: #000000;\">nEditType</span>       := EDIT_NONE<br />END<br /><br />oCol := oBrw:<span style=\"color: #000000;\">aCols</span><span style=\"color: #000000;\">&#91;</span> ascan<span style=\"color: #000000;\">&#40;</span> aCol, <span style=\"color: #ff0000;\">\"frn_nuras\"</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#93;</span><br />WITH OBJECT oCol<br />   :<span style=\"color: #000000;\">AddBitmap</span><span style=\"color: #000000;\">&#40;</span> cProgr_pict + <span style=\"color: #ff0000;\">\"on.bmp\"</span>  <span style=\"color: #000000;\">&#41;</span><br />   :<span style=\"color: #000000;\">AddBitmap</span><span style=\"color: #000000;\">&#40;</span> cProgr_pict + <span style=\"color: #ff0000;\">\"off.bmp\"</span> <span style=\"color: #000000;\">&#41;</span><br />   :<span style=\"color: #000000;\">bEditValue</span>      := <span style=\"color: #000000;\">&#123;</span> || oQry:<span style=\"color: #000000;\">frn_nuras</span> <span style=\"color: #000000;\">&#125;</span><br />   :<span style=\"color: #000000;\">bBmpData</span>        := <span style=\"color: #000000;\">&#123;</span> || <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">&#40;</span> oQry:<span style=\"color: #000000;\">frn_nuras</span> == .t., <span style=\"color: #000000;\">1</span>, <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br />   :<span style=\"color: #000000;\">nEditType</span>       := EDIT_NONE<br />   :<span style=\"color: #000000;\">bStrData</span>        := <span style=\"color: #000000;\">&#123;</span> || <span style=\"color: #00C800;\">NIL</span> <span style=\"color: #000000;\">&#125;</span><br />END<br /><br />oCol := oBrw:<span style=\"color: #000000;\">aCols</span><span style=\"color: #000000;\">&#91;</span> ascan<span style=\"color: #000000;\">&#40;</span> aCol, <span style=\"color: #ff0000;\">\"invc_nuras\"</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#93;</span><br />WITH OBJECT oCol<br />   :<span style=\"color: #000000;\">AddBitmap</span><span style=\"color: #000000;\">&#40;</span> cProgr_pict + <span style=\"color: #ff0000;\">\"on.bmp\"</span>  <span style=\"color: #000000;\">&#41;</span><br />   :<span style=\"color: #000000;\">AddBitmap</span><span style=\"color: #000000;\">&#40;</span> cProgr_pict + <span style=\"color: #ff0000;\">\"off.bmp\"</span> <span style=\"color: #000000;\">&#41;</span><br />   :<span style=\"color: #000000;\">bEditValue</span>      := <span style=\"color: #000000;\">&#123;</span> || oQry:<span style=\"color: #000000;\">invc_nuras</span> <span style=\"color: #000000;\">&#125;</span><br />   :<span style=\"color: #000000;\">bBmpData</span>        := <span style=\"color: #000000;\">&#123;</span> || <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">&#40;</span> oQry:<span style=\"color: #000000;\">invc_nuras</span> == .t., <span style=\"color: #000000;\">1</span>, <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br />   :<span style=\"color: #000000;\">nEditType</span>       := EDIT_NONE<br />   :<span style=\"color: #000000;\">bStrData</span>        := <span style=\"color: #000000;\">&#123;</span> || <span style=\"color: #00C800;\">NIL</span> <span style=\"color: #000000;\">&#125;</span><br />END<br /><br />oCol := oBrw:<span style=\"color: #000000;\">aCols</span><span style=\"color: #000000;\">&#91;</span> ascan<span style=\"color: #000000;\">&#40;</span> aCol, <span style=\"color: #ff0000;\">\"nav_nuras\"</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#93;</span><br />WITH OBJECT oCol<br />   :<span style=\"color: #000000;\">AddBitmap</span><span style=\"color: #000000;\">&#40;</span> cProgr_pict + <span style=\"color: #ff0000;\">\"on.bmp\"</span>  <span style=\"color: #000000;\">&#41;</span><br />   :<span style=\"color: #000000;\">AddBitmap</span><span style=\"color: #000000;\">&#40;</span> cProgr_pict + <span style=\"color: #ff0000;\">\"off.bmp\"</span> <span style=\"color: #000000;\">&#41;</span><br />   :<span style=\"color: #000000;\">bEditValue</span>      := <span style=\"color: #000000;\">&#123;</span> || oQry:<span style=\"color: #000000;\">nav_nuras</span> <span style=\"color: #000000;\">&#125;</span><br />   :<span style=\"color: #000000;\">bBmpData</span>        := <span style=\"color: #000000;\">&#123;</span> || <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">&#40;</span> oQry:<span style=\"color: #000000;\">nav_nuras</span> == .t., <span style=\"color: #000000;\">1</span>, <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br />   :<span style=\"color: #000000;\">nEditType</span>       := EDIT_NONE<br />   :<span style=\"color: #000000;\">bStrData</span>        := <span style=\"color: #000000;\">&#123;</span> || <span style=\"color: #00C800;\">NIL</span> <span style=\"color: #000000;\">&#125;</span><br />END<br /><br />oCol := oBrw:<span style=\"color: #000000;\">aCols</span><span style=\"color: #000000;\">&#91;</span> ascan<span style=\"color: #000000;\">&#40;</span> aCol, <span style=\"color: #ff0000;\">\"pasel_prad\"</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#93;</span><br />WITH OBJECT oCol<br />   :<span style=\"color: #000000;\">AddBitmap</span><span style=\"color: #000000;\">&#40;</span> cProgr_pict + <span style=\"color: #ff0000;\">\"on.bmp\"</span>  <span style=\"color: #000000;\">&#41;</span><br />   :<span style=\"color: #000000;\">AddBitmap</span><span style=\"color: #000000;\">&#40;</span> cProgr_pict + <span style=\"color: #ff0000;\">\"off.bmp\"</span> <span style=\"color: #000000;\">&#41;</span><br />   :<span style=\"color: #000000;\">bEditValue</span>      := <span style=\"color: #000000;\">&#123;</span> || oQry:<span style=\"color: #000000;\">pasel_prad</span> <span style=\"color: #000000;\">&#125;</span><br />   :<span style=\"color: #000000;\">bBmpData</span>        := <span style=\"color: #000000;\">&#123;</span> || <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">&#40;</span> oQry:<span style=\"color: #000000;\">pasel_prad</span> == .t., <span style=\"color: #000000;\">1</span>, <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br />   :<span style=\"color: #000000;\">nEditType</span>       := EDIT_NONE<br />   :<span style=\"color: #000000;\">bStrData</span>        := <span style=\"color: #000000;\">&#123;</span> || <span style=\"color: #00C800;\">NIL</span> <span style=\"color: #000000;\">&#125;</span><br />END<br /><br />oCol := oBrw:<span style=\"color: #000000;\">aCols</span><span style=\"color: #000000;\">&#91;</span> ascan<span style=\"color: #000000;\">&#40;</span> aCol, <span style=\"color: #ff0000;\">\"pokav_prad\"</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#93;</span><br />WITH OBJECT oCol<br />   :<span style=\"color: #000000;\">AddBitmap</span><span style=\"color: #000000;\">&#40;</span> cProgr_pict + <span style=\"color: #ff0000;\">\"on.bmp\"</span>  <span style=\"color: #000000;\">&#41;</span><br />   :<span style=\"color: #000000;\">AddBitmap</span><span style=\"color: #000000;\">&#40;</span> cProgr_pict + <span style=\"color: #ff0000;\">\"off.bmp\"</span> <span style=\"color: #000000;\">&#41;</span><br />   :<span style=\"color: #000000;\">bEditValue</span>      := <span style=\"color: #000000;\">&#123;</span> || oQry:<span style=\"color: #000000;\">pokav_prad</span> <span style=\"color: #000000;\">&#125;</span><br />   :<span style=\"color: #000000;\">bBmpData</span>        := <span style=\"color: #000000;\">&#123;</span> || <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">&#40;</span> oQry:<span style=\"color: #000000;\">pokav_prad</span> == .t., <span style=\"color: #000000;\">1</span>, <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br />   :<span style=\"color: #000000;\">nEditType</span>       := EDIT_NONE<br />   :<span style=\"color: #000000;\">bStrData</span>        := <span style=\"color: #000000;\">&#123;</span> || <span style=\"color: #00C800;\">NIL</span> <span style=\"color: #000000;\">&#125;</span><br />END<br /><br />oCol := oBrw:<span style=\"color: #000000;\">aCols</span><span style=\"color: #000000;\">&#91;</span> ascan<span style=\"color: #000000;\">&#40;</span> aCol, <span style=\"color: #ff0000;\">\"pastabos_buh\"</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#93;</span><br />WITH OBJECT oCol<br />   :<span style=\"color: #000000;\">nEditType</span>       := <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">&#40;</span> lEdt, EDIT_GET, EDIT_NONE <span style=\"color: #000000;\">&#41;</span><br />   :<span style=\"color: #000000;\">bEditValue</span>      := <span style=\"color: #000000;\">&#123;</span> || oQry:<span style=\"color: #000000;\">pastabos_buh</span> <span style=\"color: #000000;\">&#125;</span><br />   :<span style=\"color: #000000;\">bOnPostEdit</span>     := <span style=\"color: #000000;\">&#123;</span> | oCol, xVal, nKey | <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">&#40;</span> nKey == VK_ESCAPE,,<span style=\"color: #000000;\">&#40;</span> oQry:<span style=\"color: #000000;\">pastabos_buh</span> := xVal, oQry:<span style=\"color: #000000;\">Save</span><span style=\"color: #000000;\">&#40;</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><br />END<br /><br />oCol := oBrw:<span style=\"color: #000000;\">aCols</span><span style=\"color: #000000;\">&#91;</span> ascan<span style=\"color: #000000;\">&#40;</span> aCol, <span style=\"color: #ff0000;\">\"pastabos_zs\"</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#93;</span><br />WITH OBJECT oCol<br />   :<span style=\"color: #000000;\">nEditType</span>       := <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">&#40;</span> lEdt, EDIT_GET, EDIT_NONE <span style=\"color: #000000;\">&#41;</span><br />   :<span style=\"color: #000000;\">bEditValue</span>      := <span style=\"color: #000000;\">&#123;</span> || oQry:<span style=\"color: #000000;\">pastabos_zs</span> <span style=\"color: #000000;\">&#125;</span><br />   :<span style=\"color: #000000;\">bOnPostEdit</span>     := <span style=\"color: #000000;\">&#123;</span> | oCol, xVal, nKey | <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">&#40;</span> nKey == VK_ESCAPE,,<span style=\"color: #000000;\">&#40;</span> oQry:<span style=\"color: #000000;\">pastabos_zs</span> := xVal, oQry:<span style=\"color: #000000;\">Save</span><span style=\"color: #000000;\">&#40;</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><br />END<br /><br />oCol := oBrw:<span style=\"color: #000000;\">aCols</span><span style=\"color: #000000;\">&#91;</span> ascan<span style=\"color: #000000;\">&#40;</span> aCol, <span style=\"color: #ff0000;\">\"pok_lap_mod\"</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#93;</span><br />WITH OBJECT oCol<br />   :<span style=\"color: #000000;\">nEditType</span>       := <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">&#40;</span> lEdt, EDIT_GET, EDIT_NONE <span style=\"color: #000000;\">&#41;</span><br />   :<span style=\"color: #000000;\">bEditValue</span>      := <span style=\"color: #000000;\">&#123;</span> || oQry:<span style=\"color: #000000;\">pok_lap_mod</span> <span style=\"color: #000000;\">&#125;</span><br />   :<span style=\"color: #000000;\">bOnPostEdit</span>     := <span style=\"color: #000000;\">&#123;</span> | oCol, xVal, nKey | <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">&#40;</span> nKey == VK_ESCAPE,,<span style=\"color: #000000;\">&#40;</span> oQry:<span style=\"color: #000000;\">pok_lap_mod</span> := xVal, oQry:<span style=\"color: #000000;\">Save</span><span style=\"color: #000000;\">&#40;</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><br />END<br /><br />WITH OBJECT oBrw<br />   :<span style=\"color: #000000;\">bClrStd</span>       := <span style=\"color: #000000;\">&#123;</span> || <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">&#40;</span> oBrw:<span style=\"color: #000000;\">KeyNo</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> % <span style=\"color: #000000;\">2</span> == <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">&#123;</span> CLR_BLACK, RGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">224</span>, <span style=\"color: #000000;\">236</span>, <span style=\"color: #000000;\">255</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span>, <span style=\"color: #000000;\">&#123;</span> CLR_BLACK, RGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">189</span>, <span style=\"color: #000000;\">211</span>, <span style=\"color: #000000;\">253</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br />   :<span style=\"color: #000000;\">bPopUp</span>        := <span style=\"color: #000000;\">&#123;</span> |oCol| brw_menu<span style=\"color: #000000;\">&#40;</span> oCol <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br />   :<span style=\"color: #000000;\">lRecordSelector</span> := .t.<br />END<br /><br /><span style=\"color: #00C800;\">if</span> len<span style=\"color: #000000;\">&#40;</span> aDgr <span style=\"color: #000000;\">&#41;</span> > <span style=\"color: #000000;\">0</span><br />   <span style=\"color: #00C800;\">for</span> u := <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">to</span> len<span style=\"color: #000000;\">&#40;</span> oBrw:<span style=\"color: #000000;\">aCols</span> <span style=\"color: #000000;\">&#41;</span><br />      oBrw:<span style=\"color: #000000;\">aCols</span><span style=\"color: #000000;\">&#91;</span> u <span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">nWidth</span> := aDgr<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">5</span>, u <span style=\"color: #000000;\">&#93;</span><br />      oBrw:<span style=\"color: #000000;\">aCols</span><span style=\"color: #000000;\">&#91;</span> u <span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">lHide</span>  := aDgr<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">6</span>, u <span style=\"color: #000000;\">&#93;</span><br />   <span style=\"color: #00C800;\">next</span><br /><span style=\"color: #00C800;\">endif</span><br /><br />SetBalloon<span style=\"color: #000000;\">&#40;</span> .T. <span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTONBAR</span> oBar <span style=\"color: #0000ff;\">OF</span> oWnd <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">60</span>, <span style=\"color: #000000;\">60</span> <span style=\"color: #000000;\">2007</span><br /><br /><span style=\"color: #0000ff;\">MENU</span> oPopup <span style=\"color: #0000ff;\">POPUP</span><br />   <span style=\"color: #0000ff;\">MENUITEM</span> <span style=\"color: #ff0000;\">\"Naujas ?rašas\"</span> <span style=\"color: #0000ff;\">ACTION</span> newRec<span style=\"color: #000000;\">&#40;</span> oBrw, oQry, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#41;</span><br />   <span style=\"color: #0000ff;\">MENUITEM</span> <span style=\"color: #ff0000;\">\"Nauji ?rašai iš Excel failo\"</span> <span style=\"color: #0000ff;\">ACTION</span> newRec<span style=\"color: #000000;\">&#40;</span> oBrw, oQry, <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#41;</span><br />   <span style=\"color: #0000ff;\">MENUITEM</span> <span style=\"color: #ff0000;\">\"Nauji ?rašai iš Sukirpimo failo\"</span> <span style=\"color: #0000ff;\">ACTION</span> newRec<span style=\"color: #000000;\">&#40;</span> oBrw, oQry, <span style=\"color: #000000;\">3</span> <span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #0000ff;\">ENDMENU</span><br /><br /><span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #0000ff;\">OF</span> oBar <span style=\"color: #0000ff;\">ACTION</span> newRec<span style=\"color: #000000;\">&#40;</span> oBrw, oQry <span style=\"color: #000000;\">&#41;</span> FILENAME cProgr_pict + <span style=\"color: #ff0000;\">\"Bar<span style=\"color: #000000;\">\\N</span>ew.bmp\"</span> <span style=\"color: #0000ff;\">MENU</span> oPopup <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">&#40;</span> cLg == <span style=\"color: #ff0000;\">\"L\"</span>, <span style=\"color: #ff0000;\">'Naujas'</span>, <span style=\"color: #ff0000;\">'New'</span> <span style=\"color: #000000;\">&#41;</span> TOOLTIP <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">&#40;</span> cLg == <span style=\"color: #ff0000;\">\"L\"</span>, <span style=\"color: #ff0000;\">'Nauji ?rašai'</span>, <span style=\"color: #ff0000;\">'New records'</span> <span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #0000ff;\">OF</span> oBar <span style=\"color: #0000ff;\">ACTION</span> delRec<span style=\"color: #000000;\">&#40;</span> oBrw, oQry <span style=\"color: #000000;\">&#41;</span> FILENAME cProgr_pict + <span style=\"color: #ff0000;\">\"Bar<span style=\"color: #000000;\">\\D</span>elete.bmp\"</span> <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">&#40;</span> cLg == <span style=\"color: #ff0000;\">\"L\"</span>, <span style=\"color: #ff0000;\">'Šalinti'</span>, <span style=\"color: #ff0000;\">'Delete'</span> <span style=\"color: #000000;\">&#41;</span> TOOLTIP <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">&#40;</span> cLg == <span style=\"color: #ff0000;\">\"L\"</span>, <span style=\"color: #ff0000;\">'Šalinti ?rašus'</span>, <span style=\"color: #ff0000;\">'Delete records'</span> <span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #0000ff;\">OF</span> oBar <span style=\"color: #0000ff;\">ACTION</span> excRec<span style=\"color: #000000;\">&#40;</span> oBrw, oQry <span style=\"color: #000000;\">&#41;</span> FILENAME cProgr_pict + <span style=\"color: #ff0000;\">\"Bar<span style=\"color: #000000;\">\\D</span>oc-Excel.bmp\"</span> GROUP <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">&#40;</span> cLg == <span style=\"color: #ff0000;\">\"L\"</span>, <span style=\"color: #ff0000;\">'Excelis'</span>, <span style=\"color: #ff0000;\">'Excel'</span> <span style=\"color: #000000;\">&#41;</span> TOOLTIP <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">&#40;</span> cLg == <span style=\"color: #ff0000;\">\"L\"</span>, <span style=\"color: #ff0000;\">'Eskportas ? Excel?'</span>, <span style=\"color: #ff0000;\">'Export to Excel'</span> <span style=\"color: #000000;\">&#41;</span><br /><br />oBrw:<span style=\"color: #000000;\">CreateFromCode</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />oWnd:<span style=\"color: #000000;\">oClient</span> := oBrw<br /><br /><span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWnd <span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">INIT</span> <span style=\"color: #000000;\">&#40;</span> oBrw:<span style=\"color: #000000;\">GoBottom</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>, oBrw:<span style=\"color: #000000;\">SetFocus</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>, <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">&#40;</span> aWnd<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">5</span> <span style=\"color: #000000;\">&#93;</span> == .t., oWnd:<span style=\"color: #000000;\">Maximize</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>, <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #0000ff;\">VALID</span> <span style=\"color: #000000;\">&#40;</span> brw_save<span style=\"color: #000000;\">&#40;</span> oBrw, cTbl <span style=\"color: #000000;\">&#41;</span>, wnd_save<span style=\"color: #000000;\">&#40;</span> oWnd, cWnd <span style=\"color: #000000;\">&#41;</span>, wnd_end<span style=\"color: #000000;\">&#40;</span> oBrw, oQry <span style=\"color: #000000;\">&#41;</span>, .t. <span style=\"color: #000000;\">&#41;</span> <br /><br /><span style=\"color: #00C800;\">return</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #00C800;\">NIL</span> <span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #00C800;\">function</span> mod_pas<span style=\"color: #000000;\">&#40;</span> aMod, cMod <span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">if</span> empty<span style=\"color: #000000;\">&#40;</span> cMod <span style=\"color: #000000;\">&#41;</span><br />   <span style=\"color: #00C800;\">return</span> .f.<br /><span style=\"color: #00C800;\">endif</span><br /><span style=\"color: #00C800;\">return</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">&#40;</span> ascan<span style=\"color: #000000;\">&#40;</span> aMod, <span style=\"color: #000000;\">&#123;</span> |x| x<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#93;</span> == cMod <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span> <> <span style=\"color: #000000;\">0</span>, .t., .f. <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #00C800;\">function</span> newRec<span style=\"color: #000000;\">&#40;</span> oBrw, oQry, nRez <span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #0000ff;\">MsgInfo</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"naujas irasas ! \"</span> + str<span style=\"color: #000000;\">&#40;</span> nRez <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">return</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #00C800;\">NIL</span> <span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #00C800;\">function</span> delRec<span style=\"color: #000000;\">&#40;</span> oBrw, oQry <span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #0000ff;\">MsgInfo</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"delete record !\"</span> <span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">return</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #00C800;\">NIL</span> <span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #00C800;\">function</span> excRec<span style=\"color: #000000;\">&#40;</span> oBrw, oQry <span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #0000ff;\">MsgInfo</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"eksportas i Exceli !\"</span> <span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">return</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #00C800;\">NIL</span> <span style=\"color: #000000;\">&#41;</span><br /><br /> </div>[/code:1pu46yeh]\n\nAll this outside functions ( mod_pas, newRec, delRec and excRec ) are \"Undefined ...\" <!-- s:( --><img src=\"{SMILIES_PATH}/icon_sad.gif\" alt=\":(\" title=\"Sad\" /><!-- s:( --> . All this complex browse window works fine ! It let me go crazy ( <!-- s:twisted: --><img src=\"{SMILIES_PATH}/icon_twisted.gif\" alt=\":twisted:\" title=\"Twisted Evil\" /><!-- s:twisted: --> ) , why this other functions in scripts are not working . \n\nADDED : I'm suspecting , that this can be related with settings for app.build . Here is mine hbp :\n\n[code=fw:1pu46yeh]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />-inc<br />-incpath=\\a\\fwh\\include<br />-incpath=\\a\\hb32\\include<br /><br />-L\\A\\hb32\\comp\\mingw\\lib <br />-L\\A\\hb32\\lib\\win\\mingw <br />-L\\a\\fwh\\lib<br />-lfivehg <br />-lfivehgc <br />-llibmysqlm<br />-ldolphin<br />-lgtgui <br />-luser32 <br />-lwinspool <br />-lkernel32 <br />-lcomctl32 <br />-lcomdlg32 <br />-lgdi32 <br />-lgdiplus <br />-lole32 <br />-loleaut32 <br />-lpsapi <br />-loledlg <br />-lmfcuia32 <br />-lmsimg32 <br />-lwin32k <br />-lstdc++ <br />-lversion <br />-luuid <br />-lwinmm <br />-lvfw32 <br />-lwsock32 <br />-lhbcommon <br />-lhbcpage <br />-lhbcplr <br />-lhbct <br />-lhbhsx <br />-lhblang <br />-lhbmacro <br />-lhbmainstd <br />-lhbmzip <br />-lodbc32 <br />-lhbpcre <br />-lhbpp <br />-lhbrdd <br />-lhbrtl <br />-lhbsix <br />-lhbtip <br />-lhbusrrdd <br />-lhbvm <br />-lhbwin <br />-lhbzlib <br />-lrddcdx <br />-lrddfpt <br />-lrddntx <br />-lxhb <br />-lpng <br /><br />-oengel.exe<br />-<span style=\"color: #0000ff;\">icon</span>=engel.ico<br /><br />-gui<br />-w3 -es0<br />-ldflag=-Wl,--allow-multiple-definition<br /><br />engel.prg<br />func.prg<br />func_brw.prg<br />func_dsg.prg<br />func_dt.prg<br />tarray.prg<br />engel.rc<br />&nbsp;</div>[/code:1pu46yeh]\n\nWith best regards !", "time": "18:49", "topic": "Again about scripting ... HB_CompileBuf", "username": "Rimantas" } ]
Again about scripting ... HB_CompileBuf
[ { "date": "2013-03-12", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote:2gszsk6s]All this outside functions ( mod_pas, newRec, delRec and excRec ) are \"Undefined ...\"[/quote:2gszsk6s]\n\nHave you declared them as extern ?", "time": "20:41", "topic": "Again about scripting ... HB_CompileBuf", "username": "Antonio Linares" } ]
Again about scripting ... HB_CompileBuf
[ { "date": "2013-03-12", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"Antonio Linares\":30ufkwb5][quote:30ufkwb5]All this outside functions ( mod_pas, newRec, delRec and excRec ) are \"Undefined ...\"[/quote:30ufkwb5]\n\nHave you declared them as extern ?[/quote:30ufkwb5]\n\nAfter this you sugestion I tried that :\n\n#include \"fivewin.ch\"\n#include \"xbrowse.ch\"\n#include \"tdolphin.ch\"\n#include \"dtpicker.ch\"\n\nexternal mod_pas\nexternal newRec\nexternal delRec\nexternal excRec\n\nFUNCTION uzsak()\n...\n\n Sorry , the same result ...\n\n Antonio , can you direct where I can insert direction for minGw build ( \\samples\\buildg.bat ) ? Daniels TDolphin require that setting : -ldflag=-Wl,--allow-multiple-definition . I'll try that with your buildg.bat and only needs to add dolphins libs . It will be clear if this is a problem of settings for build ...", "time": "21:05", "topic": "Again about scripting ... HB_CompileBuf", "username": "Rimantas" } ]
Again about scripting ... HB_CompileBuf
[ { "date": "2013-03-12", "forum": "FiveWin for Harbour/xHarbour", "text": "In buildg.bat there are only two places where gcc is called. Those flags should be provided there.", "time": "22:07", "topic": "Again about scripting ... HB_CompileBuf", "username": "Antonio Linares" } ]
Again about scripting ... HB_CompileBuf
[ { "date": "2013-03-13", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"Antonio Linares\":3390er1h]Rimantas,\nPlease ty to provide me a simple example like this one that reproduces your error, thanks\n[/quote:3390er1h]\n\n+1\n\nyou could use a tdolphin server to make a sample that we can build", "time": "01:40", "topic": "Again about scripting ... HB_CompileBuf", "username": "Daniel Garcia-Gil" } ]
Again about scripting ... HB_CompileBuf
[ { "date": "2013-03-13", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"Antonio Linares\":iqdcz8wx]In buildg.bat there are only two places where gcc is called. Those flags should be provided there.[/quote:iqdcz8wx]\n\nAntonio, excuse , but can you simple to point where I can to add this and how ? Yes, gcc is in 2 lines ( with or without .rc ) . At this moment I don't know how to let gcc listen to this commands . .hbp contains like that :\n-ldflag=-Wl,--allow-multiple-definition . \n\nBuildg.bat \nif not exist %1.rc %mingw%\\bin\\gcc -o%1.exe %1.o -ldflag=-Wl --allow-multiple-definition -Wall -s -mwindows -L%mingw%\\lib -L%hlibs% -L%fwh%\\lib -mno-cygwin -Wl,--start-group -lfivehg -lfivehgc -llibmysqlm -ldolphin -lgtgui -luser32 -lwinspool -lkernel32 -lcomctl32 -lcomdlg32 -lgdi32 -lgdiplus -lole32 -loleaut32 -lpsapi -loledlg -lmfcuia32 -lmsimg32 -lwin32k -lstdc++ -lversion -luuid -lwinmm -lvfw32 -lwsock32 -lhbcommon -lhbcpage -lhbcplr -lhbct -lhbhsx -lhblang -lhbmacro -lhbmainstd -lhbmzip -lodbc32 -lhbpcre -lhbpp -lhbrdd -lhbrtl -lhbsix -lhbsqlit3 -lhbtip -lhbusrrdd -lhbvm -lhbwin -lhbzlib -lrddcdx -lrddfpt -lrddntx -lxhb -lpng -Wl,--end-group\n\nthen I get an error : unrecognized option --allow-multiple-definition . If let with comma : -ldflag=-Wl,--allow-multiple-definition , then return : can't find -ldflag=-Wl,--allow-multiple-definition ... <!-- s:( --><img src=\"{SMILIES_PATH}/icon_sad.gif\" alt=\":(\" title=\"Sad\" /><!-- s:( -->\n\n ADDED : Ok, after some search found that it's need only -Wl,--allow-multiple-definition . Now it's linking ... <!-- s:) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":)\" title=\"Smile\" /><!-- s:) -->", "time": "06:51", "topic": "Again about scripting ... HB_CompileBuf", "username": "Rimantas" } ]
Again about scripting ... HB_CompileBuf
[ { "date": "2013-03-13", "forum": "FiveWin for Harbour/xHarbour", "text": "Rimantas,\n\n-Wl is already used by buildg.bat, so just need to add --allow-multiple-definition\n\nTry this:\ngcc -o%1.exe %1.o -Wall -s -mwindows -L%mingw%\\lib -L%hlibs% -L%fwh%\\lib -mno-cygwin [color=#FF0000:1ky6ixmf]-Wl --allow-multiple-definition[/color:1ky6ixmf],--start-group -lfivehg -lfivehgc -lgtgui -luser32 -lwinspool -lkernel32 -lcomctl32 -lcomdlg32 -lgdi32 -lgdiplus -lole32 -loleaut32 -lpsapi -loledlg -lmfcuia32 -lmsimg32 -lwin32k -lstdc++ -lversion -luuid -lwinmm -lvfw32 -lwsock32 -lhbcommon -lhbcpage -lhbcplr -lhbct -lhbdebug -lhbhsx -lhblang -lhbmacro -lhbmainstd -lhbmzip -lodbc32 -lhbpcre -lhbpp -lhbrdd -lhbrtl -lhbsix -lhbsqlit3 -lhbtip -lhbusrrdd -lhbvm -lhbwin -lhbzlib -lrddcdx -lrddfpt -lrddntx -lxhb -lpng -Wl,--end-group", "time": "07:01", "topic": "Again about scripting ... HB_CompileBuf", "username": "Antonio Linares" } ]
Again about scripting ... HB_CompileBuf
[ { "date": "2013-03-13", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio , after some search at last I can say some results . Some functions inside one scripts can work if script have only function or dialog . This will not work if script main control will be WINDOW ...\n\nThis code works fine :\n\n[code=fw:2oaqgmfi]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"FiveWin.ch\"</span><br /><span style=\"color: #00C800;\">function</span> dlg<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />   <span style=\"color: #00C800;\">local</span> oDlg<br />   Secnd<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />   <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">TITLE</span> <span style=\"color: #ff0000;\">\"A dialog\"</span> ;<br />      GRADIENT <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">1</span>, CLR_BLUE, RGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">120</span>, <span style=\"color: #000000;\">100</span>, <span style=\"color: #000000;\">200</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span> ;<br />      <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">500</span>, <span style=\"color: #000000;\">300</span><br />   @ <span style=\"color: #000000;\">7</span>, <span style=\"color: #000000;\">18</span> <span style=\"color: #0000ff;\">BTNBMP</span> <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Ok\"</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">40</span>, <span style=\"color: #000000;\">15</span> <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #000000;\">&#40;</span> Secnd<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</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> <span style=\"color: #000000;\">2007</span><br />   <span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">CENTERED</span><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /><br /><span style=\"color: #00C800;\">static</span> <span style=\"color: #00C800;\">function</span> secnd<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;\">\"Second\"</span> <span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">return</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #00C800;\">NIL</span> <span style=\"color: #000000;\">&#41;</span><br /> </div>[/code:2oaqgmfi]\n\nChange some code - instead dialog -> window \n\n[code=fw:2oaqgmfi]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"FiveWin.ch\"</span><br /><span style=\"color: #00C800;\">function</span> dlg<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />   <span style=\"color: #00C800;\">local</span> oDlg<br />   Secnd<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />   <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">WINDOW</span> oDlg <span style=\"color: #0000ff;\">TITLE</span> <span style=\"color: #ff0000;\">\"A window\"</span> <span style=\"color: #0000ff;\">FROM</span> <span style=\"color: #000000;\">10</span>, <span style=\"color: #000000;\">10</span> <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #000000;\">400</span>, <span style=\"color: #000000;\">200</span><br />   @ <span style=\"color: #000000;\">7</span>, <span style=\"color: #000000;\">18</span> <span style=\"color: #0000ff;\">BTNBMP</span> <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Ok\"</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">40</span>, <span style=\"color: #000000;\">15</span> <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #000000;\">&#40;</span> Secnd<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</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> <span style=\"color: #000000;\">2007</span><br />   <span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">WINDOW</span> oDlg<br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /><br /><span style=\"color: #00C800;\">static</span> <span style=\"color: #00C800;\">function</span> secnd<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;\">\"Second\"</span> <span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">return</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #00C800;\">NIL</span> <span style=\"color: #000000;\">&#41;</span><br /> </div>[/code:2oaqgmfi]\n\nThis alreday will return error , then you will click in button \"OK\" ... Note that the first time , before window , Secnd() function works . But after window , alreday no ...\n\nSo with windows scripts with some function , which call from window control , can't work ? \n\nWith best regards !", "time": "13:45", "topic": "Again about scripting ... HB_CompileBuf", "username": "Rimantas" } ]
Again about scripting ... HB_CompileBuf
[ { "date": "2013-03-13", "forum": "FiveWin for Harbour/xHarbour", "text": "Rimantas,\n\nwindows are non modal, thats why they don't work <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->\n\nThe execution continues and the script ends", "time": "13:51", "topic": "Again about scripting ... HB_CompileBuf", "username": "Antonio Linares" } ]
Again about scripting ... HB_CompileBuf
[ { "date": "2013-03-13", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"Antonio Linares\":7rwl1i7k]Rimantas,\n\nwindows are non modal, thats why they don't work <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->\n\nThe execution continues and the script ends[/quote:7rwl1i7k]\n\n<!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) --> ... but windows it leaves , not close ... So any solution for that not exist ?", "time": "14:57", "topic": "Again about scripting ... HB_CompileBuf", "username": "Rimantas" } ]
Again about scripting ... HB_CompileBuf
[ { "date": "2013-03-13", "forum": "FiveWin for Harbour/xHarbour", "text": "the window remains opened because it belongs to the operating system, not to the PRG <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->\n\nTry this:\n\nlocal lExit := .F.\n\n...\n\nACTIVATE WINDOW oWnd\n\nStopUntil( { || lExit } )\n\nFrom the window, change lExit to .T. to finally exit.", "time": "16:18", "topic": "Again about scripting ... HB_CompileBuf", "username": "Antonio Linares" } ]
Again about scripting ... HB_CompileBuf
[ { "date": "2013-03-13", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"Antonio Linares\":nbwitwtc]the window remains opened because it belongs to the operating system, not to the PRG <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->\n\nTry this:\n\nlocal lExit := .F.\n...\nACTIVATE WINDOW oWnd\nStopUntil( { || lExit } )\n\nFrom the window, change lExit to .T. to finally exit.[/quote:nbwitwtc]\n\nWwoooowwww ! And that is working ! <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D --> Very fine ! So all power of script we can use now with that . Just to ensure - this StopUntil - do not have any hiden surprises ( mem consump as for sample ) ?\n\n Thanks for solution ! <!-- s:) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":)\" title=\"Smile\" /><!-- s:) -->", "time": "17:18", "topic": "Again about scripting ... HB_CompileBuf", "username": "Rimantas" } ]
Again about scripting ... HB_CompileBuf
[ { "date": "2013-03-13", "forum": "FiveWin for Harbour/xHarbour", "text": "Rimantas,\n\nDo you think that I would advise a solution with \"hiden surprises\" ?\n\nI think I talk very clear always, and if there is a problem, I always warn about it. Lots of users trust me for so many years, and surely is because I have proved to be serious and professional", "time": "17:22", "topic": "Again about scripting ... HB_CompileBuf", "username": "Antonio Linares" } ]
Again about scripting ... HB_CompileBuf
[ { "date": "2013-03-13", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"Antonio Linares\":3sdlsdqw]Rimantas,\n\nDo you think that I would advise a solution with \"hiden surprises\" ?\n\nI think I talk very clear always, and if there is a problem, I always warn about it. Lots of users trust me for so many years, and surely is because I have proved to be serious and professional[/quote:3sdlsdqw]\n\nExcuse me , Antonio . I don't have that in mind . Simply I was collided that other solutions , like StopUntil in this situation , are working in other manier - loops and etc and it was eating mem . But that in earliers clipper + vb times . Excuse me if I insulted you . I'm not in doubt about you , that is true .", "time": "17:49", "topic": "Again about scripting ... HB_CompileBuf", "username": "Rimantas" } ]
Again about scripting ... HB_CompileBuf
[ { "date": "2013-03-13", "forum": "FiveWin for Harbour/xHarbour", "text": "There should be no problems using that function.\n\nThe FWH print preview uses it <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->", "time": "19:06", "topic": "Again about scripting ... HB_CompileBuf", "username": "Antonio Linares" } ]
Again about scripting ... HB_CompileBuf
[ { "date": "2013-03-13", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"Antonio Linares\":20vwi5ln]There should be no problems using that function.\n\nThe FWH print preview uses it <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->[/quote:20vwi5ln]\n\nThank you Antonio ! Now scripts have a full power with that . It's very fine . I can to plan to build core exe , menus with directions prgs . It's really fine !", "time": "19:20", "topic": "Again about scripting ... HB_CompileBuf", "username": "Rimantas" } ]
Again about scripting ... HB_CompileBuf
[ { "date": "2012-03-22", "forum": "FiveWin for Harbour/xHarbour", "text": "Hi;\n\nAfter a few months I start to catch up, see if I start in a few weeks of full again this programming, which lately has been a love-hate.\n\nI created a blog where I will be leaving the sources that release. (On the blog I have some youtube videos all know but for me, low morale these months, I have been motivated to return to this world for pleasure and not work.)\n[url:3c70tmel]http&#58;//javierlloris&#46;blogspot&#46;com&#46;es/[/url:3c70tmel]\n\na greeting\nJLL", "time": "22:17", "topic": "Again for these worlds.", "username": "jll-fwh" } ]
Again for these worlds.
[ { "date": "2012-03-23", "forum": "FiveWin for Harbour/xHarbour", "text": "JLL,\n\nWelcome aboard, nice to see you here again <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->", "time": "02:41", "topic": "Again for these worlds.", "username": "Antonio Linares" } ]
Again for these worlds.
[ { "date": "2009-10-19", "forum": "FiveWin for Harbour/xHarbour", "text": "Hi ,\n\n It seems that I can't understand how to insert a new BLANK line in xBrowse . xBrose is working with TDataBase object . In tDataBase class exist method Blank() , but I can't to add a new blank line to xBrowse ... Is this possible ?\n \n Many thanks for any help in advance ...", "time": "17:13", "topic": "Again xBrowse and new line from TDatabase", "username": "Rimantas" } ]
Again xBrowse and new line from TDatabase
[ { "date": "2009-10-19", "forum": "FiveWin for Harbour/xHarbour", "text": "Rimintas,\n\nThat is one of the problems I was trying to explain. You can add a blank record to a TDatabase object but you cannot display it in the browse. Then blank is just an empty aBuffer so you cannot see it by doing a goBottom() because there is no blank record. Going to the bottom will load that last record into aBuffer for display which is not what you want.\n\nSo whether you use a database object or not you will have to add a new blank record to get a blank record to display in the browse. Then if the user decides not to save the new record you will have to delete it.\n\nAs I mentioned before this is one reason it is so much easier to use a dialog for record editing. With a database object you can edit a blank buffer and thus only if the user wants to save the record is a new record added to the database.\n\nJames", "time": "17:53", "topic": "Again xBrowse and new line from TDatabase", "username": "James Bott" } ]
Again xBrowse and new line from TDatabase
[ { "date": "2009-10-19", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"James Bott\":1a3kjicu]Rimintas,\n\nThat is one of the problems I was trying to explain. You can add a blank record to a TDatabase object but you cannot display it in the browse. Then blank is just an empty aBuffer so you cannot see it by doing a goBottom() because there is no blank record. Going to the bottom will load that last record into aBuffer for display which is not what you want.\n\nSo whether you use a database object or not you will have to add a new blank record to get a blank record to display in the browse. Then if the user decides not to save the new record you will have to delete it.\n\nAs I mentioned before this is one reason it is so much easier to use a dialog for record editing. With a database object you can edit a blank buffer and thus only if the user wants to save the record is a new record added to the database.\n\nJames[/quote:1a3kjicu]\n\n James , my name is Rimantas ... <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->\n\n Maybe you are right ... <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) --> But I hope that this can be solved ... In mine opinion , dialogs for inputs of new records isn't a good way . In mine main workplace I'm working with Microsoft Bussines Solution - Axapta , so I can compare some technologies . Of course , the database here is Oracle and here programmatically is done that grid can show a new blank record , because any SQL can do that . You can refuse from the new record without any risk , until \"ttsbegin\" and \"ttscommit\" transactions aren't running or save new record in database . Of course SQL technologies differs from DBF's , sorry . But I'm not believing that xBrowse can't to solve a such small problem ... <!-- s:) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":)\" title=\"Smile\" /><!-- s:) --> . I hope that Antonio will answer or will give some good ideas how to do that ... <!-- s:wink: --><img src=\"{SMILIES_PATH}/icon_wink.gif\" alt=\":wink:\" title=\"Wink\" /><!-- s:wink: --> . So why use Blank() in TDatabase if you can't add this in browse ? Only for input dialogs ?\n\n Regards !", "time": "18:25", "topic": "Again xBrowse and new line from TDatabase", "username": "Rimantas" } ]
Again xBrowse and new line from TDatabase
[ { "date": "2009-10-19", "forum": "FiveWin for Harbour/xHarbour", "text": "Hello Rimantas,\n\nmaybe you can - what I do often – read your records into an array and then work with this array and xBrowse.\nI mean then you have something similar to a recordSet.\nBest regards,\nOtto", "time": "19:23", "topic": "Again xBrowse and new line from TDatabase", "username": "Otto" } ]
Again xBrowse and new line from TDatabase
[ { "date": "2009-10-19", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"Otto\":13110y42]Hello Rimantas,\n\nmaybe you can - what I do often – read your records into an array and then work with this array and xBrowse.\nI mean then you have something similar to a recordSet.\nBest regards,\nOtto[/quote:13110y42]\n\n Hello Otto ,\n\n Interesting idea ... But , as I can understand , this can be problem with a big table , or not ? \n\n Regards !", "time": "19:59", "topic": "Again xBrowse and new line from TDatabase", "username": "Rimantas" } ]
Again xBrowse and new line from TDatabase
[ { "date": "2009-10-19", "forum": "FiveWin for Harbour/xHarbour", "text": "Here is a small sample. Not perfect, but can be improved upon. This sample uses the sales.dbf in the fwh\\samples folder.\n\nThis is the logic I was using in the DOS-Clipper days. The skip block here is adopted from samples provided by Clipper for DBU and Browse in their sample folder. This needs to be improved but this is a working sample with a few minor bugs to be resolved.\n[code=fw:13k9nbqj]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"FiveWin.Ch\"</span><br /><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"ord.ch\"</span><br /><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"xbrowse.ch\"</span><br /><br />REQUEST DBFCDX<br /><br /><span style=\"color: #00C800;\">static</span> aNew<br /><span style=\"color: #00C800;\">static</span> lAppend := .f.<br /><br /><span style=\"color: #B900B9;\">//------------------------------------------------------------------//</span><br /><br /><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> oDlg, oBrw<br /><br />&nbsp; &nbsp;USE SALES <span style=\"color: #00C800;\">NEW</span> EXCLUSIVE<br /><br />&nbsp; &nbsp;aNew &nbsp;:= Array<span style=\"color: #000000;\">&#40;</span> Sales-><span style=\"color: #000000;\">&#40;</span> FCount<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;BlankArray<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">440</span>,<span style=\"color: #000000;\">440</span> <span style=\"color: #0000ff;\">PIXEL</span><br /><br />&nbsp; &nbsp;@ <span style=\"color: #000000;\">10</span>,<span style=\"color: #000000;\">10</span> <span style=\"color: #0000ff;\">XBROWSE</span> oBrw <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">200</span>,<span style=\"color: #000000;\">200</span> <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">OF</span> oDlg ;<br />&nbsp; &nbsp; &nbsp; COLUMNS <span style=\"color: #ff0000;\">'Date'</span>, <span style=\"color: #ff0000;\">'Client'</span>, <span style=\"color: #ff0000;\">'Article'</span> ;<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">ALIAS</span> <span style=\"color: #ff0000;\">'SALES'</span> LINES CELL FASTEDIT<br /><br />&nbsp; &nbsp;oBrw:<span style=\"color: #000000;\">aCols</span><span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">bEditValue</span> := <span style=\"color: #000000;\">&#123;</span> |x| <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">&#40;</span> x == <span style=\"color: #00C800;\">nil</span>, <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">&#40;</span> Sales-><span style=\"color: #000000;\">&#40;</span> RecNo<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> > LastRec<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span>, aNew<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#93;</span>, Sales->Date <span style=\"color: #000000;\">&#41;</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">&#40;</span> Sales-><span style=\"color: #000000;\">&#40;</span> RecNo<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> > LastRec<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span>, aNew<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#93;</span> := x, Sales->Date := x <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br /><br />&nbsp; &nbsp;oBrw:<span style=\"color: #000000;\">aCols</span><span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">bEditValue</span> := <span style=\"color: #000000;\">&#123;</span> |x| <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">&#40;</span> x == <span style=\"color: #00C800;\">nil</span>, <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">&#40;</span> Sales-><span style=\"color: #000000;\">&#40;</span> RecNo<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> > LastRec<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span>, aNew<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#93;</span>, Sales->Client <span style=\"color: #000000;\">&#41;</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">&#40;</span> Sales-><span style=\"color: #000000;\">&#40;</span> RecNo<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> > LastRec<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span>, aNew<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#93;</span> := x, Sales->Client := x <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br /><br />&nbsp; &nbsp;oBrw:<span style=\"color: #000000;\">aCols</span><span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">3</span> <span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">bEditValue</span> := <span style=\"color: #000000;\">&#123;</span> |x| <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">&#40;</span> x == <span style=\"color: #00C800;\">nil</span>, <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">&#40;</span> Sales-><span style=\"color: #000000;\">&#40;</span> RecNo<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> > LastRec<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span>, aNew<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">3</span> <span style=\"color: #000000;\">&#93;</span>, Sales->Article <span style=\"color: #000000;\">&#41;</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">&#40;</span> Sales-><span style=\"color: #000000;\">&#40;</span> RecNo<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> > LastRec<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span>, aNew<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">3</span> <span style=\"color: #000000;\">&#93;</span> := x, Sales->Article := x <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br /><br />&nbsp; &nbsp;AEval<span style=\"color: #000000;\">&#40;</span> oBrw:<span style=\"color: #000000;\">aCols</span>, <span style=\"color: #000000;\">&#123;</span> |o| o:<span style=\"color: #000000;\">nEditType</span> := EDIT_GET <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;AEval<span style=\"color: #000000;\">&#40;</span> oBrw:<span style=\"color: #000000;\">aCols</span>, <span style=\"color: #000000;\">&#123;</span> |o| o:<span style=\"color: #000000;\">bOnChange</span> := <span style=\"color: #000000;\">&#123;</span> || OnChange<span style=\"color: #000000;\">&#40;</span> oBrw <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;ADD <span style=\"color: #0000ff;\">TO</span> oBrw <span style=\"color: #00C800;\">DATA</span> RecNo<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> HEADER <span style=\"color: #ff0000;\">'RecNo'</span><br /><br />&nbsp; &nbsp;oBrw:<span style=\"color: #000000;\">bSkip</span> &nbsp; &nbsp; := <span style=\"color: #000000;\">&#123;</span> |n| Sales-><span style=\"color: #000000;\">&#40;</span> NewSkipper<span style=\"color: #000000;\">&#40;</span> n <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br />&nbsp; &nbsp;oBrw:<span style=\"color: #000000;\">bKeyCount</span> := <span style=\"color: #000000;\">&#123;</span> || Sales-><span style=\"color: #000000;\">&#40;</span> LastRec<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> + <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">&#40;</span> lAppend, <span style=\"color: #000000;\">1</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br />&nbsp; &nbsp;oBrw:<span style=\"color: #000000;\">bKeyNo</span> &nbsp; &nbsp;:= <span style=\"color: #000000;\">&#123;</span> || Sales-><span style=\"color: #000000;\">&#40;</span> RecNo<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br />&nbsp; &nbsp;oBrw:<span style=\"color: #000000;\">bPastEof</span> &nbsp;:= <span style=\"color: #000000;\">&#123;</span> || <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">&#40;</span> ! Eof<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>, <span style=\"color: #000000;\">&#40;</span> lAppend := .t., BlankArray<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>, oBrw:<span style=\"color: #000000;\">GoDown</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>, oBrw:<span style=\"color: #000000;\">KeyCount</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span>, <span style=\"color: #00C800;\">nil</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br />&nbsp; &nbsp;oBrw:<span style=\"color: #000000;\">bChange</span> &nbsp; := <span style=\"color: #000000;\">&#123;</span> || <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">&#40;</span> lAppend .and. ! Eof<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>, <span style=\"color: #000000;\">&#40;</span> lAppend := .f., BlankArray<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>, oBrw:<span style=\"color: #0000ff;\">Refresh</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span>, <span style=\"color: #00C800;\">nil</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br /><br />&nbsp; &nbsp;oBrw:<span style=\"color: #000000;\">bRClicked</span> := <span style=\"color: #000000;\">&#123;</span> || <span style=\"color: #0000ff;\">xbrowse</span><span style=\"color: #000000;\">&#40;</span> anew <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br /><br />&nbsp; &nbsp;oBrw:<span style=\"color: #000000;\">CreateFromCode</span><span style=\"color: #000000;\">&#40;</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 />&nbsp; &nbsp;CLOSE SALES<br /><br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #B900B9;\">//------------------------------------------------------------------//</span><br /><br /><span style=\"color: #0000ff;\">init</span> procedure PrgInit<br /><br />&nbsp; &nbsp; SET DATE ITALIAN<br />&nbsp; &nbsp; SET CENTURY <span style=\"color: #0000ff;\">ON</span><br />&nbsp; &nbsp; SET EPOCH <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #0000ff;\">YEAR</span><span style=\"color: #000000;\">&#40;</span>DATE<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">-50</span><br />&nbsp; &nbsp; SET DELETED <span style=\"color: #0000ff;\">ON</span><br />&nbsp; &nbsp; SET EXCLUSIVE OFF<br /><br />&nbsp; &nbsp; RDDSetDefault<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">'DBFCDX'</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; SET OPTIMIZE <span style=\"color: #0000ff;\">ON</span><br /><br /><span style=\"color: #00C800;\">return</span><br /><br /><span style=\"color: #B900B9;\">//------------------------------------------------------------------//</span><br /><br />exit procedure PrgExit<br /><br />&nbsp; &nbsp; SET RESOURCES <span style=\"color: #0000ff;\">TO</span><br /><br /><span style=\"color: #00C800;\">return</span><br /><br /><span style=\"color: #B900B9;\">//------------------------------------------------------------------//</span><br /><br /><span style=\"color: #00C800;\">static</span> <span style=\"color: #00C800;\">function</span> NewSkipper<span style=\"color: #000000;\">&#40;</span> nSkip <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> nSkipped := <span style=\"color: #000000;\">0</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">DEFAULT</span> nSkip &nbsp;:= <span style=\"color: #000000;\">1</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">if</span> nSkip == <span style=\"color: #000000;\">0</span><br /><span style=\"color: #B900B9;\">// &nbsp; &nbsp; &nbsp;DbSkip( 0 )</span><br />&nbsp; &nbsp;elseif nSkip > <span style=\"color: #000000;\">0</span><br /><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">do</span> <span style=\"color: #00C800;\">while</span> nSkipped < nSkip .and. ! Eof<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;DbSkip<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">if</span> Eof<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">if</span> lAppend<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nSkipped++<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">else</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;DbSkip<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">-1</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">endif</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; exit<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">endif</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nSkipped++<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">enddo</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">else</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">do</span> <span style=\"color: #00C800;\">while</span> nSkipped > nSkip<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;DbSkip<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">-1</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">if</span> Bof<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; DbGoTop<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Exit<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">else</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nSkipped--<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">endif</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">enddo</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">endif</span><br /><br /><span style=\"color: #00C800;\">return</span> nSkipped<br /><br /><span style=\"color: #B900B9;\">//------------------------------------------------------------------//</span><br /><br /><span style=\"color: #00C800;\">static</span> <span style=\"color: #00C800;\">function</span> BlankArray<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> n<br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">for</span> n := <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">to</span> Len<span style=\"color: #000000;\">&#40;</span> aNew <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; aNew<span style=\"color: #000000;\">&#91;</span> n <span style=\"color: #000000;\">&#93;</span> &nbsp;:= Blank<span style=\"color: #000000;\">&#40;</span> Sales-><span style=\"color: #000000;\">&#40;</span> FieldGet<span style=\"color: #000000;\">&#40;</span> n <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">next</span> n<br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /><br /><span style=\"color: #B900B9;\">//------------------------------------------------------------------//</span><br /><br /><span style=\"color: #00C800;\">static</span> <span style=\"color: #00C800;\">function</span> OnChange<span style=\"color: #000000;\">&#40;</span> oBrw <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">if</span> Sales-><span style=\"color: #000000;\">&#40;</span> Eof<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">if</span> ! Empty<span style=\"color: #000000;\">&#40;</span> aNew<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#41;</span> .and. ! Empty<span style=\"color: #000000;\">&#40;</span> aNew<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Sales-><span style=\"color: #000000;\">&#40;</span> DbAppend<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Sales->Date := aNew<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#93;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Sales->Client := aNew<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#93;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Sales->Article := aNew<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">3</span> <span style=\"color: #000000;\">&#93;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oBrw:<span style=\"color: #000000;\">GoBottom</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oBrw:<span style=\"color: #0000ff;\">Refresh</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">endif</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">endif</span><br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /><br /><span style=\"color: #B900B9;\">//------------------------------------------------------------------//</span><br /><br />&nbsp;</div>[/code:13k9nbqj]", "time": "20:03", "topic": "Again xBrowse and new line from TDatabase", "username": "nageswaragunupudi" } ]
Again xBrowse and new line from TDatabase
[ { "date": "2009-10-19", "forum": "FiveWin for Harbour/xHarbour", "text": "Rao,\n\nGood example. I was just thinking about that a similar thing could be done with a subclass of TDatabase.\n\nOne problem I see with your example is that it will only work with databases in natural order.\n\nRegards,\nJames", "time": "20:19", "topic": "Again xBrowse and new line from TDatabase", "username": "James Bott" } ]
Again xBrowse and new line from TDatabase
[ { "date": "2009-10-19", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"James Bott\":2vs0cd2b]Rao,\n\nGood example. I was just thinking about that a similar thing could be done with a subclass of TDatabase.\n\nOne problem I see with your example is that it will only work with databases in natural order.\n\nRegards,\nJames[/quote:2vs0cd2b]\n\nYes. This is a quick sample. We can improve it. I felt it too much to handle the index issues right now. Once the basic logic falls in place, it can be extended. Still there are one or two bugs in up and down navigation.\n\nIt is really worthwhile, if you can bring in similar improvement in your TData and FWin brings it in TDataBase class.\nNo doubt, some effort is required, but can be done.\n\nAs you suggested, we can probably start experimenting with a subclass of TDataBase", "time": "20:28", "topic": "Again xBrowse and new line from TDatabase", "username": "nageswaragunupudi" } ]
Again xBrowse and new line from TDatabase
[ { "date": "2009-10-19", "forum": "FiveWin for Harbour/xHarbour", "text": "Rao,\n\nActually, it is easy using TData. TData has an optional subclass that automatically recycles deleted records, so it is no problem to add and then delete a record (the most deleted records you would ever have is one). No database packing ever required.\n\nJames", "time": "23:29", "topic": "Again xBrowse and new line from TDatabase", "username": "James Bott" } ]
Again xBrowse and new line from TDatabase
[ { "date": "2009-10-20", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"James Bott\":3r42i1c5]Rao,\n\nActually, it is easy using TData. TData has an optional subclass that automatically recycles deleted records, so it is no problem to add and then delete a record (the most deleted records you would ever have is one). No database packing ever required.\n\nJames[/quote:3r42i1c5]\nThis is a very good feature. We don't really have to bother about inserting a ghost row.", "time": "03:46", "topic": "Again xBrowse and new line from TDatabase", "username": "nageswaragunupudi" } ]
Again xBrowse and new line from TDatabase
[ { "date": "2009-10-20", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"nageswaragunupudi\":3wwksla4][quote=\"James Bott\":3wwksla4]\n\nYes. This is a quick sample. We can improve it. I felt it too much to handle the index issues right now. Once the basic logic falls in place, it can be extended. Still there are one or two bugs in up and down navigation.\n\nIt is really worthwhile, if you can bring in similar improvement in your TData and FWin brings it in TDataBase class.\nNo doubt, some effort is required, but can be done.\n\nAs you suggested, we can probably start experimenting with a subclass of TDataBase[/quote:3wwksla4][/quote:3wwksla4]\n\n In mine opinion it's needfull to do subclass in xBrowse ... <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) --> . Here is static class - TXBrRow() . This is used only in CurrentRow() method . I can image that this class can be extended as for a new blank line , a la array line . Then extend in xBrowse class Paints methods , some DATAs for a new row condition and codeblocks ... It seems that I'll try to do something ... <!-- s:) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":)\" title=\"Smile\" /><!-- s:) -->\n\n Regards !", "time": "06:24", "topic": "Again xBrowse and new line from TDatabase", "username": "Rimantas" } ]
Again xBrowse and new line from TDatabase
[ { "date": "2009-10-20", "forum": "FiveWin for Harbour/xHarbour", "text": ">>\n . Here is static class - TXBrRow() . This is used only in CurrentRow() method \n>>\nThe purpose of this class is different. I was intended to help editing a row in a Dialog and not for inline editing. Particularly to solve the occasional problem of the underlying browse's record pointer getting disturbed due refresh reasons, while a particular record is being edited in a dialog in the foreground.", "time": "07:27", "topic": "Again xBrowse and new line from TDatabase", "username": "nageswaragunupudi" } ]
Again xBrowse and new line from TDatabase
[ { "date": "2009-10-20", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote:3jimzx9j]As I mentioned before this is one reason it is so much easier to use a dialog for record editing. [/quote:3jimzx9j]\n\n[quote:3jimzx9j]In mine opinion , dialogs for inputs of new records isn't a good way . I[/quote:3jimzx9j]\n\n[quote:3jimzx9j]maybe you can - what I do often – read your records into an array and then work with this array and xBrowse.\nI mean then you have something similar to a recordSet.[/quote:3jimzx9j]\n\nIn my clipper app, for many years I am using the technique of having a temporary database for grid style data entry. I insert blank records to the DBF for new grid lines and if the user wants to cancel the new entry, I delete the record from the DBF, . This is working fine here in multi user environment. Just an idea.\n\nRegards\nAnser", "time": "07:46", "topic": "Again xBrowse and new line from TDatabase", "username": "anserkk" } ]
Again xBrowse and new line from TDatabase
[ { "date": "2007-03-23", "forum": "FiveWin para Harbour/xHarbour", "text": "Alguien sabe si existe un control que permita implementar una agenda / calendario tipo Outlook (gratuito o de pago, no importa) Se trata de poder presentar una agenda de citas agrupadas en columnas por dias, semanas o meses.\nGracias\nRafael", "time": "15:10", "topic": "Agenda/Calendario tipo Outlook", "username": "Rafael Clemente" } ]
Agenda/Calendario tipo Outlook
[ { "date": "2007-03-23", "forum": "FiveWin para Harbour/xHarbour", "text": "Rafael:\n\nHay un hilo en el foro de inglés, parece es lo que necesitas.\n\n<!-- m --><a class=\"postlink\" href=\"http://fivetechsoft.com/forums/viewtopic.php?t=6407\">http://fivetechsoft.com/forums/viewtopic.php?t=6407</a><!-- m -->\n\nSaludos, Armando", "time": "16:51", "topic": "Agenda/Calendario tipo Outlook", "username": "Armando" } ]
Agenda/Calendario tipo Outlook
[ { "date": "2007-03-23", "forum": "FiveWin para Harbour/xHarbour", "text": "Armando:\nGracias por tu respuesta pero no es lo que busco. No quiero acceder a Outlook; lo que quisiera es crear una aplicación que presente un browse con la misma apariencia que tiene el calendario Outlook, es decir: Varias columnas, una columna por dia y cada linea correspondiente a una hora. Y con una estética similar a la del Outlook. \nSaludos,\nRafael", "time": "17:31", "topic": "Agenda/Calendario tipo Outlook", "username": "Rafael Clemente" } ]
Agenda/Calendario tipo Outlook
[ { "date": "2007-03-23", "forum": "FiveWin para Harbour/xHarbour", "text": "Rafael:\n\nSi que lo hay, es el componente Calendar Pro de la casa CodeJock:\n\n<!-- m --><a class=\"postlink\" href=\"http://www.codejock.com/downloads/samples/calendar.asp#calendar_calendardemo\">http://www.codejock.com/downloads/sampl ... lendardemo</a><!-- m -->\n\nSe utiliza como ActiveX, yo lo he utilizado, no con FiveWin, y funciona estupendamente.\n\nEso si, hacerlo requiere paciencia, tiene cientos de metodos, eventos y propiedades, asi que vas a requerir un poco de paciencia.", "time": "17:40", "topic": "Agenda/Calendario tipo Outlook", "username": "R.F." } ]
Agenda/Calendario tipo Outlook
[ { "date": "2007-03-23", "forum": "FiveWin para Harbour/xHarbour", "text": "René:\nSí, ya lo había visto y tiene muy buen aspecto. Es justo lo que necesito y por precio me va bien pero ¿puede alimentarse desde DBFs (no desde OCBD)? ¿Funcionaría desde FWH?\nGracias\nRafael", "time": "18:02", "topic": "Agenda/Calendario tipo Outlook", "username": "Rafael Clemente" } ]
Agenda/Calendario tipo Outlook
[ { "date": "2008-07-07", "forum": "FiveWin para Harbour/xHarbour", "text": "Rafael,\r\nLograste utilizar el componente Calendar Pro de la casa CodeJock con DBF y desde FWH?\r\n\r\nPuedes compartir la experiencia que tuviste desarrollando la AGENDA?\r\n\r\nSaludos,\r\n\r\nGeorge", "time": "22:31", "topic": "Agenda/Calendario tipo Outlook", "username": "George" } ]
Agenda/Calendario tipo Outlook
[ { "date": "2008-07-08", "forum": "FiveWin para Harbour/xHarbour", "text": "Hola,\r\nPaco García tiene hecho un componente como el que buscas. Ponte en contacto con él.\r\nSaludos,", "time": "07:30", "topic": "Agenda/Calendario tipo Outlook", "username": "José Luis Sánchez" } ]
Agenda/Calendario tipo Outlook
[ { "date": "2008-07-08", "forum": "FiveWin para Harbour/xHarbour", "text": "Hola José Luis:\r\n\r\n¿Seguro?. Paco tiene un calendario, pero en su web no aparece una agenda.\r\n\r\nMuchas gracias.", "time": "16:34", "topic": "Agenda/Calendario tipo Outlook", "username": "MOISES" } ]
Agenda/Calendario tipo Outlook
[ { "date": "2008-07-15", "forum": "FiveWin para Harbour/xHarbour", "text": "Hola Rafael:\r\n\r\nAl final, ¿qué control vas a usar?.\r\n\r\nMuchas gracias.", "time": "11:27", "topic": "Agenda/Calendario tipo Outlook", "username": "MOISES" } ]
Agenda/Calendario tipo Outlook
[ { "date": "2008-07-16", "forum": "FiveWin para Harbour/xHarbour", "text": "Moisés:\r\nEs un proyecto que tengo en marcha desde hace mucho tiempo. De momento, me lo he hecho yo, con una funcionalidad similar (aunque muy reducida) al de CodeJock. El problema es que no me funciona tan ágil como aquél y aún tiene flecos poco pulidos. Y, como no es una cosa urgente, lo voy dejando para mañana... ¿Has hecho tú algo semejante?\r\nRafael", "time": "14:47", "topic": "Agenda/Calendario tipo Outlook", "username": "Rafael Clemente" } ]
Agenda/Calendario tipo Outlook
[ { "date": "2008-07-16", "forum": "FiveWin para Harbour/xHarbour", "text": "Hola Rafael:\r\n\r\nQué va, yo no llego a tanto para hacer semejante control. Se que algunos del foro de inglés usan los controles de Codejock, igual tú lo habías logrado.\r\n\r\nQue vaya bien la implementación.", "time": "21:14", "topic": "Agenda/Calendario tipo Outlook", "username": "MOISES" } ]
Agenda/Calendario tipo Outlook
[ { "date": "2008-07-17", "forum": "FiveWin para Harbour/xHarbour", "text": "We was working to create a calendar system with easy class but we are no time now ..perhaps on september but you have time I can send my project to you", "time": "10:36", "topic": "Agenda/Calendario tipo Outlook", "username": "Silvio" } ]
Agenda/Calendario tipo Outlook
[ { "date": "2008-07-22", "forum": "FiveWin para Harbour/xHarbour", "text": "Hi Silvio,\r\ncan I have this project too?\r\n\r\nThank in advance\r\nGianni", "time": "23:30", "topic": "Agenda/Calendario tipo Outlook", "username": "Gianni" } ]
Agenda/Calendario tipo Outlook
[ { "date": "2008-07-23", "forum": "FiveWin para Harbour/xHarbour", "text": "I replayed in private email", "time": "09:39", "topic": "Agenda/Calendario tipo Outlook", "username": "Silvio" } ]
Agenda/Calendario tipo Outlook
[ { "date": "2008-05-24", "forum": "All products support", "text": "Salve,\r\nho un database MySql su un server remoto su internet. \r\n\r\nAttualmente per aggiornare questo database, creo un file xml in locale, lo zippo, lo trasmetto sul server e quindi eseguo tramite explorer uno script che mi scompatta il file sul server e tramite simplexml lo importa nel database MySql.\r\n\r\nMi sono accorto però che la procedura di importazione è divenuta piuttosto lenta, inoltre non posso creare una barra di progressione che avvisi l'utente dello stato di aggiornamento del database.\r\n\r\nMi chiedevo quindi se posso aggiornare direttamente il database Mysql da un'applicazione FWH senza tutti questi passaggi.\r\n\r\nGrazie", "time": "17:05", "topic": "Aggiornare un database Mysql su un server remoto da FWH", "username": "Marco Turco" } ]
Aggiornare un database Mysql su un server remoto da FWH
[ { "date": "2007-09-21", "forum": "FiveWin para Harbour/xHarbour", "text": "Despois de muito esforço consegui criar uma tela que representa fielmente a imagem abaixo, Ou seja em uma dialog BROWSE + TECLADO + IMAGENS, esta ultima que pode ter um numero indeterminado, levando em consideração que se não houver imagens deve apresentar um texto no lugar da imagem.\n\nQuero agradecer ao SR. ANTONIO, por tão grandiosa e prestativa ajuda.\n\nGrato a todos.\n\nAoki\n\n<!-- m --><a class=\"postlink\" href=\"http://img405.imageshack.us/img405/1643/restaurantenw4.jpg\">http://img405.imageshack.us/img405/1643 ... ntenw4.jpg</a><!-- m -->", "time": "14:53", "topic": "Agradecimentos ao SR. Antonio e demais!", "username": "AOKISANTOS" } ]
Agradecimentos ao SR. Antonio e demais!
[ { "date": "2007-09-21", "forum": "FiveWin para Harbour/xHarbour", "text": "Bonito trabajo,\n\nfelicidades,\n\nsaludos..", "time": "21:37", "topic": "Agradecimentos ao SR. Antonio e demais!", "username": "sysctrl2" } ]
Agradecimentos ao SR. Antonio e demais!
[ { "date": "2009-04-15", "forum": "FiveWin para Harbour/xHarbour", "text": "Agradecer al foro en general y en especial al Sr Antonio Linares que gracias a sus mensajes estoy aprendiento mucho. si bien he estudiado y programado durante casi treinta años cuando queria salir del querido Clipper no encontraba nada que se le pareciera y de repente se la luz alli estaba Fivewin Sres para mi es muy bueno y espero pronto poder adquierir la nueva version .... desde Escobar Buenos Aires Argentina un cordial saludo y un fuerte avrazo a la distancia mis amigos ... \n \n Juan Carlos Bellucci", "time": "18:43", "topic": "Agradecimiento", "username": "juan carlos bellucci" } ]
Agradecimiento
[ { "date": "2009-04-16", "forum": "FiveWin para Harbour/xHarbour", "text": "Juan Carlos,\n\nGracias por tus amables palabras y gracias sobre todo por ser parte de esta comunidad de amigos dispuestos a seguir aprendiendo siempre <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->", "time": "12:30", "topic": "Agradecimiento", "username": "Antonio Linares" } ]
Agradecimiento