messages
listlengths
1
1
topic
stringlengths
2
60
[ { "date": "2019-05-07", "forum": "FiveWin for Harbour/xHarbour", "text": "I'm looking for ideas based on some users experiences. Here is the problem:\n\nAn invoice print routine uses the same print function to print an invoice, counter sale, or estimate.\nThe only difference is in a few titles that are printed, and the customer info\nThis routine works EVERYWHERE except with one client where it used to work. \nThe client installed a new printer.\nThe customer can print invoices or estimates and it works perfectly\nThe customer can no longer print counter sales.\nThe problem cannot be replicated at any other client or in house.\nWhen he put the old printer back on line, it now cannot print counter sales.\nAgain the same function is used to print all 3. The type selected makes a difference only in limited data output from the function.\n\nSo here is what I'm asking. I know it is not a FWH issue ( it has worked fine for many many years ). However, with all of your experiences with outputting to the windows print system, can anyone think of any reason this could occur ? Is there someting that tPrinter might expect the print system to respond that I could check, or any special characters that might prevent it from outputting ? I'm at a loss.\n\nThanks for your ideas.", "time": "20:23", "topic": "A strange printing behavior", "username": "TimStone" } ]
A strange printing behavior
[ { "date": "2009-03-29", "forum": "FiveWin for Harbour/xHarbour", "text": "Hello Silvio,\n\nI had a look at the table and understand it like this :\nThere is a special offering >= 15 Days = 63 Euro and a price for one Day = 7 Euro.\nIf You rent < 15 Days, the price of 7 Euro each day is used. \nIf You calculate until 9 Days with 7 Euro a Day, You reach the price of the special offering.\nThat means :\nIf somebody stays > 9 Days and < 15 Days, the price will be higher > 63 Euro.\nThe Day-price after using the special offering 63 Euro = 63 / 15 would be 4,20 Euro up to 30 Days. \nTo stay 18 Days = 63 + ( 3 * 4,20 ) = 75,60 Euro => Fix-price 15 Days + 3 * Day-price ( 4,20 Euro ).\nIt is possible, to include this logic in my function.\n\nThe calculation :\n< 15 Days = 7 Euro * Days\n18 Days = 63 Euro + ( 3 * 4,20 Euro ) = 75,60 Euro.\nMaybe You can speek to Your customer, if my understanding is correct, using 4,20 Euro a day after 14 days ( 15 ) ?\n\nDays.....Price\n--------------\n1--------7\n..\n9--------[color=#FF0000:1n2r9kk8]63[/color:1n2r9kk8]\n14-------98\n-----------------------\n15-------[color=#FF0000:1n2r9kk8]63[/color:1n2r9kk8]\n..\n30------[color=#FF0000:1n2r9kk8]126[/color:1n2r9kk8]\n\n[code=fw:1n2r9kk8]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #00C800;\">FUNCTION</span> PRICE_TEST<span style=\"color: #000000;\">&#40;</span>oWnd<span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">LOCAL</span> oDlg, oGET<br /><br /><span style=\"color: #00C800;\">PRIVATE</span> aPRICE<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">3</span><span style=\"color: #000000;\">&#93;</span><span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">3</span><span style=\"color: #000000;\">&#93;</span><br />aPRICE<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span> := <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">1</span>, <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">7</span> <span style=\"color: #000000;\">&#125;</span>   <span style=\"color: #B900B9;\">// 1 day</span><br />aPRICE<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#93;</span> := <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">1</span>, <span style=\"color: #000000;\">15</span>, <span style=\"color: #000000;\">63</span> <span style=\"color: #000000;\">&#125;</span>  <span style=\"color: #B900B9;\">// min 15 Days</span><br />aPRICE<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">3</span><span style=\"color: #000000;\">&#93;</span> := <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">16</span>, <span style=\"color: #000000;\">30</span>, <span style=\"color: #000000;\">126</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #B900B9;\">// min >= 16 Days</span><br />nDAYS := <span style=\"color: #000000;\">1</span><br /><br /><span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">TITLE</span> <span style=\"color: #ff0000;\">\"Price Test\"</span> <br /><br />@ <span style=\"color: #000000;\">1</span>, <span style=\"color: #000000;\">2</span>  <span style=\"color: #0000ff;\">GET</span> oGet <span style=\"color: #0000ff;\">VAR</span> nDAYS <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">30</span>, <span style=\"color: #000000;\">15</span>  <span style=\"color: #0000ff;\">PICTURE</span> <span style=\"color: #ff0000;\">\"99\"</span><br />@ <span style=\"color: #000000;\">2</span>, <span style=\"color: #000000;\">2</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #ff0000;\">\"Price-Test\"</span> <span style=\"color: #0000ff;\">size</span> <span style=\"color: #000000;\">50</span>, <span style=\"color: #000000;\">25</span> <span style=\"color: #0000ff;\">OF</span> oDlg ;<br /><span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #000000;\">&#40;</span> oGet:<span style=\"color: #0000ff;\">Refresh</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>, ;<br />                nPRICE := GETPRICE3<span style=\"color: #000000;\">&#40;</span> nDAYS, aPRICE <span style=\"color: #000000;\">&#41;</span>, ;<br />                MsgAlert<span style=\"color: #000000;\">&#40;</span> nPrice <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">CENTERED</span><br /><br /><span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #000000;\">&#40;</span> <span style=\"color: #00C800;\">NIL</span> <span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #B900B9;\">// -----------------------</span><br /><br /><span style=\"color: #00C800;\">FUNCTION</span> GETPRICE3<span style=\"color: #000000;\">&#40;</span> nDAYS, aPRICE <span style=\"color: #000000;\">&#41;</span><br />nPRICE := <span style=\"color: #000000;\">0</span><br /><br /><span style=\"color: #00C800;\">IF</span> nDAYS = <span style=\"color: #000000;\">0</span><br />    MsgAlert<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Day-value missing !\"</span>,<span style=\"color: #ff0000;\">\"Error\"</span> <span style=\"color: #000000;\">&#41;</span><br />    <span style=\"color: #00C800;\">RETURN</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #00C800;\">NIL</span> <span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">ENDIF</span><br /><br />I := <span style=\"color: #000000;\">1</span><br /><span style=\"color: #00C800;\">FOR</span> I := <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">to</span> nDAYS<br /><br />   <span style=\"color: #B900B9;\">// Days < 15 ( max 14 * 7 = 98 Euro )</span><br />   <span style=\"color: #B900B9;\">// ---------------------------------------</span><br />   <span style=\"color: #00C800;\">IF</span> nDAYS < aPRICE<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#93;</span><span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#93;</span> <br />      nPRICE := aPRICE<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span><span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">3</span><span style=\"color: #000000;\">&#93;</span> * nDAYS<br />   <span style=\"color: #00C800;\">ENDIF</span>    <br /><br />   <span style=\"color: #B900B9;\">// longer >= 15 Days </span><br />   <span style=\"color: #B900B9;\">// --------------------</span><br />   <span style=\"color: #00C800;\">IF</span> nDAYS >= aPRICE<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#93;</span><span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#93;</span> .and. nDAYS <= aPRICE<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">3</span><span style=\"color: #000000;\">&#93;</span><span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#93;</span><br />      <span style=\"color: #B900B9;\">// 63 Euro / 15 = 4,20 Euro</span><br />      <span style=\"color: #B900B9;\">// --------------------------------</span><br />      nPRICE := <span style=\"color: #000000;\">&#40;</span> aPRICE<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#93;</span><span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">3</span><span style=\"color: #000000;\">&#93;</span> / aPRICE<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#93;</span><span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#41;</span> * nDAYS  <br />   <span style=\"color: #00C800;\">ENDIF</span>       <br /><br />   <span style=\"color: #B900B9;\">// longer > 30 Days same calculation of 4,20 Euro each day</span><br />   <span style=\"color: #B900B9;\">// ------------------------------------------------------------------</span><br />   <span style=\"color: #00C800;\">IF</span> nDAYS > aPRICE<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">3</span><span style=\"color: #000000;\">&#93;</span><span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#93;</span> <br />      <span style=\"color: #B900B9;\">// 63 Euro / 15 Days = 4,20 Euro</span><br />      <span style=\"color: #B900B9;\">// -----------------------------------</span><br />      nPRICE := <span style=\"color: #000000;\">&#40;</span> aPRICE<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#93;</span><span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">3</span><span style=\"color: #000000;\">&#93;</span> / aPRICE<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#93;</span><span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#41;</span> * nDAYS  <br />   <span style=\"color: #00C800;\">ENDIF</span>       <br /><br /><span style=\"color: #00C800;\">NEXT</span><br /><br /><span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #000000;\">&#40;</span> nPRICE <span style=\"color: #000000;\">&#41;</span><br /> </div>[/code:1n2r9kk8]\n\nRegards\nUwe <!-- s:lol: --><img src=\"{SMILIES_PATH}/icon_lol.gif\" alt=\":lol:\" title=\"Laughing\" /><!-- s:lol: -->", "time": "02:44", "topic": "A suggestion :help", "username": "ukoenig" } ]
A suggestion :help
[ { "date": "2009-03-27", "forum": "FiveWin for Harbour/xHarbour", "text": "I must create prices for umbrellas rent\nit can be calcolate counting the days of rent\nsample :\n\none day 9.00 euro\nseven days 50,00 euro\n15 days 100,00 euro\n30 days 205,00 euro\n\nbut I have a problem\n\nHow I can make if I must to pay only for 14 or 18 days or 20 or 25 days ?\ndo U have an Idea ?", "time": "01:12", "topic": "A suggestion :help", "username": "Silvio" } ]
A suggestion :help
[ { "date": "2009-03-27", "forum": "FiveWin for Harbour/xHarbour", "text": "Sivio... use the Fibonacci serie", "time": "02:31", "topic": "A suggestion :help", "username": "Armando Picon" } ]
A suggestion :help
[ { "date": "2009-03-27", "forum": "FiveWin for Harbour/xHarbour", "text": "Silvio:\n\nJust an idea\n\nYou must to know the price for each day as follow\n\n 9 euros / 1 days = 9 euros each day\n 50 euros / 7 days = 7.15 euros each day\n100 euros / 15 days = 6.67 euros each day and\n205 euros / 30 days = 6.84 euros each day\n\nWith these prices you make a table\n\nFROM TO Price for each day\n 1 to 6 9 euros\n 7 to 14 7.15 euros each day\n 15 to 29 6.67 euros each day and\n 30 to 999 6.84 euros each day\n\nThen, an example:\n\nIf your customer rent an umbrella for 10 days the price for each day must be 7.15 euros\nbecause 10 is betwen 7 to 14\n\n10 * 7.15 = 71.50 Euros\n\nWhat do you think ?\n\nRegards", "time": "03:23", "topic": "A suggestion :help", "username": "Armando" } ]
A suggestion :help
[ { "date": "2009-03-27", "forum": "FiveWin for Harbour/xHarbour", "text": "it is a good idea \n\nBUT \n\n\nif I have 14 days to pay\n\n14*7.15 = 100,1euros\n\nbut if I have 15 gg pay 100 euros\n\nif I have 14 or 15 pay the same ??", "time": "09:44", "topic": "A suggestion :help", "username": "Silvio" } ]
A suggestion :help
[ { "date": "2009-03-27", "forum": "FiveWin for Harbour/xHarbour", "text": "Silvio:\n\nThen, don't use the rounded prices for each day\n\n9 euros / 1 days = 9 euros each day\n50 euros / 7 days = 7.14 euros each day\n100 euros / 15 days = 6.66 euros each day and\n205 euros / 30 days = 6.83 euros each day\n\nRegards\n\n14 * 7.14 = 99.96 Euros\n15 * 6.66 = 99.90 Euros\n\nRegards", "time": "14:24", "topic": "A suggestion :help", "username": "Armando" } ]
A suggestion :help
[ { "date": "2009-03-27", "forum": "FiveWin for Harbour/xHarbour", "text": "Hello Silvio,\n\nI created a function for this ( [color=#FF0000:3pui7beh]Tested and Updated 28.03.2009[/color:3pui7beh] ). \nWith that it is possible to calculate the price, even with using days are [color=#4000FF:3pui7beh]not Linear[/color:3pui7beh].\nIn my application, I used it for the calculation of fluctuate prices of articles.\n\nAnother exsample how to [color=#FF0000:3pui7beh]keep the price between two given points [/color:3pui7beh],\nYou can find in my answer to Amando at the bottom. It is very easy and uses the same logic.\n\nJust put some values and tell me Your results.\nThere are some control-Alerts You can use.\n\nSilvio, maybe You can change the title of the topic in : [color=#FF0000:3pui7beh]How to calculate fluctuate prices ?[/color:3pui7beh]\nIf somebody needs this calulation, it is better to find.\n\n[img:3pui7beh]http&#58;//www&#46;pflegeplus&#46;com/pictures/price3&#46;jpg[/img:3pui7beh]\n\nTest-calculation ( [color=#FF0000:3pui7beh]interpolating[/color:3pui7beh] ) between two given values : \n7 Days = 50 Euro and 14 Days = 100 Euro\n-----------------------------------------------\n 7 Days = 50,00 Euro\n 8 Days = 57,14 Euro\n 9 Days = 64,29 Euro\n10 Days = 71,42 Euro\n11 Days = 78,57 Euro\n12 Days = 85,71 Euro\n13 Days = 92,86 Euro\n14 Days = 100,00 Euro \n[code=fw:3pui7beh]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><br /><span style=\"color: #00C800;\">FUNCTION</span> PRICE_TEST<span style=\"color: #000000;\">&#40;</span>oWnd<span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">LOCAL</span> oDlg, oGET<br /><br /><span style=\"color: #B900B9;\">// A array DAYS and PRICE</span><br /><span style=\"color: #B900B9;\">// ----------------------------</span><br /><span style=\"color: #00C800;\">PRIVATE</span> aPRICE<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">6</span><span style=\"color: #000000;\">&#93;</span><span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#93;</span><br />aPRICE<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span> := <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">1</span>, <span style=\"color: #000000;\">10</span> <span style=\"color: #000000;\">&#125;</span><br />aPRICE<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#93;</span> := <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">7</span>, <span style=\"color: #000000;\">50</span> <span style=\"color: #000000;\">&#125;</span>   <span style=\"color: #B900B9;\">// 12 Days = 50 + ( ( ( 100 - 50 ) / 7 ) * 5 ) = 85.71</span><br />aPRICE<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">3</span><span style=\"color: #000000;\">&#93;</span> := <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">14</span>, <span style=\"color: #000000;\">100</span> <span style=\"color: #000000;\">&#125;</span><br />aPRICE<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">4</span><span style=\"color: #000000;\">&#93;</span> := <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">21</span>, <span style=\"color: #000000;\">130</span> <span style=\"color: #000000;\">&#125;</span>  <span style=\"color: #B900B9;\">// 25 Days = 130 + ( ( ( 200 - 130 ) / 7 ) * 4 ) = 170</span><br />aPRICE<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">5</span><span style=\"color: #000000;\">&#93;</span> := <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">28</span>, <span style=\"color: #000000;\">200</span> <span style=\"color: #000000;\">&#125;</span>  <br />aPRICE<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">6</span><span style=\"color: #000000;\">&#93;</span> := <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">35</span>, <span style=\"color: #000000;\">200</span> <span style=\"color: #000000;\">&#125;</span>  <span style=\"color: #B900B9;\">// 30 Days = 200 + ( ( 200 / ( 35 - 28 ) * 2 ) = 257,14  => End</span><br /><br /><span style=\"color: #B900B9;\">// calculate the price </span><br /><span style=\"color: #B900B9;\">// ----------------------</span><br />nDAYS := <span style=\"color: #000000;\">12</span><br /><br /><span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">TITLE</span> <span style=\"color: #ff0000;\">\"Price Test\"</span> <br /><br />@ <span style=\"color: #000000;\">1</span>, <span style=\"color: #000000;\">2</span>  <span style=\"color: #0000ff;\">GET</span> oGet <span style=\"color: #0000ff;\">VAR</span> nDAYS <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">30</span>, <span style=\"color: #000000;\">15</span>  <span style=\"color: #0000ff;\">PICTURE</span> <span style=\"color: #ff0000;\">\"99\"</span><br />@ <span style=\"color: #000000;\">2</span>, <span style=\"color: #000000;\">2</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #ff0000;\">\"Price-Test\"</span> <span style=\"color: #0000ff;\">size</span> <span style=\"color: #000000;\">50</span>, <span style=\"color: #000000;\">25</span> <span style=\"color: #0000ff;\">OF</span> oDlg ;<br /><span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #000000;\">&#40;</span> oGet:<span style=\"color: #0000ff;\">Refresh</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>, ;<br />      nPRICE := GETPRICE1<span style=\"color: #000000;\">&#40;</span> nDAYS, aPRICE <span style=\"color: #000000;\">&#41;</span>, ;<br />      MsgAlert<span style=\"color: #000000;\">&#40;</span> nPrice <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">CENTERED</span><br /><br /><span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #000000;\">&#40;</span> <span style=\"color: #00C800;\">NIL</span> <span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #B900B9;\">// ------------------------------------------</span><br /><br /><span style=\"color: #00C800;\">FUNCTION</span> GETPRICE1<span style=\"color: #000000;\">&#40;</span> nDAYS, aPRICE <span style=\"color: #000000;\">&#41;</span><br />nPRICE := <span style=\"color: #000000;\">0</span><br /><br /><span style=\"color: #B900B9;\">// Testing days of last Array-Element for valid input</span><br /><span style=\"color: #B900B9;\">// ------------------------------------------------------------</span><br /><span style=\"color: #00C800;\">IF</span> nDAYS = <span style=\"color: #000000;\">0</span><br />    MsgAlert<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"No Days-value defined !\"</span>,<span style=\"color: #ff0000;\">\"Error\"</span> <span style=\"color: #000000;\">&#41;</span><br />    <span style=\"color: #00C800;\">RETURN</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #00C800;\">NIL</span> <span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">ENDIF</span><br /><span style=\"color: #00C800;\">IF</span> nDAYS > aPRICE<span style=\"color: #000000;\">&#91;</span>LEN<span style=\"color: #000000;\">&#40;</span>aPRICE<span style=\"color: #000000;\">&#41;</span><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 />    MsgAlert<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"To many Days !\"</span>,<span style=\"color: #ff0000;\">\"Error\"</span> <span style=\"color: #000000;\">&#41;</span><br />    <span style=\"color: #00C800;\">RETURN</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #00C800;\">NIL</span> <span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">ENDIF</span><br /><br />I := <span style=\"color: #000000;\">1</span><br /><span style=\"color: #00C800;\">FOR</span> I := <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">to</span> LEN<span style=\"color: #000000;\">&#40;</span> aPRICE <span style=\"color: #000000;\">&#41;</span>  <span style=\"color: #B900B9;\">// 6</span><br />   <span style=\"color: #00C800;\">IF</span> I + <span style=\"color: #000000;\">1</span> < LEN<span style=\"color: #000000;\">&#40;</span> aPRICE <span style=\"color: #000000;\">&#41;</span>   <span style=\"color: #B900B9;\">// < 6</span><br /><br />      <span style=\"color: #B900B9;\">// Price is defined for nDAYS ( no calculation )</span><br />      <span style=\"color: #B900B9;\">// ---------------------------------------------------</span><br />      <span style=\"color: #00C800;\">IF</span> nDAYS = aPRICE<span style=\"color: #000000;\">&#91;</span>I<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 /><br />         nPRICE :=  aPRICE<span style=\"color: #000000;\">&#91;</span>I<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 /><br />         EXIT<br /><br />      <span style=\"color: #00C800;\">ENDIF</span><br /><br />      <span style=\"color: #B900B9;\">//   1      7     14     21    28    35</span><br />      <span style=\"color: #B900B9;\">//   6     13      20      27      34</span><br />      <span style=\"color: #B900B9;\">//   1-6, 7-13, 14-20, 21-27, 28-34, 35</span><br /><br />      <span style=\"color: #00C800;\">IF</span> nDAYS >= aPRICE<span style=\"color: #000000;\">&#91;</span>I<span style=\"color: #000000;\">&#93;</span><span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span> .and. nDAYS <= aPRICE<span style=\"color: #000000;\">&#91;</span>I<span style=\"color: #000000;\">+1</span><span style=\"color: #000000;\">&#93;</span><span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span><span style=\"color: #000000;\">-1</span>  <br /><br />         <span style=\"color: #B900B9;\">// nPARTPRICE := ( 100 - 50 )  /  ( 14 - 7 )  = 7,14</span><br />         <span style=\"color: #B900B9;\">// aPRICE[3] := { 14, 100 }</span><br />         <span style=\"color: #B900B9;\">// ----</span><br />         <span style=\"color: #B900B9;\">// nPARTPRICE := ( 200 - 130 )  /  ( 28 - 21 ) = 10</span><br />         <span style=\"color: #B900B9;\">// aPRICE[5] := { 28, 200 }</span><br />         <span style=\"color: #B900B9;\">// ---------------------------------------------------------</span><br />         nPARTPRICE := <span style=\"color: #000000;\">&#40;</span> aPRICE<span style=\"color: #000000;\">&#91;</span>I<span style=\"color: #000000;\">+1</span><span style=\"color: #000000;\">&#93;</span><span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#93;</span>- aPRICE<span style=\"color: #000000;\">&#91;</span>I<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: #000000;\">&#41;</span>/<span style=\"color: #000000;\">&#40;</span> aPRICE<span style=\"color: #000000;\">&#91;</span>I<span style=\"color: #000000;\">+1</span><span style=\"color: #000000;\">&#93;</span><span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span>- aPRICE<span style=\"color: #000000;\">&#91;</span>I<span style=\"color: #000000;\">&#93;</span><span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#41;</span><br />            <br />         <span style=\"color: #B900B9;\">// nPRICE :=  50 + ( 7,14 * ( 12 - 7 ) ) = 85,71</span><br />         <span style=\"color: #B900B9;\">// aPRICE[2] := { 7, 50 }   </span><br />         <span style=\"color: #B900B9;\">// 12 Days =   50 + ( ( ( 100 - 50 ) / 7 ) * 5 )   = 85.71</span><br />         <span style=\"color: #B900B9;\">// ------</span><br />         <span style=\"color: #B900B9;\">// nPRICE :=  130 + ( 10 * ( 25 - 21 ) ) = 170</span><br />         <span style=\"color: #B900B9;\">// aPRICE[4] := { 21, 130 } </span><br />         <span style=\"color: #B900B9;\">// 25 Days =   130 + ( ( ( 200 - 130 ) / 7 ) * 4 )   = 170</span><br />         <span style=\"color: #B900B9;\">// -------------------------------------------------------------</span><br />         nPRICE :=  aPRICE<span style=\"color: #000000;\">&#91;</span>I<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: #000000;\">&#40;</span> nPARTPRICE * <span style=\"color: #000000;\">&#40;</span> nDAYS - aPRICE<span style=\"color: #000000;\">&#91;</span>I<span style=\"color: #000000;\">&#93;</span><span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br /><br />         <span style=\"color: #B900B9;\">// msgalert( aPRICE[I][2], \"1\")     </span><br />         <span style=\"color: #B900B9;\">// msgalert( nPARTPRICE, \"2\")     </span><br />         <span style=\"color: #B900B9;\">// msgalert( aPRICE[I-1][1], \"3\")  </span><br /><br />         EXIT<br /><br />     <span style=\"color: #00C800;\">ENDIF</span><br /><br />  <span style=\"color: #00C800;\">ENDIF</span><br /><br />  <span style=\"color: #B900B9;\">// Special calculation needed for last Array-Element</span><br />  <span style=\"color: #B900B9;\">// Last Array-Element only for End of days ( no extra price )</span><br />  <span style=\"color: #B900B9;\">// -------------------------------------------------------------------</span><br />  <span style=\"color: #00C800;\">IF</span> I = LEN<span style=\"color: #000000;\">&#40;</span> aPRICE <span style=\"color: #000000;\">&#41;</span>  <span style=\"color: #B900B9;\">// 6</span><br /><br />      <span style=\"color: #00C800;\">IF</span> nDAYS >= aPRICE<span style=\"color: #000000;\">&#91;</span>I<span style=\"color: #000000;\">-1</span><span style=\"color: #000000;\">&#93;</span><span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span> <span style=\"color: #B900B9;\">// Array-Element 5</span><br /><br />         <span style=\"color: #B900B9;\">// aPRICE[5] := { 28, 200 }</span><br />         <span style=\"color: #B900B9;\">// aPRICE[6] := { 35, 200 } // End</span><br />         <span style=\"color: #B900B9;\">// nPARTPRICE := 200 /  ( 35 - 28 )  = 28,57</span><br /><br />         <span style=\"color: #B900B9;\">// ----------------------------------------------------------</span><br />         nPARTPRICE := aPRICE<span style=\"color: #000000;\">&#91;</span>I<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: #000000;\">&#40;</span> aPRICE<span style=\"color: #000000;\">&#91;</span>I<span style=\"color: #000000;\">&#93;</span><span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span> - aPRICE<span style=\"color: #000000;\">&#91;</span>I<span style=\"color: #000000;\">-1</span><span style=\"color: #000000;\">&#93;</span><span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#41;</span>  <br />            <br />         <span style=\"color: #B900B9;\">// 30 Days =  200 + ( ( 200 / ( 35 - 28 ) * 2 )   = 257,14</span><br />         <span style=\"color: #B900B9;\">// -------------------------------------------------------------------</span><br />         nPRICE :=  aPRICE<span style=\"color: #000000;\">&#91;</span>I<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: #000000;\">&#40;</span> nPARTPRICE * <span style=\"color: #000000;\">&#40;</span> nDAYS - aPRICE<span style=\"color: #000000;\">&#91;</span>I<span style=\"color: #000000;\">-1</span><span style=\"color: #000000;\">&#93;</span><span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br /><br />         <span style=\"color: #B900B9;\">// msgalert( aPRICE[I][2], \"1\")  //   200</span><br />         <span style=\"color: #B900B9;\">// msgalert( nPARTPRICE, \"2\")  //   28,57</span><br />         <span style=\"color: #B900B9;\">// msgalert( aPRICE[I-1][1], \"3\")  //    28</span><br />         <span style=\"color: #B900B9;\">// msgalert( aPRICE[I][1], \"4\")     //    35</span><br /><br />         EXIT<br /><br />      <span style=\"color: #00C800;\">ENDIF</span><br /><br />   <span style=\"color: #00C800;\">ENDIF</span><br /><br /><span style=\"color: #00C800;\">NEXT</span><br /><br /><span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #000000;\">&#40;</span> nPRICE <span style=\"color: #000000;\">&#41;</span><br /> </div>[/code:3pui7beh]\n\nRegards\nUwe <!-- s:lol: --><img src=\"{SMILIES_PATH}/icon_lol.gif\" alt=\":lol:\" title=\"Laughing\" /><!-- s:lol: -->", "time": "20:50", "topic": "A suggestion :help", "username": "ukoenig" } ]
A suggestion :help
[ { "date": "2009-03-28", "forum": "FiveWin for Harbour/xHarbour", "text": "The Function is Updated ( 28.03.2009 )\n\nRegards\nUwe <!-- s:lol: --><img src=\"{SMILIES_PATH}/icon_lol.gif\" alt=\":lol:\" title=\"Laughing\" /><!-- s:lol: -->", "time": "15:29", "topic": "A suggestion :help", "username": "ukoenig" } ]
A suggestion :help
[ { "date": "2009-03-28", "forum": "FiveWin for Harbour/xHarbour", "text": "Ukoenig:\n\nTaking your example I get these individual prices\n\n7\t50.00\t7.1429\n8\t57.14\t7.1400\n9\t64.29\t7.1500\n10\t71.42\t7.1300\n11\t78.57\t7.1500\n12\t85.71\t7.1400\n13\t92.86\t7.1500\n14\t100.00\t7.1400\n\nAs we can see the price of 9 days is more expensive than the price of 8 days\nand the price of 11 days is more expensive than the price of 10 days also.\nand so on.\n\nRegards", "time": "18:16", "topic": "A suggestion :help", "username": "Armando" } ]
A suggestion :help
[ { "date": "2009-03-28", "forum": "FiveWin for Harbour/xHarbour", "text": "Hello Armando\n\nThe prices are calculated ( interpolated ) between two given prices in my function above.\nIt is a solution for a part of a merchandise planning and control system. \nIf You want to [color=#FF0000:233l8mx5]keep the price the same between two given points[/color:233l8mx5], it is very easy to do this.\nThere is nothing to calculate and the function returns the exact price inside a price-group.\nIt is the same function-logic like solution 1. Now You have two options, how to get a price.\nFor me, this logic doesn't make sense, because if somebody rents 14 Days ( start of Group ), it would be \nthe same like for 20 Days ( end of Group). \nNormaly for that, You have to use the special price from this group from 14 to 21 Days and use the\nPrice for the calculation. Let' say, somebody stays 18 Days, the price for each Day from group 14 to 21 is used. \nBut it's up to You.\n\nThe picture shows the difference between the two solutions :\n[img:233l8mx5]http&#58;//www&#46;pflegeplus&#46;com/pictures/price4&#46;jpg[/img:233l8mx5]\n\nReturns the same price between two given points\n\nOverview :\n[img:233l8mx5]http&#58;//www&#46;pflegeplus&#46;com/pictures/price5&#46;jpg[/img:233l8mx5]\n\n\n[code=fw:233l8mx5]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #00C800;\">FUNCTION</span> PRICE_TEST<span style=\"color: #000000;\">&#40;</span>oWnd<span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">LOCAL</span> oDlg, oGET<br /><br /><span style=\"color: #B900B9;\">// A array DAYS and PRICE</span><br /><span style=\"color: #B900B9;\">// ----------------------------</span><br /><span style=\"color: #00C800;\">PRIVATE</span> aPRICE<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">6</span><span style=\"color: #000000;\">&#93;</span><span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#93;</span><br />aPRICE<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span> := <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">1</span>, <span style=\"color: #000000;\">10</span> <span style=\"color: #000000;\">&#125;</span><br />aPRICE<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#93;</span> := <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">7</span>, <span style=\"color: #000000;\">50</span> <span style=\"color: #000000;\">&#125;</span>   <br />aPRICE<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">3</span><span style=\"color: #000000;\">&#93;</span> := <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">14</span>, <span style=\"color: #000000;\">100</span> <span style=\"color: #000000;\">&#125;</span><br />aPRICE<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">4</span><span style=\"color: #000000;\">&#93;</span> := <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">21</span>, <span style=\"color: #000000;\">130</span> <span style=\"color: #000000;\">&#125;</span>  <br />aPRICE<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">5</span><span style=\"color: #000000;\">&#93;</span> := <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">28</span>, <span style=\"color: #000000;\">200</span> <span style=\"color: #000000;\">&#125;</span>  <br />aPRICE<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">6</span><span style=\"color: #000000;\">&#93;</span> := <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">35</span>, <span style=\"color: #000000;\">260</span> <span style=\"color: #000000;\">&#125;</span>  <br /><br /><span style=\"color: #B900B9;\">// find the Price of a given Day ( Group )</span><br /><span style=\"color: #B900B9;\">// ---------------------------------------------</span><br />nDAYS := <span style=\"color: #000000;\">12</span><br /><br /><span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">TITLE</span> <span style=\"color: #ff0000;\">\"Price Test\"</span> <br /><br />@ <span style=\"color: #000000;\">1</span>, <span style=\"color: #000000;\">2</span>  <span style=\"color: #0000ff;\">GET</span> oGet <span style=\"color: #0000ff;\">VAR</span> nDAYS <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">30</span>, <span style=\"color: #000000;\">15</span>  <span style=\"color: #0000ff;\">PICTURE</span> <span style=\"color: #ff0000;\">\"99\"</span><br />@ <span style=\"color: #000000;\">2</span>, <span style=\"color: #000000;\">2</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #ff0000;\">\"Price-Test\"</span> <span style=\"color: #0000ff;\">size</span> <span style=\"color: #000000;\">50</span>, <span style=\"color: #000000;\">25</span> <span style=\"color: #0000ff;\">OF</span> oDlg ;<br /><span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #000000;\">&#40;</span> oGet:<span style=\"color: #0000ff;\">Refresh</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>, ;<br />      nPRICE := GETPRICE2<span style=\"color: #000000;\">&#40;</span> nDAYS, aPRICE <span style=\"color: #000000;\">&#41;</span>, ;<br />      MsgAlert<span style=\"color: #000000;\">&#40;</span> nPrice <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">CENTERED</span><br /><br /><span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #000000;\">&#40;</span> <span style=\"color: #00C800;\">NIL</span> <span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #B900B9;\">// ------------------------------------------</span><br /><br /><span style=\"color: #00C800;\">FUNCTION</span> GETPRICE2<span style=\"color: #000000;\">&#40;</span> nDAYS, aPRICE <span style=\"color: #000000;\">&#41;</span><br />nPRICE := <span style=\"color: #000000;\">0</span><br /><br /><span style=\"color: #B900B9;\">// Testing days of last Array-Element for valid input</span><br /><span style=\"color: #B900B9;\">// ------------------------------------------------------------</span><br /><span style=\"color: #00C800;\">IF</span> nDAYS = <span style=\"color: #000000;\">0</span><br />    MsgAlert<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"No Days-value defined !\"</span>,<span style=\"color: #ff0000;\">\"Error\"</span> <span style=\"color: #000000;\">&#41;</span><br />    <span style=\"color: #00C800;\">RETURN</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #00C800;\">NIL</span> <span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">ENDIF</span><br /><span style=\"color: #00C800;\">IF</span> nDAYS > aPRICE<span style=\"color: #000000;\">&#91;</span>LEN<span style=\"color: #000000;\">&#40;</span>aPRICE<span style=\"color: #000000;\">&#41;</span><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 />    MsgAlert<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"To many Days !\"</span>,<span style=\"color: #ff0000;\">\"Error\"</span> <span style=\"color: #000000;\">&#41;</span><br />    <span style=\"color: #00C800;\">RETURN</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #00C800;\">NIL</span> <span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">ENDIF</span><br /><br />I := <span style=\"color: #000000;\">1</span><br /><span style=\"color: #00C800;\">FOR</span> I := <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">to</span> LEN<span style=\"color: #000000;\">&#40;</span> aPRICE <span style=\"color: #000000;\">&#41;</span>  <span style=\"color: #B900B9;\">// 6</span><br /><br /><span style=\"color: #00C800;\">IF</span> I < LEN<span style=\"color: #000000;\">&#40;</span> aPRICE <span style=\"color: #000000;\">&#41;</span><br />   <span style=\"color: #00C800;\">IF</span> nDAYS >= aPRICE<span style=\"color: #000000;\">&#91;</span>I<span style=\"color: #000000;\">&#93;</span><span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span>  .and. nDAYS < aPRICE<span style=\"color: #000000;\">&#91;</span>I<span style=\"color: #000000;\">+1</span><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 />      nPRICE :=  aPRICE<span style=\"color: #000000;\">&#91;</span>I<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 />      EXIT<br />   <span style=\"color: #00C800;\">ENDIF</span><br /><span style=\"color: #00C800;\">ELSE</span> <span style=\"color: #B900B9;\">// For the last Array-Element</span><br />   <span style=\"color: #00C800;\">IF</span> nDAYS = aPRICE<span style=\"color: #000000;\">&#91;</span>I<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 />      nPRICE :=  aPRICE<span style=\"color: #000000;\">&#91;</span>I<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 />      EXIT<br />   <span style=\"color: #00C800;\">ENDIF</span><br /><span style=\"color: #00C800;\">ENDIF</span><br /><br /><span style=\"color: #00C800;\">NEXT</span><br /><br /><span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #000000;\">&#40;</span> nPRICE <span style=\"color: #000000;\">&#41;</span><br /><br /> </div>[/code:233l8mx5]\n\nRegards\nUwe <!-- s:lol: --><img src=\"{SMILIES_PATH}/icon_lol.gif\" alt=\":lol:\" title=\"Laughing\" /><!-- s:lol: -->", "time": "19:24", "topic": "A suggestion :help", "username": "ukoenig" } ]
A suggestion :help
[ { "date": "2009-03-29", "forum": "FiveWin for Harbour/xHarbour", "text": "Sorry but I have this prices \n[img:96bis26x]http&#58;//img4&#46;imageshack&#46;us/img4/6781/tariffe20072&#46;gif[/img:96bis26x]\n\nI must create a dbf from it \n\nIf I have to pay an umbrellas ( look on jpg first line : ombrellone 1° Fila blue box ) for 14 days How many euros I must ask ?\n\nIf you calculare the price of each day for 14 days = 7 x 14 = 98 euro \n\nbut you can see on the blu box you can pay for 15 day only 63 euro \n\nthen I must pay many euro for 14 day than for 15 days ?\n\n\nDo U understand my problem ?", "time": "02:19", "topic": "A suggestion :help", "username": "Silvio" } ]
A suggestion :help
[ { "date": "2012-12-20", "forum": "FiveWin para Harbour/xHarbour", "text": "Llegada esta Fecha , solo resta MUY FELICES FIESTAS A TODOS y gracias por estar. les mando a todos un fuerte abrazo y que la pasen muy bien juntos a sus afectos.\n\n\n juan carlos bellucci.", "time": "16:35", "topic": "A todo el Foro FELIZ NAVIDAD", "username": "juan carlos bellucci" } ]
A todo el Foro FELIZ NAVIDAD
[ { "date": "2012-12-20", "forum": "FiveWin para Harbour/xHarbour", "text": "Juan Carlos, igualmente a tí y a todos los amigos del foro.\nSaludos.", "time": "17:17", "topic": "A todo el Foro FELIZ NAVIDAD", "username": "FranciscoA" } ]
A todo el Foro FELIZ NAVIDAD
[ { "date": "2012-12-21", "forum": "FiveWin para Harbour/xHarbour", "text": "Juan,\n\nGracias por todo. FELIZ NAVIDAD a todos deste foro!!", "time": "02:54", "topic": "A todo el Foro FELIZ NAVIDAD", "username": "Kleyber" } ]
A todo el Foro FELIZ NAVIDAD
[ { "date": "2012-12-21", "forum": "FiveWin para Harbour/xHarbour", "text": "Un saludo muy afectivo para todos!", "time": "14:52", "topic": "A todo el Foro FELIZ NAVIDAD", "username": "MarioG" } ]
A todo el Foro FELIZ NAVIDAD
[ { "date": "2012-12-21", "forum": "FiveWin para Harbour/xHarbour", "text": "Gracias por todo. Le deseo una FELIZ NAVIDAD a todos!", "time": "15:49", "topic": "A todo el Foro FELIZ NAVIDAD", "username": "ruben Dario" } ]
A todo el Foro FELIZ NAVIDAD
[ { "date": "2012-12-21", "forum": "FiveWin para Harbour/xHarbour", "text": "Sólo decir gracias por toda la ayuda que en forma desinteresada he recibido siempre de los integrantes del foro.\n\nDesearles a todos que tengan unas felices fiestas y lo mejor para su vida.\n\nUn abrazo.\n\nRolando <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D -->", "time": "23:39", "topic": "A todo el Foro FELIZ NAVIDAD", "username": "rolando" } ]
A todo el Foro FELIZ NAVIDAD
[ { "date": "2012-12-24", "forum": "FiveWin para Harbour/xHarbour", "text": "FELICES FIESTAS PARA TODOS, QUE LA PASEN SUPER.\n\nSaludos,\n\nAdhemar", "time": "13:21", "topic": "A todo el Foro FELIZ NAVIDAD", "username": "acuellar" } ]
A todo el Foro FELIZ NAVIDAD
[ { "date": "2012-12-24", "forum": "FiveWin para Harbour/xHarbour", "text": "A todo este increible grupo de compañeros y a sus familias\n\nFelíz Navidad y feliz año 2013.\n\nSaludos\n\nRuben Fernandez", "time": "13:52", "topic": "A todo el Foro FELIZ NAVIDAD", "username": "RuFerSo" } ]
A todo el Foro FELIZ NAVIDAD
[ { "date": "2012-12-24", "forum": "FiveWin para Harbour/xHarbour", "text": "Dios les bendiga", "time": "22:17", "topic": "A todo el Foro FELIZ NAVIDAD", "username": "Antonio Linares" } ]
A todo el Foro FELIZ NAVIDAD
[ { "date": "2012-12-24", "forum": "FiveWin para Harbour/xHarbour", "text": "Que la paz reyne en cada uno de vuestros hogares.....\nFELIZ NAVIDAD!!!!!", "time": "22:35", "topic": "A todo el Foro FELIZ NAVIDAD", "username": "Willi Quintana" } ]
A todo el Foro FELIZ NAVIDAD
[ { "date": "2012-12-24", "forum": "FiveWin para Harbour/xHarbour", "text": "Felices Fiestas !!", "time": "22:57", "topic": "A todo el Foro FELIZ NAVIDAD", "username": "sysctrl2" } ]
A todo el Foro FELIZ NAVIDAD
[ { "date": "2012-12-25", "forum": "FiveWin para Harbour/xHarbour", "text": "Felices Fiestas y Prospero 2013 !!!\n\nZorionak eta Urte Berri On !!!", "time": "10:53", "topic": "A todo el Foro FELIZ NAVIDAD", "username": "Baxajaun" } ]
A todo el Foro FELIZ NAVIDAD
[ { "date": "2012-12-25", "forum": "FiveWin para Harbour/xHarbour", "text": "Felices fiestas para todos y que este próximo año sea lleno de salud y exitos...", "time": "15:09", "topic": "A todo el Foro FELIZ NAVIDAD", "username": "wmormar" } ]
A todo el Foro FELIZ NAVIDAD
[ { "date": "2012-12-26", "forum": "FiveWin para Harbour/xHarbour", "text": "Pués eso,\n\nEspero que hayan pasado o esten pasando una Feliz Navidad.\n\nQue el 2013 no sea un año más en sus vidas. Vívanlo plenamente.\n\nSaludos,\nCarlos G.", "time": "00:40", "topic": "A todo el Foro FELIZ NAVIDAD", "username": "FiveWiDi" } ]
A todo el Foro FELIZ NAVIDAD
[ { "date": "2011-05-06", "forum": "FiveWin for Harbour/xHarbour", "text": "Hi friends:\n\nDo you know a very good class, function, lib, dll or tool to send emails from my app, my tools: FWH0810 and xHarbour build 1.1.0 Intl. (SimpLex) (Rev. 6195)?\n\nWith best regards", "time": "18:11", "topic": "A tool to send email ?", "username": "Armando" } ]
A tool to send email ?
[ { "date": "2011-05-07", "forum": "FiveWin for Harbour/xHarbour", "text": "Here it is:\n\n[code=fw:26kgtr9f]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"Fivewin.ch\"</span><br /><br /><br /><span style=\"color: #00C800;\">STATIC</span> hLib<br /><br /><br /><span style=\"color: #00C800;\">FUNCTION</span> MAIN<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">LOCAL</span> cFrom &nbsp; &nbsp; := <span style=\"color: #ff0000;\">\"\"</span><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">LOCAL</span> cServer &nbsp; := <span style=\"color: #ff0000;\">\"\"</span><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">LOCAL</span> cTo &nbsp; &nbsp; &nbsp; := <span style=\"color: #ff0000;\">\"\"</span><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">LOCAL</span> cSubjeCt &nbsp;:= <span style=\"color: #ff0000;\">\"\"</span><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">LOCAL</span> cMessage &nbsp;:= <span style=\"color: #ff0000;\">\"\"</span><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">LOCAL</span> cSender &nbsp; := <span style=\"color: #ff0000;\">\"\"</span><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">LOCAL</span> cUser &nbsp; &nbsp; := <span style=\"color: #ff0000;\">\"\"</span><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">LOCAL</span> cPassword := <span style=\"color: #ff0000;\">\"\"</span><br /><br />&nbsp; &nbsp; ? SENDMAIL<span style=\"color: #000000;\">&#40;</span> cFrom, cServer, cTo, cSubject, cMessage, , cSender, cUser, cPassword <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span><br /><br /><br /><span style=\"color: #00C800;\">FUNCTION</span> SENDMAIL<span style=\"color: #000000;\">&#40;</span> cFrom, cServer, cTo, cSubject, cMessage, aAttach, cSender, cUser, cPassword, aCc, lHtml, cPort, lNotification <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">LOCAL</span> cMsgFile := CTEMPFILE<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">LOCAL</span> cCmd := <span style=\"color: #ff0000;\">\"SndMail -f \"</span> + cFrom + <span style=\"color: #ff0000;\">\" -X \"</span> + cServer + <span style=\"color: #ff0000;\">\" -r \"</span> + cTo + <span style=\"color: #ff0000;\">\" -s \"</span> + <span style=\"color: #000000;\">&#91;</span><span style=\"color: #ff0000;\">\"] + cSubject + [\"</span><span style=\"color: #000000;\">&#93;</span> + <span style=\"color: #ff0000;\">\" -b \"</span> + cMsgFile<br /><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">LOCAL</span> nRes<br /><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">LOCAL</span> i<br /><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">DEFAULT</span> lHtml := <span style=\"color: #ff0000;\">\"<html\"</span> $ LOWER<span style=\"color: #000000;\">&#40;</span> cMessage <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; MEMOWRIT<span style=\"color: #000000;\">&#40;</span> cMsgFile, cMessage + CRLF <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">IF</span> !EMPTY<span style=\"color: #000000;\">&#40;</span> aAttach <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">FOR</span> i = <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">TO</span> LEN<span style=\"color: #000000;\">&#40;</span> aAttach <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cCmd += <span style=\"color: #ff0000;\">\" -a \"</span> + <span style=\"color: #000000;\">&#91;</span><span style=\"color: #ff0000;\">\"] + aAttach[ i ] + [\"</span><span style=\"color: #000000;\">&#93;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">NEXT</span><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">ENDIF</span><br /><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">IF</span> !EMPTY<span style=\"color: #000000;\">&#40;</span> cSender <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; cCmd += <span style=\"color: #ff0000;\">\" -F \"</span> + <span style=\"color: #000000;\">&#91;</span><span style=\"color: #ff0000;\">\"] + cSender + [\"</span><span style=\"color: #000000;\">&#93;</span><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">ENDIF</span><br /><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">IF</span> !EMPTY<span style=\"color: #000000;\">&#40;</span> cUser <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; cCmd += <span style=\"color: #ff0000;\">\" -h LOGIN -u \"</span> + cUser<br />&nbsp; &nbsp; <span style=\"color: #00C800;\">ENDIF</span><br /><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">IF</span> !EMPTY<span style=\"color: #000000;\">&#40;</span> cPassword <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; cCmd += <span style=\"color: #ff0000;\">\" -p \"</span> + cPassword<br />&nbsp; &nbsp; <span style=\"color: #00C800;\">ENDIF</span><br /><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">IF</span> !EMPTY<span style=\"color: #000000;\">&#40;</span> aCc <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">FOR</span> i = <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">TO</span> LEN<span style=\"color: #000000;\">&#40;</span> aCc <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cCmd += <span style=\"color: #ff0000;\">\" -c \"</span> + <span style=\"color: #000000;\">&#91;</span><span style=\"color: #ff0000;\">\"] + aCc[ i ] + [\"</span><span style=\"color: #000000;\">&#93;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">NEXT</span><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">ENDIF</span><br /><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">IF</span> lHtml<br />&nbsp; &nbsp; &nbsp; &nbsp; cCmd += <span style=\"color: #ff0000;\">\" -H\"</span><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">ENDIF</span><br /><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">IF</span> !EMPTY<span style=\"color: #000000;\">&#40;</span> cPort <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; cCmd += <span style=\"color: #ff0000;\">\" -P \"</span> + cPort<br />&nbsp; &nbsp; <span style=\"color: #00C800;\">ENDIF</span><br /><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">IF</span> !EMPTY<span style=\"color: #000000;\">&#40;</span> lNotification <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; cCmd += <span style=\"color: #ff0000;\">\" -t \"</span> + <span style=\"color: #000000;\">&#91;</span><span style=\"color: #ff0000;\">\"] + \"</span>Disposition-Notification-<span style=\"color: #0000ff;\">To</span>: <span style=\"color: #ff0000;\">\" + cFrom + [\"</span><span style=\"color: #000000;\">&#93;</span><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">ENDIF</span><br /><br />&nbsp; &nbsp; hDLL = LOADLIBRARY<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"sndmail.dll\"</span> <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; SMTPLIBOPEN<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; nRes = SMTPSENDMAIL<span style=\"color: #000000;\">&#40;</span> cCmd <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; SMTPLIBCLOSE<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; FREELIBRARY<span style=\"color: #000000;\">&#40;</span> hDLL <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; FERASE<span style=\"color: #000000;\">&#40;</span> cMsgFile <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">RETURN</span> nRes = <span style=\"color: #000000;\">0</span><br /><br /><br />DLL <span style=\"color: #00C800;\">STATIC</span> <span style=\"color: #00C800;\">FUNCTION</span> SMTPLIBOPEN<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> AS VOID;<br />&nbsp; &nbsp; PASCAL <span style=\"color: #0000ff;\">FROM</span> <span style=\"color: #ff0000;\">\"USmtpLibOpen\"</span> LIB hLib<br /><br />DLL <span style=\"color: #00C800;\">STATIC</span> <span style=\"color: #00C800;\">FUNCTION</span> SMTPSENDMAIL<span style=\"color: #000000;\">&#40;</span> cCmd AS STRING <span style=\"color: #000000;\">&#41;</span> AS LONG;<br />&nbsp; &nbsp; PASCAL <span style=\"color: #0000ff;\">FROM</span> <span style=\"color: #ff0000;\">\"USmtpCmdLineSendMail\"</span> LIB hLib<br /><br />DLL <span style=\"color: #00C800;\">STATIC</span> <span style=\"color: #00C800;\">FUNCTION</span> SMTPLIBCLOSE<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> AS VOID;<br />&nbsp; &nbsp; PASCAL <span style=\"color: #0000ff;\">FROM</span> <span style=\"color: #ff0000;\">\"USmtpLibClose\"</span> LIB hLib</div>[/code:26kgtr9f]\n\nEMG", "time": "11:44", "topic": "A tool to send email ?", "username": "Enrico Maria Giordano" } ]
A tool to send email ?
[ { "date": "2011-05-07", "forum": "FiveWin for Harbour/xHarbour", "text": "Enrico:\n\nThanks so much for your sample, I'll test it.\n\nBest regards", "time": "13:07", "topic": "A tool to send email ?", "username": "Armando" } ]
A tool to send email ?
[ { "date": "2011-05-06", "forum": "FiveWin for Harbour/xHarbour", "text": "I'm using SndMail:\n\n[url:na6frzwh]http&#58;//www&#46;xmailserver&#46;org/davide&#46;html[/url:na6frzwh]\n\nEMG", "time": "21:04", "topic": "A tool to send email ?", "username": "Enrico Maria Giordano" } ]
A tool to send email ?
[ { "date": "2011-05-07", "forum": "FiveWin for Harbour/xHarbour", "text": "Thanks a lot Enrico.\n\nIs it possible a small sample <!-- s:oops: --><img src=\"{SMILIES_PATH}/icon_redface.gif\" alt=\":oops:\" title=\"Embarassed\" /><!-- s:oops: --> \n\nBest regards", "time": "02:34", "topic": "A tool to send email ?", "username": "Armando" } ]
A tool to send email ?
[ { "date": "2011-05-10", "forum": "FiveWin for Harbour/xHarbour", "text": "Enrico,\n\nthanks a lot for the sample and your help !!!\n\nArmando,\n\nchange hDLL for hLib.\n\nBest regards,\n\nFelix", "time": "10:25", "topic": "A tool to send email ?", "username": "Baxajaun" } ]
A tool to send email ?
[ { "date": "2011-05-10", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"Baxajaun\":oxlqv7c5]change hDLL for hLib.[/quote:oxlqv7c5]\n\nSorry, my fault.\n\nEMG", "time": "10:47", "topic": "A tool to send email ?", "username": "Enrico Maria Giordano" } ]
A tool to send email ?
[ { "date": "2011-05-10", "forum": "FiveWin for Harbour/xHarbour", "text": "Hi friends...\n\ncame out this error when compiling\n\nError: 'D:\\SOFT\\SNDMAIL\\SNDMAIL-2.5\\SNDMAIL.LIB' contains invalid OMF record,", "time": "17:20", "topic": "A tool to send email ?", "username": "Willi Quintana" } ]
A tool to send email ?
[ { "date": "2011-05-10", "forum": "FiveWin for Harbour/xHarbour", "text": "You don't have to link sndmail.lib. Use sndmail.dll only.\n\nEMG", "time": "17:26", "topic": "A tool to send email ?", "username": "Enrico Maria Giordano" } ]
A tool to send email ?
[ { "date": "2011-05-10", "forum": "FiveWin for Harbour/xHarbour", "text": "Hi,,, (thanks Giordano)\nany example with hotmail???\nthis is my code:\n[code=fw:1aombo9n]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /> cFrom     := <span style=\"color: #ff0000;\">\"cliente@hotmail.com\"</span><br /> cServer   := <span style=\"color: #ff0000;\">\"smtp.live.com\"</span><br /> cTo       := <span style=\"color: #ff0000;\">\"willi@hotmail.com\"</span><br /> cSubject  := <span style=\"color: #ff0000;\">\"error system\"</span><br /> cMessage  := memoread<span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"error.log\"</span><span style=\"color: #000000;\">&#41;</span><br /> cSender   := <span style=\"color: #ff0000;\">\"\"</span><br /> cUserm    := <span style=\"color: #ff0000;\">\"cliente\"</span><br /> cPassm    := <span style=\"color: #ff0000;\">\"12345678\"</span><br /> ? SENDMAIL<span style=\"color: #000000;\">&#40;</span> cFrom, cServer, cTo, cSubject, cMessage, , cSender, cUserm, cPassm <span style=\"color: #000000;\">&#41;</span><br /> </div>[/code:1aombo9n]\nreturn .F.\n\nsuggestions??", "time": "17:56", "topic": "A tool to send email ?", "username": "Willi Quintana" } ]
A tool to send email ?
[ { "date": "2011-05-10", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"Willi Quintana\":38qvr7xe]Hi,,, (thanks Giordano)[/quote:38qvr7xe]\n\nMy name is Enrico. <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->\n\n[quote=\"Willi Quintana\":38qvr7xe]any example with hotmail???[/quote:38qvr7xe]\n\nNo, sorry. It should work. Does it work using Outlook or similar email apps?\n\nEMG", "time": "21:15", "topic": "A tool to send email ?", "username": "Enrico Maria Giordano" } ]
A tool to send email ?
[ { "date": "2011-05-19", "forum": "FiveWin for Harbour/xHarbour", "text": "hotmail \n\n-P port Set SMTP port { 25 }\n\nport 25 or 995", "time": "16:45", "topic": "A tool to send email ?", "username": "zazibr" } ]
A tool to send email ?
[ { "date": "2016-06-13", "forum": "FiveWin for Harbour/xHarbour", "text": "Enrico,\n\nI tested Your sample, but nothing happens\n\nFUNCTION MAIN()\n[color=#FF0000:3er17qi6]// AOL SMTP-Server ( infos from internet ):\n// smtp.de.aol.com for emails ending with aol.com\n// login for the SMTP-Server is needed. \n// username and password[/color:3er17qi6]\n[color=#0000FF:3er17qi6]LOCAL cFrom := \"Uwe\"\nLOCAL cServer := \"smtp.de.aol.com\"\nLOCAL cTo := \"esckoenig@aol.com\" // my email for testing the mailbox for incomming emails\nLOCAL cSubjeCt := \"Test\"\nLOCAL cMessage := \"Test\"\nLOCAL cSender := \"Uwe\"\nLOCAL cUser := \"aoluser\" // adding my username\nLOCAL cPassword := \"aolpassword\" // adding my password\n\n? SENDMAIL( cFrom, cServer, cTo, cSubject, cMessage, , cSender, cUser, cPassword )\n\nRETURN NIL\nFUNCTION SENDMAIL( cFrom, cServer, cTo, cSubject, cMessage, aAttach, cSender, cUser, cPassword, aCc, lHtml, cPort, lNotification )\n...\n...[/color:3er17qi6]\n\nmaybe something missing or not possible to use it ?\nor is there maybe another working sample in the meantime \nbecause the post is dated 2011 ?\n\nregards\nUwe <!-- s:?: --><img src=\"{SMILIES_PATH}/icon_question.gif\" alt=\":?:\" title=\"Question\" /><!-- s:?: -->", "time": "14:50", "topic": "A tool to send email ?", "username": "ukoenig" } ]
A tool to send email ?
[ { "date": "2016-06-13", "forum": "FiveWin for Harbour/xHarbour", "text": "I don't use sndmail.dll any longer. Now I'm using CDO.Message:\n\n[code=fw:1pncxhlg]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00C800;\">FUNCTION</span> SENDMAIL<span style=\"color: #000000;\">&#40;</span> cFrom, cServer, cTo, cSubject, cMessage, aAttach, cSender, cUser, cPassword, aCc, lHtml, cPort, lNotification, lSSL <span style=\"color: #000000;\">&#41;</span><br /><br />    <span style=\"color: #00C800;\">LOCAL</span> lOk := .F.<br /><br />    <span style=\"color: #00C800;\">LOCAL</span> oCfg, oMsg<br /><br />    <span style=\"color: #00C800;\">LOCAL</span> cCc := <span style=\"color: #ff0000;\">\"\"</span><br /><br />    <span style=\"color: #00C800;\">LOCAL</span> i<br /><br />    <span style=\"color: #00C800;\">DEFAULT</span> lHtml         := <span style=\"color: #ff0000;\">\"<html\"</span> $ LOWER<span style=\"color: #000000;\">&#40;</span> cMessage <span style=\"color: #000000;\">&#41;</span><br />    <span style=\"color: #00C800;\">DEFAULT</span> lNotification := .F.<br />    <span style=\"color: #00C800;\">DEFAULT</span> lSSL          := .F.<br /><br />    <span style=\"color: #00C800;\">TRY</span><br />        oCfg = CREATEOBJECT<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"CDO.Configuration\"</span> <span style=\"color: #000000;\">&#41;</span><br /><br />        oCfg:<span style=\"color: #000000;\">Item</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"http://schemas.microsoft.com/cdo/configuration/smtpserver\"</span> <span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #000000;\">Value</span> = cServer<br /><br />        <span style=\"color: #00C800;\">IF</span> !EMPTY<span style=\"color: #000000;\">&#40;</span> cPort <span style=\"color: #000000;\">&#41;</span><br />            oCfg:<span style=\"color: #000000;\">Item</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"http://schemas.microsoft.com/cdo/configuration/smtpserverport\"</span> <span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #000000;\">Value</span> := VAL<span style=\"color: #000000;\">&#40;</span> cPort <span style=\"color: #000000;\">&#41;</span><br />        <span style=\"color: #00C800;\">ENDIF</span><br /><br />        oCfg:<span style=\"color: #000000;\">Item</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"http://schemas.microsoft.com/cdo/configuration/sendusing\"</span> <span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #000000;\">Value</span> = <span style=\"color: #000000;\">2</span><br />        oCfg:<span style=\"color: #000000;\">Item</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"http://schemas.microsoft.com/cdo/configuration/smtpauthenticate\"</span> <span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #000000;\">Value</span> = .F.<br /><br />        <span style=\"color: #00C800;\">IF</span> !EMPTY<span style=\"color: #000000;\">&#40;</span> cUser <span style=\"color: #000000;\">&#41;</span> .AND. !EMPTY<span style=\"color: #000000;\">&#40;</span> cPassword <span style=\"color: #000000;\">&#41;</span><br />            oCfg:<span style=\"color: #000000;\">Item</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"http://schemas.microsoft.com/cdo/configuration/smtpauthenticate\"</span> <span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #000000;\">Value</span> = .T.<br />            oCfg:<span style=\"color: #000000;\">Item</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"http://schemas.microsoft.com/cdo/configuration/sendusername\"</span> <span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #000000;\">Value</span> = cUser<br />            oCfg:<span style=\"color: #000000;\">Item</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"http://schemas.microsoft.com/cdo/configuration/sendpassword\"</span> <span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #000000;\">Value</span> := cPassword<br />            oCfg:<span style=\"color: #000000;\">Item</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"http://schemas.microsoft.com/cdo/configuration/smtpusessl\"</span> <span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #000000;\">Value</span> = lSSL<br />        <span style=\"color: #00C800;\">ENDIF</span><br /><br />        oCfg:<span style=\"color: #0000ff;\">Update</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />        oMsg = CREATEOBJECT<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"CDO.Message\"</span> <span style=\"color: #000000;\">&#41;</span><br /><br />        oMsg:<span style=\"color: #000000;\">Configuration</span> = oCfg<br /><br />        <span style=\"color: #00C800;\">IF</span> !EMPTY<span style=\"color: #000000;\">&#40;</span> cSender <span style=\"color: #000000;\">&#41;</span><br />            cFrom = <span style=\"color: #000000;\">&#91;</span><span style=\"color: #ff0000;\">\"] + cSender + [\"</span><span style=\"color: #000000;\">&#93;</span> + <span style=\"color: #ff0000;\">\" <\"</span> + cFrom + <span style=\"color: #ff0000;\">\">\"</span><br />        <span style=\"color: #00C800;\">ENDIF</span><br /><br />        oMsg:<span style=\"color: #0000ff;\">From</span>    = cFrom<br />        oMsg:<span style=\"color: #0000ff;\">To</span>      = cTo<br />        oMsg:<span style=\"color: #0000ff;\">Subject</span> = cSubject<br /><br />        <span style=\"color: #00C800;\">IF</span> !EMPTY<span style=\"color: #000000;\">&#40;</span> aCc <span style=\"color: #000000;\">&#41;</span><br />            <span style=\"color: #00C800;\">FOR</span> i = <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">TO</span> LEN<span style=\"color: #000000;\">&#40;</span> aCc <span style=\"color: #000000;\">&#41;</span><br />                <span style=\"color: #00C800;\">IF</span> i > <span style=\"color: #000000;\">1</span><br />                    cCc += <span style=\"color: #ff0000;\">\";\"</span><br />                <span style=\"color: #00C800;\">ENDIF</span><br /><br />                cCc += aCc<span style=\"color: #000000;\">&#91;</span> i <span style=\"color: #000000;\">&#93;</span><br />            <span style=\"color: #00C800;\">NEXT</span><br /><br />            oMsg:<span style=\"color: #000000;\">CC</span> = cCc<br />        <span style=\"color: #00C800;\">ENDIF</span><br /><br />        <span style=\"color: #00C800;\">IF</span> !lHtml<br />            oMsg:<span style=\"color: #000000;\">TextBody</span> = cMessage<br />        <span style=\"color: #00C800;\">ELSE</span><br />            oMsg:<span style=\"color: #000000;\">HTMLBody</span> = cMessage<br />        <span style=\"color: #00C800;\">ENDIF</span><br /><br />        <span style=\"color: #00C800;\">IF</span> !EMPTY<span style=\"color: #000000;\">&#40;</span> aAttach <span style=\"color: #000000;\">&#41;</span><br />            <span style=\"color: #00C800;\">FOR</span> i = <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">TO</span> LEN<span style=\"color: #000000;\">&#40;</span> aAttach <span style=\"color: #000000;\">&#41;</span><br />                oMsg:<span style=\"color: #000000;\">AddAttachment</span><span style=\"color: #000000;\">&#40;</span> aAttach<span style=\"color: #000000;\">&#91;</span> i <span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#41;</span><br />            <span style=\"color: #00C800;\">NEXT</span><br />        <span style=\"color: #00C800;\">ENDIF</span><br /><br />        <span style=\"color: #00C800;\">IF</span> lNotification<br />            oMsg:<span style=\"color: #000000;\">Fields</span>:<span style=\"color: #000000;\">Item</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"urn:schemas:mailheader:disposition-notification-to\"</span> <span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #000000;\">Value</span> = cFrom<br />            oMsg:<span style=\"color: #000000;\">Fields</span>:<span style=\"color: #0000ff;\">Update</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />        <span style=\"color: #00C800;\">ENDIF</span><br /><br />        oMsg:<span style=\"color: #000000;\">Send</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />        lOk = .T.<br />    CATCH<br />    END<br /><br />    <span style=\"color: #00C800;\">RETURN</span> lOk</div>[/code:1pncxhlg]\n\nEMG", "time": "15:20", "topic": "A tool to send email ?", "username": "Enrico Maria Giordano" } ]
A tool to send email ?
[ { "date": "2016-06-13", "forum": "FiveWin for Harbour/xHarbour", "text": "Enrico,\n\nthank You very much for the sample.\nI will add it to my downloadsection and test it\n\nregards\nUwe <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D -->", "time": "15:25", "topic": "A tool to send email ?", "username": "ukoenig" } ]
A tool to send email ?
[ { "date": "2016-06-13", "forum": "FiveWin for Harbour/xHarbour", "text": "Enrico,\n\nPlease you can set an example for sendmail (...), for the case of using cServer ?", "time": "15:46", "topic": "A tool to send email ?", "username": "albeiroval" } ]
A tool to send email ?
[ { "date": "2016-06-13", "forum": "FiveWin for Harbour/xHarbour", "text": "Sorry, I haven't understood your question...\n\nEMG", "time": "16:01", "topic": "A tool to send email ?", "username": "Enrico Maria Giordano" } ]
A tool to send email ?
[ { "date": "2016-06-13", "forum": "FiveWin for Harbour/xHarbour", "text": "Perfect! Thanks.\n\n[img:3k3ooe82]http&#58;//i&#46;imgur&#46;com/En2CbdA&#46;png[/img:3k3ooe82]\n\nRegards, saludos.", "time": "16:19", "topic": "A tool to send email ?", "username": "karinha" } ]
A tool to send email ?
[ { "date": "2016-06-13", "forum": "FiveWin for Harbour/xHarbour", "text": "link for download sndmail.dll\n\n<!-- m --><a class=\"postlink\" href=\"http://www.xmailserver.org/SndMail-2.5.zip\">http://www.xmailserver.org/SndMail-2.5.zip</a><!-- m -->\n\n[code=fw:3aduxr3u]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"Fivewin.ch\"</span><br /><br /><span style=\"color: #00C800;\">STATIC</span> hDll<br /><br /><span style=\"color: #00C800;\">FUNCTION</span> MAIN<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">LOCAL</span> cFrom &nbsp; &nbsp; := <span style=\"color: #ff0000;\">\"joao@pleno.com.br\"</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">LOCAL</span> cServer &nbsp; := <span style=\"color: #ff0000;\">\"smtp.pleno.com.br\"</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">LOCAL</span> cTo &nbsp; &nbsp; &nbsp; := <span style=\"color: #ff0000;\">\"joao@pleno.com.br\"</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">LOCAL</span> cSubjeCt &nbsp;:= <span style=\"color: #ff0000;\">\"Test with sendmail.dll\"</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">LOCAL</span> cMessage &nbsp;:= <span style=\"color: #ff0000;\">\"Test with sendmail.dll - Email Body\"</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">LOCAL</span> cSender &nbsp; := <span style=\"color: #ff0000;\">\"joao@pleno.com.br\"</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">LOCAL</span> cUser &nbsp; &nbsp; := <span style=\"color: #ff0000;\">\"joao@pleno.com.br\"</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">LOCAL</span> cPassword := <span style=\"color: #ff0000;\">\"xxxx999\"</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">LOCAL</span> aAttach := <span style=\"color: #000000;\">&#123;</span><span style=\"color: #000000;\">&#125;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">LOCAL</span> aCc &nbsp; &nbsp; := <span style=\"color: #ff0000;\">\"\"</span> &nbsp;<span style=\"color: #B900B9;\">//???</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">LOCAL</span> lHtml &nbsp; := .F.<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">LOCAL</span> cPort := <span style=\"color: #ff0000;\">\"587\"</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">LOCAL</span> lNotification := .F. <span style=\"color: #B900B9;\">// cFrom</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">LOCAL</span> lRet<br /><br />&nbsp; &nbsp;lRet := SENDMAIL<span style=\"color: #000000;\">&#40;</span> cFrom, cServer, cTo, cSubject, cMessage, cSender, cUser, cPassword, aAttach, aCc, lHtml, cPort, lNotification <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">IF</span> lRet<br /><br />&nbsp; &nbsp; &nbsp; ? <span style=\"color: #ff0000;\">\"Message sent successfully\"</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">ELSE</span><br /><br />&nbsp; &nbsp; &nbsp; ? <span style=\"color: #ff0000;\">\"Unsent message check windows live mail\"</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">ENDIF</span><br /><br /><span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span><br /><br /><span style=\"color: #00C800;\">FUNCTION</span> SENDMAIL<span style=\"color: #000000;\">&#40;</span> cFrom, cServer, cTo, cSubject, cMessage, cSender, cUser, cPassword, aAttach, aCc, lHtml, cPort, lNotification <span style=\"color: #000000;\">&#41;</span><br /><br /><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">LOCAL</span> cMsgFile := CTEMPFILE<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">LOCAL</span> cCmd := <span style=\"color: #ff0000;\">\"SndMail -f \"</span> + cFrom + <span style=\"color: #ff0000;\">\" -X \"</span> + cServer + <span style=\"color: #ff0000;\">\" -r \"</span> + cTo + <span style=\"color: #ff0000;\">\" -s \"</span> + <span style=\"color: #000000;\">&#91;</span><span style=\"color: #ff0000;\">\"] + cSubject + [\"</span><span style=\"color: #000000;\">&#93;</span> + <span style=\"color: #ff0000;\">\" -b \"</span> + cMsgFile<br /><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">LOCAL</span> nRes<br /><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">LOCAL</span> i<br /><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">DEFAULT</span> lHtml := <span style=\"color: #ff0000;\">\"<html\"</span> $ LOWER<span style=\"color: #000000;\">&#40;</span> cMessage <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; MEMOWRIT<span style=\"color: #000000;\">&#40;</span> cMsgFile, cMessage + CRLF <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">IF</span> !EMPTY<span style=\"color: #000000;\">&#40;</span> aAttach <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">FOR</span> i = <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">TO</span> LEN<span style=\"color: #000000;\">&#40;</span> aAttach <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cCmd += <span style=\"color: #ff0000;\">\" -a \"</span> + <span style=\"color: #000000;\">&#91;</span><span style=\"color: #ff0000;\">\"] + aAttach[ i ] + [\"</span><span style=\"color: #000000;\">&#93;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">NEXT</span><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">ENDIF</span><br /><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">IF</span> !EMPTY<span style=\"color: #000000;\">&#40;</span> cSender <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; cCmd += <span style=\"color: #ff0000;\">\" -F \"</span> + <span style=\"color: #000000;\">&#91;</span><span style=\"color: #ff0000;\">\"] + cSender + [\"</span><span style=\"color: #000000;\">&#93;</span><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">ENDIF</span><br /><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">IF</span> !EMPTY<span style=\"color: #000000;\">&#40;</span> cUser <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; cCmd += <span style=\"color: #ff0000;\">\" -h LOGIN -u \"</span> + cUser<br />&nbsp; &nbsp; <span style=\"color: #00C800;\">ENDIF</span><br /><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">IF</span> !EMPTY<span style=\"color: #000000;\">&#40;</span> cPassword <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; cCmd += <span style=\"color: #ff0000;\">\" -p \"</span> + cPassword<br />&nbsp; &nbsp; <span style=\"color: #00C800;\">ENDIF</span><br /><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">IF</span> !EMPTY<span style=\"color: #000000;\">&#40;</span> aCc <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">FOR</span> i = <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">TO</span> LEN<span style=\"color: #000000;\">&#40;</span> aCc <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cCmd += <span style=\"color: #ff0000;\">\" -c \"</span> + <span style=\"color: #000000;\">&#91;</span><span style=\"color: #ff0000;\">\"] + aCc[ i ] + [\"</span><span style=\"color: #000000;\">&#93;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">NEXT</span><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">ENDIF</span><br /><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">IF</span> lHtml<br />&nbsp; &nbsp; &nbsp; &nbsp; cCmd += <span style=\"color: #ff0000;\">\" -H\"</span><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">ENDIF</span><br /><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">IF</span> !EMPTY<span style=\"color: #000000;\">&#40;</span> cPort <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; cCmd += <span style=\"color: #ff0000;\">\" -P \"</span> + cPort<br />&nbsp; &nbsp; <span style=\"color: #00C800;\">ENDIF</span><br /><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">IF</span> !EMPTY<span style=\"color: #000000;\">&#40;</span> lNotification <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;cCmd += <span style=\"color: #ff0000;\">\" -t \"</span> + <span style=\"color: #000000;\">&#91;</span><span style=\"color: #ff0000;\">\"] + \"</span>Disposition-Notification-<span style=\"color: #0000ff;\">To</span>: <span style=\"color: #ff0000;\">\" + cFrom + [\"</span><span style=\"color: #000000;\">&#93;</span><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">ENDIF</span><br /><br />&nbsp; &nbsp; hDLL = LOADLIBRARY<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"sndmail.dll\"</span> <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">IF</span> hDll = <span style=\"color: #000000;\">0</span><br />&nbsp; &nbsp; &nbsp; &nbsp;? <span style=\"color: #000000;\">&#91;</span>Install sendmail.dll.. <span style=\"color: #000000;\">&#93;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;__QUIT<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">ELSE</span><br />&nbsp; &nbsp; &nbsp; &nbsp;SMTPLIBOPEN<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #B900B9;\">// OPEN sndmail.dll</span><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">ENDIF</span><br /><br />&nbsp; &nbsp; nRes = SMTPSENDMAIL<span style=\"color: #000000;\">&#40;</span> cCmd <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; SMTPLIBCLOSE<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; FREELIBRARY<span style=\"color: #000000;\">&#40;</span> hDLL <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; FERASE<span style=\"color: #000000;\">&#40;</span> cMsgFile <span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #00C800;\">RETURN</span> nRes = <span style=\"color: #000000;\">0</span><br /><br />DLL <span style=\"color: #00C800;\">STATIC</span> <span style=\"color: #00C800;\">FUNCTION</span> SMTPLIBOPEN<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> AS VOID;<br />&nbsp; &nbsp; PASCAL <span style=\"color: #0000ff;\">FROM</span> <span style=\"color: #ff0000;\">\"USmtpLibOpen\"</span> LIB hDll<br /><br />DLL <span style=\"color: #00C800;\">STATIC</span> <span style=\"color: #00C800;\">FUNCTION</span> SMTPSENDMAIL<span style=\"color: #000000;\">&#40;</span> cCmd AS STRING <span style=\"color: #000000;\">&#41;</span> AS LONG;<br />&nbsp; &nbsp; PASCAL <span style=\"color: #0000ff;\">FROM</span> <span style=\"color: #ff0000;\">\"USmtpCmdLineSendMail\"</span> LIB hDll<br /><br />DLL <span style=\"color: #00C800;\">STATIC</span> <span style=\"color: #00C800;\">FUNCTION</span> SMTPLIBCLOSE<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> AS VOID;<br />&nbsp; &nbsp; PASCAL <span style=\"color: #0000ff;\">FROM</span> <span style=\"color: #ff0000;\">\"USmtpLibClose\"</span> LIB hDll<br /><br /><span style=\"color: #B900B9;\">// END OF PROGRAM</span><br />&nbsp;</div>[/code:3aduxr3u]\n\u001a", "time": "16:23", "topic": "A tool to send email ?", "username": "karinha" } ]
A tool to send email ?
[ { "date": "2016-06-13", "forum": "FiveWin for Harbour/xHarbour", "text": "[url:23hhthgx]http&#58;//www&#46;4shared&#46;com/zip/yOCLl-p-ba/SNDMAIL&#46;html[/url:23hhthgx]", "time": "16:44", "topic": "A tool to send email ?", "username": "karinha" } ]
A tool to send email ?
[ { "date": "2016-06-13", "forum": "FiveWin for Harbour/xHarbour", "text": "Enrico,\n\npuedes mostrar un ejemplo de uso de sendmail() con el parametro cServer ?\n\nGoogle translator :\n\nyou can show an example of using sendmail () with the parameter cServer?", "time": "20:13", "topic": "A tool to send email ?", "username": "albeiroval" } ]
A tool to send email ?
[ { "date": "2016-06-13", "forum": "FiveWin for Harbour/xHarbour", "text": "The parameter cServer is the smtp server used to send the email.\n\nEMG", "time": "21:43", "topic": "A tool to send email ?", "username": "Enrico Maria Giordano" } ]
A tool to send email ?
[ { "date": "2016-09-19", "forum": "FiveWin for Harbour/xHarbour", "text": "Is it working to send with TLS/e-mails?", "time": "15:47", "topic": "A tool to send email ?", "username": "vilian" } ]
A tool to send email ?
[ { "date": "2016-09-23", "forum": "FiveWin for Harbour/xHarbour", "text": "> Is it working to send with TLS/e-mails?\nIn my opinion the answer is NO\nBye", "time": "16:52", "topic": "A tool to send email ?", "username": "MarcoBoschi" } ]
A tool to send email ?
[ { "date": "2016-09-23", "forum": "FiveWin for Harbour/xHarbour", "text": "Is there some way to do this ?", "time": "18:10", "topic": "A tool to send email ?", "username": "vilian" } ]
A tool to send email ?
[ { "date": "2016-09-23", "forum": "FiveWin for Harbour/xHarbour", "text": "Please read this:\n\n[url:2krcw3ju]http&#58;//forums&#46;fivetechsupport&#46;com/viewtopic&#46;php?f=3&t=21490#p191444[/url:2krcw3ju]\n\nEMG", "time": "21:10", "topic": "A tool to send email ?", "username": "Enrico Maria Giordano" } ]
A tool to send email ?
[ { "date": "2019-01-09", "forum": "FiveWin for Harbour/xHarbour", "text": "Hello,\n\nI'm working on a toolbox of netfunctions to control\nany network-error.\n\nYou can open a DBF twice and test the different netfunctions.\n\nSample 1 : trying to ZAP a DBF\nit will show your own defined error-messages.\n\n[img:35em2fop]http&#58;//www&#46;pflegeplus&#46;com/IMAGES/Network2&#46;jpg[/img:35em2fop]\n\nSample 2 : trying to RECALL a record that is in use\nit will show your own defined error-messages.\n\n[img:35em2fop]http&#58;//www&#46;pflegeplus&#46;com/IMAGES/Network3&#46;jpg[/img:35em2fop]\n\nI hope it will be usable.\n\n// ---------- NET - FUNCTIONS ----------------------------\n// --------------------------------------------------------------------\n\n[color=#0040FF:35em2fop]FUNCTION NET_USE ( cDBName, cAlias, nTrials, lNet )\nFUNCTION NET_RLOCK( nTrials )\nFUNCTION NET_ULOCK()\nFUNCTION NET_FLOCK ( nTrials )\nFUNCTION NET_WAIT ( nTrials )\nFUNCTION SHOW_WAIT( nTrials, oMeter, oText1 )\nFUNCTION NET_DELETE ( nTrials )\nFUNCTION NET_RECALL ( nTrials )\nFUNCTION NET_APPEND ( nTrials )\nFUNCTION NET_PACK( cDBName, cAlias, nTrials )\nFUNCTION NET_PACK1( cDBName, cAlias, nTrials )\nFUNCTION PACK1()\nFUNCTION NET_ZAP( cDBName, cAlias, nTrials )\nFUNCTION ZAP1()\nFUNCTION NET_CLOSE( nTrials )\nFUNCTION NET_ORDER\nFUNCTION NET_COPY ( cALIAS, nStart, nEnd, nTrials )[/color:35em2fop]\n\nsample : open a DBF\n\n[code=fw:35em2fop]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #B900B9;\">// ---------- NET - FUNCTIONS ----------------------------</span><br /><span style=\"color: #B900B9;\">// --------------------------------------------------------------------</span><br /><br /><span style=\"color: #00C800;\">FUNCTION</span> NET_USE <span style=\"color: #000000;\">&#40;</span> cDBName, cAlias, nTrials, lNet <span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">LOCAL</span> lReturn   := .T.<br /><span style=\"color: #00C800;\">LOCAL</span> lOpen     := .F.<br /><span style=\"color: #00C800;\">LOCAL</span> nTrcount  := nTrials<br /><span style=\"color: #00C800;\">LOCAL</span> YesNo := .F.<br /><br /><span style=\"color: #B900B9;\">// SHARED    all Users</span><br /><span style=\"color: #B900B9;\">// EXCLUSIVE  1 User</span><br /><br /><span style=\"color: #00C800;\">IF</span> !File<span style=\"color: #000000;\">&#40;</span> cDBName <span style=\"color: #000000;\">&#41;</span><br />    nMsgBox <span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"File -> \"</span> + cDBName + <span style=\"color: #ff0000;\">\" is missing !\"</span>, <span style=\"color: #ff0000;\">\"Attention !\"</span><span style=\"color: #000000;\">&#41;</span><br />    SET RESOURCES <span style=\"color: #0000ff;\">to</span><br />    set _3DLOOK OFF<br />    FreeLibrary<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />    CLOSE DATABASE<br />    QUIT<br /><span style=\"color: #00C800;\">ENDIF</span><br /><br /><span style=\"color: #00C800;\">DO</span> <span style=\"color: #00C800;\">WHILE</span> nTrcount <= nTrials<br />    <span style=\"color: #00C800;\">IF</span> !lNet<br />        USE &cDBName <span style=\"color: #0000ff;\">ALIAS</span> &cAlias <span style=\"color: #00C800;\">NEW</span> VIA <span style=\"color: #ff0000;\">\"DBFCDX\"</span> EXCLUSIVE<br />    <span style=\"color: #00C800;\">ELSE</span><br />        USE &cDBName <span style=\"color: #0000ff;\">ALIAS</span> &cAlias <span style=\"color: #00C800;\">NEW</span> VIA <span style=\"color: #ff0000;\">\"DBFCDX\"</span> SHARED<br />    <span style=\"color: #00C800;\">ENDIF</span><br />    <span style=\"color: #00C800;\">IF</span> !NETERR<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />        lReturn   := .T.<br />    <span style=\"color: #00C800;\">ELSE</span><br />        <span style=\"color: #00C800;\">IF</span> lNet = .T.<br />            Status := <span style=\"color: #ff0000;\">\"SHARED\"</span><br />        <span style=\"color: #00C800;\">ELSE</span><br />            Status := <span style=\"color: #ff0000;\">\"EXCLUSIVE\"</span><br />        <span style=\"color: #00C800;\">ENDIF</span><br />        <span style=\"color: #00C800;\">IF</span> nTrcount = nTrials<br />            xName := WNetGetUser<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />            <span style=\"color: #00C800;\">IF</span> MsgYesNo<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Open \"</span> + Status + <span style=\"color: #ff0000;\">\"  of \"</span> + upper<span style=\"color: #000000;\">&#40;</span>cDBName<span style=\"color: #000000;\">&#41;</span> + <span style=\"color: #ff0000;\">\" not possible !\"</span> + ;<br />                                         <span style=\"color: #ff0000;\">\" try again ?\"</span>, <span style=\"color: #ff0000;\">\"Network-error -> &xName !\"</span> <span style=\"color: #000000;\">&#41;</span><br />                nTrials := nTrcount<br />                <span style=\"color: #00C800;\">IF</span> nTrials > <span style=\"color: #000000;\">0</span>  <br />                    NET_WAIT <span style=\"color: #000000;\">&#40;</span> nTrcount, nTrials <span style=\"color: #000000;\">&#41;</span><br />                <span style=\"color: #00C800;\">ENDIF</span><br />            <span style=\"color: #00C800;\">ELSE</span><br />                lReturn   := .F.<br />                EXIT<br />            <span style=\"color: #00C800;\">ENDIF</span><br />        <span style=\"color: #00C800;\">ENDIF</span><br />    <span style=\"color: #00C800;\">ENDIF</span><br />    nTrials --<br /><span style=\"color: #00C800;\">ENDDO</span><br /><br /><span style=\"color: #00C800;\">RETURN</span> lReturn<br /> </div>[/code:35em2fop]\n\nregards\nUwe <!-- s:?: --><img src=\"{SMILIES_PATH}/icon_question.gif\" alt=\":?:\" title=\"Question\" /><!-- s:?: -->", "time": "19:48", "topic": "A toolbox of netfunctions and tDatabase-tests", "username": "ukoenig" } ]
A toolbox of netfunctions and tDatabase-tests
[ { "date": "2019-01-17", "forum": "FiveWin for Harbour/xHarbour", "text": "Uwe,\n\nYou should be using database objects. Some messaging is already built into TDatabase. If those don't meet your desires then you can subclass and write your own. This much easier than calling a bunch of functions each time you try to lock or save a record. You just do oCustomer:save() and it locks, saves, and unlocks with messaging and retrys if the lock fails. Simple, one line of code.\n\nUsers don't know or care how or where the data resides so I wouldn't be giving them types of messages you are. Give them something simple like \"Update failed to complete, try again?\" They don't care why or the path and name of the data file.", "time": "23:31", "topic": "A toolbox of netfunctions and tDatabase-tests", "username": "James Bott" } ]
A toolbox of netfunctions and tDatabase-tests
[ { "date": "2019-01-18", "forum": "FiveWin for Harbour/xHarbour", "text": "James,\n\nI had a look at TDatabase.\nThat looks much better and I will rebuild my sample\nswitching from the old fashion way to TDatabase.\nIs there somewhere a recommended sample about the usage ?\nI found only little solution parts inside the forum.\n\nregards\nUwe <!-- s:?: --><img src=\"{SMILIES_PATH}/icon_question.gif\" alt=\":?:\" title=\"Question\" /><!-- s:?: -->", "time": "16:05", "topic": "A toolbox of netfunctions and tDatabase-tests", "username": "ukoenig" } ]
A toolbox of netfunctions and tDatabase-tests
[ { "date": "2019-01-24", "forum": "FiveWin for Harbour/xHarbour", "text": "I finished sample 1 and started with a second one using [color=#4000FF:dwfamufb][b:dwfamufb]TDataBase()[/b:dwfamufb][/color:dwfamufb]\ntesting the netfunctions.\nIt is the first time testing TDataBase() and i might be wrong\nand I have to do some changes.\n\nMaybe a language-support is possible like ?\n\n[color=#0000FF:dwfamufb]METHOD Recall(cMsg1, cMsg2) CLASS TDataBase\nMsgAlert( cMsg1, cMsg2 )\n//MsgAlert( \"DataBase in use\", \"Please try again\" )[/color:dwfamufb]\n\nI noticed a problem with PACK and ZAP\n( all other functions are working )\n\nI tested to change from SHARED to EXCLUSIVE because of testing PACK and ZAP.\nA errormessage is shown ( that is Ok ). But in case of a error it must stay SHARED !!!\nBut the status changes to EXCLUSIVE even with the errormessage and crashes on exit-button.\nOpening as a single user it is Ok.\n\nI think the problem belongs to :\n\nMETHOD Open( cAlias, cFile, cDriver, lShared, lReadOnly, cPassword ) CLASS TDataBase\n\n [color=#FF0000:dwfamufb]::Use()[/color:dwfamufb]\n\n[color=#0000FF:dwfamufb]METHOD Use() CLASS TDataBase\n...\n...\n if ::td_ExecLoop( { || dbUseArea( .t., ::cDriver, ::cFile, ::cAlias, ::lShared, ::lReadOnly ) }, ;\n \"Unable to open \" + ::cFile + \". Retry?\" )\n ::SetArea( Select() )\n SELECT 0\n else\n ::nArea := 0\n ::cAlias := \"\"\n\n return .f.\n endif\n...\n...\nreturn ::Used()[/color:dwfamufb]\n\n[code=fw:dwfamufb]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #00C800;\">FUNCTION</span> NET_PACKZAP<span style=\"color: #000000;\">&#40;</span>nStyle<span style=\"color: #000000;\">&#41;</span><br /><br />MsgAlert<span style=\"color: #000000;\">&#40;</span> oCust:<span style=\"color: #000000;\">lShared</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #B900B9;\">// .T. SHARED ok</span><br />oCust:<span style=\"color: #000000;\">Close</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <br />oCust:= TDataBase<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #000000;\">Open</span><span style=\"color: #000000;\">&#40;</span> ,<span style=\"color: #ff0000;\">\"CUSTOMER.dbf\"</span>, <span style=\"color: #ff0000;\">\"DBFCDX\"</span>, .F. <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #B900B9;\">// try open EXCLUSIVE</span><br /><span style=\"color: #B900B9;\">// Errormessage but oCust:lShared() shows .F. ( exclusive )</span><br />MsgAlert<span style=\"color: #000000;\">&#40;</span> oCust:<span style=\"color: #000000;\">lShared</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #B900B9;\">// shows .F. !!! and crashes</span><br /><br /><span style=\"color: #00C800;\">IF</span> oCust:<span style=\"color: #000000;\">lShared</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> = .F.<br />    <span style=\"color: #00C800;\">IF</span> nStyle = <span style=\"color: #000000;\">1</span><br />        oCust:<span style=\"color: #000000;\">Pack</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <br />    <span style=\"color: #00C800;\">ELSE</span><br />        oCust:<span style=\"color: #000000;\">Zap</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <br />    <span style=\"color: #00C800;\">ENDIF</span><br /><span style=\"color: #00C800;\">ELSE</span><br />    MsgAlert<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Not possible to open EXCLUSIVE\"</span> <span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">ENDIF</span><br /><br /><span style=\"color: #B900B9;\">// back opening SHARED</span><br />oCust:<span style=\"color: #000000;\">Close</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <br />oCust:= TDataBase<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #000000;\">Open</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"CUST\"</span>, <span style=\"color: #ff0000;\">\"CUSTOMER\"</span>, <span style=\"color: #ff0000;\">\"DBFCDX\"</span>, .T. <span style=\"color: #000000;\">&#41;</span>  <br /><br /><span style=\"color: #00C800;\">RETURN</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #00C800;\">NIL</span><span style=\"color: #000000;\">&#41;</span><br /> </div>[/code:dwfamufb]\n\n[img:dwfamufb]http&#58;//www&#46;pflegeplus&#46;com/IMAGES/Network6&#46;jpg[/img:dwfamufb]\n\n[img:dwfamufb]http&#58;//www&#46;pflegeplus&#46;com/IMAGES/Network7&#46;jpg[/img:dwfamufb]\n\nregards\nUwe <!-- s:?: --><img src=\"{SMILIES_PATH}/icon_question.gif\" alt=\":?:\" title=\"Question\" /><!-- s:?: -->", "time": "12:43", "topic": "A toolbox of netfunctions and tDatabase-tests", "username": "ukoenig" } ]
A toolbox of netfunctions and tDatabase-tests
[ { "date": "2019-01-24", "forum": "FiveWin for Harbour/xHarbour", "text": "Uwe,\n\nThe code below packs the file just fine.\n\nYour error message indicates that the file was not open. Did you have it open elsewhere in your program? You can't have it open in a browse and then open it again in exclusive use.\n\nJames\n\n\n[code=fw:3nca6zbl]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #B900B9;\">// Test TDatabase:pack()</span><br /><br /><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"fivewin.ch\"</span><br /><br /><span style=\"color: #00C800;\">Function</span> Main<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />    use customer<br />    copy <span style=\"color: #0000ff;\">to</span> temp<br />    use temp<br />    delete all<br />    close<br />    <br />    oCustomers:= TDatabase<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #00C800;\">New</span><span style=\"color: #000000;\">&#40;</span>,<span style=\"color: #ff0000;\">\"temp\"</span>,,.f.<span style=\"color: #000000;\">&#41;</span><br />    oCustomers:<span style=\"color: #000000;\">use</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />    <br />    <span style=\"color: #0000ff;\">msgInfo</span><span style=\"color: #000000;\">&#40;</span> oCustomers:<span style=\"color: #000000;\">used</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>,<span style=\"color: #ff0000;\">\"oCustomers:used()\"</span><span style=\"color: #000000;\">&#41;</span>  <span style=\"color: #B900B9;\">// Returns .T.</span><br />    <br />    <span style=\"color: #00C800;\">if</span> oCustomers:<span style=\"color: #000000;\">used</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />       <span style=\"color: #0000ff;\">msgInfo</span><span style=\"color: #000000;\">&#40;</span> oCustomers:<span style=\"color: #000000;\">lShared</span>, <span style=\"color: #ff0000;\">\"oCustomers:lShared\"</span><span style=\"color: #000000;\">&#41;</span>  <span style=\"color: #B900B9;\">// Returns .F.</span><br />       oCustomers:<span style=\"color: #000000;\">pack</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />    <span style=\"color: #00C800;\">endif</span><br />    <span style=\"color: #0000ff;\">msgInfo</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"Done packing.\"</span><span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #00C800;\">Return</span> <span style=\"color: #00C800;\">nil</span></div>[/code:3nca6zbl]", "time": "17:27", "topic": "A toolbox of netfunctions and tDatabase-tests", "username": "James Bott" } ]
A toolbox of netfunctions and tDatabase-tests
[ { "date": "2019-01-24", "forum": "FiveWin for Harbour/xHarbour", "text": "Uwe,\n\nAlso you must have oCust declared as a static because you didn't pass it. I don't recommend using statics.\n\nAnd I don't recommend calling functions to manipulate the database. If you want to modify the database's behavior then create a subclass and override a method (like Zap()).\n\n[code=fw:1s0hqy52]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00C800;\">Class</span> MyDatabase <span style=\"color: #0000ff;\">from</span> TDatabase<br />   <span style=\"color: #00C800;\">Method</span> Zap<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">Endclass</span><br /><br /><span style=\"color: #00C800;\">Method</span> Zap<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #00C800;\">Class</span> MyDatabase<br />    <span style=\"color: #00C800;\">Local</span> lSuccess:=.F.<br />    <span style=\"color: #00C800;\">if</span> ! :<span style=\"color: #000000;\">lShared</span><br />       ::<span style=\"color: #00C800;\">super</span>:<span style=\"color: #000000;\">zap</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />       lSuccess := .T.<br />    <span style=\"color: #00C800;\">else</span><br />       <span style=\"color: #0000ff;\">msgInfo</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"File busy now. Cannot zap().\"</span>, <span style=\"color: #ff0000;\">\"Information\"</span><span style=\"color: #000000;\">&#41;</span><br />    <span style=\"color: #00C800;\">endif</span><br /><span style=\"color: #00C800;\">Return</span> lSuccess</div>[/code:1s0hqy52]", "time": "17:50", "topic": "A toolbox of netfunctions and tDatabase-tests", "username": "James Bott" } ]
A toolbox of netfunctions and tDatabase-tests
[ { "date": "2019-01-24", "forum": "FiveWin for Harbour/xHarbour", "text": "Uwe,\n\nI forgot to ask, did you get the papers I sent you on object-oriented programming?", "time": "18:38", "topic": "A toolbox of netfunctions and tDatabase-tests", "username": "James Bott" } ]
A toolbox of netfunctions and tDatabase-tests
[ { "date": "2019-01-25", "forum": "FiveWin for Harbour/xHarbour", "text": "James,\n\nThank You very much. I received Your Emails.\n\nNext I tested Your PACK-sample.\nPacking works, but I need something more :\nafter PACK I have to close EXCLUSIVE and switch back to SHARED to refresh xBrowse.\nAdding these two missing steps I noticed a problem.\n\n[color=#FF0000:3t1exftx]Application\n===========\n Error description: Error BASE/1002 Alias does not exist: CUST\n\nStack Calls\n===========\n Called from: .\\TDATAB.PRG => (b)DATABASE( 135 )\n Called from: .\\source\\classes\\XBROWSE.PRG => TXBROWSE:CHANGE( 1786 )[/color:3t1exftx]\n\nFrom inside the created netfunction-section ( part 1 ) it works.\nthe needed steps :\n\n[color=#0000FF:3t1exftx]USE\nUSE \"Customer\" ALIAS \"Cust\" NEW VIA \"DBFCDX\" EXCLUSIVE\nPACK\nUSE\nUSE \"Customer\" ALIAS \"Cust\" NEW VIA \"DBFCDX\" SHARED[/color:3t1exftx]\n\n[code=fw:3t1exftx]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #00C800;\">FUNCTION</span> NET_PACK<span style=\"color: #000000;\">&#40;</span> cDBName, cAlias, nTrials <span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">LOCAL</span>  lReturn := .F., nReturn := <span style=\"color: #000000;\">0</span><br /><span style=\"color: #00C800;\">LOCAL</span> nTrcount := nTrials<br /><br /><span style=\"color: #00C800;\">IF</span> MsgYesNo<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Pack File : \"</span> + upper<span style=\"color: #000000;\">&#40;</span>cDBName<span style=\"color: #000000;\">&#41;</span> , <span style=\"color: #ff0000;\">\"DBF Pack !\"</span> <span style=\"color: #000000;\">&#41;</span><br />    act_ord := NET_ORDER<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />    SET FILTER <span style=\"color: #0000ff;\">TO</span><br />    SET <span style=\"color: #0000ff;\">INDEX</span> <span style=\"color: #0000ff;\">TO</span><br />    <span style=\"color: #00C800;\">DO</span> <span style=\"color: #00C800;\">WHILE</span> nTrCount <= nTrials .and. nTrcount > <span style=\"color: #000000;\">0</span><br />        <span style=\"color: #00C800;\">IF</span> NET_CLOSE<span style=\"color: #000000;\">&#40;</span> nTrials <span style=\"color: #000000;\">&#41;</span> = .F.<br />            nReturn = <span style=\"color: #000000;\">2</span><br />            EXIT<br />        <span style=\"color: #00C800;\">ELSE</span><br />            <span style=\"color: #B900B9;\">// .T. = SHARED    all Users</span><br />            <span style=\"color: #B900B9;\">// .F. = EXCLUSIVE  1 User</span><br />            <span style=\"color: #00C800;\">IF</span> NET_USE <span style=\"color: #000000;\">&#40;</span> cDBName, cAlias, nTrials, .F. <span style=\"color: #000000;\">&#41;</span>            <span style=\"color: #B900B9;\">// EXCLUSIVE</span><br />                MsgRun<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Pack File :  \"</span> + upper<span style=\"color: #000000;\">&#40;</span>cDBName<span style=\"color: #000000;\">&#41;</span>,  <span style=\"color: #ff0000;\">\"Please wait.......\"</span>,;<br />                <span style=\"color: #000000;\">&#123;</span> || PACK1<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span><br />                <span style=\"color: #00C800;\">IF</span> NET_CLOSE<span style=\"color: #000000;\">&#40;</span> nTrcount <span style=\"color: #000000;\">&#41;</span> = .T.<br />                    <span style=\"color: #00C800;\">IF</span> NET_USE <span style=\"color: #000000;\">&#40;</span> cDBName, cAlias, nTrials, .T. <span style=\"color: #000000;\">&#41;</span>    <span style=\"color: #B900B9;\">// SHARED</span><br />                        nReturn = <span style=\"color: #000000;\">1</span><br />                        EXIT<br />                    <span style=\"color: #00C800;\">ENDIF</span><br />                <span style=\"color: #00C800;\">ENDIF</span><br />            <span style=\"color: #00C800;\">ENDIF</span><br />            nTrcount --<br />            <span style=\"color: #00C800;\">IF</span> nTrcount <= nTrials<br />                NET_USE <span style=\"color: #000000;\">&#40;</span> cDBName, cAlias, nTrials, .T. <span style=\"color: #000000;\">&#41;</span>       <span style=\"color: #B900B9;\">// SHARED</span><br />                nReturn = <span style=\"color: #000000;\">2</span><br />                EXIT<br />            <span style=\"color: #00C800;\">ENDIF</span><br />        <span style=\"color: #00C800;\">ENDIF</span><br /><br />        nTrcount --<br /><br />    <span style=\"color: #00C800;\">ENDDO</span><br /><span style=\"color: #00C800;\">ENDIF</span><br /><br /><span style=\"color: #00C800;\">IF</span> nReturn = <span style=\"color: #000000;\">1</span><br />    MsgWait<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"File : \"</span> + cDBName + <span style=\"color: #ff0000;\">\"  packed !\"</span>, <span style=\"color: #ff0000;\">\"Attention !\"</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#41;</span><br />    lReturn := .T.<br /><span style=\"color: #00C800;\">ENDIF</span><br /><span style=\"color: #00C800;\">IF</span> nReturn = <span style=\"color: #000000;\">2</span><br />    MsgAlert<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"ERROR pack File : \"</span> + cDBName, <span style=\"color: #ff0000;\">\"Attention !\"</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">ENDIF</span><br /><br /><span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #000000;\">&#40;</span>lReturn<span style=\"color: #000000;\">&#41;</span><br /> </div>[/code:3t1exftx]\n\nNow it is possible to switch between the different tests\n\n[img:3t1exftx]http&#58;//www&#46;pflegeplus&#46;com/IMAGES/Network8&#46;jpg[/img:3t1exftx]\n\nregards\nUwe <!-- s:?: --><img src=\"{SMILIES_PATH}/icon_question.gif\" alt=\":?:\" title=\"Question\" /><!-- s:?: -->", "time": "11:50", "topic": "A toolbox of netfunctions and tDatabase-tests", "username": "ukoenig" } ]
A toolbox of netfunctions and tDatabase-tests
[ { "date": "2019-01-25", "forum": "FiveWin for Harbour/xHarbour", "text": "Uwe,\n\n[quote:3o9747z6]Next I tested Your PACK-sample.\nPacking works, but I need something more :\nafter PACK I have to close EXCLUSIVE and switch back to SHARED to refresh xBrowse.\nAdding these two missing steps I noticed a problem.\n\nError description: Error BASE/1002 Alias does not exist: CUST\n[/quote:3o9747z6]\nWell I can't help much without seeing your code.\n\nFrom the error message I assume you are using the alias \"CUST.\" Database objects generate their own alias so you can't specify a different one. Well, actually you can but you shouldn't. Unique aliases are automatically generated each time a database object is opened--and you can open multiple copies of a database object (even in the same function).\n\nDid you use the code I posted for your test?", "time": "17:47", "topic": "A toolbox of netfunctions and tDatabase-tests", "username": "James Bott" } ]
A toolbox of netfunctions and tDatabase-tests
[ { "date": "2019-01-25", "forum": "FiveWin for Harbour/xHarbour", "text": "James,\n\nYes I tested Your sample.\n\nI will post the complete tool with a download-link.\nWith that it will be possible to have something useful to work on.\n\nregards \nUwe <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D -->", "time": "17:54", "topic": "A toolbox of netfunctions and tDatabase-tests", "username": "ukoenig" } ]
A toolbox of netfunctions and tDatabase-tests
[ { "date": "2019-01-25", "forum": "FiveWin for Harbour/xHarbour", "text": "Uwe,\n\nI just noticed that the error occurred in xBrowse. I suspect you specified \"CUST\" was the alias. You need to do this to specify that the browse is using a database object:\n\noBrw:SetoDBF( oDatabase ) // where oDatabase is whatever name you have used for the database object\n\noBrw gets the alias from there.\n\nJames", "time": "18:27", "topic": "A toolbox of netfunctions and tDatabase-tests", "username": "James Bott" } ]
A toolbox of netfunctions and tDatabase-tests
[ { "date": "2019-01-25", "forum": "FiveWin for Harbour/xHarbour", "text": "James,\n\nhere is the downloadlink \nstill some improvements must be done\nbut the basics are working.\n\nDOWNLOAD\n\n<!-- m --><a class=\"postlink\" href=\"http://www.pflegeplus.com/DOWNLOADS/Network.zop\">http://www.pflegeplus.com/DOWNLOADS/Network.zop</a><!-- m -->\n\nregards\nUwe <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D -->", "time": "19:00", "topic": "A toolbox of netfunctions and tDatabase-tests", "username": "ukoenig" } ]
A toolbox of netfunctions and tDatabase-tests
[ { "date": "2019-01-25", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote:3ajpdvkl]Uwe wrote:\ncAlias := cGetNewAlias( \"CUST\" )\nUSE CUSTOMER NEW ALIAS (cAlias) SHARED VIA \"DBFCDX\"\noCust := TDataBase():New( Select( cAlias ) )\n[/quote:3ajpdvkl]\nThe above should be this simple:\n\noCustomers:= TCustomers():New()\n\nYou need to create a class for each file and the class name should be plural (Customers for tables)\nLater you will want to create record classes and they should be singular (Customer)\n\nForget aliases--you will rarely, if ever, need to use them again. \n\n[code=fw:3ajpdvkl]<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> oCustomers<br />   <br />   oCustomers:= TCustomers<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>  <span style=\"color: #B900B9;\">// simple, one line. File is open in shared mode.</span><br />                                    <span style=\"color: #B900B9;\">// Indexes are open, in rimary key index order, at top of file</span><br />                                    <span style=\"color: #B900B9;\">// One line!</span><br />   <span style=\"color: #B900B9;\">// Display first 3 customer names</span><br />   <span style=\"color: #00C800;\">for</span> i = <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">to</span> <span style=\"color: #000000;\">3</span><br />      <span style=\"color: #0000ff;\">msgInfo</span><span style=\"color: #000000;\">&#40;</span> oCustomers:<span style=\"color: #0000ff;\">Name</span>, <span style=\"color: #ff0000;\">\"Customer Name\"</span><span style=\"color: #000000;\">&#41;</span><br />      oCustomers:<span style=\"color: #000000;\">skip</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />   <span style=\"color: #00C800;\">next</span><br />   <br />   browse<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 /><br /><span style=\"color: #00C800;\">Class</span> TCustomers <span style=\"color: #0000ff;\">from</span> TDatabase<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><br /><span style=\"color: #00C800;\">Endclass</span><br /><br /><span style=\"color: #00C800;\">Method</span> <span style=\"color: #00C800;\">New</span><span style=\"color: #000000;\">&#40;</span>lShared<span style=\"color: #000000;\">&#41;</span> <span style=\"color: #00C800;\">Class</span> TCustomers<br />   <span style=\"color: #00C800;\">Default</span> lShared := .T.<br />   ::<span style=\"color: #00C800;\">super</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #00C800;\">New</span><span style=\"color: #000000;\">&#40;</span>,<span style=\"color: #ff0000;\">\"customer\"</span>,,lShared<span style=\"color: #000000;\">&#41;</span><br />   <span style=\"color: #00C800;\">if</span> ::<span style=\"color: #000000;\">use</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />      ::<span style=\"color: #000000;\">setOrder</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#41;</span><br />      ::<span style=\"color: #000000;\">gotop</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />   <span style=\"color: #00C800;\">endif</span><br /><span style=\"color: #00C800;\">Return</span> <span style=\"color: #00C800;\">self</span></div>[/code:3ajpdvkl]", "time": "19:50", "topic": "A toolbox of netfunctions and tDatabase-tests", "username": "James Bott" } ]
A toolbox of netfunctions and tDatabase-tests
[ { "date": "2019-01-26", "forum": "FiveWin for Harbour/xHarbour", "text": "with browse() you cannot show any record \n\n\nSee oCustomers ( tdatabase ) and oCustomer (TdataRow)\n\n[code=fw:3g4o54kn]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">   <br /> <span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"fivewin.ch\"</span><br /><br />    <span style=\"color: #00C800;\">Function</span> Main<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />       <span style=\"color: #00C800;\">local</span> oCustomers<br /><br />       oCustomers:= TCustomers<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>  <span style=\"color: #B900B9;\">// simple, one line. File is open in shared mode.</span><br />                                        <span style=\"color: #B900B9;\">// Indexes are open, in primary key index order, at top of file</span><br />                                        <span style=\"color: #B900B9;\">// One line!</span><br /><br />         xbrowser oCustomers <span style=\"color: #0000ff;\">TITLE</span> <span style=\"color: #ff0000;\">\"Customer\"</span><br /><br /><br />       <span style=\"color: #B900B9;\">// Display first 3 customer names  with TdataRow</span><br /><br />       ocustomer:=TCustomer<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #00C800;\">New</span><span style=\"color: #000000;\">&#40;</span>oCustomers<span style=\"color: #000000;\">&#41;</span>  <span style=\"color: #B900B9;\">//TdataRow</span><br /><br />        <span style=\"color: #00C800;\">for</span> i = <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">to</span> <span style=\"color: #000000;\">3</span><br />           <span style=\"color: #0000ff;\">msgInfo</span><span style=\"color: #000000;\">&#40;</span> ocustomer:<span style=\"color: #000000;\">first</span>, <span style=\"color: #ff0000;\">\"Customer Name\"</span><span style=\"color: #000000;\">&#41;</span><br />        *   oCustomer:<span style=\"color: #000000;\">skip</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />       <span style=\"color: #00C800;\">next</span><br /><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;\">Class</span> TCustomers <span style=\"color: #0000ff;\">from</span> TDatabase<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><br />    <span style=\"color: #00C800;\">Endclass</span><br /><br />    <span style=\"color: #00C800;\">Method</span> <span style=\"color: #00C800;\">New</span><span style=\"color: #000000;\">&#40;</span>lShared<span style=\"color: #000000;\">&#41;</span> <span style=\"color: #00C800;\">Class</span> TCustomers<br />       <span style=\"color: #00C800;\">Default</span> lShared := .T.<br />       ::<span style=\"color: #00C800;\">super</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #00C800;\">New</span><span style=\"color: #000000;\">&#40;</span>,<span style=\"color: #ff0000;\">\"customer\"</span>,,lShared<span style=\"color: #000000;\">&#41;</span><br />       <span style=\"color: #00C800;\">if</span> ::<span style=\"color: #000000;\">use</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />          ::<span style=\"color: #000000;\">setOrder</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#41;</span><br />          ::<span style=\"color: #000000;\">gotop</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />       <span style=\"color: #00C800;\">endif</span><br />       <span style=\"color: #00C800;\">Return</span> <span style=\"color: #00C800;\">self</span><br />  <span style=\"color: #B900B9;\">//---------------------------------------------------------------------------//</span><br />      <span style=\"color: #00C800;\">CLASS</span> TCustomer <span style=\"color: #0000ff;\">From</span>  TDataRow<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><br />       <span style=\"color: #00C800;\">ENDCLASS</span><br /><br />      <span style=\"color: #00C800;\">Method</span> <span style=\"color: #00C800;\">New</span><span style=\"color: #000000;\">&#40;</span>oTable <span style=\"color: #000000;\">&#41;</span><br />         ::<span style=\"color: #00C800;\">super</span>:<span style=\"color: #00C800;\">New</span><span style=\"color: #000000;\">&#40;</span> oTable <span style=\"color: #000000;\">&#41;</span><br />     <span style=\"color: #00C800;\">Return</span> <span style=\"color: #00C800;\">self</span><br /> </div>[/code:3g4o54kn]", "time": "15:34", "topic": "A toolbox of netfunctions and tDatabase-tests", "username": "Silvio.Falconi" } ]
A toolbox of netfunctions and tDatabase-tests
[ { "date": "2019-01-26", "forum": "FiveWin for Harbour/xHarbour", "text": "Silvio,\n\nfunction Browse() is not compatible with tDatabase.\n\ntested from inside the tool\n\n[img:2g3kn2ml]http&#58;//www&#46;pflegeplus&#46;com/IMAGES/Network11&#46;jpg[/img:2g3kn2ml]\n\nalso You can use from folder < samples > [color=#0000FF:2g3kn2ml]xbradded.prg [/color:2g3kn2ml]\nnext select [color=#0000FF:2g3kn2ml]tDatabase[/color:2g3kn2ml] and You can browse the file customer.\n\n[img:2g3kn2ml]http&#58;//www&#46;pflegeplus&#46;com/IMAGES/Network9&#46;jpg[/img:2g3kn2ml]\n\nregards\nUwe <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D -->", "time": "18:19", "topic": "A toolbox of netfunctions and tDatabase-tests", "username": "ukoenig" } ]
A toolbox of netfunctions and tDatabase-tests
[ { "date": "2019-01-26", "forum": "FiveWin for Harbour/xHarbour", "text": "James,\n\nhere is the new downloadlink \nPACK and ZAP is working now <!-- s:roll: --><img src=\"{SMILIES_PATH}/icon_rolleyes.gif\" alt=\":roll:\" title=\"Rolling Eyes\" /><!-- s:roll: --> \nsome more improvements are done :\nclosing the program, the number of the last selected sample is saved to a INI-file\nand will be opened at the next start.\nUsing different colours on each of the 3 samples\nA new empty dialog is added to include more tests.\n\nI couldn't find a replacement of\nh := FW_RecToHash() <!-- s:?: --><img src=\"{SMILIES_PATH}/icon_question.gif\" alt=\":?:\" title=\"Question\" /><!-- s:?: --> replacement -> h := ReadToHash() <!-- s:?: --><img src=\"{SMILIES_PATH}/icon_question.gif\" alt=\":?:\" title=\"Question\" /><!-- s:?: --> \nFW_HashToRec( h ) <!-- s:?: --><img src=\"{SMILIES_PATH}/icon_question.gif\" alt=\":?:\" title=\"Question\" /><!-- s:?: --> \n\nDOWNLOAD\n\n<!-- m --><a class=\"postlink\" href=\"http://www.pflegeplus.com/DOWNLOADS/Network.zop\">http://www.pflegeplus.com/DOWNLOADS/Network.zop</a><!-- m -->\n( rename zop to zip )\n\n[img:2xg03ky3]http&#58;//www&#46;pflegeplus&#46;com/IMAGES/Network10&#46;jpg[/img:2xg03ky3]\n\nregards\nUwe <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D -->", "time": "21:59", "topic": "A toolbox of netfunctions and tDatabase-tests", "username": "ukoenig" } ]
A toolbox of netfunctions and tDatabase-tests
[ { "date": "2019-01-28", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"ukoenig\":1nhcdyrx]Silvio,\n\nfunction Browse() is not compatible with tDatabase.\n\ntested from inside the tool\n\n[img:1nhcdyrx]http&#58;//www&#46;pflegeplus&#46;com/IMAGES/Network11&#46;jpg[/img:1nhcdyrx]\n\nalso You can use from folder < samples > [color=#0000FF:1nhcdyrx]xbradded.prg [/color:1nhcdyrx]\nnext select [color=#0000FF:1nhcdyrx]tDatabase[/color:1nhcdyrx] and You can browse the file customer.\n\n[img:1nhcdyrx]http&#58;//www&#46;pflegeplus&#46;com/IMAGES/Network9&#46;jpg[/img:1nhcdyrx]\n\nregards\nUwe <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D -->[/quote:1nhcdyrx]\n\nUwe,\n\nI not write Browse() but[b:1nhcdyrx] xbrowser oCustomers[/b:1nhcdyrx]\n\nJames wrote Browse()", "time": "09:20", "topic": "A toolbox of netfunctions and tDatabase-tests", "username": "Silvio.Falconi" } ]
A toolbox of netfunctions and tDatabase-tests
[ { "date": "2019-01-28", "forum": "FiveWin for Harbour/xHarbour", "text": "Uwe,\ndo you try it on Lan Network xbradded.prg ?\n\nWhen I edit a customer I open Custedit() ok ?\n\n and Insert new customer [b:ll5jfye7]Number 501[/b:ll5jfye7]\n\nBut I not save it because I'm distracted or I have to go to the bathroom or I'm having coffee...\n\nand I leave the window open \n[code=fw:ll5jfye7]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #00C800;\">static</span> <span style=\"color: #00C800;\">function</span> CustEditDlg<span style=\"color: #000000;\">&#40;</span> oRec <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> oDlg, oFont, oGrp<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;\">\"TAHOMA\"</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;\">SIZE</span> <span style=\"color: #000000;\">618</span>,<span style=\"color: #000000;\">382</span> <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">FONT</span> oFont <span style=\"color: #0000ff;\">TITLE</span> <span style=\"color: #ff0000;\">\"CUSTOMER\"</span><br />&nbsp;</div>[/code:ll5jfye7]\n\n\nYou are on another terminal and Open the same function Custedit() and Insert new customer [b:ll5jfye7]Number 501[/b:ll5jfye7]\nand save it\n\nwhen I return back also I save the customer and we have a surprice...\n\n[b:ll5jfye7]two records with the same number 501[/b:ll5jfye7]", "time": "09:30", "topic": "A toolbox of netfunctions and tDatabase-tests", "username": "Silvio.Falconi" } ]
A toolbox of netfunctions and tDatabase-tests
[ { "date": "2019-01-30", "forum": "FiveWin for Harbour/xHarbour", "text": "I finished the tests with many improvements.\nField copy and field replacements.\nOnce the original DBF is destrroyed from testing, You can restore it from CUST_ORG.dbf\n\nNo problems found. <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D --> \n( Just let me know if there is still something wrong )\n\nThe new third dialog can be used for Your own tests and works from code.\n\nDOWNLOAD\n\n<!-- m --><a class=\"postlink\" href=\"http://www.pflegeplus.com/DOWNLOADS/Network.zop\">http://www.pflegeplus.com/DOWNLOADS/Network.zop</a><!-- m -->\n( rename zop to zip )\n\n[img:vvh9fwtf]http&#58;//www&#46;pflegeplus&#46;com/IMAGES/Network12&#46;jpg[/img:vvh9fwtf]\n\nregards\nUwe <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D -->", "time": "16:42", "topic": "A toolbox of netfunctions and tDatabase-tests", "username": "ukoenig" } ]
A toolbox of netfunctions and tDatabase-tests
[ { "date": "2019-02-06", "forum": "FiveWin for Harbour/xHarbour", "text": "After many tests and changes\n( 3 empty dialogs are added for more tests )\n\nincluded\n\ntests of : [color=#0000FF:znglfv2d]new, delete, undelete, pack, zap, \nsave from gets, array-copy, backup restore [/color:znglfv2d]and much more\n\nDOWNLOAD\n\n<!-- m --><a class=\"postlink\" href=\"http://www.pflegeplus.com/DOWNLOADS/Network.zop\">http://www.pflegeplus.com/DOWNLOADS/Network.zop</a><!-- m -->\n( rename zop to zip )\n\n[img:znglfv2d]http&#58;//www&#46;pflegeplus&#46;com/IMAGES/Network18&#46;jpg[/img:znglfv2d]\n\nregards\nUwe <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D -->", "time": "14:11", "topic": "A toolbox of netfunctions and tDatabase-tests", "username": "ukoenig" } ]
A toolbox of netfunctions and tDatabase-tests
[ { "date": "2019-02-07", "forum": "FiveWin for Harbour/xHarbour", "text": "Uwe,\ntry to make a source dialog edit and add new Id ( incremental field Cr as \"0001\"-> strzero(recno+1,4))\n1. open the test dialog on two different pc ( A,B)\n2. Insert a new record on Pc A but not save\n3. Insert a new record on Pc B but not save\n4. save Pc A\n5. save Pc B\nand see if you have two record with the same id", "time": "09:41", "topic": "A toolbox of netfunctions and tDatabase-tests", "username": "Silvio.Falconi" } ]
A toolbox of netfunctions and tDatabase-tests
[ { "date": "2019-02-07", "forum": "FiveWin for Harbour/xHarbour", "text": "Why do you need the ID?\nTry with a global unique identifier.\nOtto", "time": "11:25", "topic": "A toolbox of netfunctions and tDatabase-tests", "username": "Otto" } ]
A toolbox of netfunctions and tDatabase-tests
[ { "date": "2019-02-07", "forum": "FiveWin for Harbour/xHarbour", "text": "I need \na field character of 4 called ID sample \"0001\"\nI'm asking the moon ?", "time": "11:31", "topic": "A toolbox of netfunctions and tDatabase-tests", "username": "Silvio.Falconi" } ]
A toolbox of netfunctions and tDatabase-tests
[ { "date": "2019-02-07", "forum": "FiveWin for Harbour/xHarbour", "text": "A consecutive number and chronological order when entering is only possible if you accept that you also have records with a serial number that are empty.\nIf you pull the number at the beginning of the input and then the user aborts the input, then the number is used and the data record is empty.\nOtherwise you have to drag the number when saving.", "time": "12:16", "topic": "A toolbox of netfunctions and tDatabase-tests", "username": "Otto" } ]
A toolbox of netfunctions and tDatabase-tests
[ { "date": "2019-02-07", "forum": "FiveWin for Harbour/xHarbour", "text": "it's all right what you say, I prefer to have a compatibility with the old procedure done in single user (exclusive way).", "time": "12:29", "topic": "A toolbox of netfunctions and tDatabase-tests", "username": "Silvio.Falconi" } ]
A toolbox of netfunctions and tDatabase-tests
[ { "date": "2019-02-07", "forum": "FiveWin for Harbour/xHarbour", "text": "Master Uwe, sorry for my stupidity, could you explain the purpose of this program, please?\n\nRegards, saludos.", "time": "13:00", "topic": "A toolbox of netfunctions and tDatabase-tests", "username": "karinha" } ]
A toolbox of netfunctions and tDatabase-tests
[ { "date": "2019-02-07", "forum": "FiveWin for Harbour/xHarbour", "text": "karinha,\n\nthe purpose :\n\n1. examples of the syntax to use the different methods of tDatabase \n2. easy adding of Your own tests without starting from the beginning to define dialogs, browser ....\nIt works like a box to include different tests.\neverything is included in just one program\n\nI just added to a empty dialog Silvios ID-number test\nnext I'm working on a test of using ORDSCOPE using tDatabase instead of a filter\n\nSilvios ID-number-test\nI added the needed ID-number to Customer.dbf\n\n[img:mgkkad45]http&#58;//www&#46;pflegeplus&#46;com/IMAGES/Network20&#46;jpg[/img:mgkkad45]\n\ntesting ORDSCOPE\n\n[img:mgkkad45]http&#58;//www&#46;pflegeplus&#46;com/IMAGES/Network21&#46;jpg[/img:mgkkad45]\n\nregards\nUwe <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D -->", "time": "13:18", "topic": "A toolbox of netfunctions and tDatabase-tests", "username": "ukoenig" } ]
A toolbox of netfunctions and tDatabase-tests
[ { "date": "2019-02-07", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"ukoenig\":2ncmnstn]karinha,\n\nthe purpose :\n\n1. examples of the syntax to use the different methods of tDatabase \n2. easy adding of Your own tests without starting from the beginning to define dialogs, browser ....\nIt works like a box to include different tests.\neverything is included in just one program\n\nI just added to a empty dialog Silvios ID-number test\nnext I'm working on a test of using ORDSCOPE using tDatabase instead of a filter\n\nSilvios ID-number-test\nI added the needed ID-number to Customer.dbf\n\n[img:2ncmnstn]http&#58;//www&#46;pflegeplus&#46;com/IMAGES/Network20&#46;jpg[/img:2ncmnstn]\n\ntesting ORDSCOPE\n\n[img:2ncmnstn]http&#58;//www&#46;pflegeplus&#46;com/IMAGES/Network21&#46;jpg[/img:2ncmnstn]\n\nregards\nUwe <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D -->[/quote:2ncmnstn]\n\noK. Many thanks master Uwe.\n\nTranslate for portuguese:\n\no objetivo :\n\n1. exemplos da sintaxe para usar os diferentes métodos de tDatabase\n\n2. fácil adição de seus próprios testes sem começar desde o início para definir diálogos, navegador ....\nFunciona como uma caixa para incluir testes diferentes.\ntudo está incluído em apenas um programa\n\nAcabei de adicionar a uma caixa de diálogo vazia Silvios ID-number test\nEm seguida, estou trabalhando em um teste de uso de ORDSCOPE usando tDatabase em vez de um filtro\n\nTeste de número de ID da Silvios\nEu adicionei o número de identificação necessário ao Customer.dbf\n\n\nRegards, saludos.", "time": "14:07", "topic": "A toolbox of netfunctions and tDatabase-tests", "username": "karinha" } ]
A toolbox of netfunctions and tDatabase-tests
[ { "date": "2019-02-07", "forum": "FiveWin for Harbour/xHarbour", "text": "A typical usage\n\nI finished Silvios test with ID - numbers\nThere is NO problem with the Id's NO double numbers\n\n[quote:mr6b6a0n]\ntry to make a source dialog edit and add new Id ( incremental field Cr as \"0001\"-> strzero(recno+1,4))\n1. open the test dialog on two different pc ( A,B)\n2. Insert a new record on Pc A but not save\n3. Insert a new record on Pc B but not save\n4. save Pc A\n5. save Pc B\nand see if you have two record with the same id\nI need \na field character of 4 called ID sample \"0001\"\n[/quote:mr6b6a0n]\n\nDOWNLOAD\n\n<!-- m --><a class=\"postlink\" href=\"http://www.pflegeplus.com/DOWNLOADS/Network.zop\">http://www.pflegeplus.com/DOWNLOADS/Network.zop</a><!-- m -->\n( rename zop to zip )\n\nYou can open the program twice, that will have the same effect like a workstation.\n\nthere are 2 different solutions :\n1. a new record added with the new Id\n2. a new record added WITHOUT Id. The < Id > is added together with the other fields using the < Save button >\n\nButtons ;\n\nNew 1 = new with ID\nNew 2 = new with NO ID\nZap = Zap file\nRestore original = replaces DBF with backup\nRenumber = write all ID's new\nSave = save vars to DBF with a defined ID from record-number\n\n[img:mr6b6a0n]http&#58;//www&#46;pflegeplus&#46;com/IMAGES/Network22&#46;jpg[/img:mr6b6a0n]\n\nregards\nUwe <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D -->", "time": "15:31", "topic": "A toolbox of netfunctions and tDatabase-tests", "username": "ukoenig" } ]
A toolbox of netfunctions and tDatabase-tests
[ { "date": "2019-02-08", "forum": "FiveWin for Harbour/xHarbour", "text": "Hello,\n\nI need some help for the new FILTER-section to complete it.\nIt belongs to the first 3 positions using < [color=#0000FF:1lrtlu0e][b:1lrtlu0e]Setfilter[/b:1lrtlu0e][/color:1lrtlu0e] >\n\n[color=#FF0000:1lrtlu0e]1. oCust:SetFilter(\" Last <!-- s:?: --><img src=\"{SMILIES_PATH}/icon_question.gif\" alt=\":?:\" title=\"Question\" /><!-- s:?: --> \n3. oCust:SetFilter( \" Hiredate <!-- s:?: --><img src=\"{SMILIES_PATH}/icon_question.gif\" alt=\":?:\" title=\"Question\" /><!-- s:?: --> [/color:1lrtlu0e]\n\n[color=#008000:1lrtlu0e][b:1lrtlu0e]2. oCust:SetFilter( \" Age [/b:1lrtlu0e][/color:1lrtlu0e] works <!-- s:!: --><img src=\"{SMILIES_PATH}/icon_exclaim.gif\" alt=\":!:\" title=\"Exclamation\" /><!-- s:!: --> \n\n[code=fw:1lrtlu0e]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #00C800;\">IF</span> nAge2 = <span style=\"color: #000000;\">0</span> <span style=\"color: #B900B9;\">// only nAge1</span><br />   oCust:<span style=\"color: #000000;\">SetFilter</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\" Age == \"</span> + STR<span style=\"color: #000000;\">&#40;</span>nAge1<span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span>  <span style=\"color: #B900B9;\">// from GET - field</span><br /><span style=\"color: #00C800;\">ELSE</span><br />   oCust:<span style=\"color: #000000;\">SetFilter</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\" Age >= \"</span> + STR<span style=\"color: #000000;\">&#40;</span>nAge1<span style=\"color: #000000;\">&#41;</span> + <span style=\"color: #ff0000;\">\" .and. Age <= \"</span> + STR<span style=\"color: #000000;\">&#40;</span>nAge2<span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span>  <br /><span style=\"color: #00C800;\">ENDIF</span><br /> </div>[/code:1lrtlu0e]\n\nThe problem seems to be the defined vars of 1 and 3\ntests 2, 4 and 5 and 6 are working :\n\n[color=#008000:1lrtlu0e]oCust:SetFilter( \" Married = .T. \" ) \noCust:SetFilter( \" Married = .F. \" )\noCust:ClearFilter() [/color:1lrtlu0e]\n\nAs well all ORDSCOPE-tests are working fine <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D --> \n\nThe test is included in < TDATAB3.prg > \nThw index is defined in < NETWORK.prg >\n\nDOWNLOAD\n\n<!-- m --><a class=\"postlink\" href=\"http://www.pflegeplus.com/DOWNLOADS/Network.zop\">http://www.pflegeplus.com/DOWNLOADS/Network.zop</a><!-- m -->\n( rename zop to zip )\n\n1. Select a filter from the radio\n2. define filter vars ( filter 1, 2 or 3 ) if needed\n3. select button < Ordscope > or < Setfilter >\n\nTest : showing all customers with age 60 using ORDSCOPE\n\n[img:1lrtlu0e]http&#58;//www&#46;pflegeplus&#46;com/IMAGES/Network23&#46;jpg[/img:1lrtlu0e]\n\nregards\nUwe <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D -->", "time": "22:02", "topic": "A toolbox of netfunctions and tDatabase-tests", "username": "ukoenig" } ]
A toolbox of netfunctions and tDatabase-tests
[ { "date": "2019-02-13", "forum": "FiveWin for Harbour/xHarbour", "text": "The update with many new tests included\nThanks to Mr. Rao for his help <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D --> \n\nfuture improvements\n\n1. connection to the forum and fw-topics for each test\n2. editor to view the source of each test\n3. a help text for each test\n\nFor the switch-tests a internet-connection is needed !!!\n \nsome more interesting examples will be added in the future\nor You can addi Your own tests\nlike You can see there is still some more space left adding new tests.\nI think it is useful because I couldn't find much in the forum or sample-folder to answer special questions.\n\nDOWNLOAD\n\n<!-- m --><a class=\"postlink\" href=\"http://www.pflegeplus.com/DOWNLOADS/Network.zop\">http://www.pflegeplus.com/DOWNLOADS/Network.zop</a><!-- m -->\n( rename zop to zip )\n\n[img:3lrsvvee]http&#58;//www&#46;pflegeplus&#46;com/IMAGES/Network25&#46;jpg[/img:3lrsvvee]\n\nregards\nUwe <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D -->", "time": "22:16", "topic": "A toolbox of netfunctions and tDatabase-tests", "username": "ukoenig" } ]
A toolbox of netfunctions and tDatabase-tests
[ { "date": "2010-12-08", "forum": "FiveWin for Harbour/xHarbour", "text": "Hello,\n\nis it possible, do define a transparent MDI-child ?\nI want to show the Background from MDI-frame.\n\nI got it working, but only with some graphical-extras.\nMaybe my Solution is the only way, how to do it.\n\n<!-- l --><a class=\"postlink-local\" href=\"http://forums.fivetechsupport.com/viewtopic.php?f=3&t=20440&p=108457#p108457\">viewtopic.php?f=3&t=20440&p=108457#p108457</a><!-- l -->\n\nBest Regards\nUwe <!-- s:?: --><img src=\"{SMILIES_PATH}/icon_question.gif\" alt=\":?:\" title=\"Question\" /><!-- s:?: -->", "time": "16:52", "topic": "A transparent MDI-child to show Backgrd. of MDI-frame ?", "username": "ukoenig" } ]
A transparent MDI-child to show Backgrd. of MDI-frame ?
[ { "date": "2010-12-08", "forum": "FiveWin for Harbour/xHarbour", "text": "Uwe\n\nAre you talking about the transparency of the mdi child frame ?? \n\nRick Lipkin", "time": "18:31", "topic": "A transparent MDI-child to show Backgrd. of MDI-frame ?", "username": "Rick Lipkin" } ]
A transparent MDI-child to show Backgrd. of MDI-frame ?
[ { "date": "2010-12-08", "forum": "FiveWin for Harbour/xHarbour", "text": "Rick,\n\nthe Screenshot explains, what I mean.\nUsing a Dialog, I can define a Zero-brush and I will see the Background of the MDI-frame ( my first tests ).\nIt doesn't work with Windows, and shows a black Background.\nI fixed the Problem, using Brushes the same like the MDI-frame shows, to get a transparent-effect.\n( posted to Colin in detail, how to do it )\nIt works fine for me, but that makes it a bit complicated for normal Users. \nNo problem using Colors and BMP-brushes, but using Gradient or Image, You need exactly a copy\nof the MDI-frame-background-area is covered with the MDI-child.\nWhat I mean is, to see instead of the gray color the background of the MDI-Frame without Brush-define.\n\n[img:2n6eqjnh]http&#58;//www&#46;pflegeplus&#46;com/pictures/mdibtn11&#46;jpg[/img:2n6eqjnh]\n\nUsing the MDIFrame-Screenshot-section as MDI-child-brush :\n\n[img:2n6eqjnh]http&#58;//www&#46;pflegeplus&#46;com/pictures/mdibtn13&#46;jpg[/img:2n6eqjnh]\n\nThe Result with the Screencapture-Image used as Brush ( transparent effect )\n\n[img:2n6eqjnh]http&#58;//www&#46;pflegeplus&#46;com/pictures/mdibtn12&#46;jpg[/img:2n6eqjnh]\n\nBest Regards\nUwe <!-- s:roll: --><img src=\"{SMILIES_PATH}/icon_rolleyes.gif\" alt=\":roll:\" title=\"Rolling Eyes\" /><!-- s:roll: -->", "time": "19:05", "topic": "A transparent MDI-child to show Backgrd. of MDI-frame ?", "username": "ukoenig" } ]
A transparent MDI-child to show Backgrd. of MDI-frame ?
[ { "date": "2010-12-29", "forum": "FiveWin for Harbour/xHarbour", "text": "Here is another approach, but much simpler. Programmers with lesser knowledge like me can understand and do.\n[code=fw:3707in6k]<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: #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> oWnd, oBar, oBrush<br /><br />   <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BRUSH</span> oBrush FILE <span style=\"color: #ff0000;\">\"c:<span style=\"color: #000000;\">\\f</span>wh<span style=\"color: #000000;\">\\b</span>itmaps<span style=\"color: #000000;\">\\o</span>lga1.jpg\"</span><br />   <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWnd <span style=\"color: #0000ff;\">MDI</span> <span style=\"color: #0000ff;\">BRUSH</span> oBrush<br /><br />   <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTONBAR</span> oBar <span style=\"color: #0000ff;\">OF</span> oWnd <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">100</span>,<span style=\"color: #000000;\">32</span> <span style=\"color: #000000;\">2007</span><br /><br />   <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #0000ff;\">OF</span> oBar <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Transp-Child\"</span> ;<br />      <span style=\"color: #0000ff;\">ACTION</span> TranspChild<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />   SET <span style=\"color: #0000ff;\">MESSAGE</span> <span style=\"color: #0000ff;\">OF</span> oWnd <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #ff0000;\">\"\"</span> <span style=\"color: #000000;\">2007</span><br />   <span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWnd<br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /><br /><span style=\"color: #B900B9;\">//----------------------------------------------------------------------------//</span><br /><br /><span style=\"color: #00C800;\">static</span> <span style=\"color: #00C800;\">function</span> TranspChild<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />   <span style=\"color: #00C800;\">local</span> oWnd<br /><br />   <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWnd <span style=\"color: #0000ff;\">MDICHILD</span> <span style=\"color: #0000ff;\">OF</span> WndMain<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />   <span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWnd ;<br />      <span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">PAINT</span> ChildPaint<span style=\"color: #000000;\">&#40;</span> hDC, oWnd <span style=\"color: #000000;\">&#41;</span> ;<br />      <span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">MOVE</span> <span style=\"color: #000000;\">&#40;</span> oWnd:<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 /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /><br /><span style=\"color: #B900B9;\">//----------------------------------------------------------------------------//</span><br /><br /><span style=\"color: #00C800;\">static</span> <span style=\"color: #00C800;\">function</span> ChildPaint<span style=\"color: #000000;\">&#40;</span> hDC, oWnd <span style=\"color: #000000;\">&#41;</span><br /><br />   <span style=\"color: #00C800;\">local</span> aPoint<br /><br />   aPoint   := ClientToScreen<span style=\"color: #000000;\">&#40;</span> WndMain<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #000000;\">hWnd</span>, <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span><br />   aPoint   := ScreenToClient<span style=\"color: #000000;\">&#40;</span> oWnd:<span style=\"color: #000000;\">hWnd</span>, aPoint <span style=\"color: #000000;\">&#41;</span><br /><br />   SetBrushOrgEx<span style=\"color: #000000;\">&#40;</span> hDC, aPoint<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#93;</span>, aPoint<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#93;</span> + WndMain<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #000000;\">oBar</span>:<span style=\"color: #000000;\">nHeight</span> - <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#41;</span><br /><br />   FillRect<span style=\"color: #000000;\">&#40;</span> hDC, GetClientRect<span style=\"color: #000000;\">&#40;</span> oWnd:<span style=\"color: #000000;\">hWnd</span> <span style=\"color: #000000;\">&#41;</span>, WndMain<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #000000;\">oBrush</span>:<span style=\"color: #000000;\">hBrush</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:3707in6k]\n\nScreen shot:\n[url=http&#58;//img703&#46;imageshack&#46;us/i/transpmdi&#46;jpg/:3707in6k][img:3707in6k]http&#58;//img703&#46;imageshack&#46;us/img703/7664/transpmdi&#46;jpg[/img:3707in6k][/url:3707in6k]", "time": "16:42", "topic": "A transparent MDI-child to show Backgrd. of MDI-frame ?", "username": "nageswaragunupudi" } ]
A transparent MDI-child to show Backgrd. of MDI-frame ?
[ { "date": "2011-01-02", "forum": "FiveWin for Harbour/xHarbour", "text": "Edited my source slightly. Avoided setting brush to child window.", "time": "07:38", "topic": "A transparent MDI-child to show Backgrd. of MDI-frame ?", "username": "nageswaragunupudi" } ]
A transparent MDI-child to show Backgrd. of MDI-frame ?
[ { "date": "2010-12-30", "forum": "FiveWin for Harbour/xHarbour", "text": "Mr. Rao,\n\nthank You very much. I added the Button-logic and it works perfect.\nI will include the new Solution in my next Update.\n\n[img:3ocu116o]http&#58;//www&#46;pflegeplus&#46;com/pictures/mdibutt1&#46;jpg[/img:3ocu116o]\n\nYou can test all kind of Backgrounds. Define nOption on top.\nnOption = 1 Color\nnOption = 2 Gradient\nnOption = 3 Brush\nnOption = 4 Image ( adjusted to Screen )\n\n[code=fw:3ocu116o]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"fivewin.ch\"</span><br /><br /><span style=\"color: #B900B9;\">//----------------------------------------------------------------------------//</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> oWnd, oBar, oBrush, nOption<br /><span style=\"color: #00C800;\">local</span> aRect3 := GetSysmetrics<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #B900B9;\">// Screen-Height</span><br /><span style=\"color: #00C800;\">local</span> aRect4 := GetSysmetrics<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #B900B9;\">// Screen-Width</span><br /><br />nOption := <span style=\"color: #000000;\">4</span><br /><br /><span style=\"color: #00C800;\">IF</span> nOption = <span style=\"color: #000000;\">1</span><br />&nbsp; &nbsp; <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BRUSH</span> oBrush <span style=\"color: #0000ff;\">COLOR</span> &nbsp;<span style=\"color: #000000;\">16776960</span><br /><span style=\"color: #00C800;\">ENDIF</span><br /><span style=\"color: #00C800;\">IF</span> nOption = <span style=\"color: #000000;\">2</span><br />&nbsp; &nbsp; aColors&nbsp;:= <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">0.5</span>, <span style=\"color: #000000;\">16776960</span>, <span style=\"color: #000000;\">16777215</span> <span style=\"color: #000000;\">&#125;</span>, <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">0.5</span>, <span style=\"color: #000000;\">16777215</span>, <span style=\"color: #000000;\">16776960</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span>&nbsp;<br /><span style=\"color: #00C800;\">ENDIF</span><br /><span style=\"color: #00C800;\">IF</span> nOption = <span style=\"color: #000000;\">3</span><br />&nbsp; &nbsp; <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BRUSH</span> oBrush FILENAME <span style=\"color: #ff0000;\">\"e:<span style=\"color: #000000;\">\\f</span>wh<span style=\"color: #000000;\">\\b</span>itmaps<span style=\"color: #000000;\">\\b</span>ackgrnd<span style=\"color: #000000;\">\\M</span>arble.bmp\"</span><br /><span style=\"color: #00C800;\">ENDIF</span><br /><span style=\"color: #00C800;\">IF</span> nOption = <span style=\"color: #000000;\">4</span><br />&nbsp; &nbsp; <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">IMAGE</span> oTmp FILENAME <span style=\"color: #ff0000;\">\"e:<span style=\"color: #000000;\">\\f</span>wh<span style=\"color: #000000;\">\\b</span>itmaps<span style=\"color: #000000;\">\\o</span>lga1.jpg\"</span><br />&nbsp; &nbsp; oBrush := TBrush<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #00C800;\">new</span><span style=\"color: #000000;\">&#40;</span> ,,,, ResizeBmp<span style=\"color: #000000;\">&#40;</span> oTmp:<span style=\"color: #000000;\">hBitmap</span>, aRect4, aRect3, .T. <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <br />&nbsp; &nbsp; oTmp:<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">ENDIF</span><br /><br /><span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWnd <span style=\"color: #0000ff;\">MDI</span> <span style=\"color: #0000ff;\">BRUSH</span> oBrush<br /><br /><span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTONBAR</span> oBar <span style=\"color: #0000ff;\">OF</span> oWnd <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">100</span>,<span style=\"color: #000000;\">32</span> <span style=\"color: #000000;\">2007</span><br /><br /><span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #0000ff;\">OF</span> oBar <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Transp-Child\"</span> ;<br /><span style=\"color: #0000ff;\">ACTION</span> TranspChild<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />SET <span style=\"color: #0000ff;\">MESSAGE</span> <span style=\"color: #0000ff;\">OF</span> oWnd <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #ff0000;\">\"\"</span> <span style=\"color: #000000;\">2007</span><br /><br /><span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWnd ;<br /><span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">PAINT</span> IIF<span style=\"color: #000000;\">&#40;</span> nOption = <span style=\"color: #000000;\">2</span>, GradBrush<span style=\"color: #000000;\">&#40;</span> oWnd, aColors, .T. <span style=\"color: #000000;\">&#41;</span>, <span style=\"color: #00C800;\">NIL</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;\">// ----- &nbsp;Gradient-Brush --------------------------</span><br /><br /><span style=\"color: #00C800;\">FUNCTION</span> GradBrush<span style=\"color: #000000;\">&#40;</span> oWnd, aColors, lPos <span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">local</span> hDC, hBmp, hBmpOld, oBrush<br /><br /><span style=\"color: #00C800;\">if</span> Empty<span style=\"color: #000000;\">&#40;</span> oWnd:<span style=\"color: #000000;\">oBrush</span>:<span style=\"color: #000000;\">hBitmap</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; hDC = CreateCompatibleDC<span style=\"color: #000000;\">&#40;</span> oWnd:<span style=\"color: #000000;\">GetDC</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; hBmp = CreateCompatibleBitMap<span style=\"color: #000000;\">&#40;</span> oWnd:<span style=\"color: #000000;\">hDC</span>, oWnd:<span style=\"color: #000000;\">nWidth</span>, oWnd:<span style=\"color: #000000;\">nHeight</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; hBmpOld = SelectObject<span style=\"color: #000000;\">&#40;</span> hDC, hBmp <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; GradientFill<span style=\"color: #000000;\">&#40;</span> hDC, <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span>, oWnd:<span style=\"color: #000000;\">nHeight</span>, oWnd:<span style=\"color: #000000;\">nWidth</span>, aColors, lPos <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; DeleteObject<span style=\"color: #000000;\">&#40;</span> oWnd:<span style=\"color: #000000;\">oBrush</span>:<span style=\"color: #000000;\">hBrush</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; oWnd:<span style=\"color: #000000;\">oBrush</span>:<span style=\"color: #000000;\">hBitmap</span> = hBmp<br />&nbsp; &nbsp; &nbsp; oWnd:<span style=\"color: #000000;\">oBrush</span>:<span style=\"color: #000000;\">hBrush</span> = CreatePatternBrush<span style=\"color: #000000;\">&#40;</span> hBmp <span style=\"color: #000000;\">&#41;</span> <br />&nbsp; &nbsp; &nbsp; SelectObject<span style=\"color: #000000;\">&#40;</span> hDC, hBmpOld <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; oWnd:<span style=\"color: #000000;\">ReleaseDC</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">endif</span> &nbsp; <br /><br /><span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span><br /><br /><span style=\"color: #B900B9;\">//----------------------------------------------------------------------------//</span><br /><br /><span style=\"color: #00C800;\">STATIC</span> <span style=\"color: #00C800;\">FUNCTION</span> TRANSPCHILD<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">local</span> oWnd, oBtn1, oBtn2, oBtn3, oFont1<br /><br /><span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWnd <span style=\"color: #0000ff;\">MDICHILD</span> <span style=\"color: #0000ff;\">OF</span> WndMain<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #0000ff;\">FROM</span> <span style=\"color: #000000;\">50</span>, <span style=\"color: #000000;\">20</span> <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #000000;\">350</span>, <span style=\"color: #000000;\">190</span> <span style=\"color: #0000ff;\">PIXEL</span> ;<br />BORDER NONE ;&nbsp; &nbsp;<br />NOSYSMENU ;<br />NOICONIZE ;<br />NOCAPTION &nbsp; &nbsp; &nbsp; <br /><br />oWnd:<span style=\"color: #000000;\">SetBrush</span><span style=\"color: #000000;\">&#40;</span> WndMain<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #000000;\">oBrush</span> <span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">FONT</span> oFont1 <span style=\"color: #0000ff;\">NAME</span> <span style=\"color: #ff0000;\">\"Arial\"</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">-14</span> BOLD<br /><br />@ <span style=\"color: #000000;\">10</span>, <span style=\"color: #000000;\">10</span> <span style=\"color: #0000ff;\">BTNBMP</span> oBtn1 <span style=\"color: #0000ff;\">OF</span> oWnd <span style=\"color: #0000ff;\">PIXEL</span> ;<br /><span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">150</span> , <span style=\"color: #000000;\">70</span> &nbsp;<span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Test Button &1\"</span> <span style=\"color: #000000;\">2007</span> ;<br /><span style=\"color: #0000ff;\">FONT</span> oFont1 ;<br />TOP ;<br />NOBORDER ;<br />FILENAME <span style=\"color: #ff0000;\">\"e:<span style=\"color: #000000;\">\\f</span>wh<span style=\"color: #000000;\">\\b</span>itmaps<span style=\"color: #000000;\">\\3</span>2x32<span style=\"color: #000000;\">\\S</span>etup.bmp\"</span> ;<br /><span style=\"color: #0000ff;\">ACTION</span> MsgAlert<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Test\"</span>, <span style=\"color: #ff0000;\">\"Button 1\"</span> <span style=\"color: #000000;\">&#41;</span><br />oBtn1:<span style=\"color: #000000;\">SetColor</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">128</span>, <span style=\"color: #000000;\">&#41;</span><br />oBtn1:<span style=\"color: #000000;\">cTooltip</span> := &nbsp;<span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\"Test\"</span> + CRLF + ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #ff0000;\">\"Button\"</span>,<span style=\"color: #ff0000;\">\"Button 1\"</span>, <span style=\"color: #000000;\">1</span>, CLR_BLACK, <span style=\"color: #000000;\">14089979</span> <span style=\"color: #000000;\">&#125;</span><br /><br />@ <span style=\"color: #000000;\">115</span>, <span style=\"color: #000000;\">10</span> <span style=\"color: #0000ff;\">BTNBMP</span> oBtn2 <span style=\"color: #0000ff;\">OF</span> oWnd <span style=\"color: #0000ff;\">PIXEL</span> ;<br /><span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">150</span> , <span style=\"color: #000000;\">70</span> &nbsp;<span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Test Button &2\"</span> <span style=\"color: #000000;\">2007</span> ;<br /><span style=\"color: #0000ff;\">FONT</span> oFont1 ;<br />TOP ;<br />NOBORDER ;<br />FILENAME <span style=\"color: #ff0000;\">\"e:<span style=\"color: #000000;\">\\f</span>wh<span style=\"color: #000000;\">\\b</span>itmaps<span style=\"color: #000000;\">\\3</span>2x32<span style=\"color: #000000;\">\\S</span>tar.bmp\"</span> ;<br /><span style=\"color: #0000ff;\">ACTION</span> MsgAlert<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Test\"</span>, <span style=\"color: #ff0000;\">\"Button 2\"</span> <span style=\"color: #000000;\">&#41;</span><br />oBtn2:<span style=\"color: #000000;\">SetColor</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">128</span>, <span style=\"color: #000000;\">&#41;</span><br />oBtn2:<span style=\"color: #000000;\">cTooltip</span> := &nbsp;<span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\"Test\"</span> + CRLF + ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #ff0000;\">\"Button\"</span>,<span style=\"color: #ff0000;\">\"Button 2\"</span>, <span style=\"color: #000000;\">1</span>, CLR_BLACK, <span style=\"color: #000000;\">14089979</span> <span style=\"color: #000000;\">&#125;</span><br /><br />@ <span style=\"color: #000000;\">220</span>, <span style=\"color: #000000;\">10</span> <span style=\"color: #0000ff;\">BTNBMP</span> oBtn3 <span style=\"color: #0000ff;\">OF</span> oWnd <span style=\"color: #0000ff;\">PIXEL</span> ;<br /><span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">150</span> , <span style=\"color: #000000;\">70</span> &nbsp;<span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Exit\"</span> <span style=\"color: #000000;\">2007</span> ;<br /><span style=\"color: #0000ff;\">FONT</span> oFont1 ;<br />TOP ;<br />NOBORDER ;<br />FILENAME <span style=\"color: #ff0000;\">\"e:<span style=\"color: #000000;\">\\f</span>wh<span style=\"color: #000000;\">\\b</span>itmaps<span style=\"color: #000000;\">\\3</span>2x32<span style=\"color: #000000;\">\\Q</span>uit.bmp\"</span> ;<br /><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> &nbsp; &nbsp; &nbsp;<br />oBtn3:<span style=\"color: #000000;\">SetColor</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">128</span>, <span style=\"color: #000000;\">&#41;</span><br />oBtn3:<span style=\"color: #000000;\">cTooltip</span> := &nbsp;<span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\"Exit\"</span> + CRLF + ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #ff0000;\">\"MDI-test\"</span>,<span style=\"color: #ff0000;\">\"Exit\"</span>, <span style=\"color: #000000;\">1</span>, CLR_BLACK, <span style=\"color: #000000;\">14089979</span> <span style=\"color: #000000;\">&#125;</span><br /><br /><span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWnd ;<br /><span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">PAINT</span> ChildPaint<span style=\"color: #000000;\">&#40;</span> hDC, oWnd <span style=\"color: #000000;\">&#41;</span> ;<br /><span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">MOVE</span> <span style=\"color: #000000;\">&#40;</span> oWnd:<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 /><br />oFont1:<span style=\"color: #000000;\">End</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 /><br /><span style=\"color: #00C800;\">STATIC</span> <span style=\"color: #00C800;\">FUNCTION</span> CHILDPAINT<span style=\"color: #000000;\">&#40;</span> hDC, oWnd <span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">local</span> aPoint<br /><br />aPoint &nbsp; := ClientToScreen<span style=\"color: #000000;\">&#40;</span> WndMain<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #000000;\">hWnd</span>, <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span><br />aPoint &nbsp; := ScreenToClient<span style=\"color: #000000;\">&#40;</span> oWnd:<span style=\"color: #000000;\">hWnd</span>, aPoint <span style=\"color: #000000;\">&#41;</span><br /><br />SetBrushOrgEx<span style=\"color: #000000;\">&#40;</span> hDC, aPoint<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#93;</span>, aPoint<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#93;</span> + WndMain<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #000000;\">oBar</span>:<span style=\"color: #000000;\">nHeight</span> - <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#41;</span><br /><br />FillRect<span style=\"color: #000000;\">&#40;</span> hDC, GetClientRect<span style=\"color: #000000;\">&#40;</span> oWnd:<span style=\"color: #000000;\">hWnd</span> <span style=\"color: #000000;\">&#41;</span>, oWnd:<span style=\"color: #000000;\">oBrush</span>:<span style=\"color: #000000;\">hBrush</span> <span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span><br /><br />&nbsp;</div>[/code:3ocu116o]\n\nBest Regards\nUwe <!-- s:lol: --><img src=\"{SMILIES_PATH}/icon_lol.gif\" alt=\":lol:\" title=\"Laughing\" /><!-- s:lol: -->", "time": "01:05", "topic": "A transparent MDI-child to show Backgrd. of MDI-frame ?", "username": "ukoenig" } ]
A transparent MDI-child to show Backgrd. of MDI-frame ?
[ { "date": "2011-01-06", "forum": "FiveWin for Harbour/xHarbour", "text": "Mr. Rao,\n\nThank You very much for all Your Infos.\nI included Your Functions and it is possible now, to show the transparent Child \nwithout using a extra Background-image.\nAs well the MDI-frame Background can be changed without a new start.\nThe Restart-test is still included to show the changes, reading new Values from INI-file.\nI will still include some more Controls, like a Browser ...\n\nOnce, the Child is defined as < Transparent > .....\n\n[img:1rmxmo0e]http&#58;//www&#46;pflegeplus&#46;com/pictures/mditr1&#46;jpg[/img:1rmxmo0e] \n\nit shows the Backgroundpart of the MDI-frame from any MDI-frame Background-selection .....\n\n[img:1rmxmo0e]http&#58;//www&#46;pflegeplus&#46;com/pictures/mditr2&#46;jpg[/img:1rmxmo0e]\n\nthe result of a MDI-frame Background-change works without Restart .\n\n[img:1rmxmo0e]http&#58;//www&#46;pflegeplus&#46;com/pictures/mditr3&#46;jpg[/img:1rmxmo0e]\n\nYou can change the Values of the Ini-file and a Restart will use them.\nFor each line of the INI-file, a detailed Info is included. \n\n[img:1rmxmo0e]http&#58;//www&#46;pflegeplus&#46;com/pictures/mditr4&#46;jpg[/img:1rmxmo0e]\n\nBest Regards\nUwe <!-- s:lol: --><img src=\"{SMILIES_PATH}/icon_lol.gif\" alt=\":lol:\" title=\"Laughing\" /><!-- s:lol: -->", "time": "13:13", "topic": "A transparent MDI-child to show Backgrd. of MDI-frame ?", "username": "ukoenig" } ]
A transparent MDI-child to show Backgrd. of MDI-frame ?
[ { "date": "2011-01-06", "forum": "FiveWin for Harbour/xHarbour", "text": "Mr Uwe\n\nGlad I could be of some help to you.\n\nCan you please let me know what is the function you were using to make bitmap from a smaller rectangle inside a window?\n\nHonestly, I am not still happy with my solution for transparency. This is not truly transparent. Because to be really transparent, when more MDICHILD windows are used, each window should show the overlapped part of other child windows too. This does not do that. But this serves the purpose for now.", "time": "13:46", "topic": "A transparent MDI-child to show Backgrd. of MDI-frame ?", "username": "nageswaragunupudi" } ]
A transparent MDI-child to show Backgrd. of MDI-frame ?
[ { "date": "2011-01-06", "forum": "FiveWin for Harbour/xHarbour", "text": "Mr. Rao,\n\nI added a new Group to the Ribbonbar.\nNow it is possible to place a Thumbnail on the MDI-frame of any defined Background ( 3 Groups ).\n\nThe Screenshot shows the Button-group with selected < transparent >\nThe Thumbnail shows the Image, that would be the Background, if < Image > is selected. \n \n[img:1l5pqr4v]http&#58;//www&#46;pflegeplus&#46;com/pictures/mditr5&#46;jpg[/img:1l5pqr4v]\n\nTo paint a Thumbnail on a MDI-frame, I used : \n[code=fw:1l5pqr4v]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #B900B9;\">// from the Ribbonbar :</span><br />...<br />...<br /><span style=\"color: #B900B9;\">// At Startup : lBmpActive := .F. </span><br /><br /><span style=\"color: #B900B9;\">// --------- THUMBNAILS ----------------------</span><br /><span style=\"color: #B900B9;\">// --------------------------------------------------</span><br /><span style=\"color: #B900B9;\">// --------------------------------------------------</span><br /><br />ADD GROUP oGroup9 RIBBON oRibbon <span style=\"color: #0000ff;\">TO</span> OPTION <span style=\"color: #000000;\">9</span> <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Background - Thumbnails\"</span> WIDTH <span style=\"color: #000000;\">1000</span> <span style=\"color: #0000ff;\">FONT</span> oFONT2 <br /><br />oGroup9:<span style=\"color: #000000;\">SetFont</span><span style=\"color: #000000;\">&#40;</span> oFont1 <span style=\"color: #000000;\">&#41;</span><br />oGroup9:<span style=\"color: #0000ff;\">Refresh</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />@ <span style=\"color: #000000;\">10</span>, <span style=\"color: #000000;\">10</span> SELEX oSelex8 <span style=\"color: #0000ff;\">VAR</span> nOption8 <span style=\"color: #0000ff;\">OF</span> oGroup9 <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">320</span>, <span style=\"color: #000000;\">70</span> ;<br />GRADIENT OUTTRACK <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">0.5</span>, <span style=\"color: #000000;\">16770250</span>, <span style=\"color: #000000;\">16312263</span> <span style=\"color: #000000;\">&#125;</span>, ;<br />                       <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">0.5</span>, <span style=\"color: #000000;\">16312263</span>, <span style=\"color: #000000;\">16770250</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span>;<br />GRADIENT INTRACK <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">0.5</span>, <span style=\"color: #000000;\">14853684</span>, <span style=\"color: #000000;\">16312263</span> <span style=\"color: #000000;\">&#125;</span>, ;<br />                      <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">0.5</span>, <span style=\"color: #000000;\">16312263</span>, <span style=\"color: #000000;\">14853684</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span>;<br /><span style=\"color: #0000ff;\">ITEMS</span> <span style=\"color: #ff0000;\">\"Color\"</span>, <span style=\"color: #ff0000;\">\"Gradient\"</span>, <span style=\"color: #ff0000;\">\"Brush\"</span>, <span style=\"color: #ff0000;\">\"Image\"</span>, <span style=\"color: #ff0000;\">\"???\"</span>  ;<br /><span style=\"color: #0000ff;\">COLOR</span> THUMB <span style=\"color: #000000;\">8388608</span> ;<br />COLORTEXT <span style=\"color: #000000;\">128</span>, <span style=\"color: #000000;\">32768</span> ;<br />THUMBSIZE <span style=\"color: #000000;\">30</span>, <span style=\"color: #000000;\">25</span> ROUNDSIZE <span style=\"color: #000000;\">5</span> ;  <br /><span style=\"color: #0000ff;\">FONT</span> oFont1 ;<br /><span style=\"color: #0000ff;\">TITLE</span> <span style=\"color: #ff0000;\">\"MDI-frame\"</span> TOP ;<br />COLORTITLE <span style=\"color: #000000;\">0</span> ;<br /><span style=\"color: #0000ff;\">ACTION</span>  <span style=\"color: #000000;\">&#40;</span> CLOSE_DLG<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>, ;<br />                  IIF<span style=\"color: #000000;\">&#40;</span> nOption8 < <span style=\"color: #000000;\">5</span>, <span style=\"color: #000000;\">&#40;</span> SHOW_THUMB<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">1</span>,nOption8<span style=\"color: #000000;\">&#41;</span>, lBmpActive := .T.<span style=\"color: #000000;\">&#41;</span> , <span style=\"color: #00C800;\">NIL</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br /><br />oSelex8:<span style=\"color: #000000;\">Setoption</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">5</span> <span style=\"color: #000000;\">&#41;</span><br />...<br />...<br /><span style=\"color: #B900B9;\">// --- Test for a opened Child -----------</span><br /><br /><span style=\"color: #00C800;\">FUNCTION</span> CLOSE_DLG<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #00C800;\">IF</span> lBmpActive = .T.<br />     lBmpActive := .F.<br />     oWndThumb:<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">ENDIF</span><br /><br /><span style=\"color: #00C800;\">RETURN</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #00C800;\">NIL</span> <span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #B900B9;\">// ----------------------------</span><br /><br /><span style=\"color: #00C800;\">FUNCTION</span> SHOW_THUMB<span style=\"color: #000000;\">&#40;</span>nGroup,nSelect<span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">LOCAL</span> hDC, oBmp<br /><br /><span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWndThumb <span style=\"color: #0000ff;\">MDICHILD</span> <span style=\"color: #0000ff;\">OF</span> oWndMain <span style=\"color: #0000ff;\">FROM</span> <span style=\"color: #000000;\">50</span>, <span style=\"color: #000000;\">250</span> <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #000000;\">200</span>, <span style=\"color: #000000;\">450</span> <span style=\"color: #0000ff;\">PIXEL</span> ;<br />NOSYSMENU ;<br />NOICONIZE ;<br />NOCAPTION <br /><br /><span style=\"color: #B900B9;\">//BORDER NONE ;</span><br /><br />@ <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span> BITMAP oBMP FILENAME c_Path + <span style=\"color: #ff0000;\">\"<span style=\"color: #000000;\">\\b</span>itmaps<span style=\"color: #000000;\">\\3</span>2x32<span style=\"color: #000000;\">\\E</span>xit.bmp\"</span>  <span style=\"color: #0000ff;\">ADJUST</span> <span style=\"color: #0000ff;\">OF</span> oWndThumb<br /><span style=\"color: #00C800;\">IF</span> nGroup = <span style=\"color: #000000;\">1</span><br />    <span style=\"color: #00C800;\">IF</span> nSelect = <span style=\"color: #000000;\">1</span><br />        oBMP:<span style=\"color: #000000;\">bPainted</span> := <span style=\"color: #000000;\">&#123;</span>|hDC| DRAW_BRU<span style=\"color: #000000;\">&#40;</span> oBMP, hDC, <span style=\"color: #000000;\">1</span>, nColor1a, <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span>, .F., <span style=\"color: #ff0000;\">\"\"</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br />    <span style=\"color: #00C800;\">ENDIF</span><br />    <span style=\"color: #00C800;\">IF</span> nSelect = <span style=\"color: #000000;\">2</span><br />        oBMP:<span style=\"color: #000000;\">bPainted</span> := <span style=\"color: #000000;\">&#123;</span>|hDC| DRAW_BRU<span style=\"color: #000000;\">&#40;</span> oBMP, hDC, <span style=\"color: #000000;\">2</span>, nColor1a, nColor1b, nMove1, lDirect1, <span style=\"color: #ff0000;\">\"\"</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br />    <span style=\"color: #00C800;\">ENDIF</span><br />    <span style=\"color: #00C800;\">IF</span> nSelect = <span style=\"color: #000000;\">3</span><br />        oBMP:<span style=\"color: #000000;\">bPainted</span> := <span style=\"color: #000000;\">&#123;</span>|hDC| DRAW_BRU<span style=\"color: #000000;\">&#40;</span> oBMP, hDC, <span style=\"color: #000000;\">3</span>, <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span>, .F., cBrush1<span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br />    <span style=\"color: #00C800;\">ENDIF</span><br />    <span style=\"color: #00C800;\">IF</span> nSelect = <span style=\"color: #000000;\">4</span><br />        oBMP:<span style=\"color: #000000;\">bPainted</span> := <span style=\"color: #000000;\">&#123;</span>|hDC| DRAW_BRU<span style=\"color: #000000;\">&#40;</span> oBMP, hDC, <span style=\"color: #000000;\">5</span>, <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span>, .F., cImage1<span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br />    <span style=\"color: #00C800;\">ENDIF</span><br /><span style=\"color: #00C800;\">ENDIF</span><br /><span style=\"color: #00C800;\">IF</span> nGroup = <span style=\"color: #000000;\">2</span><br />    <span style=\"color: #00C800;\">IF</span> nSelect = <span style=\"color: #000000;\">1</span><br />        oBMP:<span style=\"color: #000000;\">bPainted</span> := <span style=\"color: #000000;\">&#123;</span>|hDC| DRAW_BRU<span style=\"color: #000000;\">&#40;</span> oBMP, hDC, <span style=\"color: #000000;\">1</span>, nColor2a, <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span>, .F., <span style=\"color: #ff0000;\">\"\"</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br />    <span style=\"color: #00C800;\">ENDIF</span><br />    <span style=\"color: #00C800;\">IF</span> nSelect = <span style=\"color: #000000;\">2</span><br />        oBMP:<span style=\"color: #000000;\">bPainted</span> := <span style=\"color: #000000;\">&#123;</span>|hDC| DRAW_BRU<span style=\"color: #000000;\">&#40;</span> oBMP, hDC, <span style=\"color: #000000;\">2</span>, nColor2a, nColor2b, nMove2, lDirect2, <span style=\"color: #ff0000;\">\"\"</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br />    <span style=\"color: #00C800;\">ENDIF</span><br />    <span style=\"color: #00C800;\">IF</span> nSelect = <span style=\"color: #000000;\">3</span><br />        oBMP:<span style=\"color: #000000;\">bPainted</span> := <span style=\"color: #000000;\">&#123;</span>|hDC| DRAW_BRU<span style=\"color: #000000;\">&#40;</span> oBMP, hDC, <span style=\"color: #000000;\">3</span>, <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span>, .F., cBrush2<span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br />    <span style=\"color: #00C800;\">ENDIF</span><br />    <span style=\"color: #00C800;\">IF</span> nSelect = <span style=\"color: #000000;\">4</span><br />        oBMP:<span style=\"color: #000000;\">bPainted</span> := <span style=\"color: #000000;\">&#123;</span>|hDC| DRAW_BRU<span style=\"color: #000000;\">&#40;</span> oBMP, hDC, <span style=\"color: #000000;\">5</span>, <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span>, .F., cImage2<span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br />    <span style=\"color: #00C800;\">ENDIF</span><br /><span style=\"color: #00C800;\">ENDIF</span><br /><span style=\"color: #00C800;\">IF</span> nGroup = <span style=\"color: #000000;\">3</span><br />    <span style=\"color: #00C800;\">IF</span> nSelect = <span style=\"color: #000000;\">1</span><br />        oBMP:<span style=\"color: #000000;\">bPainted</span> := <span style=\"color: #000000;\">&#123;</span>|hDC| DRAW_BRU<span style=\"color: #000000;\">&#40;</span> oBMP, hDC, <span style=\"color: #000000;\">1</span>, nColor3a, <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span>, .F., <span style=\"color: #ff0000;\">\"\"</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br />    <span style=\"color: #00C800;\">ENDIF</span><br />    <span style=\"color: #00C800;\">IF</span> nSelect = <span style=\"color: #000000;\">2</span><br />        oBMP:<span style=\"color: #000000;\">bPainted</span> := <span style=\"color: #000000;\">&#123;</span>|hDC| DRAW_BRU<span style=\"color: #000000;\">&#40;</span> oBMP, hDC, <span style=\"color: #000000;\">2</span>, nColor3a, nColor3b, nMove3, lDirect3, <span style=\"color: #ff0000;\">\"\"</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br />    <span style=\"color: #00C800;\">ENDIF</span><br />    <span style=\"color: #00C800;\">IF</span> nSelect = <span style=\"color: #000000;\">3</span><br />        oBMP:<span style=\"color: #000000;\">bPainted</span> := <span style=\"color: #000000;\">&#123;</span>|hDC| DRAW_BRU<span style=\"color: #000000;\">&#40;</span> oBMP, hDC, <span style=\"color: #000000;\">3</span>, <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span>, .F., cBrush3<span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br />    <span style=\"color: #00C800;\">ENDIF</span><br />    <span style=\"color: #00C800;\">IF</span> nSelect = <span style=\"color: #000000;\">4</span><br />        oBMP:<span style=\"color: #000000;\">bPainted</span> := <span style=\"color: #000000;\">&#123;</span>|hDC| DRAW_BRU<span style=\"color: #000000;\">&#40;</span> oBMP, hDC, <span style=\"color: #000000;\">5</span>, <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span>, .F., cImage3<span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br />    <span style=\"color: #00C800;\">ENDIF</span><br /><span style=\"color: #00C800;\">ENDIF</span><br /><br /><span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWndThumb ;<br /><span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">INIT</span> oBmp:<span style=\"color: #0000ff;\">Move</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">200</span>, <span style=\"color: #000000;\">150</span>, .T. <span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #00C800;\">RETURN</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #00C800;\">NIL</span> <span style=\"color: #000000;\">&#41;</span><br /> </div>[/code:1l5pqr4v]\n\n[color=#0000FF:1l5pqr4v]FUNCTION DRAW_BRUSH( oBitmap, hDC, nStyle, nVColor, nBColor, nMove, lDirect, cImage )[/color:1l5pqr4v]\nnStyle : selected 1 = Color, 2 = Gradient, 3 = Brush (tiled), 4 = Brush (adjusted), 5 = Image\nnVColor := 1. Gradient-color or Color \nnBColor : 2. Gradient-color\nnMove := 2. Gradient-color-position\nlDirect := Vertical, horizontal\ncImage := Brush or Image\n\n[color=#FF0000:1l5pqr4v]from Code :[/color:1l5pqr4v]\n[color=#0000FF:1l5pqr4v]1. Color Preview :[/color:1l5pqr4v]\n@ 100, 100 BITMAP oBMP FILENAME c_Path + \"\\bitmaps\\32x32\\Exit.bmp\" ADJUST OF oWndThumb\noBMP:bPainted := {|hDC| DRAW_BRU( oBMP, hDC, 1, nColor1, 0, 0, .F., \"\") }\n[color=#0000FF:1l5pqr4v]2. Gradient Preview :[/color:1l5pqr4v]\n@ 100, 100 BITMAP oBMP FILENAME c_Path + \"\\bitmaps\\32x32\\Exit.bmp\" ADJUST OF oWndThumb\noBMP:bPainted := {|hDC| DRAW_BRU( oBMP, hDC, 2, nColor1, nColor2, nMove, .F., \"\") }\n[color=#0000FF:1l5pqr4v]3. Brush Preview ( tiled ) :[/color:1l5pqr4v]\n@ 100, 100 BITMAP oBMP FILENAME c_Path + \"\\bitmaps\\32x32\\Exit.bmp\" ADJUST OF oWndThumb\noBMP:bPainted := {|hDC| DRAW_BRU( oBMP, hDC, 3, 0, 0, 0, .F., cBrush) }\n[color=#0000FF:1l5pqr4v]4. Brush Preview ( adjusted ) :[/color:1l5pqr4v]\n@ 100, 100 BITMAP oBMP FILENAME c_Path + \"\\bitmaps\\32x32\\Exit.bmp\" ADJUST OF oWndThumb\noBMP:bPainted := {|hDC| DRAW_BRU( oBMP, hDC, 4, 0, 0, 0, .F., cBrush) }\n[color=#0000FF:1l5pqr4v]5. Image Preview :[/color:1l5pqr4v]\n@ 100, 100 BITMAP oBMP FILENAME c_Path + \"\\bitmaps\\32x32\\Exit.bmp\" ADJUST OF oWndThumb\noBMP:bPainted := {|hDC| DRAW_BRU( oBMP, hDC, 5, 0, 0, 0, .F., cImage) }\n\n// Define BMP-size and Position using ON INIT !!!!\n// --------------------------------------------------------\nACTIVATE WINDOW oWnd ;\nON INIT oBmp:Move( 50, 50, 250, 200, .T. )\n\n[color=#FF0000:1l5pqr4v]from Resource :[/color:1l5pqr4v]\nREDEFINE BITMAP oBMP ID 100 ADJUST RESOURCE \"Blanc\" OF oDlg // any small BMP from Resource or File\noBMP:bPainted := {|hDC| DRAW_BRU(oBMP, hDC, 1, nColor1, 0, 0, .F., \"\") }\n\n[code=fw:1l5pqr4v]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #B900B9;\">// ---------- IMAGE / BMP-BRUSH ( Color, Gradient, Brush, Image ) ------------</span><br /><br /><span style=\"color: #00C800;\">FUNCTION</span> DRAW_BRUSH<span style=\"color: #000000;\">&#40;</span> oBitmap, hDC, nStyle, nVColor, nBColor, nMove, lDirect, cImage <span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">LOCAL</span> oNewBrush, nRow := <span style=\"color: #000000;\">0</span>, nCol := <span style=\"color: #000000;\">0</span>, n<br /><span style=\"color: #00C800;\">LOCAL</span> aGrad := <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">&#123;</span> nMove, nVColor, nBColor <span style=\"color: #000000;\">&#125;</span>, <span style=\"color: #000000;\">&#123;</span> nMove, nBColor, nVColor <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span><br /><span style=\"color: #00C800;\">LOCAL</span> aRect := GETCLIENTRECT<span style=\"color: #000000;\">&#40;</span> oBitmap:<span style=\"color: #000000;\">hWnd</span> <span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #00C800;\">IF</span> nStyle = <span style=\"color: #000000;\">1</span> <span style=\"color: #B900B9;\">// Color</span><br />     aRect := GETCLIENTRECT<span style=\"color: #000000;\">&#40;</span> oBitmap:<span style=\"color: #000000;\">hWnd</span> <span style=\"color: #000000;\">&#41;</span><br />     <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BRUSH</span> oNewbrush <span style=\"color: #0000ff;\">COLOR</span> nVColor<br />     FillRect<span style=\"color: #000000;\">&#40;</span> oBitmap:<span style=\"color: #000000;\">hDC</span>, aRect, oNewbrush:<span style=\"color: #000000;\">hBrush</span> <span style=\"color: #000000;\">&#41;</span><br />     <span style=\"color: #0000ff;\">RELEASE</span> <span style=\"color: #0000ff;\">BRUSH</span> oNewbrush<br /><span style=\"color: #00C800;\">ENDIF</span><br /><span style=\"color: #00C800;\">IF</span> nStyle = <span style=\"color: #000000;\">2</span> <span style=\"color: #B900B9;\">// Gradient</span><br />     <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BRUSH</span> oNewBrush <span style=\"color: #0000ff;\">COLOR</span> GradientFill<span style=\"color: #000000;\">&#40;</span> hDC,  <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span>, aRect<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">3</span><span style=\"color: #000000;\">&#93;</span>, aRect<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">4</span><span style=\"color: #000000;\">&#93;</span>, aGrad, lDirect <span style=\"color: #000000;\">&#41;</span><br />     FillRect<span style=\"color: #000000;\">&#40;</span> hDC, aRect, oNewBrush:<span style=\"color: #000000;\">hBrush</span> <span style=\"color: #000000;\">&#41;</span><br />     oBitmap:<span style=\"color: #000000;\">ReleaseDC</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />     <span style=\"color: #0000ff;\">RELEASE</span> <span style=\"color: #0000ff;\">BRUSH</span> oNewbrush<br /><span style=\"color: #00C800;\">ENDIF</span><br /><span style=\"color: #00C800;\">IF</span> nStyle = <span style=\"color: #000000;\">3</span> <span style=\"color: #B900B9;\">// Brush ( tiled )</span><br />     <span style=\"color: #0000ff;\">DEFINE</span> BITMAP oNewbrush FILENAME cImage<br />     nHeight := oNewbrush:<span style=\"color: #000000;\">nHeight</span><br />     nWidth := oNewbrush:<span style=\"color: #000000;\">nWidth</span><br />     <span style=\"color: #00C800;\">IF</span> aRect<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">3</span><span style=\"color: #000000;\">&#93;</span> > <span style=\"color: #000000;\">0</span> <br />          <span style=\"color: #00C800;\">DO</span> <span style=\"color: #00C800;\">WHILE</span> nRow < aRect<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">3</span><span style=\"color: #000000;\">&#93;</span><br />               nCol = <span style=\"color: #000000;\">0</span><br />               <span style=\"color: #00C800;\">DO</span> <span style=\"color: #00C800;\">WHILE</span> nCol < aRect<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">4</span><span style=\"color: #000000;\">&#93;</span><br />                    PalBmpDraw<span style=\"color: #000000;\">&#40;</span> hDC, nRow, nCol, oNewbrush:<span style=\"color: #000000;\">hBitmap</span> <span style=\"color: #000000;\">&#41;</span><br />                    nCol += nHeight<br />               <span style=\"color: #00C800;\">ENDDO</span><br />               nRow += nWidth<br />         <span style=\"color: #00C800;\">ENDDO</span><br />     <span style=\"color: #00C800;\">ENDIF</span><br /><span style=\"color: #00C800;\">ENDIF</span><br /><span style=\"color: #00C800;\">IF</span> nStyle = <span style=\"color: #000000;\">4</span> <span style=\"color: #B900B9;\">// Brush ( stretched )</span><br />     <span style=\"color: #0000ff;\">DEFINE</span> BITMAP oNewbrush FILENAME cImage<br />     PalBmpDraw<span style=\"color: #000000;\">&#40;</span> hDC, <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span>, oBitmap:<span style=\"color: #000000;\">hBitmap</span>, , aRect<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">4</span><span style=\"color: #000000;\">&#93;</span>, aRect<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">3</span><span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">ENDIF</span><br /><span style=\"color: #00C800;\">IF</span> nStyle = <span style=\"color: #000000;\">5</span> <span style=\"color: #B900B9;\">// Image</span><br />     <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">IMAGE</span> oNewbrush FILENAME cImage <br />     PalBmpDraw<span style=\"color: #000000;\">&#40;</span> hDC, <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span>, oNewbrush:<span style=\"color: #000000;\">hBitmap</span>, , aRect<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">4</span><span style=\"color: #000000;\">&#93;</span>, aRect<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">3</span><span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#41;</span> <br /><span style=\"color: #00C800;\">ENDIF</span><br /><br /><span style=\"color: #00C800;\">RETURN</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #00C800;\">NIL</span> <span style=\"color: #000000;\">&#41;</span><br /> </div>[/code:1l5pqr4v]\n\nBest Regards\nUwe <!-- s:lol: --><img src=\"{SMILIES_PATH}/icon_lol.gif\" alt=\":lol:\" title=\"Laughing\" /><!-- s:lol: -->", "time": "13:58", "topic": "A transparent MDI-child to show Backgrd. of MDI-frame ?", "username": "ukoenig" } ]
A transparent MDI-child to show Backgrd. of MDI-frame ?
[ { "date": "2011-02-16", "forum": "FiveWin for Harbour/xHarbour", "text": "Mr. Rao,\n\nIn my new Tool, I added Buttons to a MDI-Window.\nWith tests before : From MDI-Main and Child, transparent works.\n\nNow it gets a bit more complicated :\n\n1. A Main-window\n2. The Main-window includes a Dialog\n3. From the Dialog I call a MDI-frame\n4. The MDI-Frame includes a Child.\n\nThe Child I cannot get transparent painted ( used a Gradient for a Moment )\nIs there maybe a Solution to paint it transparent as well ? \n\n[img:1icef27c]http&#58;//www&#46;pflegeplus&#46;com/pictures/MDI5&#46;jpg[/img:1icef27c]\n\nThe Structure :\n\n[color=#0000FF:1icef27c]// ---------- The Dialog on Main-window ---------\n\nFUNCTION PAINTER(oWndMain)\n...\n...\nREDEFINE BTNBMP oBtn12 ID 915 OF oDlg1 2007 ;\nFILENAME c_path + \"\\Bitmaps\\Preview.bmp\" ;\nLEFT ;\nPROMPT \" &Preview\" ;\nFONT oFont5 ;\nACTION FULL_SIZE() // Button calls Preview-window\n..\n..\nACTIVATE DIALOG oDlg1 NOWAIT\n..\n..\nRETURN NIL\n\n// -- PREVIEW - WINDOW called from a Dialog of the Main-window --\n\nFUNCTION FULL_SIZE()\nLOCAL oWnd7\n\n// Image Background painted\n...\n...\n\nACTIVATE WINDOW oWnd7 MAXIMIZED ;\nON INIT TRANSPCHILD(oWnd7)\n\nRETURN NIL\n\n// --------- MDI-Child with Buttons ----------\n\nFUNCTION TRANSPCHILD(oWnd7)\nlocal hDC, oWndBtn\n\nDEFINE WINDOW oWndBtn MDICHILD OF oWnd7 FROM 55, 17 TO 185, 175 PIXEL ;\nBORDER NONE ;\t\nNOSYSMENU ;\nNOICONIZE ;\nNOCAPTION \n\n// 2 Buttons painted\n1. Switch Dialog ON / OFF to show the complete Window-background\n2. Exit MDI-frame ( Preview )\n...\n...\n\nACTIVATE WINDOW oWndBtn ;\nON PAINT CHILDPAINT( hDC, oWnd7, oWndBtn )\n\nRETURN NIL\n\n//-------- NO BACKGROUND displayed from MDI-frame !!! ----------\n\nSTATIC FUNCTION CHILDPAINT( hDC, oWnd7, oWndBtn )\nLOCAL aPoint\n\naPoint := ClientToScreen( oWnd7:hWnd, { 0, 0 } ) // WndMain()\naPoint := ScreenToClient( oWndBtn:hWnd, aPoint )\n\nSetBrushOrgEx( hDC, aPoint[ 2 ] - 1, aPoint[ 1 ] + oWndBtn:nTop + 80 ) \n//+ WndMain():oBar:nHeight - 1 )\n\nFillRect( hDC, GetClientRect( oWndBtn:hWnd ), oWndBtn:oBrush:hBrush )\n\nRETURN NIL[/color:1icef27c]Best Regards\nUwe <!-- s:?: --><img src=\"{SMILIES_PATH}/icon_question.gif\" alt=\":?:\" title=\"Question\" /><!-- s:?: -->", "time": "17:56", "topic": "A transparent MDI-child to show Backgrd. of MDI-frame ?", "username": "ukoenig" } ]
A transparent MDI-child to show Backgrd. of MDI-frame ?
[ { "date": "2006-02-23", "forum": "FiveWin para CA-Clipper", "text": "Saludos amigos del foro.\n\nEste maravilloso foro que tanto nos ayuda.\n\nUna pregunta que seguro ya la hicieron antes.\n\nPorque \"a veces\" funciona y \"a veces no\" el Pegado en TGet. Es decir cuando hago CTRL-V en un campo GET aparece inmediatamente lo pegado, pero cuando paso al siguiente campo get desaparece lo copiado.\n\nCuando yo utilizo esto, lo que hago es CTRL-V (pegar), luego la tecla END para irme al final del campo y nuevamente CTRL-V para volver a pegar y luego borrar lo ultimo pegado( que es un solo caracter) y asi, si permanece lo pegado.\n\nTengo varias aplicaciones en las que no le di mucha importancioa a este tema, por eso no hacia la consulta, pero ahora necesito que esto funcione bien en una empresa a la que le desarrolle un sistema.\n\nAh y este problema es en cualquier maquina, tanto en Win98, Me o Xp\n\nUtilizo FiveWin24, Clipper3 y Blinker7\n\nDe antemano gracias, y gracias por responder a una pregunta que seguro ya fue contestada.", "time": "15:42", "topic": "A veces funciona y a veces no el Pegado(CTRL_V) en TGet", "username": "SauroSrl" } ]
A veces funciona y a veces no el Pegado(CTRL_V) en TGet
[ { "date": "2006-02-23", "forum": "FiveWin para CA-Clipper", "text": "No había probado, el Ctrl-C, y Ctrl-V, en la aplicación que esta en pleno desarrollo. \n\nAsí que lo he estado probando, y no da problemas. Seguiré haciendo pruebas.\n\nLe adjunto, la configuración de un Edit text style, que uso en la aplicación, por si le fuera de ayuda:\n\nEn Caption: Text\nEn Attributes: Tab stop, Visibley Border\nAlignment: Left\nCase insensitive\nMultiline\n\nSon los unicos, que están activados.\n\nSaludos, José Mª", "time": "18:18", "topic": "A veces funciona y a veces no el Pegado(CTRL_V) en TGet", "username": "JMFS-D" } ]
A veces funciona y a veces no el Pegado(CTRL_V) en TGet
[ { "date": "2007-10-27", "forum": "FiveWin para Harbour/xHarbour", "text": "Hola a todos\n\nTengo éste código[code:3grhj11v]cFile&#58;=\"ALBARAN\"\ndbUseArea&#40;&#46;T&#46;,,&#40;cFile&#41;,\"Pedidos\",&#46;T&#46;&#41;\nPedidos->&#40;OrdSetFocus&#40;\"Codigo\"&#41;&#41;\npedidos->&#40;Dbgotop&#40;&#41;&#41;\nCursorWait&#40;&#41;\n//***** _DIAS = 90\ndStartDate&#58;=DATE&#40;&#41;-_DIAS\nCOPY TO POD2WEB1 FOR pedidos->FECHA > dStartDate [/code:3grhj11v]\n\nLa base de datos ALBARAN.DBF, tiene campo memo, por lo tanto tiene ALBARAN.FPT.\n\nBien, pues cuando llega al copy, me hace bien la copia en el fichero POD2WEB1.DBF, y me genera un POD2WEB1.FPT, pero se queda aquí, no continua y me lanza el siguiente error:\n[list:3grhj11v] Error description: Error DBFCDX/1010 Read error: G:\\mocwin\\2007\\ALBARAN.fpt\n\nStack Calls\n===========\n Called from: => __DBCOPY(0)\n Called from: subesube.prg => CREATEMPCLI(229)\n[/list:u:3grhj11v]\n\nSi pongo el codeblock para averiguar el error delante de la línea en cuestión, me da los siguientes errores\n[img][url=http&#58;//img528&#46;imageshack&#46;us/my&#46;php?image=error1pv1&#46;jpg:3grhj11v][img]http://img528.imageshack.us/img528/4216/error1pv1.th.jpg[/img][/url:3grhj11v] [/img]\n[img][url=http&#58;//img150&#46;imageshack&#46;us/my&#46;php?image=error2oh0&#46;jpg:3grhj11v][img]http://img150.imageshack.us/img150/9868/error2oh0.th.jpg[/img][/url:3grhj11v][/img]\n\nQue podrá ser? Será por el fpt? \nSerá mejor que en lugar de un copy to, cree la base en blanco y haga un append from?\n\nSaludos", "time": "11:21", "topic": "A ver si alguien me aclara éste error", "username": "JoseLuis" } ]
A ver si alguien me aclara éste error
[ { "date": "2007-10-27", "forum": "FiveWin para Harbour/xHarbour", "text": "Solucionado\n\nDebía de estar corrupto el fpt, le he pasado el Advanced Dbf Repair, y ya funciona\n\nSaludos", "time": "16:15", "topic": "A ver si alguien me aclara éste error", "username": "JoseLuis" } ]
A ver si alguien me aclara éste error
[ { "date": "2010-05-31", "forum": "FiveWin para Harbour/xHarbour", "text": "Alguien me daria un ejemplo de un boton desde\nrecursos con 2 lineas de promp y un bitmap (Ej.: prompt \"Cerrar\"+CRLF+\"TODAS LAS BASES\" y una cruz como bitmap para ver\nsi terminan mis problemas con lo botones POR FAVOR.\n\n\nGracias y disculpen \n\nSaludos Ruben Fernandez", "time": "22:06", "topic": "A ver si esta sale...Boton con prompt en 2 lineas", "username": "Ruben Fernandez" } ]
A ver si esta sale...Boton con prompt en 2 lineas
[ { "date": "2010-06-01", "forum": "FiveWin para Harbour/xHarbour", "text": "Hola amigo...\nPrueba así:\n\n[code=fw:3r7qwi5p]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> oBtn <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">200</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"CRUCECITA\"</span> <span style=\"color: #0000ff;\">LEFT</span>;<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Linea 1\"</span>+CHR<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">13</span><span style=\"color: #000000;\">&#41;</span>+<span style=\"color: #ff0000;\">\"Linea 2\"</span>;<br />&nbsp; &nbsp; &nbsp; TOOLTIP <span style=\"color: #ff0000;\">\"Prueba\"</span>;<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #0000ff;\">Msginfo</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp;</div>[/code:3r7qwi5p]\n\nEspero te sirva.\nSaludos, Esteban.", "time": "00:07", "topic": "A ver si esta sale...Boton con prompt en 2 lineas", "username": "jrestojeda" } ]
A ver si esta sale...Boton con prompt en 2 lineas
[ { "date": "2010-06-01", "forum": "FiveWin para Harbour/xHarbour", "text": "Gracias Esteban... no funciono, seguire probando a ver como lo logro.\n\nMuchas gracias y saludos\n\nRuben Fernandez", "time": "01:29", "topic": "A ver si esta sale...Boton con prompt en 2 lineas", "username": "Ruben Fernandez" } ]
A ver si esta sale...Boton con prompt en 2 lineas