messages
listlengths
1
1
topic
stringlengths
2
60
[ { "date": "2022-03-28", "forum": "FiveWin for Harbour/xHarbour", "text": "Having a total example € 3.50 I have to break it so you can turn on a series of buttons that have a different price\n\nI Explain You \n\nI have an array aImports:={200,100,50,20,10,5,3,2,1,0.50,0.20,0.10,0.05} \n\nevery record relates to a button\n\n[img:t8txzeyw]https://i.postimg.cc/CLQLTLBL/prezzi.png[/img:t8txzeyw]\n\nif I have a total = 3.50 I have to wiper to turn on the buttons that 3.50 do\n\nin this case aImports[7] and aImports[10] \n\nHow I can do to calculate it ?", "time": "08:54", "topic": "Calculation with an array", "username": "Silvio.Falconi" } ]
Calculation with an array
[ { "date": "2022-03-28", "forum": "FiveWin for Harbour/xHarbour", "text": "hi Silvio,\n\ntry this\n[code=fw:2zb4a5ei]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">PROCEDURE BinCalc<span style=\"color: #000000;\">&#40;</span>nValue<span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">LOCAL</span> aImports:=<span style=\"color: #000000;\">&#123;</span><span style=\"color: #000000;\">200</span>,<span style=\"color: #000000;\">100</span>,<span style=\"color: #000000;\">50</span>,<span style=\"color: #000000;\">20</span>,<span style=\"color: #000000;\">10</span>,<span style=\"color: #000000;\">5</span>,<span style=\"color: #000000;\">3</span>,<span style=\"color: #000000;\">2</span>,<span style=\"color: #000000;\">1</span>,<span style=\"color: #000000;\">0.50</span>,<span style=\"color: #000000;\">0.20</span>,<span style=\"color: #000000;\">0.10</span>,<span style=\"color: #000000;\">0.05</span><span style=\"color: #000000;\">&#125;</span><br /><span style=\"color: #00C800;\">LOCAL</span> nPosi := <span style=\"color: #000000;\">0</span><br /><span style=\"color: #00C800;\">LOCAL</span> nRest := nValue<br /><span style=\"color: #00C800;\">LOCAL</span> aRet &nbsp; := <span style=\"color: #000000;\">&#123;</span><span style=\"color: #000000;\">&#125;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">DO</span> <span style=\"color: #00C800;\">WHILE</span> .T.<br />? &nbsp; &nbsp; nPosi := ASCAN<span style=\"color: #000000;\">&#40;</span>aImports,<span style=\"color: #000000;\">&#123;</span>|e| e <= nRest<span style=\"color: #000000;\">&#125;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">IF</span> nPosi > <span style=\"color: #000000;\">0</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;AADD<span style=\"color: #000000;\">&#40;</span>aRet,nPosi<span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nRest -= aImports<span style=\"color: #000000;\">&#91;</span>nPosi<span style=\"color: #000000;\">&#93;</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">ELSE</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;EXIT<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">ENDIF</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">ENDDO</span><br /><span style=\"color: #00C800;\">RETURN</span> aRet</div>[/code:2zb4a5ei]", "time": "09:32", "topic": "Calculation with an array", "username": "Jimmy" } ]
Calculation with an array
[ { "date": "2022-03-28", "forum": "FiveWin for Harbour/xHarbour", "text": "THAKSSSS", "time": "10:25", "topic": "Calculation with an array", "username": "Silvio.Falconi" } ]
Calculation with an array
[ { "date": "2022-03-28", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"Silvio.Falconi\":349y8zuw]Having a total example € 3.50 I have to break it so you can turn on a series of buttons that have a different price\n\nI Explain You \n\nI have an array aImports:={200,100,50,20,10,5,3,2,1,0.50,0.20,0.10,0.05} \n\nevery record relates to a button\n\n[img:349y8zuw]https&#58;//i&#46;postimg&#46;cc/CLQLTLBL/prezzi&#46;png[/img:349y8zuw]\n\nif I have a total = 3.50 I have to wiper to turn on the buttons that 3.50 do\n\nin this case aImports[7] and aImports[10] \n\nHow I can do to calculate it ?[/quote:349y8zuw]\n\nonly for curiosity:\nwould you ever use a value of 3.90, 3.80, or 3.59 (among others)?", "time": "19:46", "topic": "Calculation with an array", "username": "FranciscoA" } ]
Calculation with an array
[ { "date": "2022-03-28", "forum": "FiveWin for Harbour/xHarbour", "text": "Silvio, I know you don't like it. But this programme would be a good sample to start with mod harbour.\nMany greetings \nOtto\n[url:3w1ljy4x]https&#58;//www&#46;facebook&#46;com/groups/modharbour&#46;club/?multi_permalinks=1090583058162587&notif_id=1648482958093104[/url:3w1ljy4x]\n\n[img:3w1ljy4x]https&#58;//mybergland&#46;com/fwforum/lotto&#46;gif[/img:3w1ljy4x]", "time": "20:40", "topic": "Calculation with an array", "username": "Otto" } ]
Calculation with an array
[ { "date": "2022-03-28", "forum": "FiveWin for Harbour/xHarbour", "text": "Unfortunately, someone died during the pandemic. \n\n\nNow it happens that this someone had created a software for the bookstores and therefore it is not possible to update it. \n\nI'm just trying to see if I can redo the program. \n\nFor many years I have been doing something but only classic statistics those you find on all websites, forecasts and combinatorial calculations and for about a month I have been implementing some systems of my own creation for the drafting of lottery games. \n\n\n What you see (the prices) is a small part of the whole I'm putting up, unfortunately I don't have much time, I have a job at school, and serious problems with my 90-year-old mother who causes me several problems so the creation of the software goes very slowly.\n\nOtto it is not true that I don't like it, it just annoys me that you always take my ideas to create tests with this mod_harbour that I am convinced that it will end with all the projects that have done and have not finished. \n\nBut you dear Otto you do not know this, you are young in fwh and you think you are all \"roses and flowers\"", "time": "22:29", "topic": "Calculation with an array", "username": "Silvio.Falconi" } ]
Calculation with an array
[ { "date": "2022-04-12", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"Jimmy\":1bbvrnhz]hi Silvio,\n\ntry this\n[code=fw:1bbvrnhz]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">PROCEDURE BinCalc<span style=\"color: #000000;\">&#40;</span>nValue<span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">LOCAL</span> aImports:=<span style=\"color: #000000;\">&#123;</span><span style=\"color: #000000;\">200</span>,<span style=\"color: #000000;\">100</span>,<span style=\"color: #000000;\">50</span>,<span style=\"color: #000000;\">20</span>,<span style=\"color: #000000;\">10</span>,<span style=\"color: #000000;\">5</span>,<span style=\"color: #000000;\">3</span>,<span style=\"color: #000000;\">2</span>,<span style=\"color: #000000;\">1</span>,<span style=\"color: #000000;\">0.50</span>,<span style=\"color: #000000;\">0.20</span>,<span style=\"color: #000000;\">0.10</span>,<span style=\"color: #000000;\">0.05</span><span style=\"color: #000000;\">&#125;</span><br /><span style=\"color: #00C800;\">LOCAL</span> nPosi := <span style=\"color: #000000;\">0</span><br /><span style=\"color: #00C800;\">LOCAL</span> nRest := nValue<br /><span style=\"color: #00C800;\">LOCAL</span> aRet   := <span style=\"color: #000000;\">&#123;</span><span style=\"color: #000000;\">&#125;</span><br /><br />   <span style=\"color: #00C800;\">DO</span> <span style=\"color: #00C800;\">WHILE</span> .T.<br />?     nPosi := ASCAN<span style=\"color: #000000;\">&#40;</span>aImports,<span style=\"color: #000000;\">&#123;</span>|e| e <= nRest<span style=\"color: #000000;\">&#125;</span><span style=\"color: #000000;\">&#41;</span><br />      <span style=\"color: #00C800;\">IF</span> nPosi > <span style=\"color: #000000;\">0</span><br />         AADD<span style=\"color: #000000;\">&#40;</span>aRet,nPosi<span style=\"color: #000000;\">&#41;</span><br />         nRest -= aImports<span style=\"color: #000000;\">&#91;</span>nPosi<span style=\"color: #000000;\">&#93;</span><br />      <span style=\"color: #00C800;\">ELSE</span><br />         EXIT<br />      <span style=\"color: #00C800;\">ENDIF</span><br />   <span style=\"color: #00C800;\">ENDDO</span><br /><span style=\"color: #00C800;\">RETURN</span> aRet</div>[/code:1bbvrnhz][/quote:1bbvrnhz]\n\n\nJimmy \nthis run good on Dialog \n [img:1bbvrnhz]https&#58;//i&#46;postimg&#46;cc/xTjwqJgj/di&#46;png[/img:1bbvrnhz]\n\nBecause I have the totals [b:1bbvrnhz]on Vertical [/b:1bbvrnhz]\n\nNow the problem I have on Print the ticket because I have it on Horizontal\n\n[img:1bbvrnhz]https&#58;//i&#46;postimg&#46;cc/mkw9p6F9/dk&#46;png[/img:1bbvrnhz]\n\n\nand I not Know how make it \n\nthe column are 11\nthe rows are 8 \nPls Help", "time": "12:24", "topic": "Calculation with an array", "username": "Silvio.Falconi" } ]
Calculation with an array
[ { "date": "2010-04-23", "forum": "FiveWin for Harbour/xHarbour", "text": "The power of macros -one line of code and a powerful calculator is ready.\nBest regards,\nOtto\n\n[img:1hckr53j]http&#58;//www&#46;atzwanger-software&#46;com/fw/calcb&#46;jpg[/img:1hckr53j]\n\n[img:1hckr53j]http&#58;//www&#46;atzwanger-software&#46;com/fw/calca&#46;jpg[/img:1hckr53j]\n\n\n\n\n\nprg-file\n\n[code=fw:1hckr53j]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00D7D7;\">#Include</span> <span style=\"color: #ff0000;\">\"FiveWin.Ch\"</span><br /><br /><span style=\"color: #00C800;\">Function</span> Main<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />   <span style=\"color: #00C800;\">Local</span> oDlg<br />   <span style=\"color: #00C800;\">Local</span> oGet<br />   <span style=\"color: #00C800;\">local</span> cVar := space<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">100</span> <span style=\"color: #000000;\">&#41;</span><br /><br />   <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">from</span> <span style=\"color: #000000;\">0</span>,<span style=\"color: #000000;\">0</span> <span style=\"color: #0000ff;\">to</span> <span style=\"color: #000000;\">400</span>,<span style=\"color: #000000;\">400</span> <span style=\"color: #0000ff;\">pixel</span><br /><br />   @ <span style=\"color: #000000;\">15</span>,<span style=\"color: #000000;\">15</span> <span style=\"color: #0000ff;\">get</span> oGet <span style=\"color: #0000ff;\">var</span> cVar <span style=\"color: #0000ff;\">picture</span> <span style=\"color: #ff0000;\">\"@!\"</span>  bitmap <span style=\"color: #ff0000;\">\"..<span style=\"color: #000000;\">\\b</span>itmaps<span style=\"color: #000000;\">\\c</span>hkyes.bmp\"</span> <span style=\"color: #0000ff;\">action</span><span style=\"color: #000000;\">&#40;</span> calc<span style=\"color: #000000;\">&#40;</span> @cVar <span style=\"color: #000000;\">&#41;</span>, oGet:<span style=\"color: #0000ff;\">refresh</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span>;<br />      <span style=\"color: #0000ff;\">size</span> <span style=\"color: #000000;\">120</span>,<span style=\"color: #000000;\">12</span> <span style=\"color: #0000ff;\">of</span> oDlg <span style=\"color: #0000ff;\">pixel</span><br />   oGet:<span style=\"color: #000000;\">lAdjustBtn</span> := .t.<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: #00C800;\">nil</span><br /><br /><br /><span style=\"color: #00C800;\">function</span> calc<span style=\"color: #000000;\">&#40;</span> cVar <span style=\"color: #000000;\">&#41;</span><br />   <span style=\"color: #00C800;\">local</span> cTempCalc := cVar<br />   <span style=\"color: #00C800;\">Try</span><br />   cVar := ALLTRIM<span style=\"color: #000000;\">&#40;</span> str<span style=\"color: #000000;\">&#40;</span> &cTempCalc <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> + space<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">100</span> <span style=\"color: #000000;\">&#41;</span><br />   CATCH<br />   <span style=\"color: #0000ff;\">msginfo</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Wrong input\"</span> <span style=\"color: #000000;\">&#41;</span><br />   End<br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span></div>[/code:1hckr53j]\n\nrc-file\n[code=fw:1hckr53j]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #B900B9;\">// Add this to your resources RC file</span><br /><br />#ifdef __FLAT__<br />   <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">24</span> <span style=\"color: #ff0000;\">\".<span style=\"color: #000000;\">\\w</span>inxp<span style=\"color: #000000;\">\\W</span>indowsXP.Manifest\"</span><br />#endif<br /><br />#ifdef __64__<br />   <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">24</span> <span style=\"color: #ff0000;\">\"WinXP/WindowsXP.Manifest64\"</span><br />#endif <br /> </div>[/code:1hckr53j]", "time": "21:37", "topic": "Calculator", "username": "Otto" } ]
Calculator
[ { "date": "2010-04-23", "forum": "FiveWin for Harbour/xHarbour", "text": "Otto,\n\nGreat contribution. Thanks.\n\nI have a similar one somewhere for dates. You can do, +7 (same day next week), +1 (tomorrow), etc.\n\nRegards,\nJames", "time": "23:35", "topic": "Calculator", "username": "James Bott" } ]
Calculator
[ { "date": "2010-04-24", "forum": "FiveWin for Harbour/xHarbour", "text": "nice too", "time": "13:13", "topic": "Calculator", "username": "MdaSolution" } ]
Calculator
[ { "date": "2006-08-21", "forum": "FiveWin for Harbour/xHarbour", "text": "Anyone have a sample of a calculator that can be included in a Get control which will return the value to the field ?\n\nThanks.", "time": "23:27", "topic": "Calculator in Get", "username": "TimStone" } ]
Calculator in Get
[ { "date": "2006-08-22", "forum": "FiveWin for Harbour/xHarbour", "text": "Hi Tim,\n\n<!-- w --><a class=\"postlink\" href=\"http://www.reportdesigner.info/downloads/GetCalc.zip\">www.reportdesigner.info/downloads/GetCalc.zip</a><!-- w -->", "time": "07:12", "topic": "Calculator in Get", "username": "Timm Sodtalbers" } ]
Calculator in Get
[ { "date": "2006-08-22", "forum": "Utilities / Utilidades", "text": "Developed by Timm Sodtalbers:\n\n<!-- m --><a class=\"postlink\" href=\"http://hyperupload.com/download/02dbcac645/GetCalc.zip.html\">http://hyperupload.com/download/02dbcac ... c.zip.html</a><!-- m -->", "time": "07:39", "topic": "Calculator in Get", "username": "Antonio Linares" } ]
Calculator in Get
[ { "date": "2006-08-22", "forum": "FiveWin for Harbour/xHarbour", "text": "Thanks. I'll work with that.", "time": "20:49", "topic": "Calculator in Get", "username": "TimStone" } ]
Calculator in Get
[ { "date": "2006-08-24", "forum": "FiveWin for Harbour/xHarbour", "text": "Hello Mr.Timm\n\nSimplest way of presenting big things.\nYour calculator is very simple and cute.\n\nKeep posting such good things.\n\nBTW I sent a small modification to your code to your email.\n\nPlease check its accuracy. But I am getting the required results\nwith this modification.\n\nRegards\n\n- Ramesh Babu P", "time": "17:19", "topic": "Calculator in Get", "username": "RAMESHBABU" } ]
Calculator in Get
[ { "date": "2008-12-10", "forum": "Utilities / Utilidades", "text": "Hi Antonio,\r\n\r\nI am interested in calculator get. Is it in 8.11 or external file? How Can I find it?\r\n\r\nThanks,", "time": "19:55", "topic": "Calculator in Get", "username": "Horizon" } ]
Calculator in Get
[ { "date": "2008-12-11", "forum": "Utilities / Utilidades", "text": "[quote=\"Antonio Linares\":540unsy8]Developed by Timm Sodtalbers:\n\n<!-- m --><a class=\"postlink\" href=\"http://hyperupload.com/download/02dbcac645/GetCalc.zip.html\">http://hyperupload.com/download/02dbcac ... c.zip.html</a><!-- m -->[/quote:540unsy8]\r\n\r\nAntonio, no he podido acceder al link.", "time": "09:22", "topic": "Calculator in Get", "username": "jose_murugosa" } ]
Calculator in Get
[ { "date": "2008-12-11", "forum": "Utilities / Utilidades", "text": "We have contacted Timm Sodtalbers to get that file again.\r\n\r\nHemos contactado con Timm Sodtalbers para conseguir ese fichero de nuevo.", "time": "10:06", "topic": "Calculator in Get", "username": "Antonio Linares" } ]
Calculator in Get
[ { "date": "2008-12-11", "forum": "Utilities / Utilidades", "text": "[quote=\"Antonio Linares\":2k9gwd8m]We have contacted Timm Sodtalbers to get that file again.\n\nHemos contactado con Timm Sodtalbers para conseguir ese fichero de nuevo.[/quote:2k9gwd8m]\r\n\r\ngracias <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D -->", "time": "12:36", "topic": "Calculator in Get", "username": "jose_murugosa" } ]
Calculator in Get
[ { "date": "2008-12-11", "forum": "Utilities / Utilidades", "text": "Thanks", "time": "12:54", "topic": "Calculator in Get", "username": "Horizon" } ]
Calculator in Get
[ { "date": "2008-12-12", "forum": "Utilities / Utilidades", "text": "Hi!\r\n\r\nYou will find that file here:\r\n<!-- w --><a class=\"postlink\" href=\"http://www.reportdesigner.info/downloads/GetCalc.zip\">www.reportdesigner.info/downloads/GetCalc.zip</a><!-- w -->", "time": "08:26", "topic": "Calculator in Get", "username": "Timm Sodtalbers" } ]
Calculator in Get
[ { "date": "2008-12-12", "forum": "Utilities / Utilidades", "text": "Timm,\r\n\r\nThanks! <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->\r\n\r\nWe have placed a copy of it in:\r\n<!-- w --><a class=\"postlink\" href=\"http://www.fivetechsoft.com/files/utilities/getcalc.zip\">www.fivetechsoft.com/files/utilities/getcalc.zip</a><!-- w -->", "time": "10:07", "topic": "Calculator in Get", "username": "Antonio Linares" } ]
Calculator in Get
[ { "date": "2008-12-12", "forum": "Utilities / Utilidades", "text": "[quote=\"Timm Sodtalbers\":31mio4x2]Hi!\n\nYou will find that file here:\n<!-- w --><a class=\"postlink\" href=\"http://www.reportdesigner.info/downloads/GetCalc.zip\">www.reportdesigner.info/downloads/GetCalc.zip</a><!-- w -->[/quote:31mio4x2]\r\n\r\nTim, \r\nIt is a nice contribution, thanks!!!\r\n\r\n\r\nJust one thing:\r\n\r\n[b:31mio4x2]For recent versions of fivewin (tget is modified) you will need to comment this lines or result wil be wrong.[/b:31mio4x2][code:31mio4x2]\nFUNCTION SC_FormulaString&#40; oGet &#41;\n\n&#46;&#46;&#46;&#46;&#46;&#46;&#46;&#46;&#46;&#46;&#46;&#46;\n\n/*\n IF nLastKey <> 8\n cBuffer &#58;= STUFF&#40; cBuffer, oGet&#58;nPos, 0, CHR&#40; nLastKey &#41; &#41;\n ENDIF\n */\n\n&#46;&#46;&#46;&#46;&#46;&#46;&#46;&#46;&#46;&#46;&#46;&#46;\n[/code:31mio4x2]\r\n\r\nThanks again!! <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D --> ", "time": "11:16", "topic": "Calculator in Get", "username": "jose_murugosa" } ]
Calculator in Get
[ { "date": "2008-12-12", "forum": "Utilities / Utilidades", "text": "Thanks Timm", "time": "13:58", "topic": "Calculator in Get", "username": "Horizon" } ]
Calculator in Get
[ { "date": "2014-05-23", "forum": "Utilities / Utilidades", "text": "Maestro, que error és este?\n\n[code=fw:33ws2ck0]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />Application<br />===========<br />&nbsp; &nbsp;Path and <span style=\"color: #0000ff;\">name</span>: <span style=\"color: #000000;\">c</span>:\\FWH1306\\samples\\GETCALC.exe <span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">32</span> bits<span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">Size</span>: <span style=\"color: #000000;\">2</span>,<span style=\"color: #000000;\">438</span>,<span style=\"color: #000000;\">656</span> bytes<br />&nbsp; &nbsp;Compiler version: <span style=\"color: #000000;\">xHarbour</span> <span style=\"color: #000000;\">1.2</span><span style=\"color: #000000;\">.3</span> Intl. <span style=\"color: #000000;\">&#40;</span>SimpLex<span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#40;</span>Build <span style=\"color: #000000;\">20130422</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;FiveWin &nbsp;Version: <span style=\"color: #000000;\">FWHX</span> <span style=\"color: #000000;\">13.05</span><br />&nbsp; &nbsp;Windows version: <span style=\"color: #000000;\">6.1</span>, Build <span style=\"color: #000000;\">7601</span> Service Pack <span style=\"color: #000000;\">1</span><br /><br />&nbsp; &nbsp;Time <span style=\"color: #0000ff;\">from</span> start: <span style=\"color: #000000;\">0</span> hours <span style=\"color: #000000;\">0</span> mins <span style=\"color: #000000;\">0</span> secs <br />&nbsp; &nbsp;Error occurred <span style=\"color: #00C800;\">at</span>: <span style=\"color: #000000;\">05</span>/<span style=\"color: #000000;\">23</span>/<span style=\"color: #000000;\">14</span>, <span style=\"color: #000000;\">11</span>:<span style=\"color: #000000;\">34</span>:<span style=\"color: #000000;\">25</span><br />&nbsp; &nbsp;Error description: <span style=\"color: #000000;\">Error</span> BASE/<span style=\"color: #000000;\">1004</span> &nbsp;<span style=\"color: #00C800;\">Class</span>: <span style=\"color: #ff0000;\">'NIL'</span> has no exported <span style=\"color: #00C800;\">method</span>: <span style=\"color: #000000;\">OGET</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>: &nbsp;=> OGET<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;\">GETCALC</span>.prg => SHOWCALCULATOR<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">48</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp;</div>[/code:33ws2ck0]\n\nGracias, saludos.", "time": "15:36", "topic": "Calculator in Get", "username": "karinha" } ]
Calculator in Get
[ { "date": "2014-05-23", "forum": "FiveWin para Harbour/xHarbour", "text": "maestro, que error és este?\n\n<!-- l --><a class=\"postlink-local\" href=\"http://forums.fivetechsupport.com/viewtopic.php?f=17&t=3961\">viewtopic.php?f=17&t=3961</a><!-- l -->\n\nGracias, saludos.", "time": "15:38", "topic": "Calculator in Get", "username": "karinha" } ]
Calculator in Get
[ { "date": "2014-05-23", "forum": "FiveWin para Harbour/xHarbour", "text": "Joao,\n\nPlease try this:\n\n\n[code=fw:25uhu17m]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #B900B9;\">/*<br />&nbsp; &nbsp; =================================================================================<br />&nbsp; &nbsp; GetCalc.prg - PopUp-Calculator &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (c) copyright: Timm Sodtalbers, 2003<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;info@reportdesigner.info<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <!-- w --><a class=\"postlink\" href=\"http://www.reportdesigner.info\">www.reportdesigner.info</a><!-- w --><br />&nbsp; &nbsp; ---------------------------------------------------------------------------------<br /><br />&nbsp; &nbsp; In order to activate the PopUp-Calculator when pressing the space key in numeric<br />&nbsp; &nbsp; fields just add this lines in the KeyDown method of the tGet class:<br /><br />&nbsp; &nbsp; &nbsp; case nKey == VK_SPACE .AND. ::oGet:Type == \"N\"<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ShowCalculator( SELF )<br /><br />&nbsp; &nbsp; or if you only want to use the calculator with certain get fields:<br /><br />&nbsp; &nbsp; &nbsp; oGet:bKeyDown = {|nKey| IIF( nKey == VK_SPACE, ShowCalculator( oGet ), .T. ) }<br /><br />&nbsp; &nbsp; History:<br />&nbsp; &nbsp; 24.6.2003 - if the get field is <> 0 its value will be copied into the calculator<br />&nbsp; &nbsp; 22.6.2003 - first release<br /><br />&nbsp; &nbsp; =================================================================================<br />*/</span><br /><br /><span style=\"color: #00D7D7;\">#INCLUDE</span> <span style=\"color: #ff0000;\">\"FiveWin.ch\"</span><br /><br /><span style=\"color: #00D7D7;\">#DEFINE</span> SC_TITLE &nbsp; <span style=\"color: #ff0000;\">\" Fórmula:\"</span><br /><span style=\"color: #00D7D7;\">#DEFINE</span> SC_ERROR1 &nbsp;<span style=\"color: #ff0000;\">\"El resultado no cabe dentro del campo.\"</span><br /><span style=\"color: #00D7D7;\">#DEFINE</span> SC_ERROR2 &nbsp;<span style=\"color: #ff0000;\">\"El valor es incorrecto.\"</span><br /><span style=\"color: #00D7D7;\">#DEFINE</span> SC_ERROR3 &nbsp;<span style=\"color: #ff0000;\">\"valor incorrecto\"</span><br /><span style=\"color: #00D7D7;\">#DEFINE</span> SC_STOP &nbsp; &nbsp;<span style=\"color: #ff0000;\">\"A T E N C I Ó N\"</span><br /><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, oGet, oGet2<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">LOCAL</span> cCad := <span style=\"color: #ff0000;\">\"Testing &nbsp; &nbsp;\"</span> <span style=\"color: #B900B9;\">// pad(\"Testing Gets\",40)</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">LOCAL</span> nNum := <span style=\"color: #000000;\">0</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">LOCAL</span> dDat := Date<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;Set century <span style=\"color: #0000ff;\">On</span><br />&nbsp; &nbsp;Set Date Ansi<br />&nbsp; &nbsp;Set Date format <span style=\"color: #ff0000;\">\"mm/dd/yyyy\"</span><br /><br />&nbsp; &nbsp;SET _3DLOOK <span style=\"color: #0000ff;\">ON</span><br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">TITLE</span> <span style=\"color: #ff0000;\">\"TGet from \"</span> + FWDESCRIPTION<br /><br />&nbsp; &nbsp;@ <span style=\"color: #000000;\">1</span>, &nbsp; &nbsp;<span style=\"color: #000000;\">2</span> <span style=\"color: #0000ff;\">SAY</span> <span style=\"color: #ff0000;\">\"Text..:\"</span> <span style=\"color: #0000ff;\">OF</span> oDlg<br />&nbsp; &nbsp;@ <span style=\"color: #000000;\">1</span>, &nbsp; &nbsp;<span style=\"color: #000000;\">6</span> <span style=\"color: #0000ff;\">GET</span> oGet <span style=\"color: #0000ff;\">VAR</span> cCad <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">60</span>, <span style=\"color: #000000;\">10</span> <span style=\"color: #0000ff;\">COLOR</span> <span style=\"color: #ff0000;\">\"W/G\"</span> <span style=\"color: #0000ff;\">PICTURE</span> <span style=\"color: #ff0000;\">\"@K\"</span><br /><br />&nbsp; &nbsp;@ <span style=\"color: #000000;\">1.8</span>, &nbsp;<span style=\"color: #000000;\">2</span> <span style=\"color: #0000ff;\">SAY</span> <span style=\"color: #ff0000;\">\"Number:\"</span> <span style=\"color: #0000ff;\">OF</span> oDlg<br />&nbsp; &nbsp;@ <span style=\"color: #000000;\">2</span>, &nbsp; &nbsp;<span style=\"color: #000000;\">6</span> <span style=\"color: #0000ff;\">GET</span> oGet2 <span style=\"color: #0000ff;\">VAR</span> nNum <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">60</span>, <span style=\"color: #000000;\">10</span> <span style=\"color: #0000ff;\">PICTURE</span> <span style=\"color: #ff0000;\">\"9,999,999.99\"</span><br />oGet2:<span style=\"color: #000000;\">bKeyDown</span> = <span style=\"color: #000000;\">&#123;</span>|nKey| IIF<span style=\"color: #000000;\">&#40;</span> nKey == VK_SPACE, ShowCalculator<span style=\"color: #000000;\">&#40;</span> oGet2 <span style=\"color: #000000;\">&#41;</span>, .T. <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br /><br /><br />&nbsp; &nbsp;@ <span style=\"color: #000000;\">2.6</span>, &nbsp;<span style=\"color: #000000;\">2</span> <span style=\"color: #0000ff;\">SAY</span> <span style=\"color: #ff0000;\">\"Date:\"</span> <span style=\"color: #0000ff;\">OF</span> oDlg<br />&nbsp; &nbsp;@ <span style=\"color: #000000;\">3</span>, &nbsp; &nbsp;<span style=\"color: #000000;\">6</span> <span style=\"color: #0000ff;\">GET</span> oGet <span style=\"color: #0000ff;\">VAR</span> dDat <span style=\"color: #0000ff;\">PICTURE</span> <span style=\"color: #ff0000;\">\"@E\"</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">60</span>, <span style=\"color: #000000;\">10</span> &nbsp;<span style=\"color: #B900B9;\">// \"@D\"</span><br />&nbsp; &nbsp;@ <span style=\"color: #000000;\">3</span>, &nbsp; &nbsp;<span style=\"color: #000000;\">7</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #ff0000;\">\"&Ok\"</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">30</span>, <span style=\"color: #000000;\">12</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><br />&nbsp; &nbsp;@ <span style=\"color: #000000;\">3</span>, &nbsp; <span style=\"color: #000000;\">16</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #ff0000;\">\"&Cancel\"</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">30</span>, <span style=\"color: #000000;\">12</span> <span style=\"color: #0000ff;\">OF</span> oDlg <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> CANCEL<br /><br />&nbsp; &nbsp;<span style=\"color: #B900B9;\">// TGet():SetColorFocus( nRGB( 200, 120, 120 ) )</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 /><br /><br /><br />*-- <span style=\"color: #00C800;\">FUNCTION</span> -----------------------------------------------------------------<br />* &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">Name</span>: <span style=\"color: #000000;\">ShowCalculator</span><br />* &nbsp;Description:<br /><span style=\"color: #000000;\">*</span> &nbsp; &nbsp; &nbsp; Author: <span style=\"color: #000000;\">Timm</span> Sodtalbers<br />*-----------------------------------------------------------------------------<br /><span style=\"color: #00C800;\">FUNCTION</span> ShowCalculator<span style=\"color: #000000;\">&#40;</span> oCurGet <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">LOCAL</span> oDlg, oBtn, oGet1, oSay1, aResult<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">LOCAL</span> lTake &nbsp; &nbsp;:= .F.<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">LOCAL</span> cBuffer &nbsp;:= oCurGet:<span style=\"color: #000000;\">oGet</span>:<span style=\"color: #000000;\">Buffer</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">LOCAL</span> nHorzRes := GetSysMetrics<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">LOCAL</span> oGetRect := oCurGet:<span style=\"color: #000000;\">GetRect</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">LOCAL</span> nTop &nbsp; &nbsp; := oGetRect:<span style=\"color: #000000;\">nTop</span> - <span style=\"color: #000000;\">62</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">LOCAL</span> nLeft &nbsp; &nbsp;:= IIF<span style=\"color: #000000;\">&#40;</span> oGetRect:<span style=\"color: #000000;\">nRight</span> + <span style=\"color: #000000;\">126</span> > nHorzRes, nHorzRes - <span style=\"color: #000000;\">212</span>, oGetRect:<span style=\"color: #000000;\">nLeft</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">LOCAL</span> nDezimal := IIF<span style=\"color: #000000;\">&#40;</span> oCurGet:<span style=\"color: #000000;\">oGet</span>:<span style=\"color: #000000;\">DecPos</span> = <span style=\"color: #000000;\">-1</span> , ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #000000;\">0</span>, LEN<span style=\"color: #000000;\">&#40;</span> oCurGet:<span style=\"color: #000000;\">oGet</span>:<span style=\"color: #000000;\">Buffer</span> <span style=\"color: #000000;\">&#41;</span> - oCurGet:<span style=\"color: #000000;\">oGet</span>:<span style=\"color: #000000;\">DecPos</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">LOCAL</span> cFormula := IIF<span style=\"color: #000000;\">&#40;</span> VAL<span style=\"color: #000000;\">&#40;</span> cBuffer <span style=\"color: #000000;\">&#41;</span> = <span style=\"color: #000000;\">0</span>, <span style=\"color: #ff0000;\">\"\"</span>, ALLTRIM<span style=\"color: #000000;\">&#40;</span> cBuffer <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> + SPACE<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">200</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;\">FROM</span> <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #000000;\">26</span>, <span style=\"color: #000000;\">200</span> <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">STYLE</span> nOr<span style=\"color: #000000;\">&#40;</span> DS_MODALFRAME, WS_POPUP <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;@ <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #0000ff;\">SAY</span> SC_TITLE <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">300</span>, <span style=\"color: #000000;\">7</span> <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">COLOR</span> CLR_WHITE, RGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">9</span>, <span style=\"color: #000000;\">104</span>, <span style=\"color: #000000;\">168</span> <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;@ <span style=\"color: #000000;\">9</span>, <span style=\"color: #000000;\">2</span> <span style=\"color: #0000ff;\">GET</span> oGet1 <span style=\"color: #0000ff;\">VAR</span> cFormula <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">98</span>, <span style=\"color: #000000;\">10</span> <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">PICTURE</span> <span style=\"color: #ff0000;\">\"@S100\"</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">IF</span> .NOT. EMPTY<span style=\"color: #000000;\">&#40;</span> cBuffer <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; oGet1:<span style=\"color: #000000;\">SetPos</span><span style=\"color: #000000;\">&#40;</span> LEN<span style=\"color: #000000;\">&#40;</span>ALLTRIM<span style=\"color: #000000;\">&#40;</span> cFormula <span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span> + <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">ENDIF</span><br />&nbsp; &nbsp;oGet1:<span style=\"color: #000000;\">bChange</span> := <span style=\"color: #000000;\">&#123;</span>|| SC_Result<span style=\"color: #000000;\">&#40;</span> SC_FormulaString<span style=\"color: #000000;\">&#40;</span> oGet1 <span style=\"color: #000000;\">&#41;</span>, nDezimal, cBuffer, oSay1 <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br /><br />&nbsp; &nbsp;@ <span style=\"color: #000000;\">21</span>, <span style=\"color: #000000;\">2</span> <span style=\"color: #0000ff;\">SAY</span> oSay1 <span style=\"color: #0000ff;\">PROMPT</span> ALLTRIM<span style=\"color: #000000;\">&#40;</span> cFormula <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">98</span>, <span style=\"color: #000000;\">8</span> <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">COLOR</span> CLR_GRAY <span style=\"color: #0000ff;\">RIGHT</span><br /><br />&nbsp; &nbsp;#IFDEF __HARBOUR__<br />&nbsp; &nbsp; &nbsp; oGet1:<span style=\"color: #000000;\">bKeyDown</span> = <span style=\"color: #000000;\">&#123;</span>|nKey,nFlags| ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;IIF<span style=\"color: #000000;\">&#40;</span> nKey == VK_RETURN, <span style=\"color: #000000;\">&#40;</span> oGet1:<span style=\"color: #000000;\">bChange</span> := <span style=\"color: #000000;\">&#123;</span>|| .T. <span style=\"color: #000000;\">&#125;</span>, lTake := .T., 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;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br />&nbsp; &nbsp;#ELSE<br />&nbsp; &nbsp; &nbsp; @ <span style=\"color: #000000;\">9</span>, <span style=\"color: #000000;\">120</span> <span style=\"color: #0000ff;\">BUTTON</span> oBtn <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"...\"</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">10</span>, <span style=\"color: #000000;\">10</span> <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">ACTION</span> oDlg:<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; oBtn:<span style=\"color: #000000;\">bGotFocus</span> = <span style=\"color: #000000;\">&#123;</span>|| lTake := .T., oDlg:<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br />&nbsp; &nbsp;#ENDIF<br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg ;<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">INIT</span> oDlg:<span style=\"color: #0000ff;\">Move</span><span style=\"color: #000000;\">&#40;</span> nTop, nLeft, <span style=\"color: #000000;\">210</span>, <span style=\"color: #000000;\">62</span> <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">IF</span> lTake = .T. .AND. .NOT. EMPTY<span style=\"color: #000000;\">&#40;</span> cFormula <span style=\"color: #000000;\">&#41;</span> .AND. oCurGet:<span style=\"color: #000000;\">lFocused</span> = .T.<br /><br />&nbsp; &nbsp; &nbsp; aResult := SC_Result<span style=\"color: #000000;\">&#40;</span> cFormula, nDezimal, cBuffer <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">IF</span> EMPTY<span style=\"color: #000000;\">&#40;</span> aResult<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;oCurGet:<span style=\"color: #000000;\">VarPut</span><span style=\"color: #000000;\">&#40;</span> aResult<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oCurGet:<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;\">ELSE</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;MsgStop<span style=\"color: #000000;\">&#40;</span> aResult<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#93;</span>, SC_STOP <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">ENDIF</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">ENDIF</span><br /><br /><span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #000000;\">&#40;</span>.T.<span style=\"color: #000000;\">&#41;</span><br /><br /><br />*-- <span style=\"color: #00C800;\">FUNCTION</span> -----------------------------------------------------------------<br />* &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">Name</span>: <span style=\"color: #000000;\">SC_Result</span><br />* &nbsp;Description:<br /><span style=\"color: #000000;\">*</span> &nbsp; &nbsp; &nbsp; Author: <span style=\"color: #000000;\">Timm</span> Sodtalbers<br />*-----------------------------------------------------------------------------<br /><span style=\"color: #00C800;\">FUNCTION</span> SC_Result<span style=\"color: #000000;\">&#40;</span> cFormula, nDezimal, cBuffer, oSay <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">LOCAL</span> nValue<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">LOCAL</span> cError := <span style=\"color: #ff0000;\">\"\"</span><br /><br />&nbsp; &nbsp;cFormula := STRTRAN<span style=\"color: #000000;\">&#40;</span> cFormula, <span style=\"color: #ff0000;\">\",\"</span>, <span style=\"color: #ff0000;\">\".\"</span> <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">IF</span> TYPE<span style=\"color: #000000;\">&#40;</span> cFormula <span style=\"color: #000000;\">&#41;</span> = <span style=\"color: #ff0000;\">\"N\"</span><br /><br />&nbsp; &nbsp; &nbsp; nValue := &<span style=\"color: #000000;\">&#40;</span> cFormula <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">IF</span> LEN<span style=\"color: #000000;\">&#40;</span> cBuffer <span style=\"color: #000000;\">&#41;</span> < LEN<span style=\"color: #000000;\">&#40;</span> ALLTRIM<span style=\"color: #000000;\">&#40;</span> STR<span style=\"color: #000000;\">&#40;</span> nValue, <span style=\"color: #000000;\">100</span>, nDezimal <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cError := SC_ERROR1<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">ENDIF</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">ELSE</span><br />&nbsp; &nbsp; &nbsp; cError := SC_ERROR2<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">ENDIF</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">IF</span> oSay <> <span style=\"color: #00C800;\">NIL</span><br />&nbsp; &nbsp; &nbsp; oSay:<span style=\"color: #000000;\">SetText</span><span style=\"color: #000000;\">&#40;</span> IIF<span style=\"color: #000000;\">&#40;</span> EMPTY<span style=\"color: #000000;\">&#40;</span> cError<span style=\"color: #000000;\">&#41;</span>, ALLTRIM<span style=\"color: #000000;\">&#40;</span>STR<span style=\"color: #000000;\">&#40;</span> nValue, <span style=\"color: #000000;\">100</span>, nDezimal <span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span>, SC_ERROR3 <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">ENDIF</span><br /><br /><span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #000000;\">&#123;</span> nValue, cError <span style=\"color: #000000;\">&#125;</span><br /><br /><br />*-- FUNCTION------------------------------------------------------------------<br />* &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">Name</span>: <span style=\"color: #000000;\">SC_FormulaString</span><br />* &nbsp;Description:<br /><span style=\"color: #000000;\">*</span> &nbsp; &nbsp; &nbsp; Author: <span style=\"color: #000000;\">Timm</span> Sodtalbers<br />*-----------------------------------------------------------------------------<br /><span style=\"color: #00C800;\">FUNCTION</span> SC_FormulaString<span style=\"color: #000000;\">&#40;</span> oGet <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">LOCAL</span> cBuffer &nbsp;:= ALLTRIM<span style=\"color: #000000;\">&#40;</span> oGet:<span style=\"color: #000000;\">oGet</span>:<span style=\"color: #000000;\">buffer</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">LOCAL</span> nLastKey := oGet:<span style=\"color: #000000;\">nLastKey</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">IF</span> nLastKey > <span style=\"color: #000000;\">96</span> .AND. nLastKey < <span style=\"color: #000000;\">116</span><br />&nbsp; &nbsp; &nbsp; nLastKey := nLastKey - <span style=\"color: #000000;\">96</span> + <span style=\"color: #000000;\">48</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">ENDIF</span><br /><br /><span style=\"color: #B900B9;\">/*<br />&nbsp; &nbsp;IF nLastKey <> 8<br />&nbsp; &nbsp; &nbsp; cBuffer := STUFF( cBuffer, oGet:nPos, 0, CHR( nLastKey ) )<br />&nbsp; &nbsp;ENDIF<br />*/</span><br /><br /><span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #000000;\">&#40;</span> cBuffer <span style=\"color: #000000;\">&#41;</span></div>[/code:25uhu17m]", "time": "16:20", "topic": "Calculator in Get", "username": "lucasdebeltran" } ]
Calculator in Get
[ { "date": "2014-05-23", "forum": "Utilities / Utilidades", "text": "Joao,\n\nQue código hay en esta línea ?\n\nCalled from: GETCALC.prg => SHOWCALCULATOR( 48 )", "time": "17:22", "topic": "Calculator in Get", "username": "Antonio Linares" } ]
Calculator in Get
[ { "date": "2014-05-23", "forum": "FiveWin para Harbour/xHarbour", "text": "Gracias Lucas, funcionó perfecto. Very Thanks!!\n\nRegards, saludos.", "time": "17:46", "topic": "Calculator in Get", "username": "karinha" } ]
Calculator in Get
[ { "date": "2014-05-23", "forum": "Utilities / Utilidades", "text": "LOCAL cBuffer := oCurGet:oGet:Buffer\n\nsaludos\n\n\nWilson", "time": "19:02", "topic": "Calculator in Get", "username": "wilsongamboa" } ]
Calculator in Get
[ { "date": "2014-05-23", "forum": "Utilities / Utilidades", "text": "Una posible solución seria (a falta de saber porque ese valor llega nil):\n\nLOCAL cBuffer := If( oCurGet != nil, oCurGet:oGet:Buffer, \"\" ) // ó nil, según se necesite", "time": "19:20", "topic": "Calculator in Get", "username": "Antonio Linares" } ]
Calculator in Get
[ { "date": "2014-05-26", "forum": "Utilities / Utilidades", "text": "[quote=\"Antonio Linares\":3slgdl94]Una posible solución seria (a falta de saber porque ese valor llega nil):\n\nLOCAL cBuffer := If( oCurGet != nil, oCurGet:oGet:Buffer, \"\" ) // ó nil, según se necesite[/quote:3slgdl94]\n\nMaestro, también no funciona.\n\nResuelto asi:\n\n<!-- l --><a class=\"postlink-local\" href=\"http://forums.fivetechsupport.com/viewtopic.php?f=6&t=28497\">viewtopic.php?f=6&t=28497</a><!-- l -->\n\nGracias, salu2.", "time": "15:10", "topic": "Calculator in Get", "username": "karinha" } ]
Calculator in Get
[ { "date": "2014-05-27", "forum": "FiveWin para Harbour/xHarbour", "text": "Hola,\n\nUsandolo desde la lausula ACTION ,Con este codigo no funciona.\n\n[code=fw:51y77i8e]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">GET</span> oGet<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">4</span><span style=\"color: #000000;\">&#93;</span> <span style=\"color: #0000ff;\">VAR</span> aDatos<span style=\"color: #000000;\">&#91;</span> _PRECIO <span style=\"color: #000000;\">&#93;</span> <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">203</span> <span style=\"color: #0000ff;\">OF</span> oDlg;<br />    <span style=\"color: #0000ff;\">PICTURE</span> <span style=\"color: #ff0000;\">\"@E 999,999.99\"</span>;<br />    BITMAP ovarsis:<span style=\"color: #000000;\">BitMap</span><span style=\"color: #000000;\">&#91;</span> BMP_GETCALC <span style=\"color: #000000;\">&#93;</span>;<br />    <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #000000;\">&#40;</span> ShowCalculator<span style=\"color: #000000;\">&#40;</span>oGet<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">4</span><span style=\"color: #000000;\">&#93;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br /> </div>[/code:51y77i8e]\n\nDa el siguiente error :\n\n[code=fw:51y77i8e]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />   Called <span style=\"color: #0000ff;\">from</span>: .\\source\\classes\\TGET.PRG => <span style=\"color: #000000;\">&#40;</span>b<span style=\"color: #000000;\">&#41;</span>TGET_CREATEBUTTON<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">487</span> <span style=\"color: #000000;\">&#41;</span><br /> </div>[/code:51y77i8e]", "time": "04:46", "topic": "Calculator in Get", "username": "albeiroval" } ]
Calculator in Get
[ { "date": "2014-05-27", "forum": "FiveWin para Harbour/xHarbour", "text": "REDEFINE GET oGet[4] VAR aDatos[ _PRECIO ] ID 203 OF oDlg PICTURE \"@E 999,999.99\"\n\noGet[4] :bKeyDown = {|nKey| IIF( nKey == VK_SPACE, ShowCalculator(oGet[4] ), .T. ) }\n\n\nthe user must only press space bar when the cursor is in this get", "time": "08:12", "topic": "Calculator in Get", "username": "Silvio.Falconi" } ]
Calculator in Get
[ { "date": "2014-05-27", "forum": "FiveWin para Harbour/xHarbour", "text": "Silvio,\n\nYa lo habia probado de esa manera. Lo que queria era probarlo desde un boton en el GET.\n\nSaludos,", "time": "14:40", "topic": "Calculator in Get", "username": "albeiroval" } ]
Calculator in Get
[ { "date": "2014-05-22", "forum": "FiveWin for Harbour/xHarbour", "text": "A client recently updated from a DOS version of my software to the Windows version. ( waited 15 years to do so ).\n\nHe is obsessed with the fact that he had a calculator in GET fields in the DOS version ( some people just can't let go ). I don't have it in those fields under Windows because a lot of the fields trigger lookups or automatic processes.\n\nHowever, I'm thinking maybe it would help to have one. Mine are old so they would need to be revised to look clean in Windows.\n\nDoes anyone have an implementation of a calculator for GET fields ? It might be a nice addition to the GET control ... \n\nThanks.", "time": "23:24", "topic": "Calculator revisited", "username": "TimStone" } ]
Calculator revisited
[ { "date": "2014-05-23", "forum": "FiveWin for Harbour/xHarbour", "text": "Hello,\nI use getcalc from Tim Sodtalbergs <!-- l --><a class=\"postlink-local\" href=\"http://forums.fivetechsupport.com/viewtopic.php?p=71631\">viewtopic.php?p=71631</a><!-- l -->\n\nRegards,", "time": "15:10", "topic": "Calculator revisited", "username": "José Luis Sánchez" } ]
Calculator revisited
[ { "date": "2014-05-23", "forum": "FiveWin for Harbour/xHarbour", "text": "Tim,\n\nYou can implement it quite easily using:\n\n... GET ... ACTION WinExec( \"calculator\" )\n\nIf it is fine for you, then I help you to recover the value shown.\n\nOf course it is even better to use a FWH calculator. Please try MsgCalc() from FWH", "time": "17:48", "topic": "Calculator revisited", "username": "Antonio Linares" } ]
Calculator revisited
[ { "date": "2014-05-23", "forum": "FiveWin for Harbour/xHarbour", "text": "Or Timm's class which seems to work very fine:\n\n<!-- l --><a class=\"postlink-local\" href=\"http://forums.fivetechsupport.com/viewtopic.php?p=159435#p159435\">viewtopic.php?p=159435#p159435</a><!-- l -->\n\nthe solution that you prefer <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->", "time": "17:53", "topic": "Calculator revisited", "username": "Antonio Linares" } ]
Calculator revisited
[ { "date": "2014-05-23", "forum": "FiveWin for Harbour/xHarbour", "text": "Hi Antonio,\n\nRight now I'm using an inline GET calculator. I would love to see how to recover the value from the WIndows Calculator since it's traditional. I'm also going to play with MsgCalc( ) which might work out.\n\nThanks.", "time": "18:06", "topic": "Calculator revisited", "username": "TimStone" } ]
Calculator revisited
[ { "date": "2014-05-23", "forum": "FiveWin for Harbour/xHarbour", "text": "Tim,\n\nThe problem with the Windows calculator is that unless the user press the \"copy\" menu option in the calculator, its value will not be saved.\n\nIf clicked, then we can retrieve its value from the clipboard. Its easy <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->", "time": "19:10", "topic": "Calculator revisited", "username": "Antonio Linares" } ]
Calculator revisited
[ { "date": "2014-05-23", "forum": "FiveWin for Harbour/xHarbour", "text": "OK ... I took MsgCalc and re-did the layout a bit to be more conforming to my program ... so it's consistent with the existing fonts / brush etc. I will work OK ...\n\nOne quick question. I have a bitmap within a get ... no problem. However, would it be possible to put 2 bitmaps in there with 2 different action statements ?\n\nThanks", "time": "19:49", "topic": "Calculator revisited", "username": "TimStone" } ]
Calculator revisited
[ { "date": "2014-05-23", "forum": "FiveWin for Harbour/xHarbour", "text": "Tim,\n\n[quote:3i6irm1q]One quick question. I have a bitmap within a get ... no problem. However, would it be possible to put 2 bitmaps in there with 2 different action statements ?[/quote:3i6irm1q]\n\nGee, give him the moon and he wants the stars.\n\nMaybe you could just put a button next to the Get for the second action.\n\nJames", "time": "22:13", "topic": "Calculator revisited", "username": "James Bott" } ]
Calculator revisited
[ { "date": "2014-05-23", "forum": "FiveWin for Harbour/xHarbour", "text": "James,\n\nWe need to do lunch !\n\nOh ... I have the button next to the get already. It works fine, but I have a crotchety old client who likes to point out its \"different\"\n\nTim", "time": "22:18", "topic": "Calculator revisited", "username": "TimStone" } ]
Calculator revisited
[ { "date": "2014-05-23", "forum": "FiveWin for Harbour/xHarbour", "text": "Tim,\n\n[quote:34v8bal3]We need to do lunch ![/quote:34v8bal3]\n\nWe do. Let me know when you are going to be in Carlsbad next time.\n\n[quote:34v8bal3]Oh ... I have the button next to the get already. It works fine, but I have a crotchety old client who likes to point out its \"different\"[/quote:34v8bal3]\n\nMy philosophy is to ignore them and they eventually give up. Or, offer to work on it for an (inflated) hourly fee--that usually changes their mind on how important it is. In this case you could just tell them that this is not a Windows standard design and thus you can't support it anymore.\n\nJames", "time": "22:45", "topic": "Calculator revisited", "username": "James Bott" } ]
Calculator revisited
[ { "date": "2014-05-23", "forum": "FiveWin for Harbour/xHarbour", "text": "This is a rather funny situation. The guy has been running the DOS system forever, and kept \"not updating\" to the Windows version until the XP issue arose. However, he paid all those (15) years for the updates ... so he has \"sort of paid\" for some special attention. \n\nI'm in Carlsbad often.", "time": "22:53", "topic": "Calculator revisited", "username": "TimStone" } ]
Calculator revisited
[ { "date": "2014-05-28", "forum": "FiveWin for Harbour/xHarbour", "text": "May be usefull to you:\n\n[code=fw:1b73zsde]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #B900B9;\">/*<br />&nbsp; TCALC.PRG &nbsp; <br />&nbsp; CLASE QUE PERMITE PONER UNA CALCULADORA CON ROLLO DE PAPEL VIRTUAL.<br />&nbsp; Necesita el fichero de recursos: TCALC.RC<br /><br />&nbsp; Primera Versión: Junio del 2007 DC<br />&nbsp; Ultima Revisión: 23/09/2007<br />&nbsp; Autor: Verhoven. &nbsp;¡ Seguro les resultará de utilidad !<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;1.- Queda autorizado su libre distribucion y uso, incluso con fines comerciales . <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;2.- El autor declina cualquier responsabilidad en caso de funcionamiento anómalo.<br /><br />&nbsp; Ejemplo: Hacemos una calculadora que se active pulsando F12:<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Para incluirla en un programa basta con poner después de la función main() del mismo.<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;#include 'TCALC.PRG'<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;public oCalc:=tCalc():new()<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;setkey(VK_F12, {|| oCalc:calculadora(oWnd,'@E 9,999,999.9999 ')})<br />&nbsp; <br />&nbsp; Vea el significado de las variables de instancia y de las que se les pasan a los métodos para <br />&nbsp; &nbsp;aprovechar algunas posibilidades de configuración.<br />*/</span><br /><br /><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"fivewin.ch\"</span><br /><br /><span style=\"color: #00C800;\">CLASS</span> TCalc<br />&nbsp;<span style=\"color: #00C800;\">DATA</span> nResult &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #B900B9;\">//Resultado de las operaciones en curso. &nbsp; &nbsp;</span><br />&nbsp;<span style=\"color: #00C800;\">DATA</span> aRolloCalc &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #B900B9;\">//Operaciones realizadas desde la última vez que se borró todo.</span><br />&nbsp;<br />&nbsp;<span style=\"color: #00C800;\">DATA</span> cUltima, cUltimaop &nbsp; &nbsp; &nbsp;<br />&nbsp;<span style=\"color: #00C800;\">DATA</span> cPatronSalida &nbsp; &nbsp; &nbsp; <span style=\"color: #B900B9;\">// cPatronSalida &nbsp;-> Formato en que se pinta el resultado. &nbsp; &nbsp;</span><br />&nbsp; &nbsp; <br />&nbsp;<span style=\"color: #00C800;\">METHOD</span> <span style=\"color: #00C800;\">New</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> CONSTRUCTOR<br />&nbsp;<br />&nbsp;<span style=\"color: #00C800;\">METHOD</span> End<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp;<br />&nbsp;<span style=\"color: #00C800;\">METHOD</span> nCalculadigual<span style=\"color: #000000;\">&#40;</span>nGet<span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp;<br />&nbsp;<span style=\"color: #00C800;\">METHOD</span> calculadora<span style=\"color: #000000;\">&#40;</span>oPadre,cPatronSalida,lBorraAlInicio<span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #B900B9;\">// lBorraAlInicio -> Al llamar al método si está en .t. borra lo que hubiera.</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #B900B9;\">// &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Si está en .f. ó NIL conserva las operaciones anteriores.</span><br />&nbsp; &nbsp; &nbsp;<br />&nbsp;<span style=\"color: #00C800;\">METHOD</span> TCalc_Teclas<span style=\"color: #000000;\">&#40;</span>nKey, oDlg<span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">ENDCLASS</span><br /><br /><span style=\"color: #B900B9;\">//----------------------------------------------------------------------------//</span><br /><br /><span style=\"color: #00C800;\">METHOD</span> <span style=\"color: #00C800;\">New</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #00C800;\">CLASS</span> TCalc<br />&nbsp;::<span style=\"color: #000000;\">aRolloCalc</span>:=<span style=\"color: #000000;\">&#123;</span><span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">'C'</span>,<span style=\"color: #ff0000;\">' '</span><span style=\"color: #000000;\">&#125;</span><span style=\"color: #000000;\">&#125;</span> &nbsp; <br />&nbsp;::<span style=\"color: #000000;\">nResult</span> &nbsp; :=<span style=\"color: #000000;\">0</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp;<br />&nbsp;::<span style=\"color: #000000;\">cUltima</span> &nbsp; :=<span style=\"color: #ff0000;\">''</span><br />&nbsp;::<span style=\"color: #000000;\">cUltimaop</span> :=<span style=\"color: #ff0000;\">''</span> &nbsp; &nbsp; <br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">SELF</span><br /><br /><span style=\"color: #B900B9;\">//----------------------------------------------------------------------------//</span><br /><br /><span style=\"color: #00C800;\">METHOD</span> End<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #00C800;\">CLASS</span> TCalc<br />&nbsp;::<span style=\"color: #000000;\">aRolloCalc</span>:=<span style=\"color: #000000;\">&#123;</span><span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">'C'</span>,<span style=\"color: #ff0000;\">' '</span><span style=\"color: #000000;\">&#125;</span><span style=\"color: #000000;\">&#125;</span><br />&nbsp;::<span style=\"color: #000000;\">nResult</span> &nbsp; :=<span style=\"color: #000000;\">0</span><br /><br />&nbsp;::<span style=\"color: #000000;\">cUltima</span> &nbsp; :=<span style=\"color: #ff0000;\">''</span><br />&nbsp;::<span style=\"color: #000000;\">cUltimaop</span> :=<span style=\"color: #ff0000;\">''</span> <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;\">METHOD</span> calculadora<span style=\"color: #000000;\">&#40;</span>oPadre,cPatronSalida,lBorraAlInicio<span style=\"color: #000000;\">&#41;</span> <span style=\"color: #00C800;\">CLASS</span> TCalc<br /><span style=\"color: #00C800;\">local</span> oDlg<br /><span style=\"color: #00C800;\">local</span> oBtnSalir<br /><span style=\"color: #00C800;\">local</span> oBtnmenos, oBtnmas, oBtnpor, oBtndividir, oBtnigual, oBtnBorra<br /><span style=\"color: #00C800;\">local</span> oBtn0, oBtn1, oBtn2, oBtn3, oBtn4, oBtn5, oBtn6, oBtn7, oBtn8, oBtn9, oBtnP, oBtnSigno<br /><span style=\"color: #00C800;\">local</span> oBtnConv, oBtnConv2<br /><span style=\"color: #00C800;\">local</span> oBtnDel<br /><span style=\"color: #00C800;\">local</span> oSay<br /><span style=\"color: #00C800;\">local</span> oBrw, n:=<span style=\"color: #000000;\">1</span><br /><span style=\"color: #00C800;\">local</span> oGet, nGet:=<span style=\"color: #000000;\">0</span> ,cGet:=<span style=\"color: #ff0000;\">''</span>, nGetAnt:=<span style=\"color: #000000;\">0</span><br /><span style=\"color: #00C800;\">local</span> oFont1<br /><span style=\"color: #00C800;\">local</span> oFontLst<br /><br /><span style=\"color: #00C800;\">if</span> cPatronSalida=<span style=\"color: #00C800;\">NIL</span> .and. ::<span style=\"color: #000000;\">cPatronSalida</span>=<span style=\"color: #00C800;\">NIL</span><br />&nbsp; &nbsp;cPatronSalida:=<span style=\"color: #ff0000;\">'@E 9,999,999,999.99 '</span> &nbsp;<span style=\"color: #B900B9;\">//Formato en que se pinta el resultado.</span><br /><span style=\"color: #00C800;\">endif</span><br /><br /><span style=\"color: #B900B9;\">//default cPatronSalida:='@E 9,999,999,999.99 ' &nbsp;//Formato en que se pinta el resultado.</span><br /><span style=\"color: #00C800;\">default</span> lBorraAlInicio :=.f. &nbsp;<span style=\"color: #B900B9;\">// Al llamar al método si está en .t. borra lo que hubiera.</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #B900B9;\">// &nbsp;Si está en .f. entonces conserva las operaciones anteriores.</span><br /><br />::<span style=\"color: #000000;\">cPatronSalida</span>:=cPatronSalida<br /><br />&nbsp; &nbsp; <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">FONT</span> oFont1 &nbsp; <span style=\"color: #0000ff;\">NAME</span> <span style=\"color: #ff0000;\">\"Arial\"</span> &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">0</span>,<span style=\"color: #000000;\">-20</span> <br />&nbsp; &nbsp; <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">FONT</span> oFontLst <span style=\"color: #0000ff;\">NAME</span> <span style=\"color: #ff0000;\">\"MS Sans Serif\"</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">0</span>,<span style=\"color: #000000;\">-14</span> <br />&nbsp; &nbsp; <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">'Calculadora'</span> <span style=\"color: #0000ff;\">OF</span> oPadre <span style=\"color: #0000ff;\">TITLE</span> <span style=\"color: #ff0000;\">'CALCULADORA'</span> <span style=\"color: #0000ff;\">FONT</span> oFont<br /><br />&nbsp; &nbsp; <span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> oBtnSalir <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">500</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">MESSAGE</span> <span style=\"color: #ff0000;\">'SALIR'</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<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: #00C800;\">default</span> CANCEL <span style=\"color: #0000ff;\">UPDATE</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oBtnSalir:<span style=\"color: #000000;\">cargo</span>:=<span style=\"color: #ff0000;\">'S'</span><br />&nbsp; &nbsp; <br />&nbsp; &nbsp; <span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> oBtnmenos <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">401</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">MESSAGE</span> <span style=\"color: #ff0000;\">'Resta'</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #000000;\">&#40;</span>iif<span style=\"color: #000000;\">&#40;</span>nGet<><span style=\"color: #000000;\">0</span>,<span style=\"color: #000000;\">&#40;</span>nGetAnt:=nGet,aadd<span style=\"color: #000000;\">&#40;</span>::<span style=\"color: #000000;\">aRolloCalc</span>,<span style=\"color: #000000;\">&#123;</span>transform<span style=\"color: #000000;\">&#40;</span>nGet,::<span style=\"color: #000000;\">cPatronSalida</span><span style=\"color: #000000;\">&#41;</span>,<span style=\"color: #ff0000;\">'-'</span><span style=\"color: #000000;\">&#125;</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span>,<span style=\"color: #000000;\">&#40;</span>::<span style=\"color: #000000;\">nResult</span>:=::<span style=\"color: #000000;\">nResult</span>-nGetAnt,aadd<span style=\"color: #000000;\">&#40;</span>::<span style=\"color: #000000;\">aRolloCalc</span>,<span style=\"color: #000000;\">&#123;</span>transform<span style=\"color: #000000;\">&#40;</span>iif<span style=\"color: #000000;\">&#40;</span>::<span style=\"color: #000000;\">cUltimaOp</span>=<span style=\"color: #ff0000;\">'='</span>,::<span style=\"color: #000000;\">nResult</span>,nGetAnt<span style=\"color: #000000;\">&#41;</span>,::<span style=\"color: #000000;\">cPatronSalida</span><span style=\"color: #000000;\">&#41;</span>,<span style=\"color: #ff0000;\">'-'</span><span style=\"color: #000000;\">&#125;</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span> ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &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; &nbsp; &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; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;iif<span style=\"color: #000000;\">&#40;</span>::<span style=\"color: #000000;\">nResult</span>=<span style=\"color: #000000;\">0</span>,::<span style=\"color: #000000;\">nResult</span>:=nGet,::<span style=\"color: #000000;\">nResult</span>:=::<span style=\"color: #000000;\">nResult</span>-nGet<span style=\"color: #000000;\">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::<span style=\"color: #000000;\">cUltimaOp</span>:=<span style=\"color: #ff0000;\">'-'</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oSay:<span style=\"color: #000000;\">SetText</span><span style=\"color: #000000;\">&#40;</span>transform<span style=\"color: #000000;\">&#40;</span>::<span style=\"color: #000000;\">nResult</span>,::<span style=\"color: #000000;\">cPatronSalida</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nGet:=<span style=\"color: #000000;\">0</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cGet:=<span style=\"color: #ff0000;\">''</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oGet:<span style=\"color: #000000;\">SetText</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">''</span><span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oBtnIgual:<span style=\"color: #000000;\">Setfocus</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;sysrefresh<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #0000ff;\">UPDATE</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oBtnmenos:<span style=\"color: #000000;\">cargo</span>:=<span style=\"color: #ff0000;\">'-'</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; <span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> oBtnmas &nbsp; <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">402</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">MESSAGE</span> <span style=\"color: #ff0000;\">'Suma'</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #000000;\">&#40;</span>iif<span style=\"color: #000000;\">&#40;</span>nGet<><span style=\"color: #000000;\">0</span>,<span style=\"color: #000000;\">&#40;</span>nGetAnt:=nGet,aadd<span style=\"color: #000000;\">&#40;</span>::<span style=\"color: #000000;\">aRolloCalc</span>,<span style=\"color: #000000;\">&#123;</span>transform<span style=\"color: #000000;\">&#40;</span>nGet,::<span style=\"color: #000000;\">cPatronSalida</span><span style=\"color: #000000;\">&#41;</span>,<span style=\"color: #ff0000;\">'+'</span><span style=\"color: #000000;\">&#125;</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span>,<span style=\"color: #000000;\">&#40;</span>::<span style=\"color: #000000;\">nResult</span>:=::<span style=\"color: #000000;\">nResult</span>+nGetAnt,aadd<span style=\"color: #000000;\">&#40;</span>::<span style=\"color: #000000;\">aRolloCalc</span>,<span style=\"color: #000000;\">&#123;</span>transform<span style=\"color: #000000;\">&#40;</span>iif<span style=\"color: #000000;\">&#40;</span>::<span style=\"color: #000000;\">cUltimaOp</span>=<span style=\"color: #ff0000;\">'='</span>,::<span style=\"color: #000000;\">nResult</span>,nGetAnt<span style=\"color: #000000;\">&#41;</span>,::<span style=\"color: #000000;\">cPatronSalida</span><span style=\"color: #000000;\">&#41;</span>,<span style=\"color: #ff0000;\">'+'</span><span style=\"color: #000000;\">&#125;</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span> ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &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; &nbsp; &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; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;iif<span style=\"color: #000000;\">&#40;</span>::<span style=\"color: #000000;\">nResult</span>=<span style=\"color: #000000;\">0</span>,::<span style=\"color: #000000;\">nResult</span>:=nGet,::<span style=\"color: #000000;\">nResult</span>:=::<span style=\"color: #000000;\">nResult</span>+nGet<span style=\"color: #000000;\">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::<span style=\"color: #000000;\">cUltimaOp</span>:=<span style=\"color: #ff0000;\">'+'</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oSay:<span style=\"color: #000000;\">SetText</span><span style=\"color: #000000;\">&#40;</span>transform<span style=\"color: #000000;\">&#40;</span>::<span style=\"color: #000000;\">nResult</span>,::<span style=\"color: #000000;\">cPatronSalida</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nGet:=<span style=\"color: #000000;\">0</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cGet:=<span style=\"color: #ff0000;\">''</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oGet:<span style=\"color: #000000;\">SetText</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">''</span><span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oBtnIgual:<span style=\"color: #000000;\">Setfocus</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;sysrefresh<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #0000ff;\">UPDATE</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oBtnmas:<span style=\"color: #000000;\">cargo</span>:=<span style=\"color: #ff0000;\">'+'</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; <span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> oBtnpor &nbsp; <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">403</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">MESSAGE</span> <span style=\"color: #ff0000;\">'Multiplica'</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #000000;\">&#40;</span>aadd<span style=\"color: #000000;\">&#40;</span> ::<span style=\"color: #000000;\">aRolloCalc</span>, iif<span style=\"color: #000000;\">&#40;</span>nGet=<span style=\"color: #000000;\">0</span> .and. ::<span style=\"color: #000000;\">nResult</span><><span style=\"color: #000000;\">0</span>,<span style=\"color: #000000;\">&#123;</span>transform<span style=\"color: #000000;\">&#40;</span>::<span style=\"color: #000000;\">nResult</span>,::<span style=\"color: #000000;\">cPatronSalida</span><span style=\"color: #000000;\">&#41;</span>,<span style=\"color: #ff0000;\">'x'</span><span style=\"color: #000000;\">&#125;</span>,<span style=\"color: #000000;\">&#123;</span>transform<span style=\"color: #000000;\">&#40;</span>nGet,::<span style=\"color: #000000;\">cPatronSalida</span><span style=\"color: #000000;\">&#41;</span>,<span style=\"color: #ff0000;\">'x'</span><span style=\"color: #000000;\">&#125;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &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; &nbsp; &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; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;iif<span style=\"color: #000000;\">&#40;</span>::<span style=\"color: #000000;\">nResult</span>=<span style=\"color: #000000;\">0</span>,::<span style=\"color: #000000;\">nResult</span>:=nGet,iif<span style=\"color: #000000;\">&#40;</span>nGet<><span style=\"color: #000000;\">0</span>,::<span style=\"color: #000000;\">nResult</span>:=::<span style=\"color: #000000;\">nResult*nGet</span>,<span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::<span style=\"color: #000000;\">cUltimaOp</span>:=<span style=\"color: #ff0000;\">'*'</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oSay:<span style=\"color: #000000;\">SetText</span><span style=\"color: #000000;\">&#40;</span>transform<span style=\"color: #000000;\">&#40;</span>::<span style=\"color: #000000;\">nResult</span>,::<span style=\"color: #000000;\">cPatronSalida</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nGet:=<span style=\"color: #000000;\">0</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cGet:=<span style=\"color: #ff0000;\">''</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oGet:<span style=\"color: #000000;\">SetText</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">''</span><span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oBtnIgual:<span style=\"color: #000000;\">Setfocus</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;sysrefresh<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #0000ff;\">UPDATE</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oBtnpor:<span style=\"color: #000000;\">cargo</span>:=<span style=\"color: #ff0000;\">'*'</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; <span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> oBtndividir <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">404</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">MESSAGE</span> <span style=\"color: #ff0000;\">'Divide'</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #000000;\">&#40;</span>aadd<span style=\"color: #000000;\">&#40;</span> ::<span style=\"color: #000000;\">aRolloCalc</span>, iif<span style=\"color: #000000;\">&#40;</span>nGet=<span style=\"color: #000000;\">0</span> .and. ::<span style=\"color: #000000;\">nResult</span><><span style=\"color: #000000;\">0</span>,<span style=\"color: #000000;\">&#123;</span>transform<span style=\"color: #000000;\">&#40;</span>::<span style=\"color: #000000;\">nResult</span>,::<span style=\"color: #000000;\">cPatronSalida</span><span style=\"color: #000000;\">&#41;</span>,<span style=\"color: #ff0000;\">'/'</span><span style=\"color: #000000;\">&#125;</span>,<span style=\"color: #000000;\">&#123;</span>transform<span style=\"color: #000000;\">&#40;</span>nGet,::<span style=\"color: #000000;\">cPatronSalida</span><span style=\"color: #000000;\">&#41;</span>,<span style=\"color: #ff0000;\">'/'</span><span style=\"color: #000000;\">&#125;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oBrw:<span style=\"color: #000000;\">gobottom</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>,; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &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; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;iif<span style=\"color: #000000;\">&#40;</span>::<span style=\"color: #000000;\">nResult</span>=<span style=\"color: #000000;\">0</span>,::<span style=\"color: #000000;\">nResult</span>:=nGet,iif<span style=\"color: #000000;\">&#40;</span>nGet<><span style=\"color: #000000;\">0</span>,::<span style=\"color: #000000;\">nResult</span>:=::<span style=\"color: #000000;\">nResult</span>/nGet,<span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::<span style=\"color: #000000;\">cUltimaOp</span>:=<span style=\"color: #ff0000;\">'/'</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oSay:<span style=\"color: #000000;\">SetText</span><span style=\"color: #000000;\">&#40;</span>transform<span style=\"color: #000000;\">&#40;</span>::<span style=\"color: #000000;\">nResult</span>,::<span style=\"color: #000000;\">cPatronSalida</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nGet:=<span style=\"color: #000000;\">0</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cGet:=<span style=\"color: #ff0000;\">''</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oGet:<span style=\"color: #000000;\">SetText</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">''</span><span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oBtnIgual:<span style=\"color: #000000;\">Setfocus</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;sysrefresh<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #0000ff;\">UPDATE</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oBtndividir:<span style=\"color: #000000;\">cargo</span>:=<span style=\"color: #ff0000;\">'/'</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; <span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> oBtnigual &nbsp; <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">405</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">MESSAGE</span> <span style=\"color: #ff0000;\">'Calcula resultado'</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #000000;\">&#40;</span>iif<span style=\"color: #000000;\">&#40;</span>nGet=<span style=\"color: #000000;\">0</span>,,aadd<span style=\"color: #000000;\">&#40;</span> ::<span style=\"color: #000000;\">aRolloCalc</span>, <span style=\"color: #000000;\">&#123;</span>transform<span style=\"color: #000000;\">&#40;</span>nGet,::<span style=\"color: #000000;\">cPatronSalida</span><span style=\"color: #000000;\">&#41;</span>,iif<span style=\"color: #000000;\">&#40;</span>::<span style=\"color: #000000;\">cUltimaOp</span>=<span style=\"color: #ff0000;\">'+'</span> .or. ::<span style=\"color: #000000;\">cUltimaOp</span>=<span style=\"color: #ff0000;\">'-'</span> .or. ::<span style=\"color: #000000;\">cUltimaOp</span>=<span style=\"color: #ff0000;\">'*'</span> .or. ::<span style=\"color: #000000;\">cUltimaOp</span>=<span style=\"color: #ff0000;\">'/'</span>,<span style=\"color: #ff0000;\">' '</span>,::<span style=\"color: #000000;\">cUltimaOp</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::<span style=\"color: #000000;\">nCalculadIgual</span><span style=\"color: #000000;\">&#40;</span>nGet<span style=\"color: #000000;\">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aadd<span style=\"color: #000000;\">&#40;</span> ::<span style=\"color: #000000;\">aRolloCalc</span>, <span style=\"color: #000000;\">&#123;</span>transform<span style=\"color: #000000;\">&#40;</span>::<span style=\"color: #000000;\">nResult</span>,::<span style=\"color: #000000;\">cPatronSalida</span><span style=\"color: #000000;\">&#41;</span>,<span style=\"color: #ff0000;\">'='</span><span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oBrw:<span style=\"color: #000000;\">gobottom</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>,oBrw:<span style=\"color: #000000;\">gobottom</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>,; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &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; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::<span style=\"color: #000000;\">cUltimaOp</span>:=<span style=\"color: #ff0000;\">'='</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oSay:<span style=\"color: #000000;\">SetText</span><span style=\"color: #000000;\">&#40;</span>transform<span style=\"color: #000000;\">&#40;</span>::<span style=\"color: #000000;\">nResult</span>,::<span style=\"color: #000000;\">cPatronSalida</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nGet:=<span style=\"color: #000000;\">0</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nGetAnt:=<span style=\"color: #000000;\">0</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cGet:=<span style=\"color: #ff0000;\">''</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oGet:<span style=\"color: #000000;\">SetText</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">''</span><span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oBtnIgual:<span style=\"color: #000000;\">Setfocus</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;sysrefresh<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #0000ff;\">UPDATE</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oBtnigual:<span style=\"color: #000000;\">cargo</span>:=<span style=\"color: #ff0000;\">'='</span>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br /><br />&nbsp; &nbsp; <span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> oBtnBorra <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">425</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">MESSAGE</span> <span style=\"color: #ff0000;\">'Borra todos los cálculos'</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #000000;\">&#40;</span>iif<span style=\"color: #000000;\">&#40;</span> len<span style=\"color: #000000;\">&#40;</span> ::<span style=\"color: #000000;\">aRolloCalc</span> <span style=\"color: #000000;\">&#41;</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;\">&#40;</span> aSize<span style=\"color: #000000;\">&#40;</span> ::<span style=\"color: #000000;\">aRolloCalc</span>, <span style=\"color: #000000;\">0</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: #000000;\">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aadd<span style=\"color: #000000;\">&#40;</span> ::<span style=\"color: #000000;\">aRolloCalc</span>, <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">' '</span>,<span style=\"color: #ff0000;\">'C'</span><span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oBrw:<span style=\"color: #000000;\">gotop</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ,; <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oBrw:<span style=\"color: #0000ff;\">refresh</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::<span style=\"color: #000000;\">nResult</span>:=<span style=\"color: #000000;\">0</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::<span style=\"color: #000000;\">cUltimaOp</span>:=<span style=\"color: #ff0000;\">'R'</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oSay:<span style=\"color: #000000;\">SetText</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">'0'</span><span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nGet:=<span style=\"color: #000000;\">0</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cGet:=<span style=\"color: #ff0000;\">''</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oGet:<span style=\"color: #000000;\">SetText</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">''</span><span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oBtnIgual:<span style=\"color: #000000;\">Setfocus</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;sysrefresh<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #0000ff;\">UPDATE</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oBtnBorra:<span style=\"color: #000000;\">cargo</span>:=<span style=\"color: #ff0000;\">'R'</span>&nbsp; &nbsp; <br />&nbsp; &nbsp; <br />&nbsp; &nbsp; <span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> oBtnDel <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">426</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">MESSAGE</span> <span style=\"color: #ff0000;\">'Borra último dígito'</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #000000;\">&#40;</span>::<span style=\"color: #000000;\">cUltima</span>:=<span style=\"color: #ff0000;\">'CE'</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;iif<span style=\"color: #000000;\">&#40;</span>::<span style=\"color: #000000;\">cUltimaOp</span>=<span style=\"color: #ff0000;\">'='</span> .or. ::<span style=\"color: #000000;\">cUltimaOp</span>=<span style=\"color: #ff0000;\">'AP'</span> .or. ::<span style=\"color: #000000;\">cUltimaOp</span>=<span style=\"color: #ff0000;\">'AE'</span>,<span style=\"color: #000000;\">&#40;</span>::<span style=\"color: #000000;\">cUltimaOp</span>:=<span style=\"color: #ff0000;\">''</span>,::<span style=\"color: #000000;\">nResult</span>:=<span style=\"color: #000000;\">0</span>,aadd<span style=\"color: #000000;\">&#40;</span> ::<span style=\"color: #000000;\">aRolloCalc</span>, <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">' '</span>,<span style=\"color: #ff0000;\">' '</span><span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span>, oBrw:<span style=\"color: #000000;\">gobottom</span><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: #000000;\">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;iif<span style=\"color: #000000;\">&#40;</span>nGet<><span style=\"color: #000000;\">0</span>,<span style=\"color: #000000;\">&#40;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cGet:=<span style=\"color: #0000ff;\">LEFT</span><span style=\"color: #000000;\">&#40;</span>cGet,len<span style=\"color: #000000;\">&#40;</span>cget<span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">-1</span><span style=\"color: #000000;\">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nGet:=val<span style=\"color: #000000;\">&#40;</span>cGet<span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span>,<span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oGet:<span style=\"color: #000000;\">SetText</span><span style=\"color: #000000;\">&#40;</span>cGet<span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oBtnIgual:<span style=\"color: #000000;\">Setfocus</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;sysrefresh<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #0000ff;\">UPDATE</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oBtnDel:<span style=\"color: #000000;\">cargo</span>:=chr<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">8</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; <br />&nbsp; &nbsp; <span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> oBtnConv <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">407</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">MESSAGE</span> <span style=\"color: #ff0000;\">'Convierte de euros a PTS'</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #000000;\">&#40;</span> iif<span style=\"color: #000000;\">&#40;</span>nGet<><span style=\"color: #000000;\">0</span>,::<span style=\"color: #000000;\">nResult</span>:=<span style=\"color: #0000ff;\">round</span><span style=\"color: #000000;\">&#40;</span>nGet*<span style=\"color: #000000;\">166.386</span>,<span style=\"color: #000000;\">0</span><span style=\"color: #000000;\">&#41;</span>,::<span style=\"color: #000000;\">nResult</span>:=<span style=\"color: #0000ff;\">round</span><span style=\"color: #000000;\">&#40;</span>::<span style=\"color: #000000;\">nResult*</span><span style=\"color: #000000;\">166.386</span>,<span style=\"color: #000000;\">0</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aadd<span style=\"color: #000000;\">&#40;</span> ::<span style=\"color: #000000;\">aRolloCalc</span>, <span style=\"color: #000000;\">&#123;</span>transform<span style=\"color: #000000;\">&#40;</span>::<span style=\"color: #000000;\">nResult</span>,<span style=\"color: #ff0000;\">'@E 9,999,999,999 &nbsp; &nbsp; &nbsp;'</span><span style=\"color: #000000;\">&#41;</span>,<span style=\"color: #ff0000;\">'pts'</span><span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oBrw:<span style=\"color: #000000;\">gobottom</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>,; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &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; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::<span style=\"color: #000000;\">cUltimaOp</span>:=<span style=\"color: #ff0000;\">'AP'</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ,; &nbsp;<span style=\"color: #B900B9;\">// AP = a Pesetas</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oSay:<span style=\"color: #000000;\">SetText</span><span style=\"color: #000000;\">&#40;</span>transform<span style=\"color: #000000;\">&#40;</span>::<span style=\"color: #000000;\">nResult</span>,<span style=\"color: #ff0000;\">'@E 9,999,999,999 pts'</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nGet:=<span style=\"color: #000000;\">0</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cGet:=<span style=\"color: #ff0000;\">''</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oGet:<span style=\"color: #000000;\">SetText</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">''</span><span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oBtnIgual:<span style=\"color: #000000;\">Setfocus</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;sysrefresh<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #0000ff;\">UPDATE</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oBtnConv:<span style=\"color: #000000;\">cargo</span>:=<span style=\"color: #ff0000;\">'E'</span>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp;<br />&nbsp; &nbsp; <span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> oBtnConv2 <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">408</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">MESSAGE</span> <span style=\"color: #ff0000;\">'Convierte de PTS a Euro'</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #000000;\">&#40;</span> iif<span style=\"color: #000000;\">&#40;</span>nGet<><span style=\"color: #000000;\">0</span>,::<span style=\"color: #000000;\">nResult</span>:=<span style=\"color: #0000ff;\">round</span><span style=\"color: #000000;\">&#40;</span>nGet/<span style=\"color: #000000;\">166.386</span>,<span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#41;</span>,::<span style=\"color: #000000;\">nResult</span>:=<span style=\"color: #0000ff;\">round</span><span style=\"color: #000000;\">&#40;</span>::<span style=\"color: #000000;\">nResult</span>/<span style=\"color: #000000;\">166.386</span>,<span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aadd<span style=\"color: #000000;\">&#40;</span> ::<span style=\"color: #000000;\">aRolloCalc</span>, <span style=\"color: #000000;\">&#123;</span>transform<span style=\"color: #000000;\">&#40;</span>::<span style=\"color: #000000;\">nResult</span>,<span style=\"color: #ff0000;\">'@E 9,999,999,999.99 '</span><span style=\"color: #000000;\">&#41;</span>,<span style=\"color: #ff0000;\">' €'</span><span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oBrw:<span style=\"color: #000000;\">gobottom</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>,; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &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; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::<span style=\"color: #000000;\">cUltimaOp</span>:=<span style=\"color: #ff0000;\">'AE'</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ,; &nbsp;<span style=\"color: #B900B9;\">// AE = a Euros</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oSay:<span style=\"color: #000000;\">SetText</span><span style=\"color: #000000;\">&#40;</span>transform<span style=\"color: #000000;\">&#40;</span>::<span style=\"color: #000000;\">nResult</span>,<span style=\"color: #ff0000;\">'@E 9,999,999,999.99 €'</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nGet:=<span style=\"color: #000000;\">0</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cGet:=<span style=\"color: #ff0000;\">''</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oGet:<span style=\"color: #000000;\">SetText</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">''</span><span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oBtnIgual:<span style=\"color: #000000;\">Setfocus</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;sysrefresh<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #0000ff;\">UPDATE</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oBtnConv:<span style=\"color: #000000;\">cargo</span>:=<span style=\"color: #ff0000;\">'P'</span> &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; <span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> oBtn0 &nbsp; <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">100</span> <span style=\"color: #0000ff;\">OF</span> oDlg ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #000000;\">&#40;</span>::<span style=\"color: #000000;\">cUltima</span>:=<span style=\"color: #ff0000;\">'0'</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;iif<span style=\"color: #000000;\">&#40;</span>::<span style=\"color: #000000;\">cUltimaOp</span>=<span style=\"color: #ff0000;\">'='</span> .or. ::<span style=\"color: #000000;\">cUltimaOp</span>=<span style=\"color: #ff0000;\">'AP'</span> .or. ::<span style=\"color: #000000;\">cUltimaOp</span>=<span style=\"color: #ff0000;\">'AE'</span>,<span style=\"color: #000000;\">&#40;</span>::<span style=\"color: #000000;\">cUltimaOp</span>:=<span style=\"color: #ff0000;\">''</span>,::<span style=\"color: #000000;\">nResult</span>:=<span style=\"color: #000000;\">0</span>,aadd<span style=\"color: #000000;\">&#40;</span> ::<span style=\"color: #000000;\">aRolloCalc</span>, <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">' '</span>,<span style=\"color: #ff0000;\">' '</span><span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span>, oBrw:<span style=\"color: #000000;\">gobottom</span><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: #000000;\">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;iif<span style=\"color: #000000;\">&#40;</span>nGet<><span style=\"color: #000000;\">0</span> .or. <span style=\"color: #00C800;\">at</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\".\"</span>,cGet<span style=\"color: #000000;\">&#41;</span>><span style=\"color: #000000;\">0</span>,<span style=\"color: #000000;\">&#40;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cGet:=cGet+::<span style=\"color: #000000;\">cUltima</span> &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nGet:=val<span style=\"color: #000000;\">&#40;</span>cGet<span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span>,<span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oGet:<span style=\"color: #000000;\">SetText</span><span style=\"color: #000000;\">&#40;</span>cGet<span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oBtnIgual:<span style=\"color: #000000;\">Setfocus</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;sysrefresh<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #0000ff;\">UPDATE</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oBtn0:<span style=\"color: #000000;\">cargo</span>:=<span style=\"color: #ff0000;\">'0'</span><br />&nbsp; &nbsp; <span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> oBtn1 &nbsp; <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">101</span> <span style=\"color: #0000ff;\">OF</span> oDlg;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #000000;\">&#40;</span>::<span style=\"color: #000000;\">cUltima</span>:=<span style=\"color: #ff0000;\">'1'</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;iif<span style=\"color: #000000;\">&#40;</span>::<span style=\"color: #000000;\">cUltimaOp</span>=<span style=\"color: #ff0000;\">'='</span> .or. ::<span style=\"color: #000000;\">cUltimaOp</span>=<span style=\"color: #ff0000;\">'AP'</span> .or. ::<span style=\"color: #000000;\">cUltimaOp</span>=<span style=\"color: #ff0000;\">'AE'</span>,<span style=\"color: #000000;\">&#40;</span>::<span style=\"color: #000000;\">cUltimaOp</span>:=<span style=\"color: #ff0000;\">''</span>,::<span style=\"color: #000000;\">nResult</span>:=<span style=\"color: #000000;\">0</span>,aadd<span style=\"color: #000000;\">&#40;</span> ::<span style=\"color: #000000;\">aRolloCalc</span>, <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">' '</span>,<span style=\"color: #ff0000;\">' '</span><span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span>, oBrw:<span style=\"color: #000000;\">gobottom</span><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: #000000;\">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cGet:=cGet+::<span style=\"color: #000000;\">cUltima</span> &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nGet:=val<span style=\"color: #000000;\">&#40;</span>cGet<span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oGet:<span style=\"color: #000000;\">SetText</span><span style=\"color: #000000;\">&#40;</span>cGet<span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oBtnIgual:<span style=\"color: #000000;\">Setfocus</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;sysrefresh<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #0000ff;\">UPDATE</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oBtn1:<span style=\"color: #000000;\">cargo</span>:=<span style=\"color: #ff0000;\">'1'</span><br />&nbsp; &nbsp; <span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> oBtn2 &nbsp; <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">102</span> <span style=\"color: #0000ff;\">OF</span> oDlg;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #000000;\">&#40;</span>::<span style=\"color: #000000;\">cUltima</span>:=<span style=\"color: #ff0000;\">'2'</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;iif<span style=\"color: #000000;\">&#40;</span>::<span style=\"color: #000000;\">cUltimaOp</span>=<span style=\"color: #ff0000;\">'='</span> .or. ::<span style=\"color: #000000;\">cUltimaOp</span>=<span style=\"color: #ff0000;\">'AP'</span> .or. ::<span style=\"color: #000000;\">cUltimaOp</span>=<span style=\"color: #ff0000;\">'AE'</span>,<span style=\"color: #000000;\">&#40;</span>::<span style=\"color: #000000;\">cUltimaOp</span>:=<span style=\"color: #ff0000;\">''</span>,::<span style=\"color: #000000;\">nResult</span>:=<span style=\"color: #000000;\">0</span>,aadd<span style=\"color: #000000;\">&#40;</span> ::<span style=\"color: #000000;\">aRolloCalc</span>, <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">' '</span>,<span style=\"color: #ff0000;\">' '</span><span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span>, oBrw:<span style=\"color: #000000;\">gobottom</span><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: #000000;\">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cGet:=cGet+::<span style=\"color: #000000;\">cUltima</span> &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nGet:=val<span style=\"color: #000000;\">&#40;</span>cGet<span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oGet:<span style=\"color: #000000;\">SetText</span><span style=\"color: #000000;\">&#40;</span>cGet<span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oBtnIgual:<span style=\"color: #000000;\">Setfocus</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;sysrefresh<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #0000ff;\">UPDATE</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oBtn2:<span style=\"color: #000000;\">cargo</span>:=<span style=\"color: #ff0000;\">'2'</span><br />&nbsp; &nbsp; <span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> oBtn3 &nbsp; <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">103</span> <span style=\"color: #0000ff;\">OF</span> oDlg;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #000000;\">&#40;</span>::<span style=\"color: #000000;\">cUltima</span>:=<span style=\"color: #ff0000;\">'3'</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;iif<span style=\"color: #000000;\">&#40;</span>::<span style=\"color: #000000;\">cUltimaOp</span>=<span style=\"color: #ff0000;\">'='</span> .or. ::<span style=\"color: #000000;\">cUltimaOp</span>=<span style=\"color: #ff0000;\">'AP'</span> .or. ::<span style=\"color: #000000;\">cUltimaOp</span>=<span style=\"color: #ff0000;\">'AE'</span>,<span style=\"color: #000000;\">&#40;</span>::<span style=\"color: #000000;\">cUltimaOp</span>:=<span style=\"color: #ff0000;\">''</span>,::<span style=\"color: #000000;\">nResult</span>:=<span style=\"color: #000000;\">0</span>,aadd<span style=\"color: #000000;\">&#40;</span> ::<span style=\"color: #000000;\">aRolloCalc</span>, <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">' '</span>,<span style=\"color: #ff0000;\">' '</span><span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span>, oBrw:<span style=\"color: #000000;\">gobottom</span><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: #000000;\">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cGet:=cGet+::<span style=\"color: #000000;\">cUltima</span> &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nGet:=val<span style=\"color: #000000;\">&#40;</span>cGet<span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oGet:<span style=\"color: #000000;\">SetText</span><span style=\"color: #000000;\">&#40;</span>cGet<span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oBtnIgual:<span style=\"color: #000000;\">Setfocus</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;sysrefresh<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #0000ff;\">UPDATE</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oBtn3:<span style=\"color: #000000;\">cargo</span>:=<span style=\"color: #ff0000;\">'3'</span><br />&nbsp; &nbsp; <span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> oBtn4 &nbsp; <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">104</span> <span style=\"color: #0000ff;\">OF</span> oDlg;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #000000;\">&#40;</span>::<span style=\"color: #000000;\">cUltima</span>:=<span style=\"color: #ff0000;\">'4'</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;iif<span style=\"color: #000000;\">&#40;</span>::<span style=\"color: #000000;\">cUltimaOp</span>=<span style=\"color: #ff0000;\">'='</span> .or. ::<span style=\"color: #000000;\">cUltimaOp</span>=<span style=\"color: #ff0000;\">'AP'</span> .or. ::<span style=\"color: #000000;\">cUltimaOp</span>=<span style=\"color: #ff0000;\">'AE'</span>,<span style=\"color: #000000;\">&#40;</span>::<span style=\"color: #000000;\">cUltimaOp</span>:=<span style=\"color: #ff0000;\">''</span>,::<span style=\"color: #000000;\">nResult</span>:=<span style=\"color: #000000;\">0</span>,aadd<span style=\"color: #000000;\">&#40;</span> ::<span style=\"color: #000000;\">aRolloCalc</span>, <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">' '</span>,<span style=\"color: #ff0000;\">' '</span><span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span>, oBrw:<span style=\"color: #000000;\">gobottom</span><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: #000000;\">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cGet:=cGet+::<span style=\"color: #000000;\">cUltima</span> &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nGet:=val<span style=\"color: #000000;\">&#40;</span>cGet<span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oGet:<span style=\"color: #000000;\">SetText</span><span style=\"color: #000000;\">&#40;</span>cGet<span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oBtnIgual:<span style=\"color: #000000;\">Setfocus</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;sysrefresh<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #0000ff;\">UPDATE</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oBtn4:<span style=\"color: #000000;\">cargo</span>:=<span style=\"color: #ff0000;\">'4'</span><br />&nbsp; &nbsp; <span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> oBtn5 &nbsp; <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">105</span> <span style=\"color: #0000ff;\">OF</span> oDlg;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #000000;\">&#40;</span>::<span style=\"color: #000000;\">cUltima</span>:=<span style=\"color: #ff0000;\">'5'</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;iif<span style=\"color: #000000;\">&#40;</span>::<span style=\"color: #000000;\">cUltimaOp</span>=<span style=\"color: #ff0000;\">'='</span> .or. ::<span style=\"color: #000000;\">cUltimaOp</span>=<span style=\"color: #ff0000;\">'AP'</span> .or. ::<span style=\"color: #000000;\">cUltimaOp</span>=<span style=\"color: #ff0000;\">'AE'</span>,<span style=\"color: #000000;\">&#40;</span>::<span style=\"color: #000000;\">cUltimaOp</span>:=<span style=\"color: #ff0000;\">''</span>,::<span style=\"color: #000000;\">nResult</span>:=<span style=\"color: #000000;\">0</span>,aadd<span style=\"color: #000000;\">&#40;</span> ::<span style=\"color: #000000;\">aRolloCalc</span>, <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">' '</span>,<span style=\"color: #ff0000;\">' '</span><span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span>, oBrw:<span style=\"color: #000000;\">gobottom</span><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: #000000;\">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cGet:=cGet+::<span style=\"color: #000000;\">cUltima</span> &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nGet:=val<span style=\"color: #000000;\">&#40;</span>cGet<span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oGet:<span style=\"color: #000000;\">SetText</span><span style=\"color: #000000;\">&#40;</span>cGet<span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oBtnIgual:<span style=\"color: #000000;\">Setfocus</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;sysrefresh<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #0000ff;\">UPDATE</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oBtn5:<span style=\"color: #000000;\">cargo</span>:=<span style=\"color: #ff0000;\">'5'</span><br />&nbsp; &nbsp; <span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> oBtn6 &nbsp; <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">106</span> <span style=\"color: #0000ff;\">OF</span> oDlg;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #000000;\">&#40;</span>::<span style=\"color: #000000;\">cUltima</span>:=<span style=\"color: #ff0000;\">'6'</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;iif<span style=\"color: #000000;\">&#40;</span>::<span style=\"color: #000000;\">cUltimaOp</span>=<span style=\"color: #ff0000;\">'='</span> .or. ::<span style=\"color: #000000;\">cUltimaOp</span>=<span style=\"color: #ff0000;\">'AP'</span> .or. ::<span style=\"color: #000000;\">cUltimaOp</span>=<span style=\"color: #ff0000;\">'AE'</span>,<span style=\"color: #000000;\">&#40;</span>::<span style=\"color: #000000;\">cUltimaOp</span>:=<span style=\"color: #ff0000;\">''</span>,::<span style=\"color: #000000;\">nResult</span>:=<span style=\"color: #000000;\">0</span>,aadd<span style=\"color: #000000;\">&#40;</span> ::<span style=\"color: #000000;\">aRolloCalc</span>, <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">' '</span>,<span style=\"color: #ff0000;\">' '</span><span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span>, oBrw:<span style=\"color: #000000;\">gobottom</span><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: #000000;\">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cGet:=cGet+::<span style=\"color: #000000;\">cUltima</span> &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nGet:=val<span style=\"color: #000000;\">&#40;</span>cGet<span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oGet:<span style=\"color: #000000;\">SetText</span><span style=\"color: #000000;\">&#40;</span>cGet<span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oBtnIgual:<span style=\"color: #000000;\">Setfocus</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;sysrefresh<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #0000ff;\">UPDATE</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oBtn6:<span style=\"color: #000000;\">cargo</span>:=<span style=\"color: #ff0000;\">'6'</span><br />&nbsp; &nbsp; <span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> oBtn7 &nbsp; <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">107</span> <span style=\"color: #0000ff;\">OF</span> oDlg;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #000000;\">&#40;</span>::<span style=\"color: #000000;\">cUltima</span>:=<span style=\"color: #ff0000;\">'7'</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;iif<span style=\"color: #000000;\">&#40;</span>::<span style=\"color: #000000;\">cUltimaOp</span>=<span style=\"color: #ff0000;\">'='</span> .or. ::<span style=\"color: #000000;\">cUltimaOp</span>=<span style=\"color: #ff0000;\">'AP'</span> .or. ::<span style=\"color: #000000;\">cUltimaOp</span>=<span style=\"color: #ff0000;\">'AE'</span>,<span style=\"color: #000000;\">&#40;</span>::<span style=\"color: #000000;\">cUltimaOp</span>:=<span style=\"color: #ff0000;\">''</span>,::<span style=\"color: #000000;\">nResult</span>:=<span style=\"color: #000000;\">0</span>,aadd<span style=\"color: #000000;\">&#40;</span> ::<span style=\"color: #000000;\">aRolloCalc</span>, <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">' '</span>,<span style=\"color: #ff0000;\">' '</span><span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span>, oBrw:<span style=\"color: #000000;\">gobottom</span><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: #000000;\">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cGet:=cGet+::<span style=\"color: #000000;\">cUltima</span> &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nGet:=val<span style=\"color: #000000;\">&#40;</span>cGet<span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oGet:<span style=\"color: #000000;\">SetText</span><span style=\"color: #000000;\">&#40;</span>cGet<span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oBtnIgual:<span style=\"color: #000000;\">Setfocus</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;sysrefresh<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #0000ff;\">UPDATE</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oBtn7:<span style=\"color: #000000;\">cargo</span>:=<span style=\"color: #ff0000;\">'7'</span><br />&nbsp; &nbsp; <span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> oBtn8 &nbsp; <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">108</span> <span style=\"color: #0000ff;\">OF</span> oDlg;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #000000;\">&#40;</span>::<span style=\"color: #000000;\">cUltima</span>:=<span style=\"color: #ff0000;\">'8'</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;iif<span style=\"color: #000000;\">&#40;</span>::<span style=\"color: #000000;\">cUltimaOp</span>=<span style=\"color: #ff0000;\">'='</span> .or. ::<span style=\"color: #000000;\">cUltimaOp</span>=<span style=\"color: #ff0000;\">'AP'</span> .or. ::<span style=\"color: #000000;\">cUltimaOp</span>=<span style=\"color: #ff0000;\">'AE'</span>,<span style=\"color: #000000;\">&#40;</span>::<span style=\"color: #000000;\">cUltimaOp</span>:=<span style=\"color: #ff0000;\">''</span>,::<span style=\"color: #000000;\">nResult</span>:=<span style=\"color: #000000;\">0</span>,aadd<span style=\"color: #000000;\">&#40;</span> ::<span style=\"color: #000000;\">aRolloCalc</span>, <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">' '</span>,<span style=\"color: #ff0000;\">' '</span><span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span>, oBrw:<span style=\"color: #000000;\">gobottom</span><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: #000000;\">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cGet:=cGet+::<span style=\"color: #000000;\">cUltima</span> &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nGet:=val<span style=\"color: #000000;\">&#40;</span>cGet<span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oGet:<span style=\"color: #000000;\">SetText</span><span style=\"color: #000000;\">&#40;</span>cGet<span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oBtnIgual:<span style=\"color: #000000;\">Setfocus</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;sysrefresh<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #0000ff;\">UPDATE</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oBtn8:<span style=\"color: #000000;\">cargo</span>:=<span style=\"color: #ff0000;\">'8'</span><br />&nbsp; &nbsp; <span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> oBtn9 &nbsp; <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">109</span> <span style=\"color: #0000ff;\">OF</span> oDlg;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #000000;\">&#40;</span>::<span style=\"color: #000000;\">cUltima</span>:=<span style=\"color: #ff0000;\">'9'</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;iif<span style=\"color: #000000;\">&#40;</span>::<span style=\"color: #000000;\">cUltimaOp</span>=<span style=\"color: #ff0000;\">'='</span> .or. ::<span style=\"color: #000000;\">cUltimaOp</span>=<span style=\"color: #ff0000;\">'AP'</span> .or. ::<span style=\"color: #000000;\">cUltimaOp</span>=<span style=\"color: #ff0000;\">'AE'</span>,<span style=\"color: #000000;\">&#40;</span>::<span style=\"color: #000000;\">cUltimaOp</span>:=<span style=\"color: #ff0000;\">''</span>,::<span style=\"color: #000000;\">nResult</span>:=<span style=\"color: #000000;\">0</span>,aadd<span style=\"color: #000000;\">&#40;</span> ::<span style=\"color: #000000;\">aRolloCalc</span>, <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">' '</span>,<span style=\"color: #ff0000;\">' '</span><span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span>, oBrw:<span style=\"color: #000000;\">gobottom</span><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: #000000;\">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cGet:=cGet+::<span style=\"color: #000000;\">cUltima</span> &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nGet:=val<span style=\"color: #000000;\">&#40;</span>cGet<span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oGet:<span style=\"color: #000000;\">SetText</span><span style=\"color: #000000;\">&#40;</span>cGet<span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oBtnIgual:<span style=\"color: #000000;\">Setfocus</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;sysrefresh<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #0000ff;\">UPDATE</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oBtn9:<span style=\"color: #000000;\">cargo</span>:=<span style=\"color: #ff0000;\">'9'</span><br />&nbsp; &nbsp; <span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> oBtnP &nbsp; <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">110</span> <span style=\"color: #0000ff;\">OF</span> oDlg;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #000000;\">&#40;</span>::<span style=\"color: #000000;\">cUltima</span>:=<span style=\"color: #ff0000;\">'.'</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;iif<span style=\"color: #000000;\">&#40;</span>::<span style=\"color: #000000;\">cUltimaOp</span>=<span style=\"color: #ff0000;\">'='</span> .or. ::<span style=\"color: #000000;\">cUltimaOp</span>=<span style=\"color: #ff0000;\">'AP'</span> .or. ::<span style=\"color: #000000;\">cUltimaOp</span>=<span style=\"color: #ff0000;\">'AE'</span>,<span style=\"color: #000000;\">&#40;</span>::<span style=\"color: #000000;\">cUltimaOp</span>:=<span style=\"color: #ff0000;\">''</span>,::<span style=\"color: #000000;\">nResult</span>:=<span style=\"color: #000000;\">0</span>,aadd<span style=\"color: #000000;\">&#40;</span> ::<span style=\"color: #000000;\">aRolloCalc</span>, <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">' '</span>,<span style=\"color: #ff0000;\">' '</span><span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span>, oBrw:<span style=\"color: #000000;\">gobottom</span><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: #000000;\">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cGet:=cGet+::<span style=\"color: #000000;\">cUltima</span> &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nGet:=val<span style=\"color: #000000;\">&#40;</span>cGet<span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oGet:<span style=\"color: #000000;\">SetText</span><span style=\"color: #000000;\">&#40;</span>cGet<span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oBtnIgual:<span style=\"color: #000000;\">Setfocus</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;sysrefresh<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #0000ff;\">UPDATE</span> <span style=\"color: #0000ff;\">WHEN</span> int<span style=\"color: #000000;\">&#40;</span>nGet<span style=\"color: #000000;\">&#41;</span>==nGet <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oBtnP:<span style=\"color: #000000;\">cargo</span>:=<span style=\"color: #ff0000;\">'.'</span><br />&nbsp; &nbsp; <span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> oBtnSigno <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">111</span> <span style=\"color: #0000ff;\">OF</span> oDlg;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #000000;\">&#40;</span>::<span style=\"color: #000000;\">cUltima</span>:=<span style=\"color: #ff0000;\">'signo'</span> &nbsp; &nbsp;,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;iif<span style=\"color: #000000;\">&#40;</span>::<span style=\"color: #000000;\">cUltimaOp</span>=<span style=\"color: #ff0000;\">'='</span> .or. ::<span style=\"color: #000000;\">cUltimaOp</span>=<span style=\"color: #ff0000;\">'AP'</span> .or. ::<span style=\"color: #000000;\">cUltimaOp</span>=<span style=\"color: #ff0000;\">'AE'</span>,<span style=\"color: #000000;\">&#40;</span>::<span style=\"color: #000000;\">cUltimaOp</span>:=<span style=\"color: #ff0000;\">''</span>,::<span style=\"color: #000000;\">nResult</span>:=<span style=\"color: #000000;\">0</span>,aadd<span style=\"color: #000000;\">&#40;</span> ::<span style=\"color: #000000;\">aRolloCalc</span>, <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">' '</span>,<span style=\"color: #ff0000;\">' '</span><span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span>, oBrw:<span style=\"color: #000000;\">gobottom</span><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: #000000;\">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nGet:=<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">-1</span><span style=\"color: #000000;\">&#41;</span>*nGet &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oGet:<span style=\"color: #000000;\">SetText</span><span style=\"color: #000000;\">&#40;</span>nGet<span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp;,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cGet:=alltrim<span style=\"color: #000000;\">&#40;</span>str<span style=\"color: #000000;\">&#40;</span>nGet<span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oBtnIgual:<span style=\"color: #000000;\">Setfocus</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> &nbsp;,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;sysrefresh<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #0000ff;\">UPDATE</span> <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oBtnSigno:<span style=\"color: #000000;\">cargo</span>:=<span style=\"color: #ff0000;\">' '</span> &nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp;<br />&nbsp; &nbsp; <span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">SAY</span> oGet <span style=\"color: #0000ff;\">VAR</span> nGet <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">211</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">FONT</span> oFont1 ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">COLOR</span> nrgb<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">0</span>, &nbsp;<span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span><span style=\"color: #000000;\">&#41;</span>,nrgb<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">255</span>,<span style=\"color: #000000;\">255</span>,<span style=\"color: #000000;\">200</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #0000ff;\">UPDATE</span><br />&nbsp; &nbsp; <br />&nbsp; &nbsp; <span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">SAY</span> oSay <span style=\"color: #0000ff;\">VAR</span> ::<span style=\"color: #000000;\">nResult</span> <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">200</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">FONT</span> oFont1 ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">COLOR</span> nrgb<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">50</span>,<span style=\"color: #000000;\">250</span>,<span style=\"color: #000000;\">50</span><span style=\"color: #000000;\">&#41;</span>,nrgb<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">0</span>,<span style=\"color: #000000;\">0</span>,<span style=\"color: #000000;\">0</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #0000ff;\">UPDATE</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; <span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">LISTBOX</span> oBrw FIELDS ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::<span style=\"color: #000000;\">aRolloCalc</span><span style=\"color: #000000;\">&#91;</span>n<span style=\"color: #000000;\">&#93;</span><span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::<span style=\"color: #000000;\">aRolloCalc</span><span style=\"color: #000000;\">&#91;</span>n<span style=\"color: #000000;\">&#93;</span><span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#93;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;HEAD <span style=\"color: #ff0000;\">'valor'</span>,<span style=\"color: #ff0000;\">' '</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">212</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">FONT</span> oFontLst <span style=\"color: #0000ff;\">COLOR</span> &nbsp;nrgb<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">0</span>,<span style=\"color: #000000;\">0</span>,<span style=\"color: #000000;\">0</span><span style=\"color: #000000;\">&#41;</span>,nrgb<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">255</span>,<span style=\"color: #000000;\">255</span>,<span style=\"color: #000000;\">200</span><span style=\"color: #000000;\">&#41;</span> ;<span style=\"color: #B900B9;\">//clrLtrBrow,clrFonBrow ;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">UPDATE</span><br />&nbsp; &nbsp; <br />&nbsp; &nbsp; oBrw:<span style=\"color: #000000;\">aJustify</span> &nbsp;:=<span style=\"color: #000000;\">&#123;</span>.t.,.f.<span style=\"color: #000000;\">&#125;</span><br />&nbsp; &nbsp; oBrw:<span style=\"color: #000000;\">aColSizes</span> :=<span style=\"color: #000000;\">&#123;</span>GetFontInfo<span style=\"color: #000000;\">&#40;</span>oFontLst<span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#93;</span> * <span style=\"color: #000000;\">1.25</span> * <span style=\"color: #000000;\">17</span>, GetFontInfo<span style=\"color: #000000;\">&#40;</span>oFontLst<span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#93;</span> * <span style=\"color: #000000;\">1.25</span> * <span style=\"color: #000000;\">3</span><span style=\"color: #000000;\">&#125;</span> <span style=\"color: #B900B9;\">//aMatrizTc({17,3},oFontLst)</span><br />&nbsp; &nbsp; oBrw:<span style=\"color: #000000;\">bGotop</span> &nbsp; &nbsp;:= <span style=\"color: #000000;\">&#123;</span> || n := <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#125;</span><br />&nbsp; &nbsp; oBrw:<span style=\"color: #000000;\">bGoBottom</span> := <span style=\"color: #000000;\">&#123;</span> || n := eval<span style=\"color: #000000;\">&#40;</span> oBrw:<span style=\"color: #000000;\">bLogicLen</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br />&nbsp; &nbsp; oBrw:<span style=\"color: #000000;\">bSkip</span> &nbsp; &nbsp; := <span style=\"color: #000000;\">&#123;</span> | nwant, nold | nold := n , n += nwant,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;n := <span style=\"color: #0000ff;\">max</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">1</span>, <span style=\"color: #0000ff;\">min</span><span style=\"color: #000000;\">&#40;</span> n, eval<span style=\"color: #000000;\">&#40;</span> oBrw:<span style=\"color: #000000;\">bLogicLen</span> <span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;n - nOld <span style=\"color: #000000;\">&#125;</span><br />&nbsp; &nbsp; oBrw:<span style=\"color: #000000;\">bLogicLen</span> := <span style=\"color: #000000;\">&#123;</span> || len<span style=\"color: #000000;\">&#40;</span> ::<span style=\"color: #000000;\">aRolloCalc</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br /><br />&nbsp; &nbsp; oBrw:<span style=\"color: #000000;\">nClrPane</span>:=<span style=\"color: #000000;\">&#123;</span>|| iif<span style=\"color: #000000;\">&#40;</span>::<span style=\"color: #000000;\">aRolloCalc</span><span style=\"color: #000000;\">&#91;</span>n<span style=\"color: #000000;\">&#93;</span><span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#93;</span>==<span style=\"color: #ff0000;\">'='</span>,nrgb<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">200</span>,<span style=\"color: #000000;\">255</span>,<span style=\"color: #000000;\">125</span><span style=\"color: #000000;\">&#41;</span>,nrgb<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">255</span>,<span style=\"color: #000000;\">255</span>,<span style=\"color: #000000;\">200</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span> <br /><br />&nbsp; &nbsp; oDlg:<span style=\"color: #000000;\">bKeyDown</span>:=<span style=\"color: #000000;\">&#123;</span>|nKey| ::<span style=\"color: #000000;\">TCalc_Teclas</span><span style=\"color: #000000;\">&#40;</span>nKey,oDlg<span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#125;</span><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">CENTERED</span> <span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">INIT</span> <span style=\"color: #000000;\">&#40;</span><span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">&#40;</span>lBorraAlInicio,oBtnBorra:<span style=\"color: #0000ff;\">CLICK</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>,.f.<span style=\"color: #000000;\">&#41;</span>,oBrw:<span style=\"color: #000000;\">gobottom</span><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><br />&nbsp;oFont1:<span style=\"color: #000000;\">end</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp;oFontLst:<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;\">nResult</span><br /><br /><span style=\"color: #00C800;\">METHOD</span> nCalculadigual<span style=\"color: #000000;\">&#40;</span>nGet<span style=\"color: #000000;\">&#41;</span> <span style=\"color: #00C800;\">CLASS</span> TCalc<br />&nbsp;<span style=\"color: #00C800;\">do</span> <span style=\"color: #00C800;\">CASE</span><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">CASE</span> ::<span style=\"color: #000000;\">cUltimaOp</span> = <span style=\"color: #ff0000;\">'-'</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ::<span style=\"color: #000000;\">nResult</span> := ::<span style=\"color: #000000;\">nResult</span> - nGet<br />&nbsp; &nbsp; <span style=\"color: #00C800;\">CASE</span> ::<span style=\"color: #000000;\">cUltimaOp</span> = <span style=\"color: #ff0000;\">'+'</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ::<span style=\"color: #000000;\">nResult</span> := ::<span style=\"color: #000000;\">nResult</span> + nGet<br />&nbsp; &nbsp; <span style=\"color: #00C800;\">CASE</span> ::<span style=\"color: #000000;\">cUltimaOp</span> = <span style=\"color: #ff0000;\">'*'</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ::<span style=\"color: #000000;\">nResult</span> := ::<span style=\"color: #000000;\">nResult</span> * nGet<br />&nbsp; &nbsp; <span style=\"color: #00C800;\">CASE</span> ::<span style=\"color: #000000;\">cUltimaOp</span> = <span style=\"color: #ff0000;\">'/'</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ::<span style=\"color: #000000;\">nResult</span> := ::<span style=\"color: #000000;\">nResult</span> / nGet<br />&nbsp;<span style=\"color: #00C800;\">endcase</span><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">NIL</span><br /><br /><span style=\"color: #00C800;\">METHOD</span> TCalc_Teclas<span style=\"color: #000000;\">&#40;</span>nKey, oDlg<span style=\"color: #000000;\">&#41;</span> <span style=\"color: #00C800;\">class</span> TCalc<br />&nbsp;<span style=\"color: #00C800;\">local</span> ny<br />&nbsp;<span style=\"color: #00C800;\">for</span> ny:=<span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">TO</span> len<span style=\"color: #000000;\">&#40;</span>oDlg:<span style=\"color: #000000;\">aControls</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; <span style=\"color: #00C800;\">if</span> oDlg:<span style=\"color: #000000;\">aControls</span><span style=\"color: #000000;\">&#91;</span>ny<span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">cargo</span>==upper<span style=\"color: #000000;\">&#40;</span>chr<span style=\"color: #000000;\">&#40;</span>nKey<span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp;oDlg:<span style=\"color: #000000;\">aControls</span><span style=\"color: #000000;\">&#91;</span>ny<span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #0000ff;\">CLICK</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; <span style=\"color: #00C800;\">endif</span><br />&nbsp;<span style=\"color: #00C800;\">next</span> ny<br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span></div>[/code:1b73zsde]", "time": "12:52", "topic": "Calculator revisited", "username": "Verhoven" } ]
Calculator revisited
[ { "date": "2014-05-28", "forum": "FiveWin for Harbour/xHarbour", "text": "Necesita el fichero de recursos: TCALC.RC\n\nRegards,", "time": "13:55", "topic": "Calculator revisited", "username": "karinha" } ]
Calculator revisited
[ { "date": "2014-05-28", "forum": "FiveWin for Harbour/xHarbour", "text": "Aquí lo copio:\n\n[code=fw:1x5yknyq]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">Calculadora <span style=\"color: #0000ff;\">DIALOG</span> <span style=\"color: #000000;\">198</span>, <span style=\"color: #000000;\">20</span>, <span style=\"color: #000000;\">209</span>, <span style=\"color: #000000;\">176</span><br /><span style=\"color: #0000ff;\">STYLE</span> WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU | WS_THICKFRAME<br />CAPTION <span style=\"color: #ff0000;\">\"CALCULADORA\"</span><br /><span style=\"color: #000000;\">&#123;</span><br />&nbsp;PUSHBUTTON <span style=\"color: #ff0000;\">\"&1\"</span>, <span style=\"color: #000000;\">101</span>, <span style=\"color: #000000;\">114</span>, <span style=\"color: #000000;\">115</span>, <span style=\"color: #000000;\">14</span>, <span style=\"color: #000000;\">14</span><br />&nbsp;PUSHBUTTON <span style=\"color: #ff0000;\">\"&2\"</span>, <span style=\"color: #000000;\">102</span>, <span style=\"color: #000000;\">128</span>, <span style=\"color: #000000;\">115</span>, <span style=\"color: #000000;\">14</span>, <span style=\"color: #000000;\">14</span><br />&nbsp;PUSHBUTTON <span style=\"color: #ff0000;\">\"&4\"</span>, <span style=\"color: #000000;\">104</span>, <span style=\"color: #000000;\">114</span>, <span style=\"color: #000000;\">101</span>, <span style=\"color: #000000;\">14</span>, <span style=\"color: #000000;\">14</span><br />&nbsp;PUSHBUTTON <span style=\"color: #ff0000;\">\"&5\"</span>, <span style=\"color: #000000;\">105</span>, <span style=\"color: #000000;\">128</span>, <span style=\"color: #000000;\">101</span>, <span style=\"color: #000000;\">14</span>, <span style=\"color: #000000;\">14</span><br />&nbsp;PUSHBUTTON <span style=\"color: #ff0000;\">\"&6\"</span>, <span style=\"color: #000000;\">106</span>, <span style=\"color: #000000;\">142</span>, <span style=\"color: #000000;\">101</span>, <span style=\"color: #000000;\">14</span>, <span style=\"color: #000000;\">14</span><br />&nbsp;PUSHBUTTON <span style=\"color: #ff0000;\">\"&3\"</span>, <span style=\"color: #000000;\">103</span>, <span style=\"color: #000000;\">142</span>, <span style=\"color: #000000;\">115</span>, <span style=\"color: #000000;\">14</span>, <span style=\"color: #000000;\">14</span><br />&nbsp;PUSHBUTTON <span style=\"color: #ff0000;\">\"&7\"</span>, <span style=\"color: #000000;\">107</span>, <span style=\"color: #000000;\">114</span>, <span style=\"color: #000000;\">87</span>, <span style=\"color: #000000;\">14</span>, <span style=\"color: #000000;\">14</span><br />&nbsp;PUSHBUTTON <span style=\"color: #ff0000;\">\"&8\"</span>, <span style=\"color: #000000;\">108</span>, <span style=\"color: #000000;\">128</span>, <span style=\"color: #000000;\">87</span>, <span style=\"color: #000000;\">14</span>, <span style=\"color: #000000;\">14</span><br />&nbsp;PUSHBUTTON <span style=\"color: #ff0000;\">\"&9\"</span>, <span style=\"color: #000000;\">109</span>, <span style=\"color: #000000;\">142</span>, <span style=\"color: #000000;\">87</span>, <span style=\"color: #000000;\">14</span>, <span style=\"color: #000000;\">14</span><br />&nbsp;PUSHBUTTON <span style=\"color: #ff0000;\">\"&.\"</span>, <span style=\"color: #000000;\">110</span>, <span style=\"color: #000000;\">142</span>, <span style=\"color: #000000;\">129</span>, <span style=\"color: #000000;\">14</span>, <span style=\"color: #000000;\">14</span><br />&nbsp;CONTROL <span style=\"color: #ff0000;\">\"\"</span>, <span style=\"color: #000000;\">212</span>, <span style=\"color: #ff0000;\">\"TWBrowse\"</span>, <span style=\"color: #000000;\">0</span> | WS_CHILD | WS_VISIBLE | WS_BORDER | WS_VSCROLL | WS_HSCROLL | WS_TABSTOP, <span style=\"color: #000000;\">4</span>, <span style=\"color: #000000;\">6</span>, <span style=\"color: #000000;\">100</span>, <span style=\"color: #000000;\">163</span><br />&nbsp;PUSHBUTTON <span style=\"color: #ff0000;\">\"&-\"</span>, <span style=\"color: #000000;\">401</span>, <span style=\"color: #000000;\">161</span>, <span style=\"color: #000000;\">87</span>, <span style=\"color: #000000;\">14</span>, <span style=\"color: #000000;\">14</span><br />&nbsp;PUSHBUTTON <span style=\"color: #ff0000;\">\"&0\"</span>, <span style=\"color: #000000;\">100</span>, <span style=\"color: #000000;\">114</span>, <span style=\"color: #000000;\">129</span>, <span style=\"color: #000000;\">28</span>, <span style=\"color: #000000;\">14</span><br />&nbsp;PUSHBUTTON <span style=\"color: #ff0000;\">\"&*\"</span>, <span style=\"color: #000000;\">403</span>, <span style=\"color: #000000;\">161</span>, <span style=\"color: #000000;\">115</span>, <span style=\"color: #000000;\">14</span>, <span style=\"color: #000000;\">14</span><br />&nbsp;PUSHBUTTON <span style=\"color: #ff0000;\">\"&SALIR\"</span>, <span style=\"color: #000000;\">500</span>, <span style=\"color: #000000;\">167</span>, <span style=\"color: #000000;\">155</span>, <span style=\"color: #000000;\">39</span>, <span style=\"color: #000000;\">14</span><br />&nbsp;PUSHBUTTON <span style=\"color: #ff0000;\">\"&+\"</span>, <span style=\"color: #000000;\">402</span>, <span style=\"color: #000000;\">161</span>, <span style=\"color: #000000;\">101</span>, <span style=\"color: #000000;\">14</span>, <span style=\"color: #000000;\">14</span><br />&nbsp;PUSHBUTTON <span style=\"color: #ff0000;\">\"&/\"</span>, <span style=\"color: #000000;\">404</span>, <span style=\"color: #000000;\">161</span>, <span style=\"color: #000000;\">129</span>, <span style=\"color: #000000;\">14</span>, <span style=\"color: #000000;\">14</span><br />&nbsp;PUSHBUTTON <span style=\"color: #ff0000;\">\"&=\"</span>, <span style=\"color: #000000;\">405</span>, <span style=\"color: #000000;\">179</span>, <span style=\"color: #000000;\">129</span>, <span style=\"color: #000000;\">20</span>, <span style=\"color: #000000;\">14</span><br />&nbsp;PUSHBUTTON <span style=\"color: #ff0000;\">\"&RC\"</span>, <span style=\"color: #000000;\">425</span>, <span style=\"color: #000000;\">179</span>, <span style=\"color: #000000;\">87</span>, <span style=\"color: #000000;\">20</span>, <span style=\"color: #000000;\">14</span><br />&nbsp;PUSHBUTTON <span style=\"color: #ff0000;\">\"CE\"</span>, <span style=\"color: #000000;\">426</span>, <span style=\"color: #000000;\">179</span>, <span style=\"color: #000000;\">101</span>, <span style=\"color: #000000;\">20</span>, <span style=\"color: #000000;\">14</span><br />&nbsp;PUSHBUTTON <span style=\"color: #ff0000;\">\"+ / -\"</span>, <span style=\"color: #000000;\">111</span>, <span style=\"color: #000000;\">179</span>, <span style=\"color: #000000;\">115</span>, <span style=\"color: #000000;\">20</span>, <span style=\"color: #000000;\">14</span><br />&nbsp;PUSHBUTTON <span style=\"color: #ff0000;\">\"a &PTS\"</span>, <span style=\"color: #000000;\">407</span>, <span style=\"color: #000000;\">176</span>, <span style=\"color: #000000;\">14</span>, <span style=\"color: #000000;\">27</span>, <span style=\"color: #000000;\">14</span><br />&nbsp;PUSHBUTTON <span style=\"color: #ff0000;\">\"a &Euros\"</span>, <span style=\"color: #000000;\">408</span>, <span style=\"color: #000000;\">148</span>, <span style=\"color: #000000;\">14</span>, <span style=\"color: #000000;\">27</span>, <span style=\"color: #000000;\">14</span><br />&nbsp;RTEXT <span style=\"color: #ff0000;\">\"Text\"</span>, <span style=\"color: #000000;\">200</span>, <span style=\"color: #000000;\">109</span>, <span style=\"color: #000000;\">49</span>, <span style=\"color: #000000;\">95</span>, <span style=\"color: #000000;\">13</span><br />&nbsp;RTEXT <span style=\"color: #ff0000;\">\"Text\"</span>, <span style=\"color: #000000;\">211</span>, <span style=\"color: #000000;\">114</span>, <span style=\"color: #000000;\">71</span>, <span style=\"color: #000000;\">85</span>, <span style=\"color: #000000;\">13</span>, SS_RIGHT | WS_BORDER | WS_GROUP<br />&nbsp;RTEXT <span style=\"color: #ff0000;\">\"Resultado =\"</span>, <span style=\"color: #000000;\">-1</span>, <span style=\"color: #000000;\">164</span>, <span style=\"color: #000000;\">39</span>, <span style=\"color: #000000;\">40</span>, <span style=\"color: #000000;\">10</span><br />&nbsp;CONTROL <span style=\"color: #ff0000;\">\"\"</span>, <span style=\"color: #000000;\">-1</span>, <span style=\"color: #ff0000;\">\"static\"</span>, SS_BLACKFRAME | WS_CHILD | WS_VISIBLE, <span style=\"color: #000000;\">108</span>, <span style=\"color: #000000;\">67</span>, <span style=\"color: #000000;\">98</span>, <span style=\"color: #000000;\">80</span><br />&nbsp;CONTROL <span style=\"color: #ff0000;\">\"\"</span>, <span style=\"color: #000000;\">-1</span>, <span style=\"color: #ff0000;\">\"static\"</span>, SS_BLACKFRAME | WS_CHILD | WS_VISIBLE, <span style=\"color: #000000;\">108</span>, <span style=\"color: #000000;\">39</span>, <span style=\"color: #000000;\">98</span>, <span style=\"color: #000000;\">26</span><br />&nbsp;GROUPBOX <span style=\"color: #ff0000;\">\"Conversor\"</span>, <span style=\"color: #000000;\">-1</span>, <span style=\"color: #000000;\">144</span>, <span style=\"color: #000000;\">4</span>, <span style=\"color: #000000;\">62</span>, <span style=\"color: #000000;\">26</span>, BS_GROUPBOX<br /><span style=\"color: #000000;\">&#125;</span><br />&nbsp;</div>[/code:1x5yknyq]", "time": "18:09", "topic": "Calculator revisited", "username": "Verhoven" } ]
Calculator revisited
[ { "date": "2014-05-28", "forum": "FiveWin for Harbour/xHarbour", "text": "Está escrito con el WorkShop.\nIt was written with WorkShop.", "time": "18:11", "topic": "Calculator revisited", "username": "Verhoven" } ]
Calculator revisited
[ { "date": "2014-05-28", "forum": "FiveWin for Harbour/xHarbour", "text": "Receiving syntax errors for oBtnDel and oBtn0.\n\nWhen commenting those out, it will build.\n\nI suspect the problems are in the IIF( ) syntax, but I'm not sure yet what goes where.\n\nThanks.", "time": "19:48", "topic": "Calculator revisited", "username": "TimStone" } ]
Calculator revisited
[ { "date": "2014-05-28", "forum": "FiveWin for Harbour/xHarbour", "text": "Very Good!!\n\n[code=fw:1ibo3gi4]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #B900B9;\">/*<br />&nbsp; TCALC.PRG &nbsp; <br />&nbsp; CLASE QUE PERMITE PONER UNA CALCULADORA CON ROLLO DE PAPEL VIRTUAL.<br />&nbsp; Necesita el fichero de recursos: TCALC.RC<br /><br />&nbsp; Primera Versión: Junio del 2007 DC<br />&nbsp; Ultima Revisión: 23/09/2007<br />&nbsp; Autor: Verhoven. &nbsp;¡ Seguro les resultará de utilidad !<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;1.- Queda autorizado su libre distribucion y uso, incluso con fines comerciales . <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;2.- El autor declina cualquier responsabilidad en caso de funcionamiento anómalo.<br /><br />&nbsp; Ejemplo: Hacemos una calculadora que se active pulsando F12:<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Para incluirla en un programa basta con poner después de la función main() del mismo.<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;#include 'TCALC.PRG'<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;public oCalc:=tCalc():new()<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;setkey(VK_F12, {|| oCalc:calculadora(oWnd,'@E 9,999,999.9999 ')})<br />&nbsp; <br />&nbsp; Vea el significado de las variables de instancia y de las que se les pasan a los métodos para <br />&nbsp; &nbsp;aprovechar algunas posibilidades de configuración.<br />*/</span><br /><br /><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"fivewin.ch\"</span><br /><br /><span style=\"color: #00C800;\">STATIC</span> oWnd<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;\">PUBLIC</span> oFont<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">PUBLIC</span> oCalc:=tCalc<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: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">FONT</span> oFont <span style=\"color: #0000ff;\">NAME</span> <span style=\"color: #ff0000;\">\"Ms Sans Serif\"</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">00</span>, <span style=\"color: #000000;\">-14</span> BOLD<br /><br />&nbsp; &nbsp;setkey<span style=\"color: #000000;\">&#40;</span> VK_F12, <span style=\"color: #000000;\">&#123;</span> || oCalc:<span style=\"color: #000000;\">calculadora</span><span style=\"color: #000000;\">&#40;</span> oWnd, <span style=\"color: #ff0000;\">'@E 9,999,999.9999 '</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWnd <span style=\"color: #0000ff;\">TITLE</span> <span style=\"color: #ff0000;\">\"Press <F12> to Calculator\"</span><br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTONBAR</span> oBar _3D <span style=\"color: #0000ff;\">OF</span> oWnd<br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #0000ff;\">OF</span> oBar <span style=\"color: #0000ff;\">ACTION</span><span style=\"color: #000000;\">&#40;</span> oWnd:<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> CANCEL<br /><br />&nbsp; &nbsp;SET <span style=\"color: #0000ff;\">MESSAGE</span> <span style=\"color: #0000ff;\">OF</span> oWnd <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #ff0000;\">\"Press <F12> to Calculator\"</span> NOINSET CLOCK DATE KEYBOARD<br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWnd <span style=\"color: #0000ff;\">MAXIMIZED</span><br /><br /><span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span><br /><br /><span style=\"color: #00C800;\">CLASS</span> TCalc<br />&nbsp;<span style=\"color: #00C800;\">DATA</span> nResult &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #B900B9;\">//Resultado de las operaciones en curso. &nbsp; &nbsp;</span><br />&nbsp;<span style=\"color: #00C800;\">DATA</span> aRolloCalc &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #B900B9;\">//Operaciones realizadas desde la última vez que se borró todo.</span><br />&nbsp;<br />&nbsp;<span style=\"color: #00C800;\">DATA</span> cUltima, cUltimaop &nbsp; &nbsp; &nbsp;<br />&nbsp;<span style=\"color: #00C800;\">DATA</span> cPatronSalida &nbsp; &nbsp; &nbsp; <span style=\"color: #B900B9;\">// cPatronSalida &nbsp;-> Formato en que se pinta el resultado. &nbsp; &nbsp;</span><br />&nbsp; &nbsp; <br />&nbsp;<span style=\"color: #00C800;\">METHOD</span> <span style=\"color: #00C800;\">New</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> CONSTRUCTOR<br />&nbsp;<br />&nbsp;<span style=\"color: #00C800;\">METHOD</span> End<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp;<br />&nbsp;<span style=\"color: #00C800;\">METHOD</span> nCalculadigual<span style=\"color: #000000;\">&#40;</span>nGet<span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp;<br />&nbsp;<span style=\"color: #00C800;\">METHOD</span> calculadora<span style=\"color: #000000;\">&#40;</span>oPadre,cPatronSalida,lBorraAlInicio<span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #B900B9;\">// lBorraAlInicio -> Al llamar al método si está en .t. borra lo que hubiera.</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #B900B9;\">// &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Si está en .f. ó NIL conserva las operaciones anteriores.</span><br />&nbsp; &nbsp; &nbsp;<br />&nbsp;<span style=\"color: #00C800;\">METHOD</span> TCalc_Teclas<span style=\"color: #000000;\">&#40;</span>nKey, oDlg<span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">ENDCLASS</span><br /><br /><span style=\"color: #B900B9;\">//----------------------------------------------------------------------------//</span><br /><br /><span style=\"color: #00C800;\">METHOD</span> <span style=\"color: #00C800;\">New</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #00C800;\">CLASS</span> TCalc<br /><br />&nbsp; &nbsp;::<span style=\"color: #000000;\">aRolloCalc</span>:=<span style=\"color: #000000;\">&#123;</span><span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">'C'</span>,<span style=\"color: #ff0000;\">' '</span><span style=\"color: #000000;\">&#125;</span><span style=\"color: #000000;\">&#125;</span><br />&nbsp; &nbsp;::<span style=\"color: #000000;\">nResult</span> &nbsp; :=<span style=\"color: #000000;\">0</span><br />&nbsp;<br />&nbsp; &nbsp;::<span style=\"color: #000000;\">cUltima</span> &nbsp; :=<span style=\"color: #ff0000;\">''</span><br />&nbsp; &nbsp;::<span style=\"color: #000000;\">cUltimaop</span> :=<span style=\"color: #ff0000;\">''</span><br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">SELF</span><br /><br /><span style=\"color: #B900B9;\">//----------------------------------------------------------------------------//</span><br /><br /><span style=\"color: #00C800;\">METHOD</span> End<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #00C800;\">CLASS</span> TCalc<br /><br />&nbsp; &nbsp;::<span style=\"color: #000000;\">aRolloCalc</span>:=<span style=\"color: #000000;\">&#123;</span><span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">'C'</span>,<span style=\"color: #ff0000;\">' '</span><span style=\"color: #000000;\">&#125;</span><span style=\"color: #000000;\">&#125;</span><br />&nbsp; &nbsp;::<span style=\"color: #000000;\">nResult</span> &nbsp; :=<span style=\"color: #000000;\">0</span><br /><br />&nbsp; &nbsp;::<span style=\"color: #000000;\">cUltima</span> &nbsp; :=<span style=\"color: #ff0000;\">''</span><br />&nbsp; &nbsp;::<span style=\"color: #000000;\">cUltimaop</span> :=<span style=\"color: #ff0000;\">''</span><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;\">METHOD</span> calculadora<span style=\"color: #000000;\">&#40;</span>oPadre,cPatronSalida,lBorraAlInicio<span style=\"color: #000000;\">&#41;</span> <span style=\"color: #00C800;\">CLASS</span> TCalc<br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> oDlg<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> oBtnSalir<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> oBtnmenos, oBtnmas, oBtnpor, oBtndividir, oBtnigual, oBtnBorra<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> oBtn0, oBtn1, oBtn2, oBtn3, oBtn4, oBtn5, oBtn6, oBtn7, oBtn8, oBtn9, oBtnP, oBtnSigno<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> oBtnConv, oBtnConv2<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> oBtnDel<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> oSay<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> oBrw, n:=<span style=\"color: #000000;\">1</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> oGet, nGet:=<span style=\"color: #000000;\">0</span> ,cGet:=<span style=\"color: #ff0000;\">''</span>, nGetAnt:=<span style=\"color: #000000;\">0</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> oFont1<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> oFontLst<br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">if</span> cPatronSalida=<span style=\"color: #00C800;\">NIL</span> .and. ::<span style=\"color: #000000;\">cPatronSalida</span>=<span style=\"color: #00C800;\">NIL</span><br />&nbsp; &nbsp; &nbsp; cPatronSalida:=<span style=\"color: #ff0000;\">'@E 9,999,999,999.99 '</span> &nbsp;<span style=\"color: #B900B9;\">//Formato en que se pinta el resultado.</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">endif</span><br /><br />&nbsp; &nbsp;<span style=\"color: #B900B9;\">//default cPatronSalida:='@E 9,999,999,999.99 ' &nbsp;//Formato en que se pinta el resultado.</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">default</span> lBorraAlInicio :=.f. &nbsp;<span style=\"color: #B900B9;\">// Al llamar al método si está en .t. borra lo que hubiera.</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #B900B9;\">// &nbsp;Si está en .f. entonces conserva las operaciones anteriores.</span><br /><br />&nbsp; &nbsp;::<span style=\"color: #000000;\">cPatronSalida</span>:=cPatronSalida<br /><br />&nbsp; &nbsp; <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">FONT</span> oFont1 &nbsp; <span style=\"color: #0000ff;\">NAME</span> <span style=\"color: #ff0000;\">\"Arial\"</span> &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">0</span>,<span style=\"color: #000000;\">-20</span> <br />&nbsp; &nbsp; <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">FONT</span> oFontLst <span style=\"color: #0000ff;\">NAME</span> <span style=\"color: #ff0000;\">\"MS Sans Serif\"</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">0</span>,<span style=\"color: #000000;\">-14</span> <br />&nbsp; &nbsp; <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">'Calculadora'</span> <span style=\"color: #0000ff;\">OF</span> oPadre <span style=\"color: #0000ff;\">TITLE</span> <span style=\"color: #ff0000;\">'CALCULADORA'</span> <span style=\"color: #0000ff;\">FONT</span> oFont<br /><br />&nbsp; &nbsp; <span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> oBtnSalir <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">500</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">MESSAGE</span> <span style=\"color: #ff0000;\">'SALIR'</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<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: #00C800;\">default</span> CANCEL <span style=\"color: #0000ff;\">UPDATE</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oBtnSalir:<span style=\"color: #000000;\">cargo</span>:=<span style=\"color: #ff0000;\">'S'</span><br />&nbsp; &nbsp; <br />&nbsp; &nbsp; <span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> oBtnmenos <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">401</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">MESSAGE</span> <span style=\"color: #ff0000;\">'Resta'</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #000000;\">&#40;</span>iif<span style=\"color: #000000;\">&#40;</span>nGet<><span style=\"color: #000000;\">0</span>,<span style=\"color: #000000;\">&#40;</span>nGetAnt:=nGet,aadd<span style=\"color: #000000;\">&#40;</span>::<span style=\"color: #000000;\">aRolloCalc</span>,<span style=\"color: #000000;\">&#123;</span>transform<span style=\"color: #000000;\">&#40;</span>nGet,::<span style=\"color: #000000;\">cPatronSalida</span><span style=\"color: #000000;\">&#41;</span>,<span style=\"color: #ff0000;\">'-'</span><span style=\"color: #000000;\">&#125;</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span>,<span style=\"color: #000000;\">&#40;</span>::<span style=\"color: #000000;\">nResult</span>:=::<span style=\"color: #000000;\">nResult</span>-nGetAnt,aadd<span style=\"color: #000000;\">&#40;</span>::<span style=\"color: #000000;\">aRolloCalc</span>,<span style=\"color: #000000;\">&#123;</span>transform<span style=\"color: #000000;\">&#40;</span>iif<span style=\"color: #000000;\">&#40;</span>::<span style=\"color: #000000;\">cUltimaOp</span>=<span style=\"color: #ff0000;\">'='</span>,::<span style=\"color: #000000;\">nResult</span>,nGetAnt<span style=\"color: #000000;\">&#41;</span>,::<span style=\"color: #000000;\">cPatronSalida</span><span style=\"color: #000000;\">&#41;</span>,<span style=\"color: #ff0000;\">'-'</span><span style=\"color: #000000;\">&#125;</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span> ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &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; &nbsp; &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; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;iif<span style=\"color: #000000;\">&#40;</span>::<span style=\"color: #000000;\">nResult</span>=<span style=\"color: #000000;\">0</span>,::<span style=\"color: #000000;\">nResult</span>:=nGet,::<span style=\"color: #000000;\">nResult</span>:=::<span style=\"color: #000000;\">nResult</span>-nGet<span style=\"color: #000000;\">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::<span style=\"color: #000000;\">cUltimaOp</span>:=<span style=\"color: #ff0000;\">'-'</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oSay:<span style=\"color: #000000;\">SetText</span><span style=\"color: #000000;\">&#40;</span>transform<span style=\"color: #000000;\">&#40;</span>::<span style=\"color: #000000;\">nResult</span>,::<span style=\"color: #000000;\">cPatronSalida</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nGet:=<span style=\"color: #000000;\">0</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cGet:=<span style=\"color: #ff0000;\">''</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oGet:<span style=\"color: #000000;\">SetText</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">''</span><span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oBtnIgual:<span style=\"color: #000000;\">Setfocus</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;sysrefresh<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #0000ff;\">UPDATE</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oBtnmenos:<span style=\"color: #000000;\">cargo</span>:=<span style=\"color: #ff0000;\">'-'</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; <span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> oBtnmas &nbsp; <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">402</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">MESSAGE</span> <span style=\"color: #ff0000;\">'Suma'</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #000000;\">&#40;</span>iif<span style=\"color: #000000;\">&#40;</span>nGet<><span style=\"color: #000000;\">0</span>,<span style=\"color: #000000;\">&#40;</span>nGetAnt:=nGet,aadd<span style=\"color: #000000;\">&#40;</span>::<span style=\"color: #000000;\">aRolloCalc</span>,<span style=\"color: #000000;\">&#123;</span>transform<span style=\"color: #000000;\">&#40;</span>nGet,::<span style=\"color: #000000;\">cPatronSalida</span><span style=\"color: #000000;\">&#41;</span>,<span style=\"color: #ff0000;\">'+'</span><span style=\"color: #000000;\">&#125;</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span>,<span style=\"color: #000000;\">&#40;</span>::<span style=\"color: #000000;\">nResult</span>:=::<span style=\"color: #000000;\">nResult</span>+nGetAnt,aadd<span style=\"color: #000000;\">&#40;</span>::<span style=\"color: #000000;\">aRolloCalc</span>,<span style=\"color: #000000;\">&#123;</span>transform<span style=\"color: #000000;\">&#40;</span>iif<span style=\"color: #000000;\">&#40;</span>::<span style=\"color: #000000;\">cUltimaOp</span>=<span style=\"color: #ff0000;\">'='</span>,::<span style=\"color: #000000;\">nResult</span>,nGetAnt<span style=\"color: #000000;\">&#41;</span>,::<span style=\"color: #000000;\">cPatronSalida</span><span style=\"color: #000000;\">&#41;</span>,<span style=\"color: #ff0000;\">'+'</span><span style=\"color: #000000;\">&#125;</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span> ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &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; &nbsp; &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; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;iif<span style=\"color: #000000;\">&#40;</span>::<span style=\"color: #000000;\">nResult</span>=<span style=\"color: #000000;\">0</span>,::<span style=\"color: #000000;\">nResult</span>:=nGet,::<span style=\"color: #000000;\">nResult</span>:=::<span style=\"color: #000000;\">nResult</span>+nGet<span style=\"color: #000000;\">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::<span style=\"color: #000000;\">cUltimaOp</span>:=<span style=\"color: #ff0000;\">'+'</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oSay:<span style=\"color: #000000;\">SetText</span><span style=\"color: #000000;\">&#40;</span>transform<span style=\"color: #000000;\">&#40;</span>::<span style=\"color: #000000;\">nResult</span>,::<span style=\"color: #000000;\">cPatronSalida</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nGet:=<span style=\"color: #000000;\">0</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cGet:=<span style=\"color: #ff0000;\">''</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oGet:<span style=\"color: #000000;\">SetText</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">''</span><span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oBtnIgual:<span style=\"color: #000000;\">Setfocus</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;sysrefresh<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #0000ff;\">UPDATE</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oBtnmas:<span style=\"color: #000000;\">cargo</span>:=<span style=\"color: #ff0000;\">'+'</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; <span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> oBtnpor &nbsp; <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">403</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">MESSAGE</span> <span style=\"color: #ff0000;\">'Multiplica'</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #000000;\">&#40;</span>aadd<span style=\"color: #000000;\">&#40;</span> ::<span style=\"color: #000000;\">aRolloCalc</span>, iif<span style=\"color: #000000;\">&#40;</span>nGet=<span style=\"color: #000000;\">0</span> .and. ::<span style=\"color: #000000;\">nResult</span><><span style=\"color: #000000;\">0</span>,<span style=\"color: #000000;\">&#123;</span>transform<span style=\"color: #000000;\">&#40;</span>::<span style=\"color: #000000;\">nResult</span>,::<span style=\"color: #000000;\">cPatronSalida</span><span style=\"color: #000000;\">&#41;</span>,<span style=\"color: #ff0000;\">'x'</span><span style=\"color: #000000;\">&#125;</span>,<span style=\"color: #000000;\">&#123;</span>transform<span style=\"color: #000000;\">&#40;</span>nGet,::<span style=\"color: #000000;\">cPatronSalida</span><span style=\"color: #000000;\">&#41;</span>,<span style=\"color: #ff0000;\">'x'</span><span style=\"color: #000000;\">&#125;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &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; &nbsp; &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; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;iif<span style=\"color: #000000;\">&#40;</span>::<span style=\"color: #000000;\">nResult</span>=<span style=\"color: #000000;\">0</span>,::<span style=\"color: #000000;\">nResult</span>:=nGet,iif<span style=\"color: #000000;\">&#40;</span>nGet<><span style=\"color: #000000;\">0</span>,::<span style=\"color: #000000;\">nResult</span>:=::<span style=\"color: #000000;\">nResult*nGet</span>,<span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::<span style=\"color: #000000;\">cUltimaOp</span>:=<span style=\"color: #ff0000;\">'*'</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oSay:<span style=\"color: #000000;\">SetText</span><span style=\"color: #000000;\">&#40;</span>transform<span style=\"color: #000000;\">&#40;</span>::<span style=\"color: #000000;\">nResult</span>,::<span style=\"color: #000000;\">cPatronSalida</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nGet:=<span style=\"color: #000000;\">0</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cGet:=<span style=\"color: #ff0000;\">''</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oGet:<span style=\"color: #000000;\">SetText</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">''</span><span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oBtnIgual:<span style=\"color: #000000;\">Setfocus</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;sysrefresh<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #0000ff;\">UPDATE</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oBtnpor:<span style=\"color: #000000;\">cargo</span>:=<span style=\"color: #ff0000;\">'*'</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; <span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> oBtndividir <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">404</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">MESSAGE</span> <span style=\"color: #ff0000;\">'Divide'</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #000000;\">&#40;</span>aadd<span style=\"color: #000000;\">&#40;</span> ::<span style=\"color: #000000;\">aRolloCalc</span>, iif<span style=\"color: #000000;\">&#40;</span>nGet=<span style=\"color: #000000;\">0</span> .and. ::<span style=\"color: #000000;\">nResult</span><><span style=\"color: #000000;\">0</span>,<span style=\"color: #000000;\">&#123;</span>transform<span style=\"color: #000000;\">&#40;</span>::<span style=\"color: #000000;\">nResult</span>,::<span style=\"color: #000000;\">cPatronSalida</span><span style=\"color: #000000;\">&#41;</span>,<span style=\"color: #ff0000;\">'/'</span><span style=\"color: #000000;\">&#125;</span>,<span style=\"color: #000000;\">&#123;</span>transform<span style=\"color: #000000;\">&#40;</span>nGet,::<span style=\"color: #000000;\">cPatronSalida</span><span style=\"color: #000000;\">&#41;</span>,<span style=\"color: #ff0000;\">'/'</span><span style=\"color: #000000;\">&#125;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oBrw:<span style=\"color: #000000;\">gobottom</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>,; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &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; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;iif<span style=\"color: #000000;\">&#40;</span>::<span style=\"color: #000000;\">nResult</span>=<span style=\"color: #000000;\">0</span>,::<span style=\"color: #000000;\">nResult</span>:=nGet,iif<span style=\"color: #000000;\">&#40;</span>nGet<><span style=\"color: #000000;\">0</span>,::<span style=\"color: #000000;\">nResult</span>:=::<span style=\"color: #000000;\">nResult</span>/nGet,<span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::<span style=\"color: #000000;\">cUltimaOp</span>:=<span style=\"color: #ff0000;\">'/'</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oSay:<span style=\"color: #000000;\">SetText</span><span style=\"color: #000000;\">&#40;</span>transform<span style=\"color: #000000;\">&#40;</span>::<span style=\"color: #000000;\">nResult</span>,::<span style=\"color: #000000;\">cPatronSalida</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nGet:=<span style=\"color: #000000;\">0</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cGet:=<span style=\"color: #ff0000;\">''</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oGet:<span style=\"color: #000000;\">SetText</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">''</span><span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oBtnIgual:<span style=\"color: #000000;\">Setfocus</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;sysrefresh<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #0000ff;\">UPDATE</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oBtndividir:<span style=\"color: #000000;\">cargo</span>:=<span style=\"color: #ff0000;\">'/'</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; <span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> oBtnigual &nbsp; <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">405</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">MESSAGE</span> <span style=\"color: #ff0000;\">'Calcula resultado'</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #000000;\">&#40;</span>iif<span style=\"color: #000000;\">&#40;</span>nGet=<span style=\"color: #000000;\">0</span>,,aadd<span style=\"color: #000000;\">&#40;</span> ::<span style=\"color: #000000;\">aRolloCalc</span>, <span style=\"color: #000000;\">&#123;</span>transform<span style=\"color: #000000;\">&#40;</span>nGet,::<span style=\"color: #000000;\">cPatronSalida</span><span style=\"color: #000000;\">&#41;</span>,iif<span style=\"color: #000000;\">&#40;</span>::<span style=\"color: #000000;\">cUltimaOp</span>=<span style=\"color: #ff0000;\">'+'</span> .or. ::<span style=\"color: #000000;\">cUltimaOp</span>=<span style=\"color: #ff0000;\">'-'</span> .or. ::<span style=\"color: #000000;\">cUltimaOp</span>=<span style=\"color: #ff0000;\">'*'</span> .or. ::<span style=\"color: #000000;\">cUltimaOp</span>=<span style=\"color: #ff0000;\">'/'</span>,<span style=\"color: #ff0000;\">' '</span>,::<span style=\"color: #000000;\">cUltimaOp</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::<span style=\"color: #000000;\">nCalculadIgual</span><span style=\"color: #000000;\">&#40;</span>nGet<span style=\"color: #000000;\">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aadd<span style=\"color: #000000;\">&#40;</span> ::<span style=\"color: #000000;\">aRolloCalc</span>, <span style=\"color: #000000;\">&#123;</span>transform<span style=\"color: #000000;\">&#40;</span>::<span style=\"color: #000000;\">nResult</span>,::<span style=\"color: #000000;\">cPatronSalida</span><span style=\"color: #000000;\">&#41;</span>,<span style=\"color: #ff0000;\">'='</span><span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oBrw:<span style=\"color: #000000;\">gobottom</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>,oBrw:<span style=\"color: #000000;\">gobottom</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>,; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &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; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::<span style=\"color: #000000;\">cUltimaOp</span>:=<span style=\"color: #ff0000;\">'='</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oSay:<span style=\"color: #000000;\">SetText</span><span style=\"color: #000000;\">&#40;</span>transform<span style=\"color: #000000;\">&#40;</span>::<span style=\"color: #000000;\">nResult</span>,::<span style=\"color: #000000;\">cPatronSalida</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nGet:=<span style=\"color: #000000;\">0</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nGetAnt:=<span style=\"color: #000000;\">0</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cGet:=<span style=\"color: #ff0000;\">''</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oGet:<span style=\"color: #000000;\">SetText</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">''</span><span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oBtnIgual:<span style=\"color: #000000;\">Setfocus</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;sysrefresh<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #0000ff;\">UPDATE</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oBtnigual:<span style=\"color: #000000;\">cargo</span>:=<span style=\"color: #ff0000;\">'='</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br /><br />&nbsp; &nbsp; <span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> oBtnBorra <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">425</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">MESSAGE</span> <span style=\"color: #ff0000;\">'Borra todos los cálculos'</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #000000;\">&#40;</span>iif<span style=\"color: #000000;\">&#40;</span> len<span style=\"color: #000000;\">&#40;</span> ::<span style=\"color: #000000;\">aRolloCalc</span> <span style=\"color: #000000;\">&#41;</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;\">&#40;</span> aSize<span style=\"color: #000000;\">&#40;</span> ::<span style=\"color: #000000;\">aRolloCalc</span>, <span style=\"color: #000000;\">0</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: #000000;\">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aadd<span style=\"color: #000000;\">&#40;</span> ::<span style=\"color: #000000;\">aRolloCalc</span>, <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">' '</span>,<span style=\"color: #ff0000;\">'C'</span><span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oBrw:<span style=\"color: #000000;\">gotop</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ,; <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oBrw:<span style=\"color: #0000ff;\">refresh</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::<span style=\"color: #000000;\">nResult</span>:=<span style=\"color: #000000;\">0</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::<span style=\"color: #000000;\">cUltimaOp</span>:=<span style=\"color: #ff0000;\">'R'</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oSay:<span style=\"color: #000000;\">SetText</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">'0'</span><span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nGet:=<span style=\"color: #000000;\">0</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cGet:=<span style=\"color: #ff0000;\">''</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oGet:<span style=\"color: #000000;\">SetText</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">''</span><span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oBtnIgual:<span style=\"color: #000000;\">Setfocus</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;sysrefresh<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #0000ff;\">UPDATE</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oBtnBorra:<span style=\"color: #000000;\">cargo</span>:=<span style=\"color: #ff0000;\">'R'</span> &nbsp; &nbsp;<br />&nbsp; &nbsp; <br />&nbsp; &nbsp; <span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> oBtnDel <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">426</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">MESSAGE</span> <span style=\"color: #ff0000;\">'Borra último dígito'</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #000000;\">&#40;</span>::<span style=\"color: #000000;\">cUltima</span>:=<span style=\"color: #ff0000;\">'CE'</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;iif<span style=\"color: #000000;\">&#40;</span>::<span style=\"color: #000000;\">cUltimaOp</span>=<span style=\"color: #ff0000;\">'='</span> .or. ::<span style=\"color: #000000;\">cUltimaOp</span>=<span style=\"color: #ff0000;\">'AP'</span> .or. ::<span style=\"color: #000000;\">cUltimaOp</span>=<span style=\"color: #ff0000;\">'AE'</span>,<span style=\"color: #000000;\">&#40;</span>::<span style=\"color: #000000;\">cUltimaOp</span>:=<span style=\"color: #ff0000;\">''</span>,::<span style=\"color: #000000;\">nResult</span>:=<span style=\"color: #000000;\">0</span>,aadd<span style=\"color: #000000;\">&#40;</span> ::<span style=\"color: #000000;\">aRolloCalc</span>, <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">' '</span>,<span style=\"color: #ff0000;\">' '</span><span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span>, oBrw:<span style=\"color: #000000;\">gobottom</span><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: #000000;\">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;iif<span style=\"color: #000000;\">&#40;</span>nGet<><span style=\"color: #000000;\">0</span>,<span style=\"color: #000000;\">&#40;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cGet:=<span style=\"color: #0000ff;\">LEFT</span><span style=\"color: #000000;\">&#40;</span>cGet,len<span style=\"color: #000000;\">&#40;</span>cget<span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">-1</span><span style=\"color: #000000;\">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nGet:=val<span style=\"color: #000000;\">&#40;</span>cGet<span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span>,<span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oGet:<span style=\"color: #000000;\">SetText</span><span style=\"color: #000000;\">&#40;</span>cGet<span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oBtnIgual:<span style=\"color: #000000;\">Setfocus</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;sysrefresh<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #0000ff;\">UPDATE</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oBtnDel:<span style=\"color: #000000;\">cargo</span>:=chr<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">8</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; <br />&nbsp; &nbsp; <span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> oBtnConv <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">407</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">MESSAGE</span> <span style=\"color: #ff0000;\">'Convierte de euros a PTS'</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #000000;\">&#40;</span> iif<span style=\"color: #000000;\">&#40;</span>nGet<><span style=\"color: #000000;\">0</span>,::<span style=\"color: #000000;\">nResult</span>:=<span style=\"color: #0000ff;\">round</span><span style=\"color: #000000;\">&#40;</span>nGet*<span style=\"color: #000000;\">166.386</span>,<span style=\"color: #000000;\">0</span><span style=\"color: #000000;\">&#41;</span>,::<span style=\"color: #000000;\">nResult</span>:=<span style=\"color: #0000ff;\">round</span><span style=\"color: #000000;\">&#40;</span>::<span style=\"color: #000000;\">nResult*</span><span style=\"color: #000000;\">166.386</span>,<span style=\"color: #000000;\">0</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aadd<span style=\"color: #000000;\">&#40;</span> ::<span style=\"color: #000000;\">aRolloCalc</span>, <span style=\"color: #000000;\">&#123;</span>transform<span style=\"color: #000000;\">&#40;</span>::<span style=\"color: #000000;\">nResult</span>,<span style=\"color: #ff0000;\">'@E 9,999,999,999 &nbsp; &nbsp; &nbsp;'</span><span style=\"color: #000000;\">&#41;</span>,<span style=\"color: #ff0000;\">'pts'</span><span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oBrw:<span style=\"color: #000000;\">gobottom</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>,; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &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; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::<span style=\"color: #000000;\">cUltimaOp</span>:=<span style=\"color: #ff0000;\">'AP'</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ,; &nbsp;<span style=\"color: #B900B9;\">// AP = a Pesetas</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oSay:<span style=\"color: #000000;\">SetText</span><span style=\"color: #000000;\">&#40;</span>transform<span style=\"color: #000000;\">&#40;</span>::<span style=\"color: #000000;\">nResult</span>,<span style=\"color: #ff0000;\">'@E 9,999,999,999 pts'</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nGet:=<span style=\"color: #000000;\">0</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cGet:=<span style=\"color: #ff0000;\">''</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oGet:<span style=\"color: #000000;\">SetText</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">''</span><span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oBtnIgual:<span style=\"color: #000000;\">Setfocus</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;sysrefresh<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #0000ff;\">UPDATE</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oBtnConv:<span style=\"color: #000000;\">cargo</span>:=<span style=\"color: #ff0000;\">'E'</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp;<br />&nbsp; &nbsp; <span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> oBtnConv2 <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">408</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">MESSAGE</span> <span style=\"color: #ff0000;\">'Convierte de PTS a Euro'</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #000000;\">&#40;</span> iif<span style=\"color: #000000;\">&#40;</span>nGet<><span style=\"color: #000000;\">0</span>,::<span style=\"color: #000000;\">nResult</span>:=<span style=\"color: #0000ff;\">round</span><span style=\"color: #000000;\">&#40;</span>nGet/<span style=\"color: #000000;\">166.386</span>,<span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#41;</span>,::<span style=\"color: #000000;\">nResult</span>:=<span style=\"color: #0000ff;\">round</span><span style=\"color: #000000;\">&#40;</span>::<span style=\"color: #000000;\">nResult</span>/<span style=\"color: #000000;\">166.386</span>,<span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aadd<span style=\"color: #000000;\">&#40;</span> ::<span style=\"color: #000000;\">aRolloCalc</span>, <span style=\"color: #000000;\">&#123;</span>transform<span style=\"color: #000000;\">&#40;</span>::<span style=\"color: #000000;\">nResult</span>,<span style=\"color: #ff0000;\">'@E 9,999,999,999.99 '</span><span style=\"color: #000000;\">&#41;</span>,<span style=\"color: #ff0000;\">' €'</span><span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oBrw:<span style=\"color: #000000;\">gobottom</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>,; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &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; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::<span style=\"color: #000000;\">cUltimaOp</span>:=<span style=\"color: #ff0000;\">'AE'</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ,; &nbsp;<span style=\"color: #B900B9;\">// AE = a Euros</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oSay:<span style=\"color: #000000;\">SetText</span><span style=\"color: #000000;\">&#40;</span>transform<span style=\"color: #000000;\">&#40;</span>::<span style=\"color: #000000;\">nResult</span>,<span style=\"color: #ff0000;\">'@E 9,999,999,999.99 €'</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nGet:=<span style=\"color: #000000;\">0</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cGet:=<span style=\"color: #ff0000;\">''</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oGet:<span style=\"color: #000000;\">SetText</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">''</span><span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oBtnIgual:<span style=\"color: #000000;\">Setfocus</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;sysrefresh<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #0000ff;\">UPDATE</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oBtnConv:<span style=\"color: #000000;\">cargo</span>:=<span style=\"color: #ff0000;\">'P'</span> &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; <span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> oBtn0 &nbsp; <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">100</span> <span style=\"color: #0000ff;\">OF</span> oDlg ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #000000;\">&#40;</span>::<span style=\"color: #000000;\">cUltima</span>:=<span style=\"color: #ff0000;\">'0'</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;iif<span style=\"color: #000000;\">&#40;</span>::<span style=\"color: #000000;\">cUltimaOp</span>=<span style=\"color: #ff0000;\">'='</span> .or. ::<span style=\"color: #000000;\">cUltimaOp</span>=<span style=\"color: #ff0000;\">'AP'</span> .or. ::<span style=\"color: #000000;\">cUltimaOp</span>=<span style=\"color: #ff0000;\">'AE'</span>,<span style=\"color: #000000;\">&#40;</span>::<span style=\"color: #000000;\">cUltimaOp</span>:=<span style=\"color: #ff0000;\">''</span>,::<span style=\"color: #000000;\">nResult</span>:=<span style=\"color: #000000;\">0</span>,aadd<span style=\"color: #000000;\">&#40;</span> ::<span style=\"color: #000000;\">aRolloCalc</span>, <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">' '</span>,<span style=\"color: #ff0000;\">' '</span><span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span>, oBrw:<span style=\"color: #000000;\">gobottom</span><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: #000000;\">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;iif<span style=\"color: #000000;\">&#40;</span>nGet<><span style=\"color: #000000;\">0</span> .or. <span style=\"color: #00C800;\">at</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\".\"</span>,cGet<span style=\"color: #000000;\">&#41;</span>><span style=\"color: #000000;\">0</span>,<span style=\"color: #000000;\">&#40;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cGet:=cGet+::<span style=\"color: #000000;\">cUltima</span> &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nGet:=val<span style=\"color: #000000;\">&#40;</span>cGet<span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span>,<span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oGet:<span style=\"color: #000000;\">SetText</span><span style=\"color: #000000;\">&#40;</span>cGet<span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oBtnIgual:<span style=\"color: #000000;\">Setfocus</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;sysrefresh<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #0000ff;\">UPDATE</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oBtn0:<span style=\"color: #000000;\">cargo</span>:=<span style=\"color: #ff0000;\">'0'</span><br />&nbsp; &nbsp; <span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> oBtn1 &nbsp; <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">101</span> <span style=\"color: #0000ff;\">OF</span> oDlg;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #000000;\">&#40;</span>::<span style=\"color: #000000;\">cUltima</span>:=<span style=\"color: #ff0000;\">'1'</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;iif<span style=\"color: #000000;\">&#40;</span>::<span style=\"color: #000000;\">cUltimaOp</span>=<span style=\"color: #ff0000;\">'='</span> .or. ::<span style=\"color: #000000;\">cUltimaOp</span>=<span style=\"color: #ff0000;\">'AP'</span> .or. ::<span style=\"color: #000000;\">cUltimaOp</span>=<span style=\"color: #ff0000;\">'AE'</span>,<span style=\"color: #000000;\">&#40;</span>::<span style=\"color: #000000;\">cUltimaOp</span>:=<span style=\"color: #ff0000;\">''</span>,::<span style=\"color: #000000;\">nResult</span>:=<span style=\"color: #000000;\">0</span>,aadd<span style=\"color: #000000;\">&#40;</span> ::<span style=\"color: #000000;\">aRolloCalc</span>, <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">' '</span>,<span style=\"color: #ff0000;\">' '</span><span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span>, oBrw:<span style=\"color: #000000;\">gobottom</span><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: #000000;\">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cGet:=cGet+::<span style=\"color: #000000;\">cUltima</span> &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nGet:=val<span style=\"color: #000000;\">&#40;</span>cGet<span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oGet:<span style=\"color: #000000;\">SetText</span><span style=\"color: #000000;\">&#40;</span>cGet<span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oBtnIgual:<span style=\"color: #000000;\">Setfocus</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;sysrefresh<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #0000ff;\">UPDATE</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oBtn1:<span style=\"color: #000000;\">cargo</span>:=<span style=\"color: #ff0000;\">'1'</span><br />&nbsp; &nbsp; <span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> oBtn2 &nbsp; <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">102</span> <span style=\"color: #0000ff;\">OF</span> oDlg;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #000000;\">&#40;</span>::<span style=\"color: #000000;\">cUltima</span>:=<span style=\"color: #ff0000;\">'2'</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;iif<span style=\"color: #000000;\">&#40;</span>::<span style=\"color: #000000;\">cUltimaOp</span>=<span style=\"color: #ff0000;\">'='</span> .or. ::<span style=\"color: #000000;\">cUltimaOp</span>=<span style=\"color: #ff0000;\">'AP'</span> .or. ::<span style=\"color: #000000;\">cUltimaOp</span>=<span style=\"color: #ff0000;\">'AE'</span>,<span style=\"color: #000000;\">&#40;</span>::<span style=\"color: #000000;\">cUltimaOp</span>:=<span style=\"color: #ff0000;\">''</span>,::<span style=\"color: #000000;\">nResult</span>:=<span style=\"color: #000000;\">0</span>,aadd<span style=\"color: #000000;\">&#40;</span> ::<span style=\"color: #000000;\">aRolloCalc</span>, <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">' '</span>,<span style=\"color: #ff0000;\">' '</span><span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span>, oBrw:<span style=\"color: #000000;\">gobottom</span><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: #000000;\">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cGet:=cGet+::<span style=\"color: #000000;\">cUltima</span> &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nGet:=val<span style=\"color: #000000;\">&#40;</span>cGet<span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oGet:<span style=\"color: #000000;\">SetText</span><span style=\"color: #000000;\">&#40;</span>cGet<span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oBtnIgual:<span style=\"color: #000000;\">Setfocus</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;sysrefresh<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #0000ff;\">UPDATE</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oBtn2:<span style=\"color: #000000;\">cargo</span>:=<span style=\"color: #ff0000;\">'2'</span><br />&nbsp; &nbsp; <span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> oBtn3 &nbsp; <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">103</span> <span style=\"color: #0000ff;\">OF</span> oDlg;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #000000;\">&#40;</span>::<span style=\"color: #000000;\">cUltima</span>:=<span style=\"color: #ff0000;\">'3'</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;iif<span style=\"color: #000000;\">&#40;</span>::<span style=\"color: #000000;\">cUltimaOp</span>=<span style=\"color: #ff0000;\">'='</span> .or. ::<span style=\"color: #000000;\">cUltimaOp</span>=<span style=\"color: #ff0000;\">'AP'</span> .or. ::<span style=\"color: #000000;\">cUltimaOp</span>=<span style=\"color: #ff0000;\">'AE'</span>,<span style=\"color: #000000;\">&#40;</span>::<span style=\"color: #000000;\">cUltimaOp</span>:=<span style=\"color: #ff0000;\">''</span>,::<span style=\"color: #000000;\">nResult</span>:=<span style=\"color: #000000;\">0</span>,aadd<span style=\"color: #000000;\">&#40;</span> ::<span style=\"color: #000000;\">aRolloCalc</span>, <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">' '</span>,<span style=\"color: #ff0000;\">' '</span><span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span>, oBrw:<span style=\"color: #000000;\">gobottom</span><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: #000000;\">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cGet:=cGet+::<span style=\"color: #000000;\">cUltima</span> &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nGet:=val<span style=\"color: #000000;\">&#40;</span>cGet<span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oGet:<span style=\"color: #000000;\">SetText</span><span style=\"color: #000000;\">&#40;</span>cGet<span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oBtnIgual:<span style=\"color: #000000;\">Setfocus</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;sysrefresh<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #0000ff;\">UPDATE</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oBtn3:<span style=\"color: #000000;\">cargo</span>:=<span style=\"color: #ff0000;\">'3'</span><br />&nbsp; &nbsp; <span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> oBtn4 &nbsp; <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">104</span> <span style=\"color: #0000ff;\">OF</span> oDlg;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #000000;\">&#40;</span>::<span style=\"color: #000000;\">cUltima</span>:=<span style=\"color: #ff0000;\">'4'</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;iif<span style=\"color: #000000;\">&#40;</span>::<span style=\"color: #000000;\">cUltimaOp</span>=<span style=\"color: #ff0000;\">'='</span> .or. ::<span style=\"color: #000000;\">cUltimaOp</span>=<span style=\"color: #ff0000;\">'AP'</span> .or. ::<span style=\"color: #000000;\">cUltimaOp</span>=<span style=\"color: #ff0000;\">'AE'</span>,<span style=\"color: #000000;\">&#40;</span>::<span style=\"color: #000000;\">cUltimaOp</span>:=<span style=\"color: #ff0000;\">''</span>,::<span style=\"color: #000000;\">nResult</span>:=<span style=\"color: #000000;\">0</span>,aadd<span style=\"color: #000000;\">&#40;</span> ::<span style=\"color: #000000;\">aRolloCalc</span>, <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">' '</span>,<span style=\"color: #ff0000;\">' '</span><span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span>, oBrw:<span style=\"color: #000000;\">gobottom</span><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: #000000;\">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cGet:=cGet+::<span style=\"color: #000000;\">cUltima</span> &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nGet:=val<span style=\"color: #000000;\">&#40;</span>cGet<span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oGet:<span style=\"color: #000000;\">SetText</span><span style=\"color: #000000;\">&#40;</span>cGet<span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oBtnIgual:<span style=\"color: #000000;\">Setfocus</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;sysrefresh<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #0000ff;\">UPDATE</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oBtn4:<span style=\"color: #000000;\">cargo</span>:=<span style=\"color: #ff0000;\">'4'</span><br />&nbsp; &nbsp; <span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> oBtn5 &nbsp; <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">105</span> <span style=\"color: #0000ff;\">OF</span> oDlg;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #000000;\">&#40;</span>::<span style=\"color: #000000;\">cUltima</span>:=<span style=\"color: #ff0000;\">'5'</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;iif<span style=\"color: #000000;\">&#40;</span>::<span style=\"color: #000000;\">cUltimaOp</span>=<span style=\"color: #ff0000;\">'='</span> .or. ::<span style=\"color: #000000;\">cUltimaOp</span>=<span style=\"color: #ff0000;\">'AP'</span> .or. ::<span style=\"color: #000000;\">cUltimaOp</span>=<span style=\"color: #ff0000;\">'AE'</span>,<span style=\"color: #000000;\">&#40;</span>::<span style=\"color: #000000;\">cUltimaOp</span>:=<span style=\"color: #ff0000;\">''</span>,::<span style=\"color: #000000;\">nResult</span>:=<span style=\"color: #000000;\">0</span>,aadd<span style=\"color: #000000;\">&#40;</span> ::<span style=\"color: #000000;\">aRolloCalc</span>, <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">' '</span>,<span style=\"color: #ff0000;\">' '</span><span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span>, oBrw:<span style=\"color: #000000;\">gobottom</span><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: #000000;\">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cGet:=cGet+::<span style=\"color: #000000;\">cUltima</span> &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nGet:=val<span style=\"color: #000000;\">&#40;</span>cGet<span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oGet:<span style=\"color: #000000;\">SetText</span><span style=\"color: #000000;\">&#40;</span>cGet<span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oBtnIgual:<span style=\"color: #000000;\">Setfocus</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;sysrefresh<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #0000ff;\">UPDATE</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oBtn5:<span style=\"color: #000000;\">cargo</span>:=<span style=\"color: #ff0000;\">'5'</span><br />&nbsp; &nbsp; <span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> oBtn6 &nbsp; <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">106</span> <span style=\"color: #0000ff;\">OF</span> oDlg;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #000000;\">&#40;</span>::<span style=\"color: #000000;\">cUltima</span>:=<span style=\"color: #ff0000;\">'6'</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;iif<span style=\"color: #000000;\">&#40;</span>::<span style=\"color: #000000;\">cUltimaOp</span>=<span style=\"color: #ff0000;\">'='</span> .or. ::<span style=\"color: #000000;\">cUltimaOp</span>=<span style=\"color: #ff0000;\">'AP'</span> .or. ::<span style=\"color: #000000;\">cUltimaOp</span>=<span style=\"color: #ff0000;\">'AE'</span>,<span style=\"color: #000000;\">&#40;</span>::<span style=\"color: #000000;\">cUltimaOp</span>:=<span style=\"color: #ff0000;\">''</span>,::<span style=\"color: #000000;\">nResult</span>:=<span style=\"color: #000000;\">0</span>,aadd<span style=\"color: #000000;\">&#40;</span> ::<span style=\"color: #000000;\">aRolloCalc</span>, <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">' '</span>,<span style=\"color: #ff0000;\">' '</span><span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span>, oBrw:<span style=\"color: #000000;\">gobottom</span><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: #000000;\">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cGet:=cGet+::<span style=\"color: #000000;\">cUltima</span> &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nGet:=val<span style=\"color: #000000;\">&#40;</span>cGet<span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oGet:<span style=\"color: #000000;\">SetText</span><span style=\"color: #000000;\">&#40;</span>cGet<span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oBtnIgual:<span style=\"color: #000000;\">Setfocus</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;sysrefresh<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #0000ff;\">UPDATE</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oBtn6:<span style=\"color: #000000;\">cargo</span>:=<span style=\"color: #ff0000;\">'6'</span><br />&nbsp; &nbsp; <span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> oBtn7 &nbsp; <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">107</span> <span style=\"color: #0000ff;\">OF</span> oDlg;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #000000;\">&#40;</span>::<span style=\"color: #000000;\">cUltima</span>:=<span style=\"color: #ff0000;\">'7'</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;iif<span style=\"color: #000000;\">&#40;</span>::<span style=\"color: #000000;\">cUltimaOp</span>=<span style=\"color: #ff0000;\">'='</span> .or. ::<span style=\"color: #000000;\">cUltimaOp</span>=<span style=\"color: #ff0000;\">'AP'</span> .or. ::<span style=\"color: #000000;\">cUltimaOp</span>=<span style=\"color: #ff0000;\">'AE'</span>,<span style=\"color: #000000;\">&#40;</span>::<span style=\"color: #000000;\">cUltimaOp</span>:=<span style=\"color: #ff0000;\">''</span>,::<span style=\"color: #000000;\">nResult</span>:=<span style=\"color: #000000;\">0</span>,aadd<span style=\"color: #000000;\">&#40;</span> ::<span style=\"color: #000000;\">aRolloCalc</span>, <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">' '</span>,<span style=\"color: #ff0000;\">' '</span><span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span>, oBrw:<span style=\"color: #000000;\">gobottom</span><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: #000000;\">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cGet:=cGet+::<span style=\"color: #000000;\">cUltima</span> &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nGet:=val<span style=\"color: #000000;\">&#40;</span>cGet<span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oGet:<span style=\"color: #000000;\">SetText</span><span style=\"color: #000000;\">&#40;</span>cGet<span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oBtnIgual:<span style=\"color: #000000;\">Setfocus</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;sysrefresh<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #0000ff;\">UPDATE</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oBtn7:<span style=\"color: #000000;\">cargo</span>:=<span style=\"color: #ff0000;\">'7'</span><br />&nbsp; &nbsp; <span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> oBtn8 &nbsp; <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">108</span> <span style=\"color: #0000ff;\">OF</span> oDlg;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #000000;\">&#40;</span>::<span style=\"color: #000000;\">cUltima</span>:=<span style=\"color: #ff0000;\">'8'</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;iif<span style=\"color: #000000;\">&#40;</span>::<span style=\"color: #000000;\">cUltimaOp</span>=<span style=\"color: #ff0000;\">'='</span> .or. ::<span style=\"color: #000000;\">cUltimaOp</span>=<span style=\"color: #ff0000;\">'AP'</span> .or. ::<span style=\"color: #000000;\">cUltimaOp</span>=<span style=\"color: #ff0000;\">'AE'</span>,<span style=\"color: #000000;\">&#40;</span>::<span style=\"color: #000000;\">cUltimaOp</span>:=<span style=\"color: #ff0000;\">''</span>,::<span style=\"color: #000000;\">nResult</span>:=<span style=\"color: #000000;\">0</span>,aadd<span style=\"color: #000000;\">&#40;</span> ::<span style=\"color: #000000;\">aRolloCalc</span>, <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">' '</span>,<span style=\"color: #ff0000;\">' '</span><span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span>, oBrw:<span style=\"color: #000000;\">gobottom</span><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: #000000;\">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cGet:=cGet+::<span style=\"color: #000000;\">cUltima</span> &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nGet:=val<span style=\"color: #000000;\">&#40;</span>cGet<span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oGet:<span style=\"color: #000000;\">SetText</span><span style=\"color: #000000;\">&#40;</span>cGet<span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oBtnIgual:<span style=\"color: #000000;\">Setfocus</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;sysrefresh<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #0000ff;\">UPDATE</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oBtn8:<span style=\"color: #000000;\">cargo</span>:=<span style=\"color: #ff0000;\">'8'</span><br />&nbsp; &nbsp; <span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> oBtn9 &nbsp; <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">109</span> <span style=\"color: #0000ff;\">OF</span> oDlg;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #000000;\">&#40;</span>::<span style=\"color: #000000;\">cUltima</span>:=<span style=\"color: #ff0000;\">'9'</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;iif<span style=\"color: #000000;\">&#40;</span>::<span style=\"color: #000000;\">cUltimaOp</span>=<span style=\"color: #ff0000;\">'='</span> .or. ::<span style=\"color: #000000;\">cUltimaOp</span>=<span style=\"color: #ff0000;\">'AP'</span> .or. ::<span style=\"color: #000000;\">cUltimaOp</span>=<span style=\"color: #ff0000;\">'AE'</span>,<span style=\"color: #000000;\">&#40;</span>::<span style=\"color: #000000;\">cUltimaOp</span>:=<span style=\"color: #ff0000;\">''</span>,::<span style=\"color: #000000;\">nResult</span>:=<span style=\"color: #000000;\">0</span>,aadd<span style=\"color: #000000;\">&#40;</span> ::<span style=\"color: #000000;\">aRolloCalc</span>, <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">' '</span>,<span style=\"color: #ff0000;\">' '</span><span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span>, oBrw:<span style=\"color: #000000;\">gobottom</span><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: #000000;\">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cGet:=cGet+::<span style=\"color: #000000;\">cUltima</span> &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nGet:=val<span style=\"color: #000000;\">&#40;</span>cGet<span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oGet:<span style=\"color: #000000;\">SetText</span><span style=\"color: #000000;\">&#40;</span>cGet<span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oBtnIgual:<span style=\"color: #000000;\">Setfocus</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;sysrefresh<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #0000ff;\">UPDATE</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oBtn9:<span style=\"color: #000000;\">cargo</span>:=<span style=\"color: #ff0000;\">'9'</span><br />&nbsp; &nbsp; <span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> oBtnP &nbsp; <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">110</span> <span style=\"color: #0000ff;\">OF</span> oDlg;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #000000;\">&#40;</span>::<span style=\"color: #000000;\">cUltima</span>:=<span style=\"color: #ff0000;\">'.'</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;iif<span style=\"color: #000000;\">&#40;</span>::<span style=\"color: #000000;\">cUltimaOp</span>=<span style=\"color: #ff0000;\">'='</span> .or. ::<span style=\"color: #000000;\">cUltimaOp</span>=<span style=\"color: #ff0000;\">'AP'</span> .or. ::<span style=\"color: #000000;\">cUltimaOp</span>=<span style=\"color: #ff0000;\">'AE'</span>,<span style=\"color: #000000;\">&#40;</span>::<span style=\"color: #000000;\">cUltimaOp</span>:=<span style=\"color: #ff0000;\">''</span>,::<span style=\"color: #000000;\">nResult</span>:=<span style=\"color: #000000;\">0</span>,aadd<span style=\"color: #000000;\">&#40;</span> ::<span style=\"color: #000000;\">aRolloCalc</span>, <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">' '</span>,<span style=\"color: #ff0000;\">' '</span><span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span>, oBrw:<span style=\"color: #000000;\">gobottom</span><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: #000000;\">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cGet:=cGet+::<span style=\"color: #000000;\">cUltima</span> &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nGet:=val<span style=\"color: #000000;\">&#40;</span>cGet<span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oGet:<span style=\"color: #000000;\">SetText</span><span style=\"color: #000000;\">&#40;</span>cGet<span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oBtnIgual:<span style=\"color: #000000;\">Setfocus</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;sysrefresh<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #0000ff;\">UPDATE</span> <span style=\"color: #0000ff;\">WHEN</span> int<span style=\"color: #000000;\">&#40;</span>nGet<span style=\"color: #000000;\">&#41;</span>==nGet <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oBtnP:<span style=\"color: #000000;\">cargo</span>:=<span style=\"color: #ff0000;\">'.'</span><br />&nbsp; &nbsp; <span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> oBtnSigno <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">111</span> <span style=\"color: #0000ff;\">OF</span> oDlg;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #000000;\">&#40;</span>::<span style=\"color: #000000;\">cUltima</span>:=<span style=\"color: #ff0000;\">'signo'</span> &nbsp; &nbsp;,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;iif<span style=\"color: #000000;\">&#40;</span>::<span style=\"color: #000000;\">cUltimaOp</span>=<span style=\"color: #ff0000;\">'='</span> .or. ::<span style=\"color: #000000;\">cUltimaOp</span>=<span style=\"color: #ff0000;\">'AP'</span> .or. ::<span style=\"color: #000000;\">cUltimaOp</span>=<span style=\"color: #ff0000;\">'AE'</span>,<span style=\"color: #000000;\">&#40;</span>::<span style=\"color: #000000;\">cUltimaOp</span>:=<span style=\"color: #ff0000;\">''</span>,::<span style=\"color: #000000;\">nResult</span>:=<span style=\"color: #000000;\">0</span>,aadd<span style=\"color: #000000;\">&#40;</span> ::<span style=\"color: #000000;\">aRolloCalc</span>, <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">' '</span>,<span style=\"color: #ff0000;\">' '</span><span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span>, oBrw:<span style=\"color: #000000;\">gobottom</span><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: #000000;\">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nGet:=<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">-1</span><span style=\"color: #000000;\">&#41;</span>*nGet &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oGet:<span style=\"color: #000000;\">SetText</span><span style=\"color: #000000;\">&#40;</span>nGet<span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp;,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cGet:=alltrim<span style=\"color: #000000;\">&#40;</span>str<span style=\"color: #000000;\">&#40;</span>nGet<span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oBtnIgual:<span style=\"color: #000000;\">Setfocus</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> &nbsp;,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;sysrefresh<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #0000ff;\">UPDATE</span> <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oBtnSigno:<span style=\"color: #000000;\">cargo</span>:=<span style=\"color: #ff0000;\">' '</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; <span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">SAY</span> oGet <span style=\"color: #0000ff;\">VAR</span> nGet <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">211</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">FONT</span> oFont1 ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">COLOR</span> nrgb<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">0</span>, &nbsp;<span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span><span style=\"color: #000000;\">&#41;</span>,nrgb<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">255</span>,<span style=\"color: #000000;\">255</span>,<span style=\"color: #000000;\">200</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #0000ff;\">UPDATE</span><br />&nbsp; &nbsp; <br />&nbsp; &nbsp; <span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">SAY</span> oSay <span style=\"color: #0000ff;\">VAR</span> ::<span style=\"color: #000000;\">nResult</span> <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">200</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">FONT</span> oFont1 ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">COLOR</span> nrgb<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">50</span>,<span style=\"color: #000000;\">250</span>,<span style=\"color: #000000;\">50</span><span style=\"color: #000000;\">&#41;</span>,nrgb<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">0</span>,<span style=\"color: #000000;\">0</span>,<span style=\"color: #000000;\">0</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #0000ff;\">UPDATE</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; <span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">LISTBOX</span> oBrw FIELDS ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::<span style=\"color: #000000;\">aRolloCalc</span><span style=\"color: #000000;\">&#91;</span>n<span style=\"color: #000000;\">&#93;</span><span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::<span style=\"color: #000000;\">aRolloCalc</span><span style=\"color: #000000;\">&#91;</span>n<span style=\"color: #000000;\">&#93;</span><span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#93;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;HEAD <span style=\"color: #ff0000;\">'valor'</span>,<span style=\"color: #ff0000;\">' '</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">212</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">FONT</span> oFontLst <span style=\"color: #0000ff;\">COLOR</span> &nbsp;nrgb<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">0</span>,<span style=\"color: #000000;\">0</span>,<span style=\"color: #000000;\">0</span><span style=\"color: #000000;\">&#41;</span>,nrgb<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">255</span>,<span style=\"color: #000000;\">255</span>,<span style=\"color: #000000;\">200</span><span style=\"color: #000000;\">&#41;</span> ;<span style=\"color: #B900B9;\">//clrLtrBrow,clrFonBrow ;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">UPDATE</span><br />&nbsp; &nbsp; <br />&nbsp; &nbsp; oBrw:<span style=\"color: #000000;\">aJustify</span> &nbsp;:=<span style=\"color: #000000;\">&#123;</span>.t.,.f.<span style=\"color: #000000;\">&#125;</span><br />&nbsp; &nbsp; oBrw:<span style=\"color: #000000;\">aColSizes</span> :=<span style=\"color: #000000;\">&#123;</span>GetFontInfo<span style=\"color: #000000;\">&#40;</span>oFontLst<span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#93;</span> * <span style=\"color: #000000;\">1.25</span> * <span style=\"color: #000000;\">17</span>, GetFontInfo<span style=\"color: #000000;\">&#40;</span>oFontLst<span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#93;</span> * <span style=\"color: #000000;\">1.25</span> * <span style=\"color: #000000;\">3</span><span style=\"color: #000000;\">&#125;</span> <span style=\"color: #B900B9;\">//aMatrizTc({17,3},oFontLst)</span><br />&nbsp; &nbsp; oBrw:<span style=\"color: #000000;\">bGotop</span> &nbsp; &nbsp;:= <span style=\"color: #000000;\">&#123;</span> || n := <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#125;</span><br />&nbsp; &nbsp; oBrw:<span style=\"color: #000000;\">bGoBottom</span> := <span style=\"color: #000000;\">&#123;</span> || n := eval<span style=\"color: #000000;\">&#40;</span> oBrw:<span style=\"color: #000000;\">bLogicLen</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br />&nbsp; &nbsp; oBrw:<span style=\"color: #000000;\">bSkip</span> &nbsp; &nbsp; := <span style=\"color: #000000;\">&#123;</span> | nwant, nold | nold := n , n += nwant,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;n := <span style=\"color: #0000ff;\">max</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">1</span>, <span style=\"color: #0000ff;\">min</span><span style=\"color: #000000;\">&#40;</span> n, eval<span style=\"color: #000000;\">&#40;</span> oBrw:<span style=\"color: #000000;\">bLogicLen</span> <span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;n - nOld <span style=\"color: #000000;\">&#125;</span><br />&nbsp; &nbsp; oBrw:<span style=\"color: #000000;\">bLogicLen</span> := <span style=\"color: #000000;\">&#123;</span> || len<span style=\"color: #000000;\">&#40;</span> ::<span style=\"color: #000000;\">aRolloCalc</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br /><br />&nbsp; &nbsp; oBrw:<span style=\"color: #000000;\">nClrPane</span>:=<span style=\"color: #000000;\">&#123;</span>|| iif<span style=\"color: #000000;\">&#40;</span>::<span style=\"color: #000000;\">aRolloCalc</span><span style=\"color: #000000;\">&#91;</span>n<span style=\"color: #000000;\">&#93;</span><span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#93;</span>==<span style=\"color: #ff0000;\">'='</span>,nrgb<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">200</span>,<span style=\"color: #000000;\">255</span>,<span style=\"color: #000000;\">125</span><span style=\"color: #000000;\">&#41;</span>,nrgb<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">255</span>,<span style=\"color: #000000;\">255</span>,<span style=\"color: #000000;\">200</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span> <br /><br />&nbsp; &nbsp; oDlg:<span style=\"color: #000000;\">bKeyDown</span>:=<span style=\"color: #000000;\">&#123;</span>|nKey| ::<span style=\"color: #000000;\">TCalc_Teclas</span><span style=\"color: #000000;\">&#40;</span>nKey,oDlg<span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#125;</span><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">CENTERED</span> <span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">INIT</span> <span style=\"color: #000000;\">&#40;</span><span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">&#40;</span>lBorraAlInicio,oBtnBorra:<span style=\"color: #0000ff;\">CLICK</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>,.f.<span style=\"color: #000000;\">&#41;</span>,oBrw:<span style=\"color: #000000;\">gobottom</span><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><br />&nbsp;oFont1:<span style=\"color: #000000;\">end</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp;oFontLst:<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;\">nResult</span><br /><br /><span style=\"color: #00C800;\">METHOD</span> nCalculadigual<span style=\"color: #000000;\">&#40;</span>nGet<span style=\"color: #000000;\">&#41;</span> <span style=\"color: #00C800;\">CLASS</span> TCalc<br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">do</span> <span style=\"color: #00C800;\">CASE</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">CASE</span> ::<span style=\"color: #000000;\">cUltimaOp</span> = <span style=\"color: #ff0000;\">'-'</span><br />&nbsp; &nbsp; &nbsp; &nbsp; ::<span style=\"color: #000000;\">nResult</span> := ::<span style=\"color: #000000;\">nResult</span> - nGet<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">CASE</span> ::<span style=\"color: #000000;\">cUltimaOp</span> = <span style=\"color: #ff0000;\">'+'</span><br />&nbsp; &nbsp; &nbsp; &nbsp; ::<span style=\"color: #000000;\">nResult</span> := ::<span style=\"color: #000000;\">nResult</span> + nGet<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">CASE</span> ::<span style=\"color: #000000;\">cUltimaOp</span> = <span style=\"color: #ff0000;\">'*'</span><br />&nbsp; &nbsp; &nbsp; &nbsp; ::<span style=\"color: #000000;\">nResult</span> := ::<span style=\"color: #000000;\">nResult</span> * nGet<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">CASE</span> ::<span style=\"color: #000000;\">cUltimaOp</span> = <span style=\"color: #ff0000;\">'/'</span><br />&nbsp; &nbsp; &nbsp; &nbsp; ::<span style=\"color: #000000;\">nResult</span> := ::<span style=\"color: #000000;\">nResult</span> / nGet<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">endcase</span><br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">NIL</span><br /><br /><span style=\"color: #00C800;\">METHOD</span> TCalc_Teclas<span style=\"color: #000000;\">&#40;</span>nKey, oDlg<span style=\"color: #000000;\">&#41;</span> <span style=\"color: #00C800;\">class</span> TCalc<br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> ny<br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">for</span> ny:=<span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">TO</span> len<span style=\"color: #000000;\">&#40;</span>oDlg:<span style=\"color: #000000;\">aControls</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">if</span> oDlg:<span style=\"color: #000000;\">aControls</span><span style=\"color: #000000;\">&#91;</span>ny<span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">cargo</span>==upper<span style=\"color: #000000;\">&#40;</span>chr<span style=\"color: #000000;\">&#40;</span>nKey<span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oDlg:<span style=\"color: #000000;\">aControls</span><span style=\"color: #000000;\">&#91;</span>ny<span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #0000ff;\">CLICK</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;\">next</span> ny<br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br />&nbsp;</div>[/code:1ibo3gi4]\n\u001a", "time": "20:26", "topic": "Calculator revisited", "username": "karinha" } ]
Calculator revisited
[ { "date": "2014-05-28", "forum": "FiveWin for Harbour/xHarbour", "text": "The code for those two buttons still generates a syntax error.\n\nI found some extra commas on those two buttons and removed them. Now it builds", "time": "20:46", "topic": "Calculator revisited", "username": "TimStone" } ]
Calculator revisited
[ { "date": "2014-05-28", "forum": "FiveWin for Harbour/xHarbour", "text": "I have it working now. I like the button sizing and the \"tape\" it displays.\n\nHere is a thought. When a user is in an active numeric get, if they pressed the F12 key, it would be nice for the calculator to popup with the current get value, then a calculation could be made on it, and the value returned to the current get field.\n\nCode suggestions for this behavior would be appreciated.", "time": "22:43", "topic": "Calculator revisited", "username": "TimStone" } ]
Calculator revisited
[ { "date": "2014-05-29", "forum": "FiveWin for Harbour/xHarbour", "text": "Friend,\nI I use a Math function as sin or cos with getcalc of Timm it make error \ndo you have a solution for it ?", "time": "07:58", "topic": "Calculator revisited", "username": "Silvio.Falconi" } ]
Calculator revisited
[ { "date": "2014-05-29", "forum": "FiveWin for Harbour/xHarbour", "text": "Tim,\n\nYou could use:\n\nSetKey( VK_F12, { || MyCalculator( GetTextWindow( GetFocus() ) ) } )", "time": "17:09", "topic": "Calculator revisited", "username": "Antonio Linares" } ]
Calculator revisited
[ { "date": "2014-05-29", "forum": "FiveWin for Harbour/xHarbour", "text": "Is GetTextWindow( ) an actual function ? The compiler doesn't think so.\n\nThe calling procedure, in MAIN( ), for the suggested calculator is this:\n\n public oCalc:=tCalc():new()\n setkey(VK_F10, {|| oCalc:calculadora(oWnd,'@E 9,999,999.9999 ')})\n \nWhat would be nice is for us to detect the current GET, if one is present and numeric, pass it's value to the calculator, and then return the result to the same Get field.", "time": "17:46", "topic": "Calculator revisited", "username": "TimStone" } ]
Calculator revisited
[ { "date": "2014-05-29", "forum": "FiveWin for Harbour/xHarbour", "text": "Tim,\n\n[quote=\"TimStone\":1y7ezw5t]Is GetTextWindow( ) an actual function ? The compiler doesn't think so.[/quote:1y7ezw5t]\n\n[code=fw:1y7ezw5t]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">GetWindowText<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span></div>[/code:1y7ezw5t]\n\nEMG", "time": "18:03", "topic": "Calculator revisited", "username": "Enrico Maria Giordano" } ]
Calculator revisited
[ { "date": "2014-05-29", "forum": "FiveWin for Harbour/xHarbour", "text": "Timm,\n\nCan you please post the fixed code?.\n\nThanks", "time": "20:30", "topic": "Calculator revisited", "username": "lucasdebeltran" } ]
Calculator revisited
[ { "date": "2014-05-29", "forum": "FiveWin for Harbour/xHarbour", "text": "I found the two buttons listed earlier in this thread had IIF( ) statements with 4 parameters instead of 3. In each case there was an extra comma ( , ). Remove those and it will build.\n\nThe error only occurred with Harbour and not xHarbour, although it was a clear error.\n\nI don't want to post my revision because I changed prompts, coloring, etc. to match my program ( and use my established fonts and brush).", "time": "21:00", "topic": "Calculator revisited", "username": "TimStone" } ]
Calculator revisited
[ { "date": "2014-05-29", "forum": "FiveWin for Harbour/xHarbour", "text": "Tim,\n\nIt was a typo in my code, please use the function name that Enrico says, thanks <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->", "time": "22:23", "topic": "Calculator revisited", "username": "Antonio Linares" } ]
Calculator revisited
[ { "date": "2014-05-29", "forum": "FiveWin for Harbour/xHarbour", "text": "I do that a lot these days. My excuse is that I'm getting old ...", "time": "22:25", "topic": "Calculator revisited", "username": "TimStone" } ]
Calculator revisited
[ { "date": "2014-05-29", "forum": "FiveWin for Harbour/xHarbour", "text": "Nah, we should love our mistakes <!-- s;-) --><img src=\"{SMILIES_PATH}/icon_wink.gif\" alt=\";-)\" title=\"Wink\" /><!-- s;-) -->\n\nWe are humans <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->", "time": "22:27", "topic": "Calculator revisited", "username": "Antonio Linares" } ]
Calculator revisited
[ { "date": "2014-06-01", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\ncan we use math function on getcalc ?\n\nsample as sin() cos() tan()\n\n I tried compiling get calc with a function but when I insert the function it give me error", "time": "09:28", "topic": "Calculator revisited", "username": "Silvio.Falconi" } ]
Calculator revisited
[ { "date": "2014-06-03", "forum": "FiveWin for Harbour/xHarbour", "text": "Silvio,\n\nAs full source code is provided you can modify your calculator the way you may need it <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->", "time": "06:42", "topic": "Calculator revisited", "username": "Antonio Linares" } ]
Calculator revisited
[ { "date": "2014-06-03", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio, yes of course, But I not Know How I must make to run also extern functions... <!-- s:) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":)\" title=\"Smile\" /><!-- s:) -->", "time": "07:26", "topic": "Calculator revisited", "username": "Silvio.Falconi" } ]
Calculator revisited
[ { "date": "2014-06-03", "forum": "FiveWin for Harbour/xHarbour", "text": "Silvio,\n\nThose functions are part of harbour, as far as I know.", "time": "07:48", "topic": "Calculator revisited", "username": "Antonio Linares" } ]
Calculator revisited
[ { "date": "2014-06-03", "forum": "FiveWin for Harbour/xHarbour", "text": "Fixed code \n[code=fw:xy0gthwu]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />...<br />&nbsp;<span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> oBtnDel <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">426</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">MESSAGE</span> <span style=\"color: #ff0000;\">'Borra último dígito'</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #000000;\">&#40;</span>::<span style=\"color: #000000;\">cUltima</span>:=<span style=\"color: #ff0000;\">'CE'</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;iif<span style=\"color: #000000;\">&#40;</span>::<span style=\"color: #000000;\">cUltimaOp</span>=<span style=\"color: #ff0000;\">'='</span> .or. ::<span style=\"color: #000000;\">cUltimaOp</span>=<span style=\"color: #ff0000;\">'AP'</span> .or. ::<span style=\"color: #000000;\">cUltimaOp</span>=<span style=\"color: #ff0000;\">'AE'</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;,; <span style=\"color: #B900B9;\">//IF</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #000000;\">&#40;</span>::<span style=\"color: #000000;\">cUltimaOp</span>:=<span style=\"color: #ff0000;\">''</span>,::<span style=\"color: #000000;\">nResult</span>:=<span style=\"color: #000000;\">0</span>,aadd<span style=\"color: #000000;\">&#40;</span> ::<span style=\"color: #000000;\">aRolloCalc</span>, <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">' '</span>,<span style=\"color: #ff0000;\">' '</span><span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span>,oBrw:<span style=\"color: #000000;\">gobottom</span><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: #B900B9;\">//THEN</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">NIL</span> <span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ,; <span style=\"color: #B900B9;\">//ELSE</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;iif<span style=\"color: #000000;\">&#40;</span>nGet<><span style=\"color: #000000;\">0</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ,; <span style=\"color: #B900B9;\">//IF</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #000000;\">&#40;</span>cGet:=<span style=\"color: #0000ff;\">LEFT</span><span style=\"color: #000000;\">&#40;</span>cGet,len<span style=\"color: #000000;\">&#40;</span>cget<span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">-1</span><span style=\"color: #000000;\">&#41;</span>,nGet:=val<span style=\"color: #000000;\">&#40;</span>cGet<span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span>,; <span style=\"color: #B900B9;\">//THEN</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">NIL</span><span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ,; <span style=\"color: #B900B9;\">//ESLSE</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oGet:<span style=\"color: #000000;\">SetText</span><span style=\"color: #000000;\">&#40;</span>cGet<span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oBtnIgual:<span style=\"color: #000000;\">Setfocus</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;sysrefresh<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #0000ff;\">UPDATE</span><br />...<br /><br />&nbsp; &nbsp; <span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> oBtn0 &nbsp; <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">100</span> <span style=\"color: #0000ff;\">OF</span> oDlg ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #000000;\">&#40;</span>::<span style=\"color: #000000;\">cUltima</span>:=<span style=\"color: #ff0000;\">'0'</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;iif<span style=\"color: #000000;\">&#40;</span>::<span style=\"color: #000000;\">cUltimaOp</span>=<span style=\"color: #ff0000;\">'='</span> .or. ::<span style=\"color: #000000;\">cUltimaOp</span>=<span style=\"color: #ff0000;\">'AP'</span> .or. ::<span style=\"color: #000000;\">cUltimaOp</span>=<span style=\"color: #ff0000;\">'AE'</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #000000;\">&#40;</span>::<span style=\"color: #000000;\">cUltimaOp</span>:=<span style=\"color: #ff0000;\">''</span>,::<span style=\"color: #000000;\">nResult</span>:=<span style=\"color: #000000;\">0</span>,aadd<span style=\"color: #000000;\">&#40;</span> ::<span style=\"color: #000000;\">aRolloCalc</span>, <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">' '</span>,<span style=\"color: #ff0000;\">' '</span><span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span>, oBrw:<span style=\"color: #000000;\">gobottom</span><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>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">NIL</span> <span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;iif<span style=\"color: #000000;\">&#40;</span>nGet<><span style=\"color: #000000;\">0</span> .or. <span style=\"color: #00C800;\">at</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\".\"</span>,cGet<span style=\"color: #000000;\">&#41;</span>><span style=\"color: #000000;\">0</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #000000;\">&#40;</span> cGet:=cGet+::<span style=\"color: #000000;\">cUltima</span>, nGet:=val<span style=\"color: #000000;\">&#40;</span>cGet<span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">NIL</span> <span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oGet:<span style=\"color: #000000;\">SetText</span><span style=\"color: #000000;\">&#40;</span>cGet<span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oBtnIgual:<span style=\"color: #000000;\">Setfocus</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;sysrefresh<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #0000ff;\">UPDATE</span><br /><br />&nbsp;</div>[/code:xy0gthwu]", "time": "09:08", "topic": "Calculator revisited", "username": "Biel EA6DD" } ]
Calculator revisited
[ { "date": "2014-06-04", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio I mean ... with Getcalc of Tim ..", "time": "15:52", "topic": "Calculator revisited", "username": "Silvio.Falconi" } ]
Calculator revisited
[ { "date": "2009-04-28", "forum": "FiveWin para Harbour/xHarbour", "text": "Estimados\n\nSe puede calcular el tamaño (de ancho) del parametro de SIZE xx,xx de un GET segun el tamaño de la variable de Caracteres o numerica (tiendo en cuenta el tamaño de Picture '9999 etc...) ?\n\nMuchas gracias\n\ndavid\nargentina", "time": "10:56", "topic": "Calculo de SIZE xx,xx de un GET", "username": "dobfivewin" } ]
Calculo de SIZE xx,xx de un GET
[ { "date": "2009-04-28", "forum": "FiveWin para Harbour/xHarbour", "text": "Hola amigo...\nPrueba lo siguiente:\n\n[code=fw:5zp6eoy5]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #0000ff;\">MsgInfo</span><span style=\"color: #000000;\">&#40;</span>STR<span style=\"color: #000000;\">&#40;</span>Len<span style=\"color: #000000;\">&#40;</span>ALLTRIM<span style=\"color: #000000;\">&#40;</span> Variable <span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span>,<span style=\"color: #ff0000;\">\"Largo de la variable\"</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp;</div>[/code:5zp6eoy5]\n\nEspero te sirva.", "time": "20:15", "topic": "Calculo de SIZE xx,xx de un GET", "username": "jrestojeda" } ]
Calculo de SIZE xx,xx de un GET
[ { "date": "2018-01-21", "forum": "FiveWin para Harbour/xHarbour", "text": "Muy estimados amigos.\nQuiero compartir una rutina de calculo de distanacias con datos del GPS, pueda que le sirva alguien por ahi.. ami me trabaja de maravillas con mis sistemas.\n\nfunction CalculaDistancias()\n\n // esta vatiables son recogidas de la string GPRMC \n Latitud1 := ALLTRIM(STR(Op:GPGGA_cLat))\n Longitud1 :=\"-\"+ALLTRIM(STR(Op:GPGGA_cLong))\n \n// dos datos de prueba\n Latitud2:=\"10.203574\"\n Longitud2:=\"-83.782274\"\n\ntry\n\n oP:GpSDistancia := oCon:oKon:Query(\"SELECT (acos(sin(radians('\"+Latitud1+\"')) * sin(radians('\"+Latitud2+\"')) + cos(radians('\"+Latitud1+\"')) * cos(radians('\"+Latitud2+\"')) * \n cos(radians('\"+Longitud1+\"') - radians('\"+Longitud2+\"'))) * 6378) as distanciaPunto1Punto2\")\nCATCH oError\n MsgStop( \"No se ha podido calcular la distancia error en datos \")\n RETURN\n END\n\noP:GpSDistancia :REFRESH()\nOp:GpSresultado := oP:GpSDistancia :FieldGet(1)\n\nAlert(Op:GpSresultado ) \n\nReturn \n\n*********************************************************************************\n\n[color=#FF0040:11dhs92m]Veamos la soluciónd e una manera más limpia:\n\nRadio de la Tierra: 6378 km.\n\n PUNTO 1 \tPUNTO 2\n\nlatitud\tLATITUD_1\tLATITUD_2\nlongitud\tLONGITUD_1\tLONGITUD_2\n[/color:11dhs92m]\n\nSELECT (acos(sin(radians(LATITUD_1)) * sin(radians(LATITUD_2)) + \ncos(radians(LATITUD_1)) * cos(radians(LATITUD_2)) * \ncos(radians(LONGITUD_1) - radians(LONGITUD_2))) * 6378) as \ndistanciaPunto1Punto2;\n\n*******************************************************************************", "time": "00:15", "topic": "Calculo de distancias por GPS con funciones del MYSQL", "username": "Busmatic_wpb" } ]
Calculo de distancias por GPS con funciones del MYSQL
[ { "date": "2018-01-21", "forum": "FiveWin para Harbour/xHarbour", "text": "Oscar,\n\nCómo creas Op ?", "time": "08:15", "topic": "Calculo de distancias por GPS con funciones del MYSQL", "username": "Antonio Linares" } ]
Calculo de distancias por GPS con funciones del MYSQL
[ { "date": "2018-01-21", "forum": "FiveWin para Harbour/xHarbour", "text": "Perdon de me fue. \nSi Op: una clase que anda en el foro y se llama Public.prg con varios aportes incluyendo Aportes: [ER] Ray Islas.\nSimplemente es crear variables las cuales puedes controlar su contenido ya hacerlas publicas mas ordenado y contraldo.\n\nTrabaja muy bien ahora el que quiera un resultado en millas debe de cambiar Radio de la Tierra: 6378 km. por millas..\nespero que les sirva.", "time": "19:05", "topic": "Calculo de distancias por GPS con funciones del MYSQL", "username": "Busmatic_wpb" } ]
Calculo de distancias por GPS con funciones del MYSQL
[ { "date": "2018-01-21", "forum": "FiveWin para Harbour/xHarbour", "text": "Está muy bien pero el que no trabaje con mysql tendría que enlazar alguna lib como Eagle1 o HDO para MySQL...\nno sería más fácil usar la lib hbct.lib de Harbour?\n\nCreo que el SELECT de MySQL se podría traducir por:\n[code=fw:3dvusxt6]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #00C800;\">function</span> miDistancia<span style=\"color: #000000;\">&#40;</span> lat1, lng1, lat2, lng2 <span style=\"color: #000000;\">&#41;</span><br />resturn<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #0000ff;\">acos</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #0000ff;\">sin</span><span style=\"color: #000000;\">&#40;</span> dtor<span style=\"color: #000000;\">&#40;</span> lat1 <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> * <span style=\"color: #0000ff;\">sin</span><span style=\"color: #000000;\">&#40;</span> dtor<span style=\"color: #000000;\">&#40;</span> lat2 <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> + <span style=\"color: #0000ff;\">cos</span><span style=\"color: #000000;\">&#40;</span> dtor<span style=\"color: #000000;\">&#40;</span> lat1 <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> * <span style=\"color: #0000ff;\">cos</span><span style=\"color: #000000;\">&#40;</span> dtor<span style=\"color: #000000;\">&#40;</span> lat2 <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> * <span style=\"color: #0000ff;\">cos</span><span style=\"color: #000000;\">&#40;</span> dtor<span style=\"color: #000000;\">&#40;</span> lng1 <span style=\"color: #000000;\">&#41;</span> - dtor<span style=\"color: #000000;\">&#40;</span> lng2 <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> * <span style=\"color: #000000;\">6371</span> <span style=\"color: #000000;\">&#41;</span><br /> </div>[/code:3dvusxt6]\n\nRecordad que aqui at1, lng1, lat2, lng2 tienen que ser numericos y no pueden ir entrecomillados por lo que el ejemplo de Busmatic_wpb pasaria a ser:\n[code=fw:3dvusxt6]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #B900B9;\">// esta vatiables son recogidas de la string GPRMC  <--- [color=#FF0000:3dvusxt6]Ya no debería ser string sino numeric[/color:3dvusxt6] </span><br />Latitud1 := Op:<span style=\"color: #000000;\">GPGGA_cLat</span><br />Longitud1 := Op:<span style=\"color: #000000;\">GPGGA_cLong</span><br /><br /><span style=\"color: #B900B9;\">// dos datos de prueba</span><br />Latitud2 := <span style=\"color: #000000;\">10</span>,<span style=\"color: #000000;\">203574</span>   <span style=\"color: #B900B9;\">// [color=#FF0000:3dvusxt6]Ojo con la , o . decimal[/color:3dvusxt6]</span><br />Longitud2 := <span style=\"color: #000000;\">-83</span>,<span style=\"color: #000000;\">782274</span><br /><br /><br />oP:<span style=\"color: #000000;\">GpSDistancia</span> := miDistancia<span style=\"color: #000000;\">&#40;</span> Latitud1, Longitud1, Latitud2, Longitud2 <span style=\"color: #000000;\">&#41;</span><br /><br />oP:<span style=\"color: #000000;\">GpSDistancia</span> :<span style=\"color: #0000ff;\">REFRESH</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />Alert<span style=\"color: #000000;\">&#40;</span> str<span style=\"color: #000000;\">&#40;</span> Op:<span style=\"color: #000000;\">GpSresultado</span> <span style=\"color: #000000;\">&#41;</span>  <span style=\"color: #000000;\">&#41;</span><br /><br /> </div>[/code:3dvusxt6]\n\n <!-- s:oops: --><img src=\"{SMILIES_PATH}/icon_redface.gif\" alt=\":oops:\" title=\"Embarassed\" /><!-- s:oops: -->", "time": "20:13", "topic": "Calculo de distancias por GPS con funciones del MYSQL", "username": "xmanuel" } ]
Calculo de distancias por GPS con funciones del MYSQL
[ { "date": "2018-01-22", "forum": "FiveWin para Harbour/xHarbour", "text": "If using MySql server version 5.7.1 or later, we can consider using MySql function \n[code=fw:20015j55]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />ST_Distance_Sphere<span style=\"color: #000000;\">&#40;</span> POINT<span style=\"color: #000000;\">&#40;</span> lat1, long1 <span style=\"color: #000000;\">&#41;</span>, POINT<span style=\"color: #000000;\">&#40;</span> lat2, long3 <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#91;</span>, radius<span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#41;</span><br /> </div>[/code:20015j55]\nwhich returns the distance in meters. If the 3rd parameter is ommitted, MySql uses Earth's radius by default.\n\nInstead of storing lattitude and longitude separately in Table, we can use SPATIAL datatype POINT.\n\nThis is a sample that will be released with FWH 18.01;\n[code=fw:20015j55]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #B900B9;\">/*<br />* mariageo.prg<br />* SPATIAL dataype POINT and Distance Calculations<br />*<br />* Requires MySql server 5.7.1 or above<br />*/</span><br /><br /><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"fivewin.ch\"</span><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 />   <span style=\"color: #00C800;\">local</span> oCn, oRs, cSql<br /><br />   oCn   := FW_DemoDB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #B900B9;\">// Provide connection to your MySql 5.7.1 server</span><br /><br /><span style=\"color: #0000ff;\">TEXT</span> INTO cSql<br />   CREATE TABLE citylatlong <span style=\"color: #000000;\">&#40;</span><br />   <span style=\"color: #0000ff;\">id</span> INT AUTO_INCREMENT PRIMARY KEY,<br />   city VARCHAR<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">20</span><span style=\"color: #000000;\">&#41;</span>,<br />   <span style=\"color: #0000ff;\">pt</span> POINT <span style=\"color: #000000;\">&#41;</span><br />ENDTEXT<br /><br />   <span style=\"color: #00C800;\">if</span> oCn:<span style=\"color: #000000;\">TableExists</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"citylatlong\"</span> <span style=\"color: #000000;\">&#41;</span><br />      oCn:<span style=\"color: #000000;\">DropTable</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"citylatlong\"</span> <span style=\"color: #000000;\">&#41;</span><br />   <span style=\"color: #00C800;\">endif</span><br /><br />   oCn:<span style=\"color: #000000;\">Execute</span><span style=\"color: #000000;\">&#40;</span> cSql <span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #0000ff;\">TEXT</span> INTO cSql<br />   INSERT INTO citylatlong<br />   <span style=\"color: #000000;\">&#40;</span> city, <span style=\"color: #0000ff;\">pt</span> <span style=\"color: #000000;\">&#41;</span> VALUES<br />   <span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Hyd\"</span>,    POINT<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">78.4867</span>, <span style=\"color: #000000;\">17.3850</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span>,<br />   <span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Mumbai\"</span>, POINT<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">72.8777</span>, <span style=\"color: #000000;\">19.0760</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span>,<br />   <span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Delhi\"</span>,  POINT<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">77.1025</span>, <span style=\"color: #000000;\">20.7041</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span>,<br />   <span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"London\"</span>, POINT<span style=\"color: #000000;\">&#40;</span>  <span style=\"color: #000000;\">0.1278</span>, <span style=\"color: #000000;\">51.5074</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span>,<br />   <span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Paris\"</span>,  POINT<span style=\"color: #000000;\">&#40;</span>  <span style=\"color: #000000;\">2.3522</span>, <span style=\"color: #000000;\">48.8566</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span>,<br />   <span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Madrid\"</span>, POINT<span style=\"color: #000000;\">&#40;</span>  <span style=\"color: #000000;\">3.7038</span>, <span style=\"color: #000000;\">40.4168</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br />ENDTEXT<br /><br />   oCn:<span style=\"color: #000000;\">Execute</span><span style=\"color: #000000;\">&#40;</span> cSql <span style=\"color: #000000;\">&#41;</span><br /><br />   ocn:<span style=\"color: #000000;\">Execute</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"DROP FUNCTION IF EXISTS distance_between\"</span> <span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #0000ff;\">TEXT</span> INTO cSql<br />   CREATE <span style=\"color: #00C800;\">FUNCTION</span> distance_between<span style=\"color: #000000;\">&#40;</span> city1 VARCHAR<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">20</span><span style=\"color: #000000;\">&#41;</span>, city2 VARCHAR<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">20</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br />   RETURNS DOUBLE<br />   BEGIN<br />   DECLARE p1 POINT;<br />   DECLARE p2 POINT;<br /><br />   <span style=\"color: #0000ff;\">SELECT</span> <span style=\"color: #0000ff;\">pt</span> INTO p1 <span style=\"color: #0000ff;\">FROM</span> citylatlong <span style=\"color: #0000ff;\">WHERE</span> city = city1;<br />   <span style=\"color: #0000ff;\">SELECT</span> <span style=\"color: #0000ff;\">pt</span> INTO p2 <span style=\"color: #0000ff;\">FROM</span> citylatlong <span style=\"color: #0000ff;\">WHERE</span> city = city2;<br /><br />   <span style=\"color: #00C800;\">RETURN</span> ST_Distance_Sphere<span style=\"color: #000000;\">&#40;</span> p1, p2 <span style=\"color: #000000;\">&#41;</span>;<br />   END;<br />ENDTEXT<br />   oCn:<span style=\"color: #000000;\">Execute</span><span style=\"color: #000000;\">&#40;</span> cSql <span style=\"color: #000000;\">&#41;</span><br /><br />   oRs   := oCn:<span style=\"color: #000000;\">RowSet</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"SELECT id, city, X( pt ) AS Longitude, Y( pt ) AS Lattitude from citylatlong\"</span> <span style=\"color: #000000;\">&#41;</span><br />   XBROWSER oRs SETUP <span style=\"color: #000000;\">&#40;</span> 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;\">cEditPicture</span> := <span style=\"color: #ff0000;\">\"9999.999999\"</span>, oBrw:<span style=\"color: #000000;\">aCols</span><span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">4</span> <span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">cEditPicture</span> := <span style=\"color: #ff0000;\">\"999.999999\"</span> <span style=\"color: #000000;\">&#41;</span><br />   oRs:<span style=\"color: #000000;\">Close</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />   ? oCn:<span style=\"color: #000000;\">distance_between</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"London\"</span>, <span style=\"color: #ff0000;\">\"Paris\"</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #B900B9;\">// --> 334575.4 meters</span><br /><br />   oCn:<span style=\"color: #000000;\">Close</span><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: #B900B9;\">//----------------------------------------------------------------------------//</span><br /> </div>[/code:20015j55]\n\n[url=https&#58;//imageshack&#46;com/i/pnSBtkLqp:20015j55][img:20015j55]https&#58;//imagizer&#46;imageshack&#46;com/v2/xq90/923/SBtkLq&#46;png[/img:20015j55][/url:20015j55]\n\nThis also creates a stored function on the Server called \"distance_between( city1, city2 )\" and using FWMARIADB library we can call the function by\n\n[code=fw:20015j55]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />   ? oCn:<span style=\"color: #000000;\">distance_between</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Paris\"</span>, <span style=\"color: #ff0000;\">\"Madrid\"</span> <span style=\"color: #000000;\">&#41;</span><br /> </div>[/code:20015j55]\nas if it is built-in method.", "time": "09:56", "topic": "Calculo de distancias por GPS con funciones del MYSQL", "username": "nageswaragunupudi" } ]
Calculo de distancias por GPS con funciones del MYSQL
[ { "date": "2018-01-22", "forum": "FiveWin para Harbour/xHarbour", "text": "[quote:17nxxgjd]SELECT (acos (sin (radians (LATITUD_1)) * sin (radians (LATITUD_2)) + \ncos (radians (LATITUD_1)) * cos (radians (LATITUD_2)) * \ncos (radians ( LONGITUD_1) - radians (LONGITUDE_2))) * 6378) as\ndistancePoint1Point2; \n[/quote:17nxxgjd]\nShould Earth's radius be taken as 6371 instead of 6378 ?", "time": "13:14", "topic": "Calculo de distancias por GPS con funciones del MYSQL", "username": "nageswaragunupudi" } ]
Calculo de distancias por GPS con funciones del MYSQL
[ { "date": "2018-01-22", "forum": "FiveWin para Harbour/xHarbour", "text": "Compañeros\nGracias por compartir con nosotros su conocimiento, gracias\n\nMy friends\nThank you very much indeed as we learn from others, thank you very much for sharing.\n\nXmanuel gracias por compartir dime esta funcion es para Xharbour ?? o solo para Harbour. , hbct.lib", "time": "23:50", "topic": "Calculo de distancias por GPS con funciones del MYSQL", "username": "Busmatic_wpb" } ]
Calculo de distancias por GPS con funciones del MYSQL
[ { "date": "2018-01-25", "forum": "FiveWin para Harbour/xHarbour", "text": "Perdona el retraso...\nEstá en los dos:\nHarbour -> hbct.lib\nxHarbour -> ct.lib", "time": "02:18", "topic": "Calculo de distancias por GPS con funciones del MYSQL", "username": "xmanuel" } ]
Calculo de distancias por GPS con funciones del MYSQL
[ { "date": "2011-09-16", "forum": "FiveWin para Harbour/xHarbour", "text": "Hola Buenas tardes a todos los amigos de fivewin, de la manera mas atenta les solicito su ayuda, que me ayuden a como hacer la division de IVA del importe total dado, tengo en la base de datos TASAIVA 16.00 y quiero que de mi importe acumulado del precio total, por ejemplo: (545*16)/100 me da = 87.20 y no es el dato que me esta dando a dividir el porcentaje ...\n\n545/16 = 469.83\nO sea en la calculadora 545/1.16 = 469.83, pero... como hacerlo de la manera mas logica la base de IVA 545/16, ya que la defino como 16 por ciento de IVA en la base de datos.\nEspero haberme explicado y mucho les agradecere su ayuda y sus experiencias.\n\nSaludos \n\nAtte: Adriano C. C.\n\n<!-- e --><a href=\"mailto:acc69@hotmail.com\">acc69@hotmail.com</a><!-- e -->", "time": "19:16", "topic": "Calculo de division...(Resuelto) Gracias", "username": "ACC69" } ]
Calculo de division...(Resuelto) Gracias
[ { "date": "2011-09-16", "forum": "FiveWin para Harbour/xHarbour", "text": "si entendi tu pregunta\n\n[code=fw:2k109kr2]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">porIva := VAL<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"1.\"</span> + ltrim<span style=\"color: #000000;\">&#40;</span>str<span style=\"color: #000000;\">&#40;</span>field->iva<span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span>  <span style=\"color: #B900B9;\">// 1.16 numeric</span><br /> </div>[/code:2k109kr2]", "time": "19:37", "topic": "Calculo de division...(Resuelto) Gracias", "username": "Patricio Avalos Aguirre" } ]
Calculo de division...(Resuelto) Gracias
[ { "date": "2011-09-16", "forum": "FiveWin para Harbour/xHarbour", "text": "[quote=\"Patricio Avalos Aguirre\":x4rhd7l2]si entendi tu pregunta\n\n[code=fw:x4rhd7l2]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">porIva := VAL<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"1.\"</span> + ltrim<span style=\"color: #000000;\">&#40;</span>str<span style=\"color: #000000;\">&#40;</span>field->iva<span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span>  <span style=\"color: #B900B9;\">// 1.16 numeric</span><br /> </div>[/code:x4rhd7l2][/quote:x4rhd7l2]\n\n\nGracias Patricio, al igual gracias a William, por compartir sus conocimientos y experiencias, les mando saludos cordiales. Pero problema resuelto, saludos\n\n\nnPorcentajeIVA := 16\nnTotal := 545\nnSIVA := ntotal / (1 + (nPorcentaje/100))\nnIva := nTotal - nSIVA\n\n? nIva\n\nAtte: Adrian C. C.", "time": "19:54", "topic": "Calculo de division...(Resuelto) Gracias", "username": "ACC69" } ]
Calculo de division...(Resuelto) Gracias
[ { "date": "2011-09-16", "forum": "FiveWin para Harbour/xHarbour", "text": "Adrian:\n\nVamos por partes\n\nSi partes de una base de 545.00, para obtener el importe del IVA haces\n(545 * 16)/ 100 = 87.20\n\nEntonces 545.00 + 87.20 = 632.20 como importe total\n\nAhora en reversa, para obtener el importe del IVA tomando como base el importe total, primero\ndebes obtener la base (antes de iva)\n\n632.20/(1 + (16/100)) = 545.00\n\nAhora por diferencia obtienes el importe del IVA\n\n632.20 - 545.00 = 87.20\n\nEspero que esto sea lo que buscas", "time": "19:58", "topic": "Calculo de division...(Resuelto) Gracias", "username": "Armando" } ]
Calculo de division...(Resuelto) Gracias
[ { "date": "2011-09-16", "forum": "FiveWin para Harbour/xHarbour", "text": "[quote=\"Armando\":2ybfwple]Adrian:\n\nVamos por partes\n\nSi partes de una base de 545.00, para obtener el importe del IVA haces\n(545 * 16)/ 100 = 87.20\n\nEntonces 545.00 + 87.20 = 632.20 como importe total\n\nAhora en reversa, para obtener el importe del IVA tomando como base el importe total, primero\ndebes obtener la base (antes de iva)\n\n632.20/(1 + (16/100)) = 545.00\n\nAhora por diferencia obtienes el importe del IVA\n\n632.20 - 545.00 = 87.20\n\nEspero que esto sea lo que buscas[/quote:2ybfwple]\n\n\nGracias Armando, pero no era asi como yo lo queria, el importe es el total 545.00 ya con importe Total de IVA incluido, lo que queria era...como ahora dividir para que me de resultado de 469.83, pero gracias Armando, problema resuelto era tan simple que era agregarle un (1+(porcentaje)/100\nGracias se te agradece Armando, cualquier duda respecto a contabilidad, estoy a sus ordenes, tengo realizado un sistema parecido a contabilidad de 1 a 4 niveles de cuentas , con sus segmentos de negocios, y hasta balanza de comprobacion por cada proveedor o segmento de negocio,llamale empresa ,compañia o departamento, cualquiera que me soliciten rutina, haganmelo saber y con gusto les comparto mis experiencias.\n\nGracias y saludos a todos...", "time": "20:09", "topic": "Calculo de division...(Resuelto) Gracias", "username": "ACC69" } ]
Calculo de division...(Resuelto) Gracias
[ { "date": "2014-06-16", "forum": "FiveWin para Harbour/xHarbour", "text": "Hola amigos del foro:\n\nNuevamente con problemas en los reportes, utilizando la clase TReport\n\nEl problema surge cuando cambio de impresora, y creo que es por el calculo del valor de [b:3usy0j6h]nLogPixY[/b:3usy0j6h]\n\nTengo un reporte (FACTURA) y segun la impresora imprime:\n[list:3usy0j6h][b:3usy0j6h]PDFCreator:[/b:3usy0j6h] 10 lineas [b:3usy0j6h]EN UNA SOLA HOJA!!!![/b:3usy0j6h]\n[b:3usy0j6h]Canon IP1700:[/b:3usy0j6h] 8 lineas (impresora Chorro de tinta)\n[b:3usy0j6h]Canon LPB300:[/b:3usy0j6h] 7 lineas (impresora Laser)\n[b:3usy0j6h]Epson LX300+:[/b:3usy0j6h] 8 lineas (impresora matricial)[/list:u:3usy0j6h]\n\nLa relacion del valor de [b:3usy0j6h]nLogPixY[/b:3usy0j6h] por impresora (obtenido con oRpt:oDevice:nLogPixelY()) es:\n[list:3usy0j6h][b:3usy0j6h]PDFCreator:[/b:3usy0j6h] 600 (estandar definido por windows)\n[b:3usy0j6h]Canon IP1700:[/b:3usy0j6h] 600 (estandar definido por windows)\n[b:3usy0j6h]Canon LPB300:[/b:3usy0j6h] 600 (estandar definido por windows)\n[b:3usy0j6h]Epson LX300+:[/b:3usy0j6h] 180[/list:u:3usy0j6h]\nEstos valores no estan correctos, ya que si establesco un margen superior de 2 Pulgadas, esto me da 1200Pix en cualquier impresora, lo cual no es correcto!!!\n\nLa relacion de [b:3usy0j6h]RESOLUCION[/b:3usy0j6h] por impresora (obtenido con oRpt:oDevice:nVertRes()) es:\n[list:3usy0j6h][b:3usy0j6h]PDFCreator:[/b:3usy0j6h] 6600\n[b:3usy0j6h]Canon IP1700:[/b:3usy0j6h] 6411\n[b:3usy0j6h]Canon LPB300:[/b:3usy0j6h] 6360\n[b:3usy0j6h]Epson LX300+:[/b:3usy0j6h] 1920[/list:u:3usy0j6h]\n\nSi mi hoja de papel es de 11 pulgadas de alto, al dividir la RESOLUCION entre las pulgadas me da los siguientes resultados:\n[list:3usy0j6h][b:3usy0j6h]PDFCreator:[/b:3usy0j6h] 600\n[b:3usy0j6h]Canon IP1700:[/b:3usy0j6h] 582\n[b:3usy0j6h]Canon LPB300:[/b:3usy0j6h] 578\n[b:3usy0j6h]Epson LX300+[/b:3usy0j6h] 174[/list:u:3usy0j6h]\nEstos valores deberia ser establecidos en [b:3usy0j6h]oRpt:nLogPixY[/b:3usy0j6h] porque [b:3usy0j6h]son los correctos!!!![/b:3usy0j6h]\n\nPROBANDO:\npara cambiar el valor de oRpt:nLogPixY hago:\n[code=fw:3usy0j6h]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />oRpt:<span style=\"color: #000000;\">bInit</span> := <span style=\"color: #000000;\">&#123;</span>|oRpt| oRpt:<span style=\"color: #000000;\">nLogPixY</span> := oRpt:<span style=\"color: #000000;\">oDevice</span>:<span style=\"color: #000000;\">nVertRes</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>/<span style=\"color: #000000;\">11</span>,; <span style=\"color: #B900B9;\">//recalculo nLogPixY</span><br />                      oRpt:<span style=\"color: #000000;\">Margin</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">2</span>, RPT_TOP, RPT_INCHES <span style=\"color: #000000;\">&#41;</span>,;       <span style=\"color: #B900B9;\">//recalculo margen superior</span><br />                      oRpt:<span style=\"color: #000000;\">Margin</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">3</span>, RPT_BOTTOM, RPT_INCHES <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span>    <span style=\"color: #B900B9;\">//recalculo margen inferior</span><br /> </div>[/code:3usy0j6h]\n\nY asi logro imprimir las 10 lineas [b:3usy0j6h]EN UNA SOLA HOJA!!!![/b:3usy0j6h], ..en las cuatro impresoras.\n\nEn base a esto, sera posible cambiar la clase TReport() ????\n\n- Claro que sera algo dificil porque el tamaño de papel es variable (en este ejemplo es de 11 pulgadas)\n- El tamaño se lo podria obtener con ::oDevice:SetSize() o ::oDevice:SetPage() o con loa funcion PrnGetSize( ::hDC ) ya que no se lo especifica en ninguna parte de TReport()\n\n[b:3usy0j6h]Notese tambien[/b:3usy0j6h], que en este ejemplo solo se corrigio los margenes inferior y superior y cualquie otro valor que se calcule en oRpt:Stabilize (), pero no asi los Fonts y Pen que se recalculan en el metodo oRpt:New()\n\nBueno, espero tener respuesta de alguien (ya que anteriormente puse 3 o mas post y ninguno me fue respondido)\n\nAtentamente,\n\nRolando \nCochabamba, Bolivia", "time": "01:16", "topic": "Calculo de nLogPixY en TReport", "username": "RSalazarU" } ]
Calculo de nLogPixY en TReport
[ { "date": "2014-06-16", "forum": "FiveWin para Harbour/xHarbour", "text": "Algo parecido me pasa a mi con una impresora concreta : una brother hl-5350Dn . El problema esta aquí ( en mi caso , codigo en rprinter.prg )\n[code=fw:24xn52e3]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><br />         <span style=\"color: #B900B9;\">//  nAspect        := ::oDevice:nHorzSize() / ::oDevice:nVertSize()</span><br /> </div>[/code:24xn52e3] \nNo sé si es un bug pero a mi no me detecta bien los valores ::odevice:nVertSize() , ::oDevice:nHorzSize() por lo que naspect no es correcto .\n \nMi solucion fué esta :\n[code=fw:24xn52e3]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><br />     aSizes:=::<span style=\"color: #000000;\">oDevice</span>:<span style=\"color: #000000;\">GetPhySize</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />      nAspect:= aSizes<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span>/aSizes<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#93;</span><br /><br />    <span style=\"color: #B900B9;\">//  nAspect        := ::oDevice:nHorzSize() / ::oDevice:nVertSize()</span><br /><br /> </div>[/code:24xn52e3]\n\nHago depender la proporción de los valores de tamaño de página y eso siempre sera universal .\nDe esa misma forma en tu caso deberias coger los valores de tamaño de página a usar y a partir de ellos calcular el resto ...\nSaludos.", "time": "09:18", "topic": "Calculo de nLogPixY en TReport", "username": "mastintin" } ]
Calculo de nLogPixY en TReport
[ { "date": "2014-06-16", "forum": "FiveWin para Harbour/xHarbour", "text": "Al parecer no entendieron el problema:\n\nEl valor 600 es un estandar que windows define (de alguna forma, para cada tipo de impresora).\n\nPor lo tanto si yo quiero establecer el margen superior en 2 pulgadas lo que se hace en oRpt:Margin() es:\n\n[code=fw:3bxhqx36]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">::<span style=\"color: #000000;\">nTopMargin</span> &nbsp; := Int<span style=\"color: #000000;\">&#40;</span> ::<span style=\"color: #000000;\">nLogPixY</span> * nValue <span style=\"color: #000000;\">&#41;</span><br />&nbsp;</div>[/code:3bxhqx36]\n\nEs decir Int( 600 * 2 ) = 1200 y este valor es para cualquier impresora, sin importar su RESOLUCION, lo que hace que falle el reporte.\n\nEsperaba que Antonio dijera algo, pero ni modo a este paso creo que no avanzaremos en cuanto a los reportes.\n\nSaludos.", "time": "19:13", "topic": "Calculo de nLogPixY en TReport", "username": "RSalazarU" } ]
Calculo de nLogPixY en TReport
[ { "date": "2006-01-24", "forum": "FiveWin para Harbour/xHarbour", "text": "Saludos Colegas,\nechandole un vistazo a las antiguas news encontré que ya alguien había solicitado lo mismo. \nLa rutina para calcular el RFC ¿Está posteada en algún lugar?\n\nGracias\nFernando Leal\nMéxico, DF", "time": "05:59", "topic": "Calculo del RFC México", "username": "fleal" } ]
Calculo del RFC México
[ { "date": "2006-01-24", "forum": "FiveWin para Harbour/xHarbour", "text": "Fernando, esta usamos nosotros espero te sirva\n\nSaludos\nJoel Andujo\n\n[code:3nkg4cx1]\n*----------------------------*\nFunc RFC_Val&#40;xvar&#41;\n rfccad&#58;=upper&#40;xvar&#41;\n xvar &#58;=rfccad\n rfccad&#58;=strtran&#40;rfccad,'-',''&#41;\n if empty&#40;left&#40;rfccad,4&#41;&#41;\n tone&#40;300,2&#41;\n if msgyesno&#40;'R&#46;F&#46;C&#46; No Válido, ¿ Continuar ?','Seleccione Opción&#46;&#46;&#46;'&#41;\n retu&#46;t&#46;\n endi\n retu&#46;f&#46;\n endi\n if ctod&#40;subs&#40;rfccad,9,2&#41;+'/'+subs&#40;rfccad,7,2&#41;+'/'+subs&#40;rfccad,5,2&#41;&#41;=ctod&#40;' / / '&#41;\n tone&#40;300,2&#41;\n msgalert&#40;'Fecha del R&#46;F&#46;C&#46; no es válida','Aviso&#46;&#46;&#46;'&#41;\n retu&#46;f&#46;\n endi\n if Digit_Ver&#40;rfccad&#41;<>right&#40;rfccad,1&#41;\n tone&#40;300,2&#41;\n if msgyesno&#40;'R&#46;F&#46;C&#46; No Válido, ¿ Continuar ?','Seleccione Opción&#46;&#46;&#46;'&#41;\n retu&#46;t&#46;\n endi\n retu&#46;f&#46;\n endi\nretu&#46;t&#46;\n\n*-------------*\nstat proc Digit_Ver&#40;&#41;\n para gx_rfc\n local digv&#58;='',gx_asc&#58;=0,gx_car&#58;=0,gx_sum&#58;=0,gx_pos&#58;=0\n for yy&#58;= 1 to 12\n gx_car&#58;=0; gx_pos&#58;=14 - yy\n gx_asc &#58;= Asc&#40;SubStr&#40;gx_rfc,yy,1&#41;&#41;\n if &#40;gx_asc>47&#41;&#46;and&#46;&#40;gx_asc<58&#41;\n gx_car&#58;=&#40;gx_asc-48&#41;\n endi\n if &#40;gx_asc>64&#41;&#46;and&#46;&#40;gx_asc<79&#41;\n gx_car&#58;=&#40;gx_asc-55&#41;\n endi\n if &#40;gx_asc>78&#41;&#46;and&#46;&#40;gx_asc<91&#41;\n gx_car&#58;=&#40;gx_asc-54&#41;\n endi\n if &#40;gx_asc=38&#41;\n gx_car&#58;=24\n endi\n if gx_asc=32\n gx_car&#58;=37\n endi\n gx_sum&#58;=&#40;gx_sum+gx_car*gx_pos&#41;\n next yy\n gx_asc&#58;=gx_sum - Int&#40;gx_sum/11&#41; * 11\n if &#40;gx_asc<>0&#41;&#46;and&#46;&#40;gx_asc<>1&#41;\n digv&#58;=AllTrim&#40;str&#40;11 - gx_asc&#41;&#41;\n else\n if gx_asc=0\n digv&#58;='0'\n endi\n if gx_asc=1\n digv&#58;='A'\n endi\n endi\nretu&#40;digv&#41;[/code:3nkg4cx1]", "time": "17:14", "topic": "Calculo del RFC México", "username": "Joel Andujo" } ]
Calculo del RFC México
[ { "date": "2006-01-25", "forum": "FiveWin para Harbour/xHarbour", "text": "Yo tengo algo parecido que solo valida las letras y la fecha... ya conseguí las reglas donde dice algunas cosas como\nSi tiene solo un apellido usar...\nSi la cadena resultante es ofensiva como CACA cambiar la ultima letra por una X. etc, etc.\n\nSaludos", "time": "17:58", "topic": "Calculo del RFC México", "username": "fleal" } ]
Calculo del RFC México
[ { "date": "2006-09-29", "forum": "FiveWin para Harbour/xHarbour", "text": "Ruego por favor si alguien sabe el algoritmo utilizado para el calculo del digito de control de un numero de cuenta bancaria.\n\nGracias", "time": "16:26", "topic": "Calculo del digito de control de cuenta bancaria", "username": "Julio Cepeda" } ]
Calculo del digito de control de cuenta bancaria
[ { "date": "2006-09-29", "forum": "FiveWin para Harbour/xHarbour", "text": "Julio,\n\nAquí está el código en php. Es fácil pasarlo a Clipper:\n<!-- m --><a class=\"postlink\" href=\"http://bulma.net/body.phtml?nIdNoticia=1396\">http://bulma.net/body.phtml?nIdNoticia=1396</a><!-- m -->", "time": "17:00", "topic": "Calculo del digito de control de cuenta bancaria", "username": "Antonio Linares" } ]
Calculo del digito de control de cuenta bancaria
[ { "date": "2006-09-29", "forum": "FiveWin para Harbour/xHarbour", "text": "Aquí la tienes para clipper:\ncBanco:=SPACE(4)\ncSucursal:=SPACE(4)\ncRefer2:=SPACE(10)\n@ 24,0 SAY SPACE(80)\n@ 24,4 SAY \"Introduzca Banco, Sucursal y N£m. de cuenta......\"\nDibujaCuadro(11,8,15,70, \"W+/B\",.T.)\n @ 11,10 SAY \" CALCULO DE DIGITOS DE CUENTA BANCARIA \" COLOR \"W+/R\"\n SetCursor(3)\n@ 13,15 SAY \" Banco Sucursal DC Cuenta\" COLOR \"W+/B\"\n@ 14,15 SAY \" [ ] [ ] [ ] [ ]\" COLOR \"G/B\"\n@ 14,18 GET cBanco PICTURE \"9999\" COLOR \"GR+/B\"\n@ 14,28 GET cSucursal PICTURE \"9999\" COLOR \"GR+/B\"\n@ 14,45 GET cRefer2 PICTURE \"9999999999\" COLOR \"GR+/B\"\n READ\ncRefer1=cBanco+cSucursal\n@ 14,38 SAY digBanco(cRefer1,cRefer2) COLOR \"W+/R\"\n\n\n************************************************************************* \nFUNCTION Digbanco(cRefer1,cRefer2) \n************************************************************************* \nLOCAL nDigitos := 10 \nLOCAL aDigito := ARRAY( nDigitos ) \nLOCAL aPeso := { 1, 2, 4, 8, 5, 10, 9, 7, 3, 6 } \nLOCAL nSuma := 0 \nLOCAL nCont \nLOCAL nModulo \nLOCAL nResto \nLOCAL cDigito1 \nLOCAL cDigito2 \n \ncRefer1 := STRTRAN(cRefer1,'-') \ncRefer1 := STRTRAN(cRefer1,'.') \ncRefer1 := STRTRAN(cRefer1,'/') \ncRefer1 := STRTRAN(cRefer1,' ') \ncRefer1 := RIGHT(cRefer1,nDigitos) \ncRefer1 := PADL(cRefer1,nDigitos,'0') \n \ncRefer2 := STRTRAN(cRefer2,'-') \ncRefer2 := STRTRAN(cRefer2,'.') \ncRefer2 := STRTRAN(cRefer2,'/') \ncRefer2 := STRTRAN(cRefer2,' ') \ncRefer2 := RIGHT(cRefer2,nDigitos) \ncRefer2 := PADL(cRefer2,nDigitos,'0') \n \nFOR nCont := 1 to nDigitos \n aDigito[ nCont ] := VAL( SUBSTR( cRefer1, nCont, 1 ) ) \n nSuma += ( aDigito[ nCont ] * aPeso[ nCont ] ) \nNEXT \nnModulo := 11 - INT( nSuma % 11 ) \nnResto := IF( nModulo == 10, 1, IF( nModulo == 11, 0, nModulo ) ) \ncDigito1 := LTRIM(STR(nResto)) \n \nnSuma := 0 \nFOR nCont := 1 to nDigitos \n aDigito[ nCont ] := VAL( SUBSTR( cRefer2, nCont, 1 ) ) \n nSuma += ( aDigito[ nCont ] * aPeso[ nCont ] ) \nNEXT \nnModulo := 11 - INT( nSuma % 11 ) \nnResto := IF( nModulo == 10, 1, IF( nModulo == 11, 0, nModulo ) ) \ncDigito2 := LTRIM(STR(nResto)) \n \nRETURN(cDigito1+cDigito2)", "time": "17:21", "topic": "Calculo del digito de control de cuenta bancaria", "username": "Manuel Aranda" } ]
Calculo del digito de control de cuenta bancaria
[ { "date": "2006-09-29", "forum": "FiveWin para Harbour/xHarbour", "text": "Function cDcontrol( cEntidad, cOficina, cCuenta )\n Local nSuma, nPos, nResto, cDc\n Local anPeso := {1,2,4,8,5,10,9,7,3,6}\n \n if empty(cCuenta)\n return cCuenta\n Endif\n\n \n\n // Primer digito de control\n nSuma := 0\n FOR nPos := 1 TO 8\n nSuma += Val( SubStr( cEntidad + cOficina, nPos, 1 ) ) * anPeso[nPos + 2]\n NEXT nBuc\n nResto := 11 - (nSuma % 11)\n cDc := If( nResto = 10, '1', If( nResto = 11, '0', Str( nResto, 1 ) ) )\n \n // Segundo digito de control\n nSuma := 0\n FOR nPos := 1 TO 10\n nSuma += Val( SubStr( cCuenta, nPos, 1 ) ) * anPeso[nPos]\n NEXT nPos\n nResto := 11 - (nSuma % 11)\n cDc += If( nResto = 10, '1', If( nResto = 11, '0', Str( nResto, 1 ) ) )\n \n RETURN cDc\n\n\n\n /*", "time": "17:22", "topic": "Calculo del digito de control de cuenta bancaria", "username": "Frafive" } ]
Calculo del digito de control de cuenta bancaria
[ { "date": "2006-09-29", "forum": "FiveWin para Harbour/xHarbour", "text": "Muchas gracias a todos, no solo el algoritmo, ya esta la función hecha.\n\nLo dicho muy agradecido. Un saludo.", "time": "19:55", "topic": "Calculo del digito de control de cuenta bancaria", "username": "Julio Cepeda" } ]
Calculo del digito de control de cuenta bancaria
[ { "date": "2008-07-11", "forum": "FiveWin para Harbour/xHarbour", "text": "Hola,\r\n\r\nSabria deirme alguien si existe una clase o funcion en FWH para menejar el calendario.\r\n\r\nSaludos,", "time": "01:21", "topic": "Calendar", "username": "alfonso" } ]
Calendar
[ { "date": "2008-07-11", "forum": "FiveWin para Harbour/xHarbour", "text": "[quote=\"alfonso\":2pfz9s8a]Hola,\n\nSabria deirme alguien si existe una clase o funcion en FWH para menejar el calendario.\n\nSaludos,[/quote:2pfz9s8a]\r\n[code:2pfz9s8a]\n#Include \"Fivewin&#46;ch\"\n#Include \"Dtpicker&#46;ch\"\nFUNCTION MAIN&#40;&#41;\n\tSET DATE TO FRENCH\n\tSET CENTURY On\n\tSET EPOCH TO 1961\n\tRecursos&#40;&#41;\n\tCodigo&#40;&#41;\nRETURN NIL\n\nFUNCTION Recursos&#40;&#41; \n\n\tLOCAL oDlg, oGet, lChg&#58;=&#46;F&#46; \n\tLOCAL aRec, dDate&#58;=Date&#40;&#41; \n\t\n DEFINE DIALOG oDlg RESOURCE \"SET_DATE\" TITLE \"DTPicker desde Recursos\"\n \tREDEFINE DTPICKER oGet VAR dDate ID 10 OF oDlg ON CHANGE oGet&#58;Refresh&#40;&#41;\n\t\tREDEFINE BUTTON ID 20 OF oDlg ACTION &#40;lChg&#58;=&#46;T&#46;,oDlg&#58;End&#40;&#41;&#41; \n\t\tREDEFINE BUTTON ID 30 OF oDlg ACTION &#40;lChg&#58;=&#46;F&#46;,oDlg&#58;End&#40;&#41;&#41; CANCEL \n\tACTIVATE DIALOG oDlg \n\n\tIF lChg \n\t\t//SetDate&#40;Day&#40;dDate&#41;,Month&#40;dDate&#41;,Year&#40;dDate&#41;&#41;\n\t\tMsgAlert&#40;dDate&#41; \n\tENDIF \nRETURN NIL \n\n\nFUNCTION Codigo&#40;&#41;\n\n local oWnd, oSay\n local dDate &#58;= Date&#40;&#41;\n\t SET DATE TO FRENCH\n\t SET CENTURY ON\n\t SET EPOCH TO 1960\n DEFINE WINDOW oWnd TITLE \"DTPicker desde Código &#46;&#46;&#46;&#46;\"\n \n @ 3, 30 SAY oSay PROMPT \"Fecha&#58; \"+ Dtoc&#40; dDate &#41; OF oWnd SIZE 200, 20\n @ 2, 2 DTPICKER dDate OF oWnd ON CHANGE oSay&#58;Refresh&#40;&#41;\n \n ACTIVATE WINDOW oWnd\n\nreturn NIL \n-------------------------\n\nEl archivo &#46;rc&#58;\n---------------\n\n1 24 \"wxp&#46;man\"\nSET_DATE DIALOG 18, 37, 201, 108\nSTYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU\nCAPTION \"Datos&#58;\"\nFONT 8, \"MS Sans Serif\"\n&#123;\n PUSHBUTTON \"&Aceptar\", 20, 42, 69, 48, 13\n PUSHBUTTON \"&Cancelar\", 30, 112, 69, 46, 13\n CONTROL \"\", 10, \"SysDateTimePick32\", 0 | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 60, 27, 81, 14\n[/code:2pfz9s8a]\r\n\r\nEspero esto sea lo que buscas.", "time": "12:58", "topic": "Calendar", "username": "jose_murugosa" } ]
Calendar
[ { "date": "2007-09-21", "forum": "FiveWin for Harbour/xHarbour", "text": "I don't suppose anyone has written a Calendar / Appointment book using pure FW/xHB code, but perhaps someone has found a control set they can link in successfully. I would like to update an old scheduler program ( 32 bit modification of an original Grumpfish program ) to the newer look and feel of true Windows scheduling. There are Active X programs available, but I want to retain DBF capabilities for my data, and the ability to share the data file across several users.\n\nHas anyone found suitable products for this purpose ? Your thoughts would be appreciated.\n\nI have looked at the CodeJock Active X component. First, a previous email thread on this object never showed that it would finally work. Secondly, I wrote to them about using it with a .DBF format and they indicated it was possible, but not designed to do that. Has anyone tried using this product with a .dbf format ( CodeJock Calendar Object ) ?\nThanks\n\n\nTim <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D -->", "time": "18:42", "topic": "Calendar / Appointment", "username": "TimStone" } ]
Calendar / Appointment
[ { "date": "2007-09-24", "forum": "FiveWin for Harbour/xHarbour", "text": "Tim,\nI remember that Paco García, from Canalfive, has a calendar with appointments, and a beta of a scheduler. Ask him for this products.\nRegards,\nJosé Luis", "time": "07:38", "topic": "Calendar / Appointment", "username": "José Luis Sánchez" } ]
Calendar / Appointment
[ { "date": "2007-09-24", "forum": "FiveWin for Harbour/xHarbour", "text": "They have a date picker, but no full calendar with appointment scheduling, etc. The key is the display of the appointment book.", "time": "23:55", "topic": "Calendar / Appointment", "username": "TimStone" } ]
Calendar / Appointment