topic
stringlengths
1
63
text
stringlengths
1
577k
Advise in Server hardware
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. That 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. If 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. Scalability 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. my two cents
Advise in Server hardware
Dear Cristobal, I fully agree with you <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Advise in Server hardware
Hello friends, for our use I9 processors would be best: [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]. I think in a small entrepreneur-led company, speed is the most important thing. Best regards, Otto
Advise in Server hardware
Cristobal, you may be right in general. But not in the case of Marc. It is an entrepreneurial company and here it is not about money but about his personal time. A RDP server in the own network, data backup directly with WINDOWS server backup on connected hard disks. And the most important: my data is mine and inhouse. Best regards, Otto
Advise in Server hardware
Thanks for several inputs on my question. I'm sure that I will not start using the special servers system that come for 3500 euro. More hardware than needed. Cloud : 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. But I did a request for information and will see for a test scenerio, just to have the feel of it. Desktop 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. 64 GR ram : Will FW ever use it ? Is FW limited to 16-32 ram ? SSD = most speed for now That 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 processing is done on the I9 This Desktop has nice specs for € 999 Intel Core i9 10900 (10 Cores - 20 Threads) Processor Moederbord met H410-chipset 64GB DDR4 (max. 3200MHz) Werkgeheugen 2000GB NVMe M.2 SSD Opslag Intel UHD Graphics 630 onboard 1 Gigabit Netwerkcontroller onboard 5.1-kanaals Audiocontroller onboard 420 watt ATX Voeding WiFi 5 (Wireless-N+AC) en Bluetooth 4.2 Zwarte M-ATX Mini-tower Behuizing Afmetingen: 36 x 18 x 39 cm (HxBxD)
Advise in Server hardware
About Windows Server 2019 STANDARD I have not had a price yet for a Server 2019 program and licence. We are with 3 people so the licence of 5 will be needed. However, 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. She 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) There are several server 2019 versions. For very small business, what you suggest ? I'm in the final face now and like to desited witch system to go for Thanks already for helping
Advise in Server hardware
hi Marc, [quote="Marc Venken":12i4ro9h]Intel Core i9 10900 (10 Cores - 20 Threads) Processor[/quote:12i4ro9h] don´t know if "Desktop"-CPU work fine with Server Software those newer "Desktop" CPU have "P"-Core and "E"-Core "real" Server most use Intel XEON or AMD EPYC CPU and use ECC RAM those CPU have no "E"-Core so i don´t know how Server 2019 / 2022 Software will react read here : Alder Lake 12th Gen Intel CPU won't boot on Windows Server 2022 with HyperV enabled [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] --- as Tim say : how much Server Power do you need <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: --> i know People run many "virtual-Machine" on Server which need much CPU Power and RAM but if you run only PostgreSQL or MySQL, a "Celeron" CPU will do the Job for 3 (fast) Workstation it is like a NAS which have "build-in" Support for PostgreSQL or MySQL --- about RAM in my "Mini" Server i have 2 x 4 GB "Dual-Channel" DDR4 RAM for PostgreSQL Server i use 50 % of RAM as "Cache" remember when use PostgreSQL or MySQL to "optimize" RAM for "Cache" [quote:12i4ro9h]\PostgreSQL\xx.x\data\postgresql.conf \ProgramData\MySQL\MySQL Server 8.0\my.ini[/quote:12i4ro9h] --- official Microsoft [quote:12i4ro9h]Microsoft Windows Server 2019 RDS User CAL - 5x Remote Desktop Client User Access Lizenz 821,00 € Microsoft Windows Server 2022 5x RDS User CAL - 5x Remote Desktop Client User Access Lizenz 862,00 €[/quote:12i4ro9h] have a look @ Ebay <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> ! Note : if it is for DELL or HP than it is "bundle" to Hardware so DON´T buy this --- Workstation : do you need a Windows 11 "ready" PC for 299,- € <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: --> [quote:12i4ro9h] AMD Ryzen 5 PRO 4650G (Zen 2), 6-Core ( 6× 3700 MHz, Turbo 4200 MHz) + HT 16 GB DDR4 , Dual-Channel (2 x 8 GB), 3200 MHz Kingston FURY Beast 500 GB Kingston® NV2 NVMe, max. 3500 MB/s | 2100 MB/s Gigabyte A520M K V2, 1× PCIe 3.0 ×16 (×16 Modus), 1× PCIe 3.0 ×1 1× M.2, Key M, 2280 (PCIe 3.0 ×4/SATA), 4× SATA 6 GBit/s mit RAID 0, 1, 10 Extern (I/O-Panel) 4× USB 3.2 Gen1, Typ A 2× USB 2.0 Intern (Header) 2× USB 3.2 Gen1 4× USB 2.0 1× HDMI 2.1 (2160p@60Hz) 1× D-Sub (VGA) HDCP 2.3[/quote:12i4ro9h] [url:12i4ro9h]https&#58;//www&#46;csl-computer&#46;com/pc-csl-sprint-5710-ryzen-5&#46;html[/url:12i4ro9h] you only need to buy a "License Key" for Windows 7/8/10 which can be used for Windows 11 if you use Server 2019 / 2022 buy a "PRO" Version "License Key" and use MediaCreationTool you can to download ISO or let MediaCreationTool write on a 8 GB USB.Stick (will FORMAT it)
Advise in Server hardware
All of my clients are "multi-user". Some have true Windows Server software but most just use Windows 10 or 11 Pro. While some have been using ADS ( Client Server ), in more recent years, 3 - 5 users, on current computers, have NO complaints about speed / performance. Most 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. That 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. Again, 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. My 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.
Advise in Server hardware
[quote="TimStone":3c1zo4o5] Most 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. [/quote:3c1zo4o5] This 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 I 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.
Advise in Server hardware
Do I have to see Windows server 2019 and RDS as 2 software items ? Using RDS I don't need Windows server then ? The CPU I9 mentioned above has a win11-Pro installed.
Advise is needfull ..
Hi, Problem 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 : [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] Vars "MYSQL_" indetifiers are in mysql.ch and related to integers . This ch is in hrb\include ... Why I'm getting this error ?
AevalWhen de WINDOW.PRG
Olá Antonio, Seria possível mudar o método "Aevalwhen" de WINDOW.PRG para trabalhar com FOR EACH de xharbour ? Veja um exemplo abaixo: [code:35xwhpax] #include "FiveWin&#46;ch" function Main&#40;&#41; local oDlg, cName &#58;= Space&#40; 10 &#41; DEFINE DIALOG oDlg TITLE "Testing ForEach for speed" @ 1, 2 SAY "Name&#58;" @ 1, 7 GET cName @ 2, 5 BUTTON "AEvalWhen&#40;&#41; of FWH" ACTION FWH_EVAL&#40; oDlg &#41; @ 3, 5 BUTTON "My AEvalWhen&#40;&#41;" ACTION MY_EVAL&#40; oDlg &#41; ACTIVATE DIALOG oDlg return nil function FWH_EVAL&#40; oDlg &#41; local x, nStart nStart &#58;= Seconds&#40;&#41; for X = 1 to 100000 oDlg&#58;AEvalWhen&#40;&#41; next msgstop&#40; Seconds&#40;&#41; - nStart &#41; return NIL //----------------------------------------------------------------------------// function MY_EVAL&#40; oDlg &#41; local n local aControls &#58;= oDlg&#58;aControls, aVarray local x, nStart nStart &#58;= Seconds&#40;&#41; for X = 1 to 100000 if aControls != nil &#46;and&#46; ! Empty&#40; aControls &#41; for each aVarray IN oDlg&#58;aControls if aVarray != nil &#46;and&#46; aVarray&#58;bWhen != nil if Eval&#40; aVarray&#58;bWhen &#41; aVarray&#58;Enable&#40;&#41; // keep this as &#58;&#58; else aVarray&#58;Disable&#40;&#41; // keep this as &#58;&#58; endif endif next endif next msgstop&#40; Seconds&#40;&#41; - nStart &#41; return NIL * Extract from WINDOW&#46;PRG *METHOD AEvalWhen&#40;&#41; CLASS TWindow * local n * local aControls &#58;= &#58;&#58;aControls, aVarray * * if aControls != nil &#46;and&#46; ! Empty&#40; aControls &#41; * for each aVarray IN &#58;&#58;aControls * if aVarray != nil &#46;and&#46; aVarray&#58;bWhen != nil * if Eval&#40; aVarray&#58;bWhen &#41; * aVarray&#58;Enable&#40;&#41; // keep this as &#58;&#58; * else * aVarray&#58;Disable&#40;&#41; // keep this as &#58;&#58; * endif * endif * next ** for n = 1 to Len&#40; aControls &#41; ** if aControls&#91; n &#93; != nil &#46;and&#46; aControls&#91; n &#93;&#58;bWhen != nil ** if Eval&#40; aControls&#91; n &#93;&#58;bWhen &#41; ** &#58;&#58;aControls&#91; n &#93;&#58;Enable&#40;&#41; // keep this as &#58;&#58; ** else ** &#58;&#58;aControls&#91; n &#93;&#58;Disable&#40;&#41; // keep this as &#58;&#58; ** endif ** endif ** next * endif *return nil [/code:35xwhpax] Executando o exemplo acima em meu computador o tempo fica assim: Clicando em "AEvalWhen() of FWH" gasta o tempo de 1.203 segundos Clicando 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: --> Obrigado, Rossine.
AevalWhen de WINDOW.PRG
Rossine Para cuando el twbrowse para xharbour free ? Un saludo
AevalWhen de WINDOW.PRG
Olá Frafive, Aqui eu gerei o WBROWSE.LIB para bcc 5.5 sem nenhum problema. Qual erro está aparecendo para você ? Abraços, Rossine.
AevalWhen de WINDOW.PRG
Hola Rossine Desde Recusos no funciona el twbrowse. Un saludo
AevalWhen de WINDOW.PRG
Olá Frafive, Compilei o programa abaixo que usa recursos, e funcionou 100%. [code:ndnfh4jz] #include "fivewin&#46;ch" external dbfcdx, ordkeyno, ordkeygoto, ordkeycount // Sample by Carlos Vargas function main&#40;&#41; local oDlg #ifdef __CLIPPER__ local hBorl &#58;= LoadLibrary&#40; "BWCC&#46;dll" &#41; #else local hBorl &#58;= LoadLibrary&#40; "BWCC32&#46;dll" &#41; BWCCRegister&#40;GetResources&#40;&#41;&#41; #endif private cCodigo &#58;= space&#40;7&#41; rddsetdefault&#40; "DBFCDX" &#41; use cuentas alias TEST index on codcta tag codigo index on nombre tag nombre ordsetfocus&#40;"codigo"&#41; define dialog odlg name "DLG_TEST" title "Pruba de DBSearch&#40;&#41; com REDEFINES" redefine get cCodigo; id 101 of odlg; update redefine btnbmp; id 102 of odlg; action &#40; TEST->&#40; DBSearch&#40; "Catalogo de cuentas",; //Titulo &#123;||&#123; TEST->codcta, TEST->nombre &#125; &#125;,; //Campos &#123;"Codigo" ,"Nombre"&#125;,; //Headers &#123;&#123;"Codigo cuenta","Nombre Cuenta"&#125;,; //Array Index "campos" &#123;"codigo" ,"nombre"&#125;&#125; &#41; &#41;,; // "Titulos" cCodigo &#58;= TEST->codcta,; odlg&#58;update&#40;&#41; &#41; redefine button id 201 of odlg action odlg&#58;end&#40;&#41; redefine button id 202 of odlg action odlg&#58;end&#40;&#41; cancel activate dialog odlg center close all FreeLibrary&#40; hBorl &#41; return //============================================================================// *DLL32 FUNCTION BWCCRegister&#40; hInst AS LONG&#41; AS WORD PASCAL LIB "BWCC32&#46;DLL" //============================================================================// #define TRUE &#46;t&#46; #define FALSE &#46;f&#46; FUNCTION DBSearch&#40; cTitle, aFields, aHeaders, aOrders, oWnd &#41; PRIVATE oDlgS ,; oBrw ,; oCombo,; oSayRec,; oSaySeek,; cOldOrder &#58;= ordsetfocus&#40;&#41;,; lOk &#58;= FALSE,; nOrden &#58;= 1 DEFAULT oWnd &#58;= GetWndDefault&#40;&#41; //salta al inicio de la tabla dbgotop&#40;&#41; //define dialogo DEFINE DIALOG oDlgS NAME "DLG_LISTA"; TITLE cTitle; OF oWnd REDEFINE LISTBOX oBrw ; FIELDS; ID 102; OF oDlgS; UPDATE; ON DBLCLICK &#40; lOk&#58;=TRUE, oDlgS&#58;end&#40;&#41; &#41;; ON CHANGE ShowPos&#40; recno&#40;&#41;, ordkeycount&#40;&#41;, oSayRec&#41; oBrw&#58;Set3DStyle&#40;&#41; oBrw&#58;nHeaderHeight &#58;= 18 oBrw&#58;nLineHeight &#58;= 15 oBrw&#58;cAlias &#58;= alias&#40;&#41; oBrw&#58;bLine &#58;= aFields oBrw&#58;aHeaders &#58;= aHeaders oBrw&#58;aJustify &#58;= &#123;2,0&#125; oBrw&#58;bSeek &#58;= &#123;|lRet| oBrw&#58;DbfSeek&#40; &#46;F&#46; ,&#123;|| Tone&#40;500,3&#41; &#125;&#41; &#125; oBrw&#58;bUpdateBuffer &#58;= &#123;|| UpdateBuffer&#40; oSaySeek, oBrw&#58;cBuffer &#41; &#125; oBrw&#58;lRecSel &#58;= &#46;t&#46; oBrw&#58;lTheader &#58;= &#46;t&#46; oBrw&#58;lDrawTitle &#58;= &#46;t&#46; oBrw&#58;cHeaderTitle &#58;= "Tabela do Cadastro de Clientes" oBrw&#58;nTitleHeight &#58;= 30 oBrw&#58;aHeaderSort &#58;= &#123; 1, "BOTTOM", "TOP&#46;BMP", "BOTTOM&#46;BMP" &#125; oBrw&#58;HeaderTImg &#58;= &#123; "\fwh\icons\chart&#46;ico" &#125; oBrw&#58;HeaderHImg &#58;= &#123; "\fwh\bitmaps\16x16\explorer&#46;bmp", ; "\fwh\icons\dialog2&#46;ico" , ; "\fwh\icons\msdos&#46;ico" , ; "\fwh\icons\summer&#46;ico" , ; "\fwh\icons\contar&#46;ico" &#125; * oBrw&#58;HeaderFImg &#58;= oBrw&#58;HeaderHImg REDEFINE SAY oSayRec ; ID 103 OF oDlgS COLOR CLR_BLUE REDEFINE SAY oSaySeek PROMPT "" ; ID 104 OF oDlgS COLOR CLR_BLUE REDEFINE BUTTON ; ID 201 ; OF oDlgS ; ACTION &#40; lOk &#58;= TRUE, oDlgS&#58;end&#40;&#41; &#41; REDEFINE BUTTON ; ID 202 ; OF oDlgS ; ACTION &#40; lOk &#58;= FALSE, oDlgS&#58;end&#40;&#41; &#41; ACTIVATE DIALOG oDlgS ; CENTER ; ON INIT &#40; ToolBar&#40;aOrders&#41; ,; oBrw&#58;nHeight -= 85 &#41; ordsetfocus&#40; cOldOrder &#41; RETURN &#40; lOk &#41; STATIC PROCEDURE ToolBar&#40;aOrders&#41; LOCAL oToolBar //define la barra de herramientas con el combobox de tag's DEFINE BUTTONBAR oToolBar OF oDlgS SIZE 30,30 3D @ 5, oToolBar&#58;GetBtnLeft&#40;&#41; + 3; COMBOBOX oCombo VAR nOrden ; ITEMS aOrders&#91;1&#93;; SIZE oDlgs&#58;nWidth - 25, 200; OF oToolBar PIXEL FONT oDlgS&#58;oFont; ON CHANGE &#40; ordsetfocus&#40; aOrders&#91;2, nOrden &#93; &#41;,; oBrw&#58;refresh&#40;TRUE&#41;,; oBrw&#58;setfocus&#40;&#41;, Tone&#40;650,3&#41; &#41; oDlgS&#58;SetControl&#40;oBrw&#41; RETURN STATIC PROCEDURE ShowPos&#40;nActual, nTotal, oSay&#41; oSay&#58;SetText&#40; alltrim&#40; str&#40;nActual&#41; &#41;+"/"+alltrim&#40;str&#40;nTotal&#41;&#41; &#41; oSay&#58;refresh&#40;&#41; RETURN STATIC FUNCTION UpdateBuffer&#40; oSay, cBuffer &#41; LOCAL cMsg IF len&#40; cBuffer &#41; > 0 cMsg &#58;= cBuffer ELSE cMsg &#58;= "" ENDIF oSay&#58;SetText&#40;cMsg&#41; RETURN Nil //----------------------------------------------------------------------------// DLL32 FUNCTION BWCCRegister&#40; hInst AS LONG &#41; AS WORD PASCAL LIB "BWCC32&#46;DLL" //----------------------------------------------------------------------------// [/code:ndnfh4jz] [img:ndnfh4jz]http&#58;//geocities&#46;yahoo&#46;com&#46;br/qiinformatica2000/wbrwrec&#46;PNG[/img:ndnfh4jz] Veja 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. Abraços, Rossine.
AevalWhen de WINDOW.PRG
Hoa Rossine 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. un saludo y gracias
AevalWhen de WINDOW.PRG
Rossine, No podemos usar FOR EACH ya que no lo soporta ni Clipper, ni Xbase++ ni C3.
AevalWhen de WINDOW.PRG
OK Antonio <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) --> un saludo y gracias Rossine.
After object MOVE wrong position-return-values ?
Hello, I need the new object-position afer move ( NO resize ) from inside a dialog. I want to move the SAYS, to find the best textcolors in relation to the gradient. The return-values are wrong. My test : [color=#0000FF:1oi2ht5n][b:1oi2ht5n]oSay1:bMoved := {|| ( nTxtTop1 := oSay1:nTop, nTxtLeft1 := oSay1:nLeft ) } oSay2:bMoved := {|| ( nTxtTop2 := oSay2:nTop, nTxtLeft2 := oSay1:nLef2 ) } oSay3:bMoved := {|| ( nTxtTop3 := oSay3:nTop, nTxtLeft3 := oSay1:nLef3 ) }[/b:1oi2ht5n][/color:1oi2ht5n] [img:1oi2ht5n]http&#58;//www&#46;pflegeplus&#46;com/pictures/OMove1&#46;jpg[/img:1oi2ht5n] [size=150:1oi2ht5n]I only moved to LEFT with the same TOP[/size:1oi2ht5n] A left mouseclick shows the values. [img:1oi2ht5n]http&#58;//www&#46;pflegeplus&#46;com/pictures/OMove2&#46;jpg[/img:1oi2ht5n] The Top / Left of the 3 says are STATIC The new values after MOVE I have to save. nTxtTop1, nTxtLeft1 nTxtTop2, nTxtLeft2 nTxtTop3, nTxtLeft3 [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] Best Regards Uwe <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: -->
After object MOVE wrong position-return-values ?
Mr Ukoenig, Use oWnd:CoorsUpdate() after oWnd object movement. Regards
After report runs all my dialogs appear
To All I 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 .. I 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 [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] and 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 .. Here is my code from the report [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]
After report runs all my dialogs appear
Rick, You should specify the window container of the first dialog so they will not go foreground: [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] where oWndMain is your main window. Also 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. Please try it and let me know how it goes, thanks
After report runs all my dialogs appear
Antonio I 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: --> If 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 .. Any other thoughts ? Rick Lipkin
After report runs all my dialogs appear
Rick, Please post a screenshot, thanks
After report runs all my dialogs appear
Antonio I do not have access to any external file hosting sites .. ( blocked at work) .. I will send it to your private e-mail. Rick
After report runs all my dialogs appear
Rick, Perhaps 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. If 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. I would use the first design. Regards, James
After report runs all my dialogs appear
James I 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. Sending the last two modules that go with it. Let me know if you see anything wrong .. Thanks Rick
After report runs all my dialogs appear
Rick, The preview window remains MDICHILD, thats why its placed behind the dialogs. You may not have properly modified rpreview.prg
After report runs all my dialogs appear
Antonio You won't believe this .. I modified rpreview and your msginfo showed up .. and after I closed the msginfo .. the preview worked perfect .. Damned strange .. Apparently 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 !! .. Had to be a date stamp problem on the file <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: --> Thanks for the help !! Rick
After report runs all my dialogs appear
Rick, glad to know it is solved <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
After report runs all my dialogs appear
To All Here 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. I 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 .. In 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. It 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.. All 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. Thanks for everyone support on this Rick Lipkin
After update to 8.02
Antonio, I have this error at the opening, after update to version 8.02 Error BASE/1004 No exported method: GENCODE Application =========== Path and name: C:\DEV\facture\facture.Exe (32 bits) Size: 1,963,520 bytes Time from start: 0 hours 0 mins 0 secs Error occurred at: 03/06/08, 15:22:13 Error description: Error BASE/1004 No exported method: GENCODE Args: [ 1] = U Stack Calls =========== Called from GENCODE(0) Called from ERRORDIALOG(55) Called from (b)ERRORSYS(28) Called from THROW(77) System BCC,Harbour,fivewin 8.02 Patrick Chalvet
After update to 8.02
Patrick, What source code do you have at line 77 (and some lines before and after) ? Do you use a modified errorsys of your own ?
After update to 8.02
Is version 8.02 working with last Harbour CVS? Throw() is a function of toleauto. I install harbour from your site, the source compile Ok but no window open when i start the exe. It just stay in memory Patrick
After update to 8.02
Patrick, You have to link gtgui.lib instead of gtwin.lib Please try to build samples/tutor02.prg and see if it works for you. If you show me your code around line 77 we may locate what is wrong, thanks
Again about scripting - __HrbRun ...
Hi friends ! 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 : [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] 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: --> With best regards and thanks in advance !
Again about scripting ... HB_CompileBuf
Hi, I 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 . The 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 : [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] All 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:( --> [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] It seems that script can use only one function inside ... Or not ? What can you advise in this situation ? With best regards ! Old Fwh 11.11 , Harbour 3.1 MinGW
Again about scripting ... HB_CompileBuf
Rimantas, Restore: [code=fw:2b3w1gbl]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #B900B9;">// external brw_menu2</span></div>[/code:2b3w1gbl] Regards
Again about scripting ... HB_CompileBuf
[quote="Antonio Mart.":1ld0ixre]Rimantas, Restore: [code=fw:1ld0ixre]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #B900B9;">// external brw_menu2</span></div>[/code:1ld0ixre] Regards[/quote:1ld0ixre] Hi Antonio ! Tried and that - the same result . I specially leave that visible .
Again about scripting ... HB_CompileBuf
[quote="Rimantas":117okbpd][quote="Antonio Mart.":117okbpd]Rimantas, Restore: [code=fw:117okbpd]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #B900B9;">// external brw_menu2</span></div>[/code:117okbpd] Regards[/quote:117okbpd] Hi Antonio ! Tried and that - the same result . I specially leave that visible .[/quote:117okbpd] Hi Antonio Linares ! I know that you are expert of Harbour ... Can you say some words in this theme ? With best regards !
Again about scripting ... HB_CompileBuf
The code that is generated by the function hb_CompileBuf() can use any public function that is already *linked* to the application. It is the programmer's responsibility to ensure that all functions used in the script are already linked, by using EXTERNAL <func> whereever necessary.
Again about scripting ... HB_CompileBuf
[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. It 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] Hello Rao ! Other 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 . From scrpts.prg ( script.dbf memo ) in fwh\samples . Simply do that : [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;DEFINE <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] 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 ... With best regards ...
Again about scripting ... HB_CompileBuf
[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. It 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] Hello Rao ! Other 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 . From scrpts.prg ( script.dbf memo ) in fwh\samples . Simply do that : [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 />   DEFINE <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] 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 ... With best regards ...[/quote:1zgyl06y] 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: --> Regards !
Again about scripting ... HB_CompileBuf
Sorry, Rimatas, I disagree with you as you can´t blame Antonio for Harbour issues. Fivetech provides an extraordinary support, quick, effective and useful, which you can´t find in other xBase companies such xHarbour.com.
Again about scripting ... HB_CompileBuf
[quote="lucasdebeltran":3pwtoyxo]Sorry, Rimatas, I disagree with you as you can´t blame Antonio for Harbour issues. Fivetech provides an extraordinary support, quick, effective and useful, which you can´t find in other xBase companies such xHarbour.com.[/quote:3pwtoyxo] Hello Lucas ! Why 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 ... OK , 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 ? With best regards !
Again about scripting ... HB_CompileBuf
Rimantas, I was travelling and could not answer yet. Are you using FWH function Execute( cCode ) ? Please check that you execute your scripts the same way as FWH/samples/scripts.prg does it
Again about scripting ... HB_CompileBuf
[quote="Antonio Linares":j8nzutg3]Rimantas, I was travelling and could not answer yet. Are 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] Wow ! 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:-) --> I was not used Execute( cCode ) . Mine last run ( I tried some versions, but without execute ) : [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] I'll try execute and let know to you ... With best regards ! ADDED : Copied piece of source from scripts.prg : FReOpen_Stderr( "run_prg.log", "w" ) oHrb := HB_CompileFromBuf( memoread( cPrg + ".prg" ), "-n", "-ID:\A\fwh\include", "-ID:\A\hrb\include" ) if ! Empty( oHrb ) hb_HrbRun( oHrb ) endif Sorry , but other function in the same scripts return error : Error description: Error BASE/1001 Undefined function: MOD_PAS . Here I simply add addidtional check for one field : :bOnPostEdit := { | oCol, xVal, nKey | If( nKey == VK_ESCAPE,,( if( mod_pas( aMod, xVal ), ( oQry:preke := xVal, oQry:Save() ), ) ) ) } Also tried and that : :bPopUp := { |oCol| brw_menu3( oCol ) } function brw_menu3( oCol ) local oPopup MsgInfo( "second function inside script ..." ) MENU oPopup POPUP 2007 MENUITEM if( cLg == "L", "Filtruoti ...", "Filter ..." ) ACTION MsgInf( "filtruosim 1 " ) MENUITEM if( cLg == "L", "Filtruoti ?vedant reikšm? ...", "Filter with input var ..." ) ACTION MsgInf( "filtruosim 2 " ) SEPARATOR MENUITEM if( cLg == "L", "Pašalinti filtrus", "Clear filters" ) ACTION MsgInf( "salinsim " ) ENDMENU return( oPopup ) Undefined function ... <!-- s:( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":(" title="Sad" /><!-- s:( --> .
Again about scripting ... HB_CompileBuf
[quote="Antonio Linares":1gumt8vy]Rimantas, I was travelling and could not answer yet. Are 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] Antonio, I'm waiting for your word ... <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) --> Did as in scripts.prg , but second function in the same prg "Undefined ..." Regards !
Again about scripting ... HB_CompileBuf
Rimantas, Please try this example from FWH/samples/scripts.prg: Here it is working fine. Please ty to provide me a simple example like this one that reproduces your error, thanks [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]
Again about scripting ... HB_CompileBuf
[quote="Antonio Linares":1pu46yeh]Please try this example from FWH/samples/scripts.prg: Here it is working fine. Please ty to provide me a simple example like this one that reproduces your error, thanks [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] 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 : [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] 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 : [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] All 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 . ADDED : I'm suspecting , that this can be related with settings for app.build . Here is mine hbp : [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] With best regards !
Again about scripting ... HB_CompileBuf
[quote:2gszsk6s]All this outside functions ( mod_pas, newRec, delRec and excRec ) are "Undefined ..."[/quote:2gszsk6s] Have you declared them as extern ?
Again about scripting ... HB_CompileBuf
[quote="Antonio Linares":30ufkwb5][quote:30ufkwb5]All this outside functions ( mod_pas, newRec, delRec and excRec ) are "Undefined ..."[/quote:30ufkwb5] Have you declared them as extern ?[/quote:30ufkwb5] After this you sugestion I tried that : #include "fivewin.ch" #include "xbrowse.ch" #include "tdolphin.ch" #include "dtpicker.ch" external mod_pas external newRec external delRec external excRec FUNCTION uzsak() ... Sorry , the same result ... 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 ...
Again about scripting ... HB_CompileBuf
In buildg.bat there are only two places where gcc is called. Those flags should be provided there.
Again about scripting ... HB_CompileBuf
[quote="Antonio Linares":3390er1h]Rimantas, Please ty to provide me a simple example like this one that reproduces your error, thanks [/quote:3390er1h] +1 you could use a tdolphin server to make a sample that we can build
Again about scripting ... HB_CompileBuf
[quote="Antonio Linares":iqdcz8wx]In buildg.bat there are only two places where gcc is called. Those flags should be provided there.[/quote:iqdcz8wx] Antonio, 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 : -ldflag=-Wl,--allow-multiple-definition . Buildg.bat if 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 then 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:( --> 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:) -->
Again about scripting ... HB_CompileBuf
Rimantas, -Wl is already used by buildg.bat, so just need to add --allow-multiple-definition Try this: gcc -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
Again about scripting ... HB_CompileBuf
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 ... This code works fine : [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] Change some code - instead dialog -> window [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] This 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 ... So with windows scripts with some function , which call from window control , can't work ? With best regards !
Again about scripting ... HB_CompileBuf
Rimantas, windows are non modal, thats why they don't work <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> The execution continues and the script ends
Again about scripting ... HB_CompileBuf
[quote="Antonio Linares":7rwl1i7k]Rimantas, windows are non modal, thats why they don't work <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> The execution continues and the script ends[/quote:7rwl1i7k] <!-- 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 ?
Again about scripting ... HB_CompileBuf
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:-) --> Try this: local lExit := .F. ... ACTIVATE WINDOW oWnd StopUntil( { || lExit } ) From the window, change lExit to .T. to finally exit.
Again about scripting ... HB_CompileBuf
[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:-) --> Try this: local lExit := .F. ... ACTIVATE WINDOW oWnd StopUntil( { || lExit } ) From the window, change lExit to .T. to finally exit.[/quote:nbwitwtc] Wwoooowwww ! 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 ) ? Thanks for solution ! <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) -->
Again about scripting ... HB_CompileBuf
Rimantas, Do you think that I would advise a solution with "hiden surprises" ? I 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
Again about scripting ... HB_CompileBuf
[quote="Antonio Linares":3sdlsdqw]Rimantas, Do you think that I would advise a solution with "hiden surprises" ? I 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] Excuse 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 .
Again about scripting ... HB_CompileBuf
There should be no problems using that function. The FWH print preview uses it <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Again about scripting ... HB_CompileBuf
[quote="Antonio Linares":20vwi5ln]There should be no problems using that function. The FWH print preview uses it <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->[/quote:20vwi5ln] Thank 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 !
Again for these worlds.
Hi; After 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. I 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.) [url:3c70tmel]http&#58;//javierlloris&#46;blogspot&#46;com&#46;es/[/url:3c70tmel] a greeting JLL
Again for these worlds.
JLL, Welcome aboard, nice to see you here again <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Again xBrowse and new line from TDatabase
Hi , 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 ? Many thanks for any help in advance ...
Again xBrowse and new line from TDatabase
Rimintas, That 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. So 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. As 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. James
Again xBrowse and new line from TDatabase
[quote="James Bott":1a3kjicu]Rimintas, That 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. So 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. As 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. James[/quote:1a3kjicu] James , my name is Rimantas ... <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> 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 ? Regards !
Again xBrowse and new line from TDatabase
Hello Rimantas, maybe you can - what I do often – read your records into an array and then work with this array and xBrowse. I mean then you have something similar to a recordSet. Best regards, Otto
Again xBrowse and new line from TDatabase
[quote="Otto":13110y42]Hello Rimantas, maybe you can - what I do often – read your records into an array and then work with this array and xBrowse. I mean then you have something similar to a recordSet. Best regards, Otto[/quote:13110y42] Hello Otto , Interesting idea ... But , as I can understand , this can be problem with a big table , or not ? Regards !
Again xBrowse and new line from TDatabase
Here is a small sample. Not perfect, but can be improved upon. This sample uses the sales.dbf in the fwh\samples folder. This 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. [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]
Again xBrowse and new line from TDatabase
Rao, Good example. I was just thinking about that a similar thing could be done with a subclass of TDatabase. One problem I see with your example is that it will only work with databases in natural order. Regards, James
Again xBrowse and new line from TDatabase
[quote="James Bott":2vs0cd2b]Rao, Good example. I was just thinking about that a similar thing could be done with a subclass of TDatabase. One problem I see with your example is that it will only work with databases in natural order. Regards, James[/quote:2vs0cd2b] Yes. 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. It is really worthwhile, if you can bring in similar improvement in your TData and FWin brings it in TDataBase class. No doubt, some effort is required, but can be done. As you suggested, we can probably start experimenting with a subclass of TDataBase
Again xBrowse and new line from TDatabase
Rao, Actually, 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. James
Again xBrowse and new line from TDatabase
[quote="James Bott":3r42i1c5]Rao, Actually, 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. James[/quote:3r42i1c5] This is a very good feature. We don't really have to bother about inserting a ghost row.
Again xBrowse and new line from TDatabase
[quote="nageswaragunupudi":3wwksla4][quote="James Bott":3wwksla4] Yes. 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. It is really worthwhile, if you can bring in similar improvement in your TData and FWin brings it in TDataBase class. No doubt, some effort is required, but can be done. As you suggested, we can probably start experimenting with a subclass of TDataBase[/quote:3wwksla4][/quote:3wwksla4] 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:) --> Regards !
Again xBrowse and new line from TDatabase
>> . Here is static class - TXBrRow() . This is used only in CurrentRow() method >> The 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.
Again xBrowse and new line from TDatabase
[quote:3jimzx9j]As I mentioned before this is one reason it is so much easier to use a dialog for record editing. [/quote:3jimzx9j] [quote:3jimzx9j]In mine opinion , dialogs for inputs of new records isn't a good way . I[/quote:3jimzx9j] [quote:3jimzx9j]maybe you can - what I do often – read your records into an array and then work with this array and xBrowse. I mean then you have something similar to a recordSet.[/quote:3jimzx9j] In 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. Regards Anser
Agenda/Calendario tipo Outlook
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. Gracias Rafael
Agenda/Calendario tipo Outlook
Rafael: Hay un hilo en el foro de inglés, parece es lo que necesitas. <!-- m --><a class="postlink" href="http://fivetechsoft.com/forums/viewtopic.php?t=6407">http://fivetechsoft.com/forums/viewtopic.php?t=6407</a><!-- m --> Saludos, Armando
Agenda/Calendario tipo Outlook
Armando: Gracias 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. Saludos, Rafael
Agenda/Calendario tipo Outlook
Rafael: Si que lo hay, es el componente Calendar Pro de la casa CodeJock: <!-- m --><a class="postlink" href="http://www.codejock.com/downloads/samples/calendar.asp#calendar_calendardemo">http://www.codejock.com/downloads/sampl ... lendardemo</a><!-- m --> Se utiliza como ActiveX, yo lo he utilizado, no con FiveWin, y funciona estupendamente. Eso si, hacerlo requiere paciencia, tiene cientos de metodos, eventos y propiedades, asi que vas a requerir un poco de paciencia.
Agenda/Calendario tipo Outlook
René: Sí, 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? Gracias Rafael
Agenda/Calendario tipo Outlook
Rafael,Lograste utilizar el componente Calendar Pro de la casa CodeJock con DBF y desde FWH?Puedes compartir la experiencia que tuviste desarrollando la AGENDA?Saludos,George
Agenda/Calendario tipo Outlook
Hola,Paco García tiene hecho un componente como el que buscas. Ponte en contacto con él.Saludos,
Agenda/Calendario tipo Outlook
Hola José Luis:¿Seguro?. Paco tiene un calendario, pero en su web no aparece una agenda.Muchas gracias.
Agenda/Calendario tipo Outlook
Hola Rafael:Al final, ¿qué control vas a usar?.Muchas gracias.
Agenda/Calendario tipo Outlook
Moisés:Es 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?Rafael
Agenda/Calendario tipo Outlook
Hola Rafael:Qué 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.Que vaya bien la implementación.
Agenda/Calendario tipo Outlook
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
Agenda/Calendario tipo Outlook
Hi Silvio,can I have this project too?Thank in advanceGianni
Agenda/Calendario tipo Outlook
I replayed in private email
Aggiornare un database Mysql su un server remoto da FWH
Salve,ho un database MySql su un server remoto su internet. Attualmente 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.Mi 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.Mi chiedevo quindi se posso aggiornare direttamente il database Mysql da un'applicazione FWH senza tutti questi passaggi.Grazie
Agradecimentos ao SR. Antonio e demais!
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. Quero agradecer ao SR. ANTONIO, por tão grandiosa e prestativa ajuda. Grato a todos. Aoki <!-- m --><a class="postlink" href="http://img405.imageshack.us/img405/1643/restaurantenw4.jpg">http://img405.imageshack.us/img405/1643 ... ntenw4.jpg</a><!-- m -->
Agradecimentos ao SR. Antonio e demais!
Bonito trabajo, felicidades, saludos..
Agradecimiento
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 ... Juan Carlos Bellucci
Agradecimiento
Juan Carlos, Gracias 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:-) -->