topic
stringlengths
1
63
text
stringlengths
1
577k
( CONTRIBUTION ) PickColor with sources for your Systems
Thank you very much mr Uwe hopefully soon be available
( CONTRIBUTION ) PickColor with sources for your Systems
cuatecatl82, You can send me a eMail and I will return a download-link with the included source Download ( Standalone-exe-file ) <!-- m --><a class="postlink" href="http://www.pflegeplus.com/Downloads/CPicker1.zip">http://www.pflegeplus.com/Downloads/CPicker1.zip</a><!-- m --> I added the missing options [color=#0000FF:1jjkn7bk][b:1jjkn7bk]5. zoom-factors config-button copy to clipboard multiple selections[/b:1jjkn7bk][/color:1jjkn7bk] [img:1jjkn7bk]http&#58;//www&#46;pflegeplus&#46;com/IMAGES/Pick1&#46;jpg[/img:1jjkn7bk] [color=#0000FF:1jjkn7bk][b:1jjkn7bk]a projectfile because of EDIT-cells, You can define the project or copy the needed colors RGB or numeric. To manage the Project-file, delete, undelete and pack is added. The 1. record is protected and includes the system-settings. A multiline-get with the multiple color-captions can be copied to clipboars[/b:1jjkn7bk][/color:1jjkn7bk] [img:1jjkn7bk]http&#58;//www&#46;pflegeplus&#46;com/IMAGES/Pick2&#46;jpg[/img:1jjkn7bk] [color=#0000FF:1jjkn7bk][b:1jjkn7bk]You can define many settings select color, gradient or a BMP-brush gradient-painter included the text-color-define BMP-brush-selection the xBrowse row-colors the key to capture the colors[/b:1jjkn7bk][/color:1jjkn7bk] [img:1jjkn7bk]http&#58;//www&#46;pflegeplus&#46;com/IMAGES/Pick3&#46;jpg[/img:1jjkn7bk]
( CONTRIBUTION ) PickColor with sources for your Systems
Many thanks Uwe my email is <!-- e --><a href="mailto:danyleon82@hotmail.com">danyleon82@hotmail.com</a><!-- e --> Greetings
( CONTRIBUTION ) PickColor with sources for your Systems
Daniel, Have a look at : <!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=3&t=31155&p=180185#p180185">viewtopic.php?f=3&t=31155&p=180185#p180185</a><!-- l --> maybe it is useful for You, adding these functions to Your main-app. added functions < [color=#0000FF:15iqhecx]AUTOCLOSE[/color:15iqhecx] > and < [color=#0000FF:15iqhecx]BRING ON TOP [/color:15iqhecx]> for the color-picker. best regards Uwe <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
( Dos Error 6 ) em Fivewin 2.7
Colegas, Depois de atualizar a versao do Fwh para 2.7 e para o xharbour 0.99.70 , nos meus clientes que usam Windows 2003 server, quando se vai criar um DBF temporario, esta dando as seguintes mensagem de erro : ( DOS ERROR 6 ) DBFCDX/1004 Error de Criacao Tenho que resolver com urgencia, Obrigado a todos! Ate mais
(1909)Problem about MDI Window utf8
My .prg is encode utf8, I can not correct display chinese word, Why? and It's fail when I try change title of window (MDI) [img:76tuj20r]https&#58;//i&#46;imgur&#46;com/4WULGvE&#46;jpg[/img:76tuj20r] [url=https&#58;//app&#46;box&#46;com/s/uft0fz3hp9f0z4jhi4v2f6x4gjxi2xf6:76tuj20r]test.prg[/url:76tuj20r] [code=fw:76tuj20r]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"fivewin.ch"</span><br />func    Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">local</span>   oMenu, oWin<br />        HB_SetCodePage<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"UTF8"</span><span style="color: #000000;">&#41;</span><br />        HB_CDPSELECT<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"UTF8"</span><span style="color: #000000;">&#41;</span><br />        <span style="color: #B900B9;">//</span><br />        FW_SetUnicode<span style="color: #000000;">&#40;</span>.T.<span style="color: #000000;">&#41;</span><br />        <span style="color: #B900B9;">//</span><br />        <span style="color: #0000ff;">MENU</span> oMenu<br />             <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"[&A]????"</span><br />             <span style="color: #0000ff;">MENU</span><br />                <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"[&A]????-A"</span><br />                <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"[&B]????-B"</span><br />                <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"[&C]????-C"</span><br />             <span style="color: #0000ff;">ENDMENU</span><br />             <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"[&B]????"</span><br />             <span style="color: #0000ff;">MENU</span><br />                <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"[&A]????-A"</span><br />                <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"[&B]????-B"</span><br />                <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"[&C]????-C"</span><br />             <span style="color: #0000ff;">ENDMENU</span><br />             <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"[&S]????"</span><br />             <span style="color: #0000ff;">MENU</span><br />                <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"[&A]????-A"</span><br />                <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"[&B]????-B"</span><br />                <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"[&C]????-C"</span><br />             <span style="color: #0000ff;">ENDMENU</span><br />             <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"[&T]set MDI Window Title"</span> <span style="color: #0000ff;">ACTION</span> oWin:<span style="color: #000000;">cTitle</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">'????'</span><span style="color: #000000;">&#41;</span><br />        <span style="color: #0000ff;">ENDMENU</span><br />        <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> oWin <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"????(utf8 encode).?.?."</span> <span style="color: #0000ff;">COLOR</span> <span style="color: #ff0000;">"W+/N+"</span> <span style="color: #0000ff;">MDI</span> <span style="color: #0000ff;">MENU</span> oMenu<br />        <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oWin <span style="color: #0000ff;">MAXIMIZED</span><br /><span style="color: #00C800;">return</span>  <span style="color: #00C800;">nil</span><br /> </div>[/code:76tuj20r]
(1909)Problem about MDI Window utf8
Please try with my sample [img:3c8q3e3l]https&#58;//i&#46;postimg&#46;cc/W38VCyy7/mdiutf8&#46;png[/img:3c8q3e3l] [code=fw:3c8q3e3l]<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> oFont<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> oWin<br /><br />   <span style="color: #B900B9;">// Use a font type suitable for Unicode characters for Window and Menu</span><br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFont <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"Lucida Console"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">-16</span><br /><br />        <span style="color: #B900B9;">// Not necessary for this, but you can put it</span><br />        <span style="color: #B900B9;">//HB_SetCodePage("UTF8")</span><br />        <span style="color: #B900B9;">//HB_CDPSELECT("UTF8")</span><br />        <span style="color: #B900B9;">//</span><br />        <span style="color: #B900B9;">// Necessary for windows title initial</span><br />        FW_SetUnicode<span style="color: #000000;">&#40;</span>.T.<span style="color: #000000;">&#41;</span><br />        <span style="color: #B900B9;">//</span><br />        <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> oWin <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"????(utf8 encode).?.?."</span> ;<br />           <span style="color: #0000ff;">FROM</span> <span style="color: #000000;">2</span>, <span style="color: #000000;">2</span> <span style="color: #0000ff;">TO</span> <span style="color: #000000;">500</span>, <span style="color: #000000;">700</span> ;<br />           <span style="color: #0000ff;">COLOR</span> <span style="color: #ff0000;">"N+/W+"</span> <span style="color: #0000ff;">MDI</span> <span style="color: #0000ff;">MENU</span> SetMyMenu<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">PIXEL</span><br />           oWin:<span style="color: #000000;">SetFont</span><span style="color: #000000;">&#40;</span> oFont <span style="color: #000000;">&#41;</span><br /><br />        <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oWin <span style="color: #0000ff;">CENTERED</span> <span style="color: #B900B9;">//MAXIMIZED</span><br />   <span style="color: #0000ff;">RELEASE</span> <span style="color: #0000ff;">FONT</span> oFont<br /><br /><span style="color: #00C800;">return</span>  <span style="color: #00C800;">nil</span><br /><br /><span style="color: #00C800;">Function</span> SetMyMenu<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">local</span> oMenu<br /><br />        <span style="color: #0000ff;">MENU</span> oMenu <span style="color: #0000ff;">FONT</span> oFont<br />             <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"[&A]????"</span><br />             <span style="color: #0000ff;">MENU</span><br />                <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"[&A]????-A"</span><br />                <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"[&B]????-B"</span><br />                <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"[&C]????-C"</span><br />             <span style="color: #0000ff;">ENDMENU</span><br />             <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"[&B]????"</span><br />             <span style="color: #0000ff;">MENU</span><br />                <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"[&A]????-A"</span><br />                <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"[&B]????-B"</span><br />                <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"[&C]????-C"</span><br />             <span style="color: #0000ff;">ENDMENU</span><br />             <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"[&S]????"</span><br />             <span style="color: #0000ff;">MENU</span><br />                <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"[&A]????-A"</span><br />                <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"[&B]????-B"</span><br />                <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"[&C]????-C"</span><br />             <span style="color: #0000ff;">ENDMENU</span><br />             <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"[&T]set MDI Window Title"</span> <span style="color: #0000ff;">ACTION</span> oWin:<span style="color: #000000;">cTitle</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">'????'</span><span style="color: #000000;">&#41;</span><br />        <span style="color: #0000ff;">ENDMENU</span><br /><br /><span style="color: #00C800;">Return</span> oMenu<br /> </div>[/code:3c8q3e3l]
(1909)Problem about MDI Window utf8
[quote:36bh0js9]It's fail when I try change title of window (MDI)[/quote:36bh0js9] We confirm the problem. We are trying to find a solution.
(1909)Problem about MDI Window utf8
[quote="cnavarro":3psjx8zm]Please try with my sample [/quote:3psjx8zm] I had modify source\classes\menu.prg: 1: [img:3psjx8zm]https&#58;//i&#46;imgur&#46;com/21dyG7U&#46;jpg[/img:3psjx8zm] 2: [img:3psjx8zm]https&#58;//i&#46;imgur&#46;com/fj8UoYl&#46;jpg[/img:3psjx8zm] 3: [img:3psjx8zm]https&#58;//i&#46;imgur&#46;com/GyZGEr3&#46;jpg[/img:3psjx8zm] My old source code have not modify can correct Chinese word!! [code=fw:3psjx8zm]<div class="fw" id="{CB}" style="font-family: monospace;"><br />           <span style="color: #0000ff;">MENU</span> oMenu<br />                <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"[&A]????"</span><br />                <span style="color: #0000ff;">MENU</span><br /> </div>[/code:3psjx8zm] [code=fw:3psjx8zm]<div class="fw" id="{CB}" style="font-family: monospace;"><br />        <span style="color: #0000ff;">MENU</span> oMenu <span style="color: #0000ff;">POPUP</span><br />             <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"[&A]???"</span> <span style="color: #0000ff;">ACTION</span> test<span style="color: #000000;">&#40;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span><br />             <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"[&B]???"</span> <span style="color: #0000ff;">ACTION</span> test<span style="color: #000000;">&#40;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#41;</span><br />             <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"[&C]???"</span> <span style="color: #0000ff;">ACTION</span> test<span style="color: #000000;">&#40;</span><span style="color: #000000;">3</span><span style="color: #000000;">&#41;</span><br />        <span style="color: #0000ff;">ENDMENU</span><br /> </div>[/code:3psjx8zm]
(1909)Problem about MDI Window utf8
I see, My advice is to put at the beginning of your main function [code=fw:1i6j0wq4]<div class="fw" id="{CB}" style="font-family: monospace;"><br />    SetResDebug <span style="color: #000000;">&#40;</span>.T.<span style="color: #000000;">&#41;</span><br /> </div>[/code:1i6j0wq4] and before finishing the Main function [code=fw:1i6j0wq4]<div class="fw" id="{CB}" style="font-family: monospace;"><br />     CheckRes<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 /> </div>[/code:1i6j0wq4] and check the file checkres.txt that is generated, to verify that it has no resources without destroying The code you propose may be good for you but it does not imply a generic solution that can be applied because that implies that all menus will be drawn by Fivewin (OWNERDRAW) and not by the operating system. A curiosity: what operating system do you use and what language is the one that is configured by default?
(1909)Problem about MDI Window utf8
Is there any progress?
(1909)Problem about MDI Window utf8
Changing the title of MDI frame window? Not yet. Looks like this is going to take sometime.
(1909)Problem about MDI Window utf8
Please, My application is waiting for release....
(1909)Problem about MDI Window utf8
Fixed in the next release. The next release may be published very soon.
(AI) Building a text dictionary
Generic Python code to build a dictionary from a given text file: text.py [code=fw:byu6rqvn]<div class="fw" id="{CB}" style="font-family: monospace;">dictionary = <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span>   # hash table<br /><br /><span style="color: #0000ff;">text</span> = open<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">'original_english.txt'</span> <span style="color: #000000;">&#41;</span>.read<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>.split<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"."</span> <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">for</span> sentence in <span style="color: #0000ff;">text</span> :<br />   sentence = sentence.replace<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"<span style="color: #000000;">\n</span>"</span>, <span style="color: #ff0000;">" "</span> <span style="color: #000000;">&#41;</span>.replace<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">","</span>, <span style="color: #ff0000;">""</span> <span style="color: #000000;">&#41;</span><br />   <br />   <span style="color: #00C800;">for</span> word in sentence.split<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">" "</span> <span style="color: #000000;">&#41;</span> :<br />      <span style="color: #00C800;">print</span><span style="color: #000000;">&#40;</span> word <span style="color: #000000;">&#41;</span><br />      <span style="color: #00C800;">if</span> word not in dictionary :<br />         dictionary<span style="color: #000000;">&#91;</span> word <span style="color: #000000;">&#93;</span> = <span style="color: #000000;">1</span><br />      <span style="color: #00C800;">else</span> :<br />         dictionary<span style="color: #000000;">&#91;</span> word <span style="color: #000000;">&#93;</span> += <span style="color: #000000;">1</span><br />         <br /><span style="color: #00C800;">print</span><span style="color: #000000;">&#40;</span> dictionary <span style="color: #000000;">&#41;</span></div>[/code:byu6rqvn]
(AI) Building a text dictionary
Enhanced version: text.py [code=fw:ghspiqsq]<div class="fw" id="{CB}" style="font-family: monospace;">dictionary = <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span> &nbsp; # hash table<br /><br /><span style="color: #0000ff;">text</span> = open<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">'original_english.txt'</span> <span style="color: #000000;">&#41;</span>.read<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>.split<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"."</span> <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">for</span> sentence in <span style="color: #0000ff;">text</span> :<br />&nbsp; &nbsp;<span style="color: #000000;">sentence</span> = sentence.replace<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"<span style="color: #000000;">\n</span>"</span>, <span style="color: #ff0000;">" "</span> <span style="color: #000000;">&#41;</span>.replace<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">","</span>, <span style="color: #ff0000;">""</span> <span style="color: #000000;">&#41;</span>.replace<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"<span style="color: #000000;">\x</span>0c"</span>, <span style="color: #ff0000;">""</span> <span style="color: #000000;">&#41;</span>.replace<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"!"</span>, <span style="color: #ff0000;">""</span> <span style="color: #000000;">&#41;</span>.replace<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">'"'</span>, <span style="color: #ff0000;">""</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<br />&nbsp; &nbsp;<span style="color: #00C800;">for</span> word in sentence.split<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">" "</span> <span style="color: #000000;">&#41;</span> :<br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">print</span><span style="color: #000000;">&#40;</span> word <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> word not in dictionary :<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">dictionary</span><span style="color: #000000;">&#91;</span> word <span style="color: #000000;">&#93;</span> = <span style="color: #000000;">1</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">else</span> :<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">dictionary</span><span style="color: #000000;">&#91;</span> word <span style="color: #000000;">&#93;</span> += <span style="color: #000000;">1</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br /><span style="color: #00C800;">print</span><span style="color: #000000;">&#40;</span> sorted<span style="color: #000000;">&#40;</span> dictionary <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span></div>[/code:ghspiqsq]
(AI) Building a text dictionary
[url:3tzofwpa]https&#58;//github&#46;com/zackthoutt/got-book-6/blob/master/got-book-generator&#46;ipynb[/url:3tzofwpa] Thanks to Felix <!-- s;-) --><img src="{SMILIES_PATH}/icon_wink.gif" alt=";-)" title="Wink" /><!-- s;-) -->
(AI) Building a text dictionary
Understanding the creation of the dictionaries: hash.py [code=fw:3ej3a7sc]<div class="fw" id="{CB}" style="font-family: monospace;">words = <span style="color: #000000;">&#91;</span> <span style="color: #ff0000;">"hello"</span>, <span style="color: #ff0000;">"world"</span> <span style="color: #000000;">&#93;</span><br /><br />int_to_word = <span style="color: #000000;">&#123;</span> key: <span style="color: #000000;">word</span> <span style="color: #00C800;">for</span> key, word in enumerate<span style="color: #000000;">&#40;</span> words <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />word_to_int = <span style="color: #000000;">&#123;</span> word: <span style="color: #000000;">key</span> <span style="color: #00C800;">for</span> key, word in enumerate<span style="color: #000000;">&#40;</span> words <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br /><br /><span style="color: #00C800;">print</span><span style="color: #000000;">&#40;</span> int_to_word <span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">print</span><span style="color: #000000;">&#40;</span> word_to_int <span style="color: #000000;">&#41;</span></div>[/code:3ej3a7sc] [quote:3ej3a7sc]python hash.py {0: 'hello', 1: 'world'} {'hello': 0, 'world': 1}[/quote:3ej3a7sc] How to code this using Harbour ? <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
(AI) Building a text dictionary
[b:1ykjr02m]Long Short Term Memory networks – usually just called “LSTMs”[/b:1ykjr02m] – are a special kind of RNN, capable of learning long-term dependencies. They were introduced by Hochreiter & Schmidhuber (1997) [b:1ykjr02m]Long short-term memory (LSTM)[/b:1ykjr02m] is a recurrent neural network (RNN) architecture that remembers values over arbitrary intervals [url:1ykjr02m]https&#58;//en&#46;wikipedia&#46;org/wiki/Long_short-term_memory[/url:1ykjr02m] [url:1ykjr02m]https&#58;//medium&#46;com/towards-data-science/lstm-by-example-using-tensorflow-feb0c1968537[/url:1ykjr02m]
(AI) Building a text dictionary
book_train.py [code=fw:2oq8vxqd]<div class="fw" id="{CB}" style="font-family: monospace;">import numpy as np<br />import tensorflow as tf<br />import glob<br /><br />book_filenames = sorted<span style="color: #000000;">&#40;</span> glob.glob<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"*.txt"</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">print</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Found {} books"</span>.format<span style="color: #000000;">&#40;</span> len<span style="color: #000000;">&#40;</span> book_filenames <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />import codecs<br /><br />corpus_raw = u<span style="color: #ff0000;">""</span><br /><br /><span style="color: #00C800;">for</span> filename in book_filenames :<br />&nbsp; &nbsp; # with codecs.open<span style="color: #000000;">&#40;</span>filename, <span style="color: #ff0000;">'r'</span>, <span style="color: #ff0000;">'utf-8'</span><span style="color: #000000;">&#41;</span> as book_file:<br />&nbsp; &nbsp; # &nbsp; &nbsp;corpus_raw += book_file.read<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; corpus_raw += open<span style="color: #000000;">&#40;</span> filename <span style="color: #000000;">&#41;</span>.read<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">print</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Corpus is {} characters long"</span>.format<span style="color: #000000;">&#40;</span> len<span style="color: #000000;">&#40;</span> corpus_raw <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />def create_lookup_tables<span style="color: #000000;">&#40;</span><span style="color: #0000ff;">text</span><span style="color: #000000;">&#41;</span>:<br />&nbsp; &nbsp; <span style="color: #ff0000;">""</span><span style="color: #ff0000;">"<br />&nbsp; &nbsp; Create lookup tables for vocab<br />&nbsp; &nbsp; :param text: The GOT text split into words<br />&nbsp; &nbsp; :return: A tuple of dicts (vocab_to_int, int_to_vocab)<br />&nbsp; &nbsp; "</span><span style="color: #ff0000;">""</span><br />&nbsp; &nbsp; vocab = set<span style="color: #000000;">&#40;</span><span style="color: #0000ff;">text</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; int_to_vocab = <span style="color: #000000;">&#123;</span>key: <span style="color: #000000;">word</span> <span style="color: #00C800;">for</span> key, word in enumerate<span style="color: #000000;">&#40;</span>vocab<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; vocab_to_int = <span style="color: #000000;">&#123;</span>word: <span style="color: #000000;">key</span> <span style="color: #00C800;">for</span> key, word in enumerate<span style="color: #000000;">&#40;</span>vocab<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; <span style="color: #00C800;">return</span> vocab_to_int, int_to_vocab<br />&nbsp; &nbsp; <br />def token_lookup<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<br />&nbsp; &nbsp; <span style="color: #ff0000;">""</span><span style="color: #ff0000;">"<br />&nbsp; &nbsp; Generate a dict to map punctuation into a token<br />&nbsp; &nbsp; :return: dictionary mapping puncuation to token<br />&nbsp; &nbsp; "</span><span style="color: #ff0000;">""</span><br />&nbsp; &nbsp; <span style="color: #00C800;">return</span> <span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">'.'</span>: <span style="color: #ff0000;">'||period||'</span>,<br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">','</span>: <span style="color: #ff0000;">'||comma||'</span>,<br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">'"'</span>: <span style="color: #ff0000;">'||quotes||'</span>,<br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">';'</span>: <span style="color: #ff0000;">'||semicolon||'</span>,<br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">'!'</span>: <span style="color: #ff0000;">'||exclamation-mark||'</span>,<br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">'?'</span>: <span style="color: #ff0000;">'||question-mark||'</span>,<br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">'('</span>: <span style="color: #ff0000;">'||left-parentheses||'</span>,<br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">')'</span>: <span style="color: #ff0000;">'||right-parentheses||'</span>,<br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">'--'</span>: <span style="color: #ff0000;">'||emm-dash||'</span>,<br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">'<span style="color: #000000;">\n</span>'</span>: <span style="color: #ff0000;">'||return||'</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; <br />import pickle<br /><br />token_dict = token_lookup<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">for</span> token, replacement in token_dict.<span style="color: #0000ff;">items</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<br />&nbsp; &nbsp; <span style="color: #000000;">corpus_raw</span> = corpus_raw.replace<span style="color: #000000;">&#40;</span>token, <span style="color: #ff0000;">' {} '</span>.format<span style="color: #000000;">&#40;</span>replacement<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />corpus_raw = corpus_raw.lower<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />corpus_raw = corpus_raw.split<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />vocab_to_int, int_to_vocab = create_lookup_tables<span style="color: #000000;">&#40;</span>corpus_raw<span style="color: #000000;">&#41;</span><br />corpus_int = <span style="color: #000000;">&#91;</span>vocab_to_int<span style="color: #000000;">&#91;</span>word<span style="color: #000000;">&#93;</span> <span style="color: #00C800;">for</span> word in corpus_raw<span style="color: #000000;">&#93;</span><br />pickle.dump<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#40;</span>corpus_int, vocab_to_int, int_to_vocab, token_dict<span style="color: #000000;">&#41;</span>, open<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">'preprocess.p'</span>, <span style="color: #ff0000;">'wb'</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span> &nbsp; &nbsp;<br />&nbsp; &nbsp; <br />def get_batches<span style="color: #000000;">&#40;</span>int_text, batch_size, seq_length<span style="color: #000000;">&#41;</span>:<br />&nbsp; &nbsp; <span style="color: #ff0000;">""</span><span style="color: #ff0000;">"<br />&nbsp; &nbsp; Return batches of input and target data<br />&nbsp; &nbsp; :param int_text: text with words replaced by their ids<br />&nbsp; &nbsp; :param batch_size: the size that each batch of data should be<br />&nbsp; &nbsp; :param seq_length: the length of each sequence<br />&nbsp; &nbsp; :return: batches of data as a numpy array<br />&nbsp; &nbsp; "</span><span style="color: #ff0000;">""</span><br />&nbsp; &nbsp; words_per_batch = batch_size * seq_length<br />&nbsp; &nbsp; num_batches = len<span style="color: #000000;">&#40;</span>int_text<span style="color: #000000;">&#41;</span><span style="color: #B900B9;">//words_per_batch</span><br />&nbsp; &nbsp; int_text = int_text<span style="color: #000000;">&#91;</span>:<span style="color: #000000;">num_batches*words_per_batch</span><span style="color: #000000;">&#93;</span><br />&nbsp; &nbsp; y = np.array<span style="color: #000000;">&#40;</span>int_text<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span>:<span style="color: #000000;">&#93;</span> + <span style="color: #000000;">&#91;</span>int_text<span style="color: #000000;">&#91;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; x = np.array<span style="color: #000000;">&#40;</span>int_text<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; <br />&nbsp; &nbsp; x_batches = np.split<span style="color: #000000;">&#40;</span>x.reshape<span style="color: #000000;">&#40;</span>batch_size, <span style="color: #000000;">-1</span><span style="color: #000000;">&#41;</span>, num_batches, axis=<span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; y_batches = np.split<span style="color: #000000;">&#40;</span>y.reshape<span style="color: #000000;">&#40;</span>batch_size, <span style="color: #000000;">-1</span><span style="color: #000000;">&#41;</span>, num_batches, axis=<span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; <br />&nbsp; &nbsp; batch_data = list<span style="color: #000000;">&#40;</span>zip<span style="color: #000000;">&#40;</span>x_batches, y_batches<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; <br />&nbsp; &nbsp; <span style="color: #00C800;">return</span> np.array<span style="color: #000000;">&#40;</span>batch_data<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; <br />num_epochs = <span style="color: #000000;">10000</span><br />batch_size = <span style="color: #000000;">512</span><br />rnn_size = <span style="color: #000000;">512</span><br />num_layers = <span style="color: #000000;">3</span><br />keep_prob = <span style="color: #000000;">0.7</span><br />embed_dim = <span style="color: #000000;">512</span><br />seq_length = <span style="color: #000000;">30</span><br />learning_rate = <span style="color: #000000;">0.001</span><br />save_dir = <span style="color: #ff0000;">'./'</span> &nbsp; &nbsp;<br /><br />train_graph = tf.Graph<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />with train_graph.as_default<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>: &nbsp; &nbsp;<br />&nbsp; &nbsp; <br />&nbsp; &nbsp; # Initialize input placeholders<br />&nbsp; &nbsp; input_text = tf.placeholder<span style="color: #000000;">&#40;</span>tf.int32, <span style="color: #000000;">&#91;</span>None, None<span style="color: #000000;">&#93;</span>, <span style="color: #0000ff;">name</span>=<span style="color: #ff0000;">'input'</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; targets = tf.placeholder<span style="color: #000000;">&#40;</span>tf.int32, <span style="color: #000000;">&#91;</span>None, None<span style="color: #000000;">&#93;</span>, <span style="color: #0000ff;">name</span>=<span style="color: #ff0000;">'targets'</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; lr = tf.placeholder<span style="color: #000000;">&#40;</span>tf.float32, <span style="color: #0000ff;">name</span>=<span style="color: #ff0000;">'learning_rate'</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; <br />&nbsp; &nbsp; # Calculate <span style="color: #0000ff;">text</span> attributes<br />&nbsp; &nbsp; vocab_size = len<span style="color: #000000;">&#40;</span>int_to_vocab<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; input_text_shape = tf.shape<span style="color: #000000;">&#40;</span>input_text<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; <br />&nbsp; &nbsp; # Build the RNN cell<br />&nbsp; &nbsp; lstm = tf.contrib.rnn.BasicLSTMCell<span style="color: #000000;">&#40;</span>num_units=rnn_size<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; drop_cell = tf.contrib.rnn.DropoutWrapper<span style="color: #000000;">&#40;</span>lstm, output_keep_prob=keep_prob<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; cell = tf.contrib.rnn.MultiRNNCell<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#91;</span>drop_cell<span style="color: #000000;">&#93;</span> * num_layers<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; <br />&nbsp; &nbsp; # Set the initial state<br />&nbsp; &nbsp; initial_state = cell.zero_state<span style="color: #000000;">&#40;</span>input_text_shape<span style="color: #000000;">&#91;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#93;</span>, tf.float32<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; initial_state = tf.identity<span style="color: #000000;">&#40;</span>initial_state, <span style="color: #0000ff;">name</span>=<span style="color: #ff0000;">'initial_state'</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; <br />&nbsp; &nbsp; # Create word embedding as input <span style="color: #0000ff;">to</span> RNN<br />&nbsp; &nbsp; embed = tf.contrib.layers.embed_sequence<span style="color: #000000;">&#40;</span>input_text, vocab_size, embed_dim<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; <br />&nbsp; &nbsp; # Build RNN<br />&nbsp; &nbsp; outputs, final_state = tf.nn.dynamic_rnn<span style="color: #000000;">&#40;</span>cell, embed, dtype=tf.float32<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; final_state = tf.identity<span style="color: #000000;">&#40;</span>final_state, <span style="color: #0000ff;">name</span>=<span style="color: #ff0000;">'final_state'</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; <br />&nbsp; &nbsp; # Take RNN output and make logits<br />&nbsp; &nbsp; logits = tf.contrib.layers.fully_connected<span style="color: #000000;">&#40;</span>outputs, vocab_size, activation_fn=None<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; <br />&nbsp; &nbsp; # Calculate the probability <span style="color: #0000ff;">of</span> generating each word<br />&nbsp; &nbsp; probs = tf.nn.softmax<span style="color: #000000;">&#40;</span>logits, <span style="color: #0000ff;">name</span>=<span style="color: #ff0000;">'probs'</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; <br />&nbsp; &nbsp; # <span style="color: #0000ff;">Define</span> loss <span style="color: #00C800;">function</span><br />&nbsp; &nbsp; cost = tf.contrib.seq2seq.sequence_loss<span style="color: #000000;">&#40;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; logits,<br />&nbsp; &nbsp; &nbsp; &nbsp; targets,<br />&nbsp; &nbsp; &nbsp; &nbsp; tf.ones<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#91;</span>input_text_shape<span style="color: #000000;">&#91;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#93;</span>, input_text_shape<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; <br />&nbsp; &nbsp; # Learning <span style="color: #0000ff;">rate</span> optimizer<br />&nbsp; &nbsp; optimizer = tf.train.AdamOptimizer<span style="color: #000000;">&#40;</span>learning_rate<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; <br />&nbsp; &nbsp; # Gradient clipping <span style="color: #0000ff;">to</span> avoid exploding gradients<br />&nbsp; &nbsp; gradients = optimizer.compute_gradients<span style="color: #000000;">&#40;</span>cost<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; capped_gradients = <span style="color: #000000;">&#91;</span><span style="color: #000000;">&#40;</span>tf.clip_by_value<span style="color: #000000;">&#40;</span>grad, <span style="color: #000000;">-1</span>., <span style="color: #000000;">1</span>.<span style="color: #000000;">&#41;</span>, <span style="color: #0000ff;">var</span><span style="color: #000000;">&#41;</span> <span style="color: #00C800;">for</span> grad, <span style="color: #0000ff;">var</span> in gradients <span style="color: #00C800;">if</span> grad is not None<span style="color: #000000;">&#93;</span><br />&nbsp; &nbsp; train_op = optimizer.apply_gradients<span style="color: #000000;">&#40;</span>capped_gradients<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; <br />import time<br /><br />pickle.dump<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#40;</span>seq_length, save_dir<span style="color: #000000;">&#41;</span>, open<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">'params.p'</span>, <span style="color: #ff0000;">'wb'</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />batches = get_batches<span style="color: #000000;">&#40;</span>corpus_int, batch_size, seq_length<span style="color: #000000;">&#41;</span><br />num_batches = len<span style="color: #000000;">&#40;</span>batches<span style="color: #000000;">&#41;</span><br />start_time = time.time<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />with tf.Session<span style="color: #000000;">&#40;</span>graph=train_graph<span style="color: #000000;">&#41;</span> as sess:<br />&nbsp; &nbsp; <span style="color: #000000;">sess</span>.run<span style="color: #000000;">&#40;</span>tf.global_variables_initializer<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; <br />&nbsp; &nbsp; <span style="color: #00C800;">for</span> epoch in range<span style="color: #000000;">&#40;</span>num_epochs<span style="color: #000000;">&#41;</span>:<br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">state</span> = sess.run<span style="color: #000000;">&#40;</span>initial_state, <span style="color: #000000;">&#123;</span>input_text: <span style="color: #000000;">batches</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#125;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">for</span> batch_index, <span style="color: #000000;">&#40;</span>x, y<span style="color: #000000;">&#41;</span> in enumerate<span style="color: #000000;">&#40;</span>batches<span style="color: #000000;">&#41;</span>:<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">feed_dict</span> = <span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; input_text: <span style="color: #000000;">x</span>,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; targets: <span style="color: #000000;">y</span>,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; initial_state: <span style="color: #000000;">state</span>,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; lr: <span style="color: #000000;">learning_rate</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; train_loss, state, _ = sess.run<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#91;</span>cost, final_state, train_op<span style="color: #000000;">&#93;</span>, feed_dict<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; time_elapsed = time.time<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> - start_time<br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">print</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">'Epoch {:>3} Batch {:>4}/{} &nbsp; train_loss = {:.3f} &nbsp; time_elapsed = {:.3f} &nbsp; time_remaining = {:.0f}'</span>.format<span style="color: #000000;">&#40;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; epoch + <span style="color: #000000;">1</span>,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; batch_index + <span style="color: #000000;">1</span>,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; len<span style="color: #000000;">&#40;</span>batches<span style="color: #000000;">&#41;</span>,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; train_loss,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; time_elapsed,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#40;</span><span style="color: #000000;">&#40;</span>num_batches * num_epochs<span style="color: #000000;">&#41;</span>/<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#40;</span>epoch + <span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span> * <span style="color: #000000;">&#40;</span>batch_index + <span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span> * time_elapsed - time_elapsed<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; # save model every <span style="color: #000000;">10</span> epochs<br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> epoch % <span style="color: #000000;">10</span> == <span style="color: #000000;">0</span>:<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">saver</span> = tf.train.Saver<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; saver.save<span style="color: #000000;">&#40;</span>sess, save_dir<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">print</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">'Model Trained and Saved'</span><span style="color: #000000;">&#41;</span> &nbsp; &nbsp;</div>[/code:2oq8vxqd] book_gen.py [code=fw:2oq8vxqd]<div class="fw" id="{CB}" style="font-family: monospace;">import tensorflow as tf<br />import numpy as np<br />import pickle<br /><br />corpus_int, vocab_to_int, int_to_vocab, token_dict = pickle.load<span style="color: #000000;">&#40;</span>open<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">'preprocess.p'</span>, mode=<span style="color: #ff0000;">'rb'</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />seq_length, save_dir = pickle.load<span style="color: #000000;">&#40;</span>open<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">'params.p'</span>, mode=<span style="color: #ff0000;">'rb'</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br /><br />def pick_word<span style="color: #000000;">&#40;</span>probabilities, int_to_vocab<span style="color: #000000;">&#41;</span>:<br />&nbsp; &nbsp; <span style="color: #ff0000;">""</span><span style="color: #ff0000;">"<br />&nbsp; &nbsp; Pick the next word with some randomness<br />&nbsp; &nbsp; :param probabilities: Probabilites of the next word<br />&nbsp; &nbsp; :param int_to_vocab: Dictionary of word ids as the keys and words as the values<br />&nbsp; &nbsp; :return: String of the predicted word<br />&nbsp; &nbsp; "</span><span style="color: #ff0000;">""</span><br />&nbsp; &nbsp; <span style="color: #00C800;">return</span> np.random.choice<span style="color: #000000;">&#40;</span>list<span style="color: #000000;">&#40;</span>int_to_vocab.values<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>, <span style="color: #000000;">1</span>, p=probabilities<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#93;</span><br /><br />gen_length = <span style="color: #000000;">1000</span><br />prime_words = <span style="color: #ff0000;">'time'</span><br /><br />loaded_graph = tf.Graph<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />with tf.Session<span style="color: #000000;">&#40;</span>graph=loaded_graph<span style="color: #000000;">&#41;</span> as sess:<br />&nbsp; &nbsp; # Load the saved model<br />&nbsp; &nbsp; loader = tf.train.import_meta_graph<span style="color: #000000;">&#40;</span>save_dir + <span style="color: #ff0000;">'.meta'</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; loader.restore<span style="color: #000000;">&#40;</span>sess, save_dir<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; <br />&nbsp; &nbsp; # <span style="color: #0000ff;">Get</span> tensors <span style="color: #0000ff;">from</span> loaded graph<br />&nbsp; &nbsp; input_text = loaded_graph.get_tensor_by_name<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">'input:0'</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; initial_state = loaded_graph.get_tensor_by_name<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">'initial_state:0'</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; final_state = loaded_graph.get_tensor_by_name<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">'final_state:0'</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; probs = loaded_graph.get_tensor_by_name<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">'probs:0'</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; <br />&nbsp; &nbsp; # Sentences generation setup<br />&nbsp; &nbsp; gen_sentences = prime_words.split<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; prev_state = sess.run<span style="color: #000000;">&#40;</span>initial_state, <span style="color: #000000;">&#123;</span>input_text: <span style="color: #000000;">np</span>.array<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span> <span style="color: #00C800;">for</span> word in gen_sentences<span style="color: #000000;">&#93;</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#125;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; <br />&nbsp; &nbsp; # Generate sentences<br />&nbsp; &nbsp; <span style="color: #00C800;">for</span> n in range<span style="color: #000000;">&#40;</span>gen_length<span style="color: #000000;">&#41;</span>:<br />&nbsp; &nbsp; &nbsp; &nbsp; # Dynamic Input<br />&nbsp; &nbsp; &nbsp; &nbsp; dyn_input = <span style="color: #000000;">&#91;</span><span style="color: #000000;">&#91;</span>vocab_to_int<span style="color: #000000;">&#91;</span>word<span style="color: #000000;">&#93;</span> <span style="color: #00C800;">for</span> word in gen_sentences<span style="color: #000000;">&#91;</span>-seq_length:<span style="color: #000000;">&#93;</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#93;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; dyn_seq_length = len<span style="color: #000000;">&#40;</span>dyn_input<span style="color: #000000;">&#91;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; # <span style="color: #0000ff;">Get</span> Prediction<br />&nbsp; &nbsp; &nbsp; &nbsp; probabilities, prev_state = sess.run<span style="color: #000000;">&#40;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#91;</span>probs, final_state<span style="color: #000000;">&#93;</span>,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span>input_text: <span style="color: #000000;">dyn_input</span>, initial_state: <span style="color: #000000;">prev_state</span><span style="color: #000000;">&#125;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; pred_word = pick_word<span style="color: #000000;">&#40;</span> probabilities<span style="color: #000000;">&#91;</span> <span style="color: #000000;">0</span>, dyn_seq_length - <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span>, int_to_vocab <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; gen_sentences.append<span style="color: #000000;">&#40;</span> pred_word <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; # Remove tokens<br />&nbsp; &nbsp; chapter_text = <span style="color: #ff0000;">' '</span>.<span style="color: #0000ff;">join</span><span style="color: #000000;">&#40;</span>gen_sentences<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; <span style="color: #00C800;">for</span> key, token in token_dict.<span style="color: #0000ff;">items</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">chapter_text</span> = chapter_text.replace<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">' '</span> + token.lower<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, key<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; <span style="color: #00C800;">print</span><span style="color: #000000;">&#40;</span> chapter_text <span style="color: #000000;">&#41;</span><br /><br />chapter_text = <span style="color: #ff0000;">' '</span>.<span style="color: #0000ff;">join</span><span style="color: #000000;">&#40;</span>gen_sentences<span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">for</span> key, token in token_dict.<span style="color: #0000ff;">items</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<br />&nbsp; &nbsp; <span style="color: #000000;">chapter_text</span> = chapter_text.replace<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">' '</span> + token.lower<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, key<span style="color: #000000;">&#41;</span><br />chapter_text = chapter_text.replace<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">'<span style="color: #000000;">\n</span> '</span>, <span style="color: #ff0000;">'<span style="color: #000000;">\n</span>'</span><span style="color: #000000;">&#41;</span><br />chapter_text = chapter_text.replace<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">'( '</span>, <span style="color: #ff0000;">'('</span><span style="color: #000000;">&#41;</span><br /><br />capitalize_words = <span style="color: #000000;">&#91;</span><span style="color: #ff0000;">'juan'</span><span style="color: #000000;">&#93;</span><br /><br /><span style="color: #00C800;">for</span> word in capitalize_words:<br />&nbsp; &nbsp; <span style="color: #000000;">chapter_text</span> = chapter_text.replace<span style="color: #000000;">&#40;</span>word, word.lower<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>.<span style="color: #0000ff;">title</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br /><br />import os<br />version_dir = <span style="color: #ff0000;">'./generated-book-v1'</span><br /><span style="color: #00C800;">if</span> not os.path.<span style="color: #0000ff;">exists</span><span style="color: #000000;">&#40;</span>version_dir<span style="color: #000000;">&#41;</span>:<br />&nbsp; &nbsp; <span style="color: #000000;">os</span>.makedirs<span style="color: #000000;">&#40;</span>version_dir<span style="color: #000000;">&#41;</span><br /><br />num_chapters = len<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#91;</span><span style="color: #0000ff;">name</span> <span style="color: #00C800;">for</span> <span style="color: #0000ff;">name</span> in os.listdir<span style="color: #000000;">&#40;</span>version_dir<span style="color: #000000;">&#41;</span> <span style="color: #00C800;">if</span> os.path.isfile<span style="color: #000000;">&#40;</span>os.path.<span style="color: #0000ff;">join</span><span style="color: #000000;">&#40;</span>version_dir, <span style="color: #0000ff;">name</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span><br />next_chapter = version_dir + <span style="color: #ff0000;">'/chapter-'</span> + str<span style="color: #000000;">&#40;</span>num_chapters + <span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">'.md'</span><br />with open<span style="color: #000000;">&#40;</span>next_chapter, <span style="color: #ff0000;">"w"</span><span style="color: #000000;">&#41;</span> as text_file:<br />&nbsp; &nbsp; <span style="color: #000000;">text_file</span>.write<span style="color: #000000;">&#40;</span>chapter_text<span style="color: #000000;">&#41;</span></div>[/code:2oq8vxqd]
(AI) Webs of interest
[url:ffipr58x]https&#58;//deepart&#46;io/#[/url:ffipr58x] [url:ffipr58x]https&#58;//github&#46;com/tensorflow/tensorflow/tree/master/tensorflow/examples/tutorials/deepdream[/url:ffipr58x]
(AI) Webs of interest
[url:1ty4cw57]http&#58;//www&#46;asimovinstitute&#46;org/analyzing-deep-learning-tools-music/[/url:1ty4cw57]
(AI) Webs of interest
Something really interesting, at last! <!-- s:-D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":-D" title="Very Happy" /><!-- s:-D --> EMG
(AI) Webs of interest
Thought vectors [url:3kjwr9oi]https&#58;//deeplearning4j&#46;org/thoughtvectors[/url:3kjwr9oi]
(ANTONIO) UNABLE TO UPDATE NEW FIVEWIN RELEASE
Last november the seventh updated to fivewin 14.09, received the usar and password to dowload new release, today I'm unable to login to you system, just user and password doesn't work anymore.
(ANTONIO) UNABLE TO UPDATE NEW FIVEWIN RELEASE
Herbert, Por favor enviame un email con tu login y contraseña para que lo revise, gracias <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
(APORTE) PickColor con Fuentes para sus Sistemas
Saludos Compañeros del Foro: Les comparto el trabajo que he desarrollado en esta semana ojala en algun momento les sea útil, aún me falta una función por terminar y que espero con ayuda de todos la podamos tener 100% funcional. [img:18xxpu04]http&#58;//sim1&#46;subirimagenes&#46;net/img/2015/07/25//150725110059511943&#46;jpg[/img:18xxpu04] Es un generador de Colores en RGB, se pueden crear colores aleatorios en base a un rango específico, capturar el color de las paletas y almacenarlas en una tabla. Me falta la parte más importante y que no encuentro como hacerla, capturar el color de un pixel fuera de nuestra aplicación: [img:18xxpu04]http&#58;//sim1&#46;subirimagenes&#46;net/img/2015/07/25//150725110107511944&#46;jpg[/img:18xxpu04] Maestro Antonio y compañeros del foro: recurro a ustedes para que me orienten como hacer esta funcion, les dejo el Exe y las fuentes para que lo prueben y me comenten Saludos.. [url:18xxpu04]http&#58;//www&#46;mediafire&#46;com/download/5x6bjrrr98du15z/ColorPick&#46;zip[/url:18xxpu04]
(APORTE) PickColor con Fuentes para sus Sistemas
Victor, Lo acabo de probar: simplemente espectacular. Un trabajo impresionante. Enhorabuena <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> Has probado a capturar el ratón desde el diálogo del picker ? oDlg:Capture() cuando el usuario haga click en cualquier parte de la pantalla, saltará el evento ON CLICK del diálogo. Intenta llegar hasta ahí y luego ya vemos como acceder al pixel. Las imágenes que has puesto no se ven, intenta ponerlas porque son realmente buenas <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
(APORTE) PickColor con Fuentes para sus Sistemas
Gracias Maestro Antonio por los Animos: Las imagenes las cambie de Hosting ojala se puedan ver, cambie el archivo con las fuentes y les agrege las imagenes. Le comento que ya habia planteado y probado lo que me comenta, pero solo detecta las coordenadas del click del puntero dentro del Dialogo más no fuera, tampoco hace el cambio de cursor al que le indico con SetCursor, al hacer MSGINFO(hCursor) me devuelve un valor de 7079303 que indica que lo tiene en memoria, este es el código: [code=fw:3rfxhnco]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">Static</span> <span style="color: #00C800;">Function</span> PickColor<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">Local</span> oDlg, oClr, oBtn1, oBtn2, oHnd, oCur, aCor<br /><span style="color: #00C800;">local</span> &nbsp; lSalida:= .F.<br /><span style="color: #00C800;">Local</span> &nbsp; hCursor:= LoadCursor<span style="color: #000000;">&#40;</span>GetResources<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>,<span style="color: #ff0000;">"PICK"</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #B900B9;">// &nbsp;Cursor("PICK") &nbsp; -->> No Cambia el cursor a +</span><br /><br />&nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">Define</span> &nbsp; <span style="color: #0000ff;">CURSOR</span> &nbsp; &nbsp;oCur &nbsp; <span style="color: #0000ff;">Resource</span> <span style="color: #ff0000;">"ARROW"</span><br />&nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">Define</span> &nbsp; <span style="color: #0000ff;">CURSOR</span> &nbsp; &nbsp;oHnd &nbsp; <span style="color: #0000ff;">Resource</span> <span style="color: #ff0000;">"SELECT"</span><br />&nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">Define</span> &nbsp; <span style="color: #0000ff;">DIALOG</span> &nbsp; &nbsp;oDlg &nbsp; <span style="color: #0000ff;">Resource</span> <span style="color: #ff0000;">"CAPTURAR"</span> <br />&nbsp; &nbsp;<span style="color: #0000ff;">Redefine</span> &nbsp; <span style="color: #0000ff;">SAY</span> &nbsp; &nbsp; &nbsp; oClr &nbsp; <span style="color: #0000ff;">PROMPT</span> &nbsp; <span style="color: #ff0000;">" &nbsp; &nbsp; &nbsp; "</span> &nbsp; <span style="color: #0000ff;">ID</span> <span style="color: #000000;">100</span> <span style="color: #0000ff;">Of</span> oDlg <span style="color: #0000ff;">UPDATE</span><br />&nbsp; &nbsp;<span style="color: #0000ff;">RedeFine</span> &nbsp; BUTTONBMP oBtn1 &nbsp;<span style="color: #0000ff;">RESOURCE</span> <span style="color: #ff0000;">"GUARDAR"</span> &nbsp; <span style="color: #0000ff;">ID</span> <span style="color: #000000;">200</span> <span style="color: #0000ff;">Of</span> oDlg <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">&#40;</span>Msgstop<span style="color: #000000;">&#40;</span>Str<span style="color: #000000;">&#40;</span>cColor<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: #ff0000;">","</span>+str<span style="color: #000000;">&#40;</span>cColor<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: #ff0000;">","</span>+str<span style="color: #000000;">&#40;</span>cColor<span style="color: #000000;">&#91;</span><span style="color: #000000;">3</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span>,<span style="color: #ff0000;">"Guardando"</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #0000ff;">RedeFine</span> &nbsp; BUTTONBMP oBtn2 &nbsp;<span style="color: #0000ff;">RESOURCE</span> <span style="color: #ff0000;">"TERMINAR"</span> &nbsp;<span style="color: #0000ff;">ID</span> <span style="color: #000000;">300</span> <span style="color: #0000ff;">Of</span> oDlg <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">&#40;</span>lSalida:= .T., CursorWE<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, oDlg:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<br />&nbsp; &nbsp; oClr:<span style="color: #000000;">SetColor</span><span style="color: #000000;">&#40;</span>nRGB<span style="color: #000000;">&#40;</span>cColor<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>,cColor<span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span>,cColor<span style="color: #000000;">&#91;</span><span style="color: #000000;">3</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span>, nRGB<span style="color: #000000;">&#40;</span>cColor<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>,cColor<span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span>,cColor<span style="color: #000000;">&#91;</span><span style="color: #000000;">3</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; oClr:<span style="color: #000000;">lWantClick</span>:= .T.<br />&nbsp; &nbsp; oClr:<span style="color: #000000;">oCursor</span>:= oCur<br />&nbsp; &nbsp; oDlg:<span style="color: #000000;">oCursor</span>:= oCur<br />&nbsp; &nbsp; oDlg:<span style="color: #000000;">bInit</span>:= <span style="color: #000000;">&#123;</span> || SetCursor<span style="color: #000000;">&#40;</span>hCursor<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; oDlg:<span style="color: #000000;">Capture</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; oDlg:<span style="color: #000000;">bLClicked</span>:= <span style="color: #000000;">&#123;</span> || aCor:= GetCursorPos<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> , <span style="color: #0000ff;">Msginfo</span><span style="color: #000000;">&#40;</span>aCor<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>,aCor<span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span>, ReleaseCapture<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp;oBtn1:<span style="color: #000000;">oCursor</span>:= oHnd<br />&nbsp; &nbsp;oBtn1:<span style="color: #000000;">cTooltip</span>:= <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"Guardar Color Capturado"</span>, <span style="color: #ff0000;">"GetSysColor"</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp;oBtn2:<span style="color: #000000;">oCursor</span>:= oHnd<br />&nbsp; &nbsp;oBtn2:<span style="color: #000000;">cTooltip</span>:= <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"Salir del Capturador de Color"</span>, <span style="color: #ff0000;">"GetSysColor"</span>, <span style="color: #000000;">3</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp;<br />&nbsp; &nbsp;<span style="color: #0000ff;">Activate</span> &nbsp; <span style="color: #0000ff;">DIALOG</span> &nbsp; &nbsp;oDlg &nbsp; <span style="color: #0000ff;">Centered</span> <span style="color: #0000ff;">on</span> <span style="color: #0000ff;">Init</span><span style="color: #000000;">&#40;</span>SetWindowPos<span style="color: #000000;">&#40;</span> oDlg:<span style="color: #000000;">hWnd</span>, <span style="color: #000000;">-1</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span>, <span style="color: #00C800;">Self</span><span style="color: #000000;">&#41;</span> &nbsp;<span style="color: #0000ff;">Valid</span><span style="color: #000000;">&#40;</span><span style="color: #00C800;">Self</span>,lSalida<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">Nil</span><br />&nbsp;</div>[/code:3rfxhnco]
(APORTE) PickColor con Fuentes para sus Sistemas
y si en vez usar odlg:capture() usas SetCapture( GetDesktopWindow() ) , ¿ no te captura toda la pantalla ? . La duda me surge si captura los pixeles del desktop o los de las ventanas debujadas sobre él .
(APORTE) PickColor con Fuentes para sus Sistemas
Buenas, No sé si es una barbaridad, pero si haces una "foto" a la pantalla capturandola como un bitmap, y abres en modal esa imágen en un diálogo tipo splash, de los que ocupan toda la pantalla, recoges en ese diálogo el color del pixel y luego lo cierras. Lo que no sé es si el usuario notará el truco.
(APORTE) PickColor con Fuentes para sus Sistemas
Victor, Prueba asi: [code=fw:1nykd1pe]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> oDlg, oBtn<br />&nbsp; &nbsp;&nbsp;<br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg<br />&nbsp; &nbsp;&nbsp;<br />&nbsp; &nbsp;@ <span style="color: #000000;">0.5</span>, <span style="color: #000000;">1.5</span> <span style="color: #0000ff;">BUTTON</span> oBtn <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Capture"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">30</span>, <span style="color: #000000;">30</span> ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ACTION</span> oDlg:<span style="color: #000000;">Capture</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp;oBtn:<span style="color: #000000;">bGotFocus</span> = <span style="color: #000000;">&#123;</span> || oDlg:<span style="color: #000000;">Capture</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp;&nbsp;<br />&nbsp; &nbsp;<span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span> ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">CLICK</span> <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"click"</span> <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span></div>[/code:1nykd1pe]
(APORTE) PickColor con Fuentes para sus Sistemas
Gracias Maestro Antonio: Funciona igual, solo captura el click dentro del dialogo en areas donde no hay otros objetos, el ejemplo que propocriona Uwe [url:tghwwq61]http&#58;//forums&#46;fivetechsupport&#46;com/viewtopic&#46;php?f=3&t=31136&p=179970#p179970[/url:tghwwq61] es perfecto, pero por desgracia no proporciona su cóodigo fuente para entender como hacerlo.. Sigo investigando. Joaquín Martínez y mastintin: gracias por su idea, ya la habia probado tambien, el efecto de la pantalla de se, le vi sus detalles, la primera es que haciendo un PrintScren la calidad de la imagen no es exactamente igual y el tamaño del archivo dejan que desear en cuanto calidad, y la mas importante es que esteticamente truena, la idea es que sea completamente transparente como cualquier programa de pago.. Saludos.
(APORTE) PickColor con Fuentes para sus Sistemas
Buenas, Ahora no puedo mirarlo, pero no es un printscreen, ni pierde calidad, ni el usuario tiene que hacer nada. Es copiar en memoria la pantalla y mostrarla ocupando toda la pantalla. Si quieres, mañana te puedo mirar algo.
(APORTE) PickColor con Fuentes para sus Sistemas
Hola. Porque no lo intentas con WindowFromPoint(), nunca he utilizado esa función, pero según la guía de funciones te devuelve el hwnd correspondiente a unas coordenadas. Primero captura las coordenadas con GetCursorPos(), las cambias a coordenadas de pantalla con ClientToScreen(), se las pasas a WindowFromPoint() y después averiguas el color con GetPixel(). En teoría debería funcionar. Con probar... Un saludo.
(APORTE) PickColor con Fuentes para sus Sistemas
Veo que ya lo teneis solucionado ... yo he creado mi version usando gdi+ <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> la pongo aqui por si a alguien le sirve . Usa una captura de pantalla tradicional y crea un bmp gdi+ para luego hacer lo que queramos con el , grabar la pantalla como png ,bmp ,jpg ,capturar sus pixeles , etc... codigo a añadir a gdiplus.cpp [code=fw:3p5fvjts]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br /><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> GDIPLUSCAPTURESCREEN <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br /><br />    int nScreenWidth = GetSystemMetrics<span style="color: #000000;">&#40;</span>SM_CXSCREEN<span style="color: #000000;">&#41;</span>;<br />    int nScreenHeight = GetSystemMetrics<span style="color: #000000;">&#40;</span>SM_CYSCREEN<span style="color: #000000;">&#41;</span>;<br />    HWND hDesktopWnd = GetDesktopWindow<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;<br />    HDC hDesktopDC = GetDC<span style="color: #000000;">&#40;</span>hDesktopWnd<span style="color: #000000;">&#41;</span>;<br />    HDC hCaptureDC = CreateCompatibleDC<span style="color: #000000;">&#40;</span>hDesktopDC<span style="color: #000000;">&#41;</span>;<br />    HBITMAP hCaptureBitmap =CreateCompatibleBitmap<span style="color: #000000;">&#40;</span>hDesktopDC, <br />                            nScreenWidth, nScreenHeight<span style="color: #000000;">&#41;</span>;<br />    SelectObject<span style="color: #000000;">&#40;</span>hCaptureDC,hCaptureBitmap<span style="color: #000000;">&#41;</span>; <br />    BitBlt<span style="color: #000000;">&#40;</span>hCaptureDC,<span style="color: #000000;">0</span>,<span style="color: #000000;">0</span>,nScreenWidth,nScreenHeight,<br />           hDesktopDC,<span style="color: #000000;">0</span>,<span style="color: #000000;">0</span>,SRCCOPY|CAPTUREBLT<span style="color: #000000;">&#41;</span>; <br />           <br />    Bitmap * newImage =  <span style="color: #00C800;">new</span> Bitmap<span style="color: #000000;">&#40;</span> hCaptureBitmap , <span style="color: #00C800;">NULL</span> <span style="color: #000000;">&#41;</span>; <br />       <br />    ReleaseDC<span style="color: #000000;">&#40;</span>hDesktopWnd,hDesktopDC<span style="color: #000000;">&#41;</span>;<br />    DeleteDC<span style="color: #000000;">&#40;</span>hCaptureDC<span style="color: #000000;">&#41;</span>;<br />    DeleteObject<span style="color: #000000;">&#40;</span>hCaptureBitmap<span style="color: #000000;">&#41;</span>;<br />    <br />    hb_retnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> HB_LONG <span style="color: #000000;">&#41;</span> newImage <span style="color: #000000;">&#41;</span>;       <br />    <br /><span style="color: #000000;">&#125;</span><br /><br /> </div>[/code:3p5fvjts] un ejemplo funcionando usando el sample de Antonio. [code=fw:3p5fvjts]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">local</span> oDlg, oBtn<br />    <br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg<br />    <br />   @ <span style="color: #000000;">0.5</span>, <span style="color: #000000;">1.5</span> <span style="color: #0000ff;">BUTTON</span> oBtn <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Capture"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">30</span>, <span style="color: #000000;">30</span> ;<br />      <span style="color: #0000ff;">ACTION</span> oDlg:<span style="color: #000000;">Capture</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>   <br />            <br />   oBtn:<span style="color: #000000;">bGotFocus</span> = <span style="color: #000000;">&#123;</span> || oDlg:<span style="color: #000000;">Capture</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />    <br />   <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span> ;<br />      <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">CLICK</span>  capturapan<span style="color: #000000;">&#40;</span>odlg<span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><br /><span style="color: #00C800;">Function</span> capturapan<span style="color: #000000;">&#40;</span>odlg<span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">local</span> nRed,nGreen, nBlue   <br /><span style="color: #00C800;">local</span> aPix := GetCursorPos<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">local</span> oGBmp := GdiBmp<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">new</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />      oGBmp:<span style="color: #000000;">hBmp</span>:= GDIPLUSCAPTURESCREEN<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />            <br />      nRed   := oGBmp:<span style="color: #000000;">GetRedPix</span><span style="color: #000000;">&#40;</span> aPix<span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span>, aPix<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 />      nGreen := oGBmp:<span style="color: #000000;">GetGreenPix</span><span style="color: #000000;">&#40;</span> aPix<span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span>, aPix<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 />      nBlue  := oGBmp:<span style="color: #000000;">GetBluePix</span><span style="color: #000000;">&#40;</span> aPix<span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span>, aPix<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: #0000ff;">msginfo</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"color "</span> + str<span style="color: #000000;">&#40;</span> nred<span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">" "</span>+str<span style="color: #000000;">&#40;</span>nGreen<span style="color: #000000;">&#41;</span> +<span style="color: #ff0000;">" "</span> + str<span style="color: #000000;">&#40;</span>nblue <span style="color: #000000;">&#41;</span>  <span style="color: #000000;">&#41;</span>   <br />       <br />      odlg:<span style="color: #000000;">setcolor</span> <span style="color: #000000;">&#40;</span> , nrgb<span style="color: #000000;">&#40;</span>nred,nGreen,nblue<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <br />      odlg:<span style="color: #0000ff;">refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />    <br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /> </div>[/code:3p5fvjts]
(APORTE) PickColor con Fuentes para sus Sistemas
Mastintin: Gracias por tu aporte, te comento que lo probe, compile tu ejemplo y agregue lafuncion que compartes, al lanzar la aplicacion me muestra el boton "capture" y al hacer click me aparece un mensaje que dice "ficheros no encontrados" y termina con un error: [quote:1qc87xd9]Application =========== Path and name: E:\Fivewin\PRUEBAS\WinColors\ColorPick.Exe (32 bits) Size: 3,880,960 bytes Compiler version: Harbour 3.2.0dev (r1412151448) FiveWin Version: FWH 11.11 Windows version: 5.1, Build 2600 Service Pack 3 Time from start: 0 hours 0 mins 3 secs Error occurred at: 07/27/15, 12:57:52 Error description: Error BASE/1004 Message not found: GDIBMP:GETREDPIX Args: [ 1] = O GDIBMP Stack Calls =========== Called from: => __ERRRT_SBASE( 0 ) Called from: ../../../tobject.prg => GDIBMP:ERROR( 0 ) Called from: ../../../tobject.prg => (b)HBOBJECT( 0 ) Called from: ../../../tobject.prg => GDIBMP:MSGNOTFOUND( 0 ) Called from: ../../../tobject.prg => GDIBMP:GETREDPIX( 0 ) Called from: ColorPick.prg => CAPTURAPAN( 28 ) Called from: ColorPick.prg => (b)MAIN( 17 ) Called from: .\source\classes\WINDOW.PRG => TDIALOG:LBUTTONDOWN( 2008 ) Called from: => TWINDOW:HANDLEEVENT( 0 ) Called from: .\source\classes\DIALOG.PRG => TDIALOG:HANDLEEVENT( 902 ) Called from: => DIALOGBOXINDIRECT( 0 ) Called from: .\source\classes\DIALOG.PRG => TDIALOG:ACTIVATE( 286 ) Called from: ColorPick.prg => MAIN( 17 ) System ====== CPU type: Intel(R) Pentium(R) D CPU 3.20GHz 3200 Mhz Hardware memory: 1022 megs Free System resources: 90 % GDI resources: 90 % User resources: 90 % Windows total applications running: 6 1 , 2 , C:\WINDOWS\WinSxS\X86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.2600.5512_x-ww_35d4ce83 3 , C:\WINDOWS\system32\SHLWAPI.dll 4 , E:\Fivewin\PRUEBAS\WinColors\ColorPick.Exe 5 GDI+ Window, C:\WINDOWS\WinSxS\x86_Microsoft.Windows.GdiPlus_6595b64144ccf1df_1.0.2600.5512_x-ww_dfb54e0c\GDIPLUS 6 SysFader, C:\WINDOWS\system32\SHELL32.DLL Variables in use ================ Procedure Type Value ========================== __ERRRT_SBASE Param 1: O Class: ERROR GDIBMP:ERROR Param 1: N 13 Param 2: N 1004 Param 3: C "Message not found" Param 4: C "GDIBMP:GETREDPIX" Param 5: N 1 Param 6: O Class: GDIBMP Local 1: U Local 2: U (b)HBOBJECT Param 1: C "Message not found" Param 2: C "GDIBMP" Param 3: C "GETREDPIX" Param 4: N 1004 GDIBMP:MSGNOTFOUND Param 1: O Class: GDIBMP Param 2: C "GETREDPIX" Param 3: N 755 Param 4: N 436 GDIBMP:GETREDPIX Param 1: C "GETREDPIX" Param 2: N 755 Param 3: N 436 CAPTURAPAN Param 1: N 755 Param 2: N 436 (b)MAIN Param 1: O Class: TDIALOG Local 1: U Local 2: U Local 3: U Local 4: A Len: 2 Local 5: O Class: GDIBMP TDIALOG:LBUTTONDOWN Param 1: N 50 Param 2: N 114 Param 3: N 1 Param 4: O Class: TDIALOG TWINDOW:HANDLEEVENT Param 1: N 50 Param 2: N 114 Param 3: N 1 TDIALOG:HANDLEEVENT Param 1: N 513 Param 2: N 1 Param 3: N 3276914 DIALOGBOXINDIRECT Param 1: N 513 Param 2: N 1 Param 3: N 3276914 TDIALOG:ACTIVATE Param 1: N 4194304 Param 2: C "€ È€  Ÿ L P   e B U T T O N C a p t u r e " Param 3: N 0 Param 4: O Class: TDIALOG MAIN Param 1: B {|| ... } Param 2: U Param 3: U Param 4: L .T. Param 5: U Param 6: L .T. Param 7: U Param 8: U Param 9: U Param 10: L .F. Param 11: L .F. Local 1: N 0 Local 2: S Local 3: O Class: TDIALOG Linked RDDs =========== DBF DBFFPT DBFBLOB DBFNTX DataBases in use ================ Classes in use: =============== 1 ERROR 2 HBCLASS 3 HBOBJECT 4 TWINDOW 5 TDIALOG 6 TBRUSH 7 TCONTROL 8 TBUTTON 9 TFONT 10 TRECT 11 GDIBMP 12 TREG32 Memory Analysis =============== 213 Static variables Dynamic memory consume: Actual Value: 0 bytes Highest Value: 0 bytes [/quote:1qc87xd9] Creo que no tengo soporte completo a GDIPlus. Gracias.. Sigo investigando.
(APORTE) PickColor con Fuentes para sus Sistemas
[quote="cuatecatl82":1uzmtoh0]Mastintin: Creo que no tengo soporte completo a GDIPlus. Gracias.. Sigo investigando.[/quote:1uzmtoh0] Parece que te faltan funciones .... Añade estas a gdiplus.cpp [code=fw:1uzmtoh0]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br /> <span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> GDIPLUSIMAGEPIXGETRED <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />   Bitmap * newImage = <span style="color: #000000;">&#40;</span> Bitmap * <span style="color: #000000;">&#41;</span> hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>;<br />   int nX =  hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span>;<br />   int nY =  hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span>;<br />   <span style="color: #0000ff;">Color</span> pixelColor;<br />   newImage->GetPixel<span style="color: #000000;">&#40;</span>nX, nY, &pixelColor <span style="color: #000000;">&#41;</span>;<br />   long nR = pixelColor.GetR<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;<br />   hb_retnl<span style="color: #000000;">&#40;</span> nR <span style="color: #000000;">&#41;</span>;<br />   <span style="color: #000000;">&#125;</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /> <span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> GDIPLUSIMAGEPIXGETBLUE <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />   Bitmap * newImage = <span style="color: #000000;">&#40;</span> Bitmap * <span style="color: #000000;">&#41;</span> hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>;<br />   int nX =  hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span>;<br />   int nY =  hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span>;<br />   <span style="color: #0000ff;">Color</span> pixelColor;<br />   newImage->GetPixel<span style="color: #000000;">&#40;</span>nX, nY, &pixelColor <span style="color: #000000;">&#41;</span>;<br />   long nB = pixelColor.GetB<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;<br />   hb_retnl<span style="color: #000000;">&#40;</span> nB <span style="color: #000000;">&#41;</span>;<br />   <span style="color: #000000;">&#125;</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /> <span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> GDIPLUSIMAGEPIXGETGREEN <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />   Bitmap * newImage = <span style="color: #000000;">&#40;</span> Bitmap * <span style="color: #000000;">&#41;</span> hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>;<br />   int nX =  hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span>;<br />   int nY =  hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span>;<br />   <span style="color: #0000ff;">Color</span> pixelColor;<br />   newImage->GetPixel<span style="color: #000000;">&#40;</span>nX, nY, &pixelColor <span style="color: #000000;">&#41;</span>;<br />   long nG = pixelColor.GetG<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;<br />   hb_retnl<span style="color: #000000;">&#40;</span> nG <span style="color: #000000;">&#41;</span>;<br />   <span style="color: #000000;">&#125;</span><br /><br /> </div>[/code:1uzmtoh0] y cambia esto en el codigo ... [code=fw:1uzmtoh0]<div class="fw" id="{CB}" style="font-family: monospace;"><br />      <span style="color: #B900B9;">//nRed   := oGBmp:GetRedPix( aPix[2], aPix[1])     </span><br />      <span style="color: #B900B9;">//nGreen := oGBmp:GetGreenPix( aPix[2], aPix[1])     </span><br />      <span style="color: #B900B9;">//nBlue  := oGBmp:GetBluePix( aPix[2], aPix[1])    </span><br /><br />     nRed:= GDIPLUSIMAGEPIXGetRed<span style="color: #000000;">&#40;</span>oGbmp:<span style="color: #000000;">hbmp</span>,aPix<span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">-1</span>, aPix<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">-1</span><span style="color: #000000;">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// se resta uno pues el primer pixel es el 0,0 </span><br />     nGreen:= GDIPLUSIMAGEPIXGetGreen<span style="color: #000000;">&#40;</span>oGbmp:<span style="color: #000000;">hbmp</span>,aPix<span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">-1</span>, aPix<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">-1</span><span style="color: #000000;">&#41;</span><br />     nBlue:= GDIPLUSIMAGEPIXGetTBlue<span style="color: #000000;">&#40;</span>oGbmp:<span style="color: #000000;">hbmp</span>,aPix<span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">-1</span>, aPix<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">-1</span><span style="color: #000000;">&#41;</span><br /><br /><br /> </div>[/code:1uzmtoh0]
(APORTE) PickColor con Fuentes para sus Sistemas
Excelente funciona ya captura el color, hay que hacer unas modicaciones para evitar que en el boton de Guardar o Salir tambien capture el color pero ya hay avance, lo único que no me gusta es que al capturar el color siempre me manda un msginfo diciendo "ficheros no encotrados", ¿Que ficheros busca o son necesarios? Saludos..
(APORTE) PickColor con Fuentes para sus Sistemas
[quote="cuatecatl82":29xt153m] lo único que no me gusta es que al capturar el color siempre me manda un msginfo diciendo "ficheros no encotrados", ¿Que ficheros busca o son necesarios? Saludos..[/quote:29xt153m] ¿? . ¿Puedes poner una pausa ( msginfo() ) despues de ogbmp:= tgdibmp():new() ? a ver si sale antes o despues de tu pausa. Me da que es un problema de la implementación que tienes del methodo new de tgdiplus ( es el único sitio que se me ocurre que busque ficheros ) .Mira en él a ver si existe un mensaje similar .
(APORTE) PickColor con Fuentes para sus Sistemas
Hola Me quede con los ojitos cuadrados se ve super bonito <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: --> ya lo baje esta super <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> saluditos... <!-- s:wink: --><img src="{SMILIES_PATH}/icon_wink.gif" alt=":wink:" title="Wink" /><!-- s:wink: -->
(APORTE) PickColor con Fuentes para sus Sistemas
Espectacular. Muchas gracias. Saludos.
(Cerrado) Condicionar faltaspermisosvacaciones...
Hola buenas tardes aqui de nuevo con otro detalle.. Ahora solo me queda una duda, como saber o que parametros o campo tendria la base de datos,faltas, permisos o vacaciones. Segun sea el caso. Del personal que falto un dia o dos dias...que por ejemplo hoy no checo su entrada!, ya es una falta, o que pidio permiso no se considera falta o vacaciones... y como condicionar en mi reporte al momento de imprimir [b:6intfbod]Adriano Casanova falta[/b:6intfbod],porque no cheque hoy! ó [b:6intfbod]Permiso[/b:6intfbod] porque pedi permiso un dia antes... Alguien me puede orientar,acepto comentarios, sugerencias, ejemplos. etc etc . Saludos cordiales. Atte: Adrian C. C. <!-- e --><a href="mailto:acc69@hotmail.com">acc69@hotmail.com</a><!-- e -->
(Cerrado) Condicionar faltaspermisosvacaciones...
Hola Adrian: Simplemente con una tabla (dbf) que te indique las NOVEDADES de los empleados. Esas novedades deberían estar codificadas, sobre otra tabla de tipos de novedades. Al momento de saber la falta de fichada es justificada, deberías cruzar los datos con la tabla de novedades. Tabla Novedades LEGAJO FECHA TIPONOVEDAD .... Indice: LEGAJO+FECHA (STR(LEGAJO,6)+DTOS(FECHA)) Tabla de Fichadas LEGAJO FECHA HORA .... Indice: LEGAJO+FECHA(STR(LEGAJO,6)+DTOS(FECHA)) Tabla de motivos CODIGO DESCRIPCION cMotivoFalta := IF(novedad->(DBSEEK(STR(LEGAJO,6)+DTOS(FECHA)),(IF(motivos->(DBSEEK(novedad->tiponovedad)),motivos->descripcion,"Motivo erroneo"),"Sin justificar) Espero te sirva
(Cerrado) Condicionar faltaspermisosvacaciones...
[quote="cmsoft":232k99jf]Hola Adrian: Simplemente con una tabla (dbf) que te indique las NOVEDADES de los empleados. Esas novedades deberían estar codificadas, sobre otra tabla de tipos de novedades. Al momento de saber la falta de fichada es justificada, deberías cruzar los datos con la tabla de novedades. Tabla Novedades LEGAJO FECHA TIPONOVEDAD .... Indice: LEGAJO+FECHA (STR(LEGAJO,6)+DTOS(FECHA)) Tabla de Fichadas LEGAJO FECHA HORA .... Indice: LEGAJO+FECHA(STR(LEGAJO,6)+DTOS(FECHA)) Tabla de motivos CODIGO DESCRIPCION cMotivoFalta := IF(novedad->(DBSEEK(STR(LEGAJO,6)+DTOS(FECHA)),(IF(motivos->(DBSEEK(novedad->tiponovedad)),motivos->descripcion,"Motivo erroneo"),"Sin justificar) Espero te sirva[/quote:232k99jf] Gracias por tu interes cmsoft,trato de entender tu explicacion,el campo LEGAJO, te refieres a los registros, como Faltas, Permisos, Vacaciones, etc etc etc, ?? . Pero cómo el sistema sabrá qué empleado o empleados faltó esa fecha o fechas anteriores y el motivo que no checo entrada,o permiso,ahi mi duda de siempre,estoy armando la tabla como me dices, pero no hallo como el sistema sabrá el codigo de empleado,ya que actualmente en la tabla tengo asi : CODIGO NOMBRE HORA ENTRADA HORA SALIDA Bueno tengo varias tablas, como de turnos, puestos,empleados, MVENSALI...MOvimientos a detalle de entrada y salida. Saludos Ing. cmsoft Atte: Adrian C. C.
(Cerrado) Condicionar faltaspermisosvacaciones...
En la tabla de fichadas debes tener: CODIGO NOMBRE FECHA (Este campo te falta, es importante porque las consultas de si ficho o no la harás por dia) HORA ENTRADA HORA SALIDA Con el campo LEGAJO me refiero al CODIGO tuyo, al codigo de empleado. La tabla de motivos de ausencias, o NOVEDADES, deberá tener para cada fecha, los codigos de los empleados que presentaron algún motivo justificado de inasistencia. Los que no estén ni en la tabla de NOVEDADES ni en la tabla de FICHADAS, estarán ausentes sin motivo. Ejemplo: TABLA DE FICHADAS: CODIGO NOMBRE FECHA HORAENTRA HORASALE 00001 PEPE 01/01/2014 09:00:00 16:00:00 00002 JUAN 01/01/2014 09:00:00 16:00:00 00005 LUIS 01/01/2014 09:00:00 16:00:00 TABLA DE NOVEDADES: CODIGO NOMBRE FECHA MOTIVO 00003 JORGE 01/01/2014 ENFERMO TABLA DE PERSONAL: CODIGO NOMBRE 00001 PEPE 00002 JUAN 00003 JORGE 00004 MARIA 00005 LUIS Al procesar las asistencias, relacionando por codigo y fecha, te dira que JORGE falto porque estaba ENFERMO, y MARIA tiene una falta injustificada Espero haber sido claro. Saludos
(Cerrado) Condicionar faltaspermisosvacaciones...
[quote="cmsoft":14berszq]En la tabla de fichadas debes tener: CODIGO NOMBRE FECHA (Este campo te falta, es importante porque las consultas de si ficho o no la harás por dia) HORA ENTRADA HORA SALIDA Con el campo LEGAJO me refiero al CODIGO tuyo, al codigo de empleado. La tabla de motivos de ausencias, o NOVEDADES, deberá tener para cada fecha, los codigos de los empleados que presentaron algún motivo justificado de inasistencia. Los que no estén ni en la tabla de NOVEDADES ni en la tabla de FICHADAS, estarán ausentes sin motivo. Ejemplo: TABLA DE FICHADAS: CODIGO NOMBRE FECHA HORAENTRA HORASALE 00001 PEPE 01/01/2014 09:00:00 16:00:00 00002 JUAN 01/01/2014 09:00:00 16:00:00 00005 LUIS 01/01/2014 09:00:00 16:00:00 TABLA DE NOVEDADES: CODIGO NOMBRE FECHA MOTIVO 00003 JORGE 01/01/2014 ENFERMO TABLA DE PERSONAL: CODIGO NOMBRE 00001 PEPE 00002 JUAN 00003 JORGE 00004 MARIA 00005 LUIS Al procesar las asistencias, relacionando por codigo y fecha, te dira que JORGE falto porque estaba ENFERMO, y MARIA tiene una falta injustificada Espero haber sido claro. Saludos[/quote:14berszq] Hola buenos dias cmsoft aqui de nuevo, gracias por esa breve explicacion ya mas o menos voy entendiendolo, ya que nunca he hecho un sencillo sistema de entrada y salida de personal, asi como tambien como se determinan las faltas, permisos, etc etc ,por eso pregunto y saber mas el funcionamiento de sistema personal. Entonces no se añade automaticamente [b:14berszq]Codigo,nombre,fecha entrada y salida, por ejemplo en las tablas fichadas[/b:14berszq],sea lector codigo de barras o teclado,porque tenia entendido que si, no he recuerdo donde lo vi, que se creaba automaticamente como archivo temporal, en la otra tabla, y entonces yo me preguntaba CUAL ERA EL SECRETO que si [b:14berszq]MARIA[/b:14berszq] no checo !, como se añadia automaticamente en la tabla o archivo temporal. Entonces Ing. cmsoft, tengo que crear una rutina al momento de procesar asistencia y generar mi reporte y al momento de imprimir mi reporte, me debe especificar la fecha y dia que no checo, relacionando las tres tablas, PERSONAL.DBF, NOVEDADES.DBF, FICHADAS.DBF,es lo que me das a entender , cierto ?...ahora si se me complico o se me medio complico en esa rutina de PROCESAR ASISTENCIA...! Creo yo!.... Tengo que pensarle como hacerle en ese detalle...de faltas.! Saludos cmsoft. Atte: Adrian C. C.
(Cerrado) Condicionar faltaspermisosvacaciones...
Hola Adrian: Asi como lo dices es como yo lo hago. Pero seguramente habrá otras formas. La idea que yo tengo, es tener 2 sistemas. 1 el programa de fichadas. Y 2 el programa de gestión de inasistencias y control de personal. El programa 1 solo tiene que grabar en una tabla 1 tras otra, las fichadas que entran por el lector de códigos de barra. Los dos controles principales que hace este programa son, verificar que no llegue tarde (deberás decidir si graba o no una fichada tarde, según las reglas de tu sistema) y verificar que no tenga una NOVEDAD cargada de antemano para esa fecha (Puesto que por ejemplo, las vacaciones, son novedades que se cargan con anterioridad y se aplican a varios días según la licencia que se tome ese empleado). El segundo programa, ademas de tener toda la gestion operativa (abm de empleados, abm de tipos de inasistencias, etc, etc.) tomara los datos y emitirá los reportes como te comentaba en el mensaje anterior. Espero que te sirva de orientación. Saludos!
(Cerrado) Condicionar faltaspermisosvacaciones...
[quote="cmsoft":2ogpuzwr]Hola Adrian: Asi como lo dices es como yo lo hago. Pero seguramente habrá otras formas. La idea que yo tengo, es tener 2 sistemas. 1 el programa de fichadas. Y 2 el programa de gestión de inasistencias y control de personal. El programa 1 solo tiene que grabar en una tabla 1 tras otra, las fichadas que entran por el lector de códigos de barra. Los dos controles principales que hace este programa son, verificar que no llegue tarde (deberás decidir si graba o no una fichada tarde, según las reglas de tu sistema) y verificar que no tenga una NOVEDAD cargada de antemano para esa fecha (Puesto que por ejemplo, las vacaciones, son novedades que se cargan con anterioridad y se aplican a varios días según la licencia que se tome ese empleado). El segundo programa, ademas de tener toda la gestion operativa (abm de empleados, abm de tipos de inasistencias, etc, etc.) tomara los datos y emitirá los reportes como te comentaba en el mensaje anterior. Espero que te sirva de orientación. Saludos![/quote:2ogpuzwr] Gracias Ing. cmsoft, estoy en eso codificando la rutina y procesos de asistencia, que apenas voy creando variables y condiciones, y demas cosas que necesito en el reporte. Espero que me salga bien, de aqui hasta fin de semana domingo,espero tener listo la prueba del reporte. Por otro lado, estoy solicitando en el foro, codigo fuente de reloj checador y adaptarlo a mi sistema, andube buscando en el foro, pero ya no existe el archivo relogio.prg,espero que alguien me pueda ayudarme con esa rutina. Saludos y buen dia.!
(DOS Error -2147418111) WINOLE/1009 No exported method: LAN
(DOS Error -2147418111) WINOLE/1009 No exported method: LANGUAGESETTINGS Hi, Excel 2016 is installed this computer. This error comes randomly in ToExcel() function. Normally there is not any error like this. Any comment? ICRA_LBT.prg [code=fw:jl2rhdjq]<div class="fw" id="{CB}" style="font-family: monospace;">..<br />..<br />        aHataList := <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span><br /><br />        MyMsgMeter<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#123;</span>|oMeter, oDlg, oSay1, oSay2|;<br />            Toplu_TEBLIGAT_Aktarma_Detay1<span style="color: #000000;">&#40;</span>oMeter, oDlg, oSay1, oSay2, @aData1, aTumListe, oData<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#125;</span>,;<br />            <span style="color: #ff0000;">"E?le?tiriliyor. Lütfen Bekleyiniz"</span><span style="color: #000000;">&#41;</span><br /><br />        xbrowser aHataList slnum <span style="color: #0000ff;">title</span> <span style="color: #ff0000;">"BULUNAMAYANLAR - HATALIST"</span>   <span style="color: #B900B9;">// Line 2064 </span><br />..<br />..</div>[/code:jl2rhdjq] [code=fw:jl2rhdjq]<div class="fw" id="{CB}" style="font-family: monospace;">Application<br />===========<br />   Compiler version: <span style="color: #000000;">Harbour</span> <span style="color: #000000;">3.2</span>.0dev <span style="color: #000000;">&#40;</span>r2104281802<span style="color: #000000;">&#41;</span><br />   FiveWin  version: <span style="color: #000000;">FWH</span> <span style="color: #000000;">22.06</span><br />   C compiler version: <span style="color: #000000;">Microsoft</span> Visual C <span style="color: #000000;">19.31</span><span style="color: #000000;">.31107</span> <span style="color: #000000;">&#40;</span><span style="color: #000000;">32</span>-bit<span style="color: #000000;">&#41;</span><br />   Windows <span style="color: #000000;">10</span> <span style="color: #000000;">64</span> Bits, version: <span style="color: #000000;">6.2</span>, Build <span style="color: #000000;">9200</span> <br /><br />   Time <span style="color: #0000ff;">from</span> start: <span style="color: #000000;">0</span> hours <span style="color: #000000;">0</span> mins <span style="color: #000000;">44</span> secs <br />   Error occurred <span style="color: #00C800;">at</span>: <span style="color: #000000;">01</span>/<span style="color: #000000;">11</span>/<span style="color: #000000;">2022</span>, <span style="color: #000000;">14</span>:<span style="color: #000000;">18</span>:<span style="color: #000000;">48</span><br />   Error description: <span style="color: #000000;"><span style="color: #000000;">&#40;</span>DOS</span> Error <span style="color: #000000;">-2147418111</span><span style="color: #000000;">&#41;</span> WINOLE/<span style="color: #000000;">1009</span>  No exported <span style="color: #00C800;">method</span>: <span style="color: #000000;">LANGUAGESETTINGS</span><br /><br />Stack Calls<br />===========<br />   Called <span style="color: #0000ff;">from</span>:  => TOLEAUTO:<span style="color: #000000;">LANGUAGESETTINGS</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: .\source\<span style="color: #00C800;">function</span>\OLEFUNCS.PRG => EXCELLANGID<span style="color: #000000;">&#40;</span> <span style="color: #000000;">181</span> <span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: .\<span style="color: #0000ff;">xbrowse</span>.prg => SETEXCELLANGUAGE<span style="color: #000000;">&#40;</span> <span style="color: #000000;">12577</span> <span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: .\<span style="color: #0000ff;">xbrowse</span>.prg => TXBROWSE:<span style="color: #000000;">TOEXCEL</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">10660</span> <span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: .\source\<span style="color: #00C800;">function</span>\XBROWSER.PRG => <span style="color: #000000;">&#40;</span>b<span style="color: #000000;">&#41;</span><span style="color: #0000ff;">XBROWSE</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">181</span> <span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: .\source\classes\<span style="color: #0000ff;">BTNBMP</span>.PRG => TBTNBMP:<span style="color: #0000ff;">CLICK</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">792</span> <span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: .\source\classes\<span style="color: #0000ff;">BTNBMP</span>.PRG => TBTNBMP:<span style="color: #000000;">LBUTTONUP</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">1083</span> <span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: .\source\classes\CONTROL.PRG => TCONTROL:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">1847</span> <span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: .\source\classes\<span style="color: #0000ff;">BTNBMP</span>.PRG => TBTNBMP:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">2135</span> <span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: .\source\classes\<span style="color: #0000ff;">WINDOW</span>.PRG => _FWH<span style="color: #000000;">&#40;</span> <span style="color: #000000;">3680</span> <span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>:  => DIALOGBOXINDIRECT<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: .\source\classes\<span style="color: #0000ff;">DIALOG</span>.PRG => TDIALOG:<span style="color: #0000ff;">ACTIVATE</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">307</span> <span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: .\source\<span style="color: #00C800;">function</span>\XBROWSER.PRG => <span style="color: #0000ff;">XBROWSE</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">293</span> <span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: .\ICRA_LBT.prg => TOPLU_TEBLIGAT_AKTARMA<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2064</span> <span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: .\TApplication.prg => TAPPLICATION:<span style="color: #000000;">RUN</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">312</span> <span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: .\Master.prg => <span style="color: #000000;">&#40;</span>b<span style="color: #000000;">&#41;</span>DEFINE_RIBBON<span style="color: #000000;">&#40;</span> <span style="color: #000000;">3165</span> <span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: .\source\classes\<span style="color: #0000ff;">MENU</span>.PRG => TMENU:<span style="color: #0000ff;">ACTIVATE</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">1810</span> <span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: .\source\classes\TRBTN.PRG => TRBTN:<span style="color: #000000;">LBUTTONUP</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">886</span> <span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: .\source\classes\CONTROL.PRG => TCONTROL:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">1847</span> <span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: .\source\classes\TRBTN.PRG => TRBTN:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">1578</span> <span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: .\source\classes\<span style="color: #0000ff;">WINDOW</span>.PRG => _FWH<span style="color: #000000;">&#40;</span> <span style="color: #000000;">3680</span> <span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>:  => WINRUN<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: .\source\classes\<span style="color: #0000ff;">WINDOW</span>.PRG => TWINDOW:<span style="color: #0000ff;">ACTIVATE</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">1114</span> <span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: .\TApplication.prg => TAPPLICATION:<span style="color: #0000ff;">ACTIVATE</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">1402</span> <span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: .\Master.prg => MAIN<span style="color: #000000;">&#40;</span> <span style="color: #000000;">389</span> <span style="color: #000000;">&#41;</span><br /><br />System<br />======<br />   CPU type: <span style="color: #000000;">Intel</span><span style="color: #000000;">&#40;</span>R<span style="color: #000000;">&#41;</span> Core<span style="color: #000000;">&#40;</span>TM<span style="color: #000000;">&#41;</span> i3<span style="color: #000000;">-4160</span> CPU @ <span style="color: #000000;">3</span>.60GHz <span style="color: #000000;">3592</span> Mhz<br />   Hardware memory: <span style="color: #000000;">16322</span> megs<br /><br />   Free System resources: <span style="color: #000000;">90</span> %<br />        GDI    resources: <span style="color: #000000;">90</span> %<br />        User   resources: <span style="color: #000000;">90</span> %<br /><br />   Windows total applications running: <span style="color: #000000;">6</span><br />      <span style="color: #000000;">1</span> , C:\OBJEKT\IcraW\icraw.exe                                                                           <br />      <span style="color: #000000;">2</span> , C:\Windows\WinSxS\x86_microsoft.windows.common-controls_6595b64144ccf1df_6<span style="color: #000000;">.0</span><span style="color: #000000;">.19041</span>.1110_none_a8625c <br />      <span style="color: #000000;">3</span> DDE <span style="color: #00C800;">Server</span> <span style="color: #0000ff;">Window</span>, C:\Windows\System32\ole32.dll                                                                       <br />      <span style="color: #000000;">4</span> GDI+ <span style="color: #0000ff;">Window</span> <span style="color: #000000;">&#40;</span>icraw.exe<span style="color: #000000;">&#41;</span>, C:\Windows\WinSxS\x86_microsoft.windows.gdiplus_6595b64144ccf1df_1<span style="color: #000000;">.1</span><span style="color: #000000;">.19041</span>.1706_none_d94bc52be10975 <br />      <span style="color: #000000;">5</span> HideForm, C:\OBJEKT\IcraW\FrSystH.dll                                                                         <br />      <span style="color: #000000;">6</span> Microsoft <span style="color: #0000ff;">Text</span> Input Application,                                                                                                     <br /><br />Variables in use<br />================<br />   Procedure     Type   Value<br />   ==========================<br />   TOLEAUTO:<span style="color: #000000;">LANGUAGESETTINGS</span><br />     Param   <span style="color: #000000;">1</span>:    O    <span style="color: #00C800;">Class</span>: <span style="color: #000000;">ERROR</span><br />   EXCELLANGID<br />     <span style="color: #00C800;">Local</span>   <span style="color: #000000;">1</span>:    A    Len:    <span style="color: #000000;">2</span><br />     <span style="color: #00C800;">Local</span>   <span style="color: #000000;">2</span>:    U    <br />   SETEXCELLANGUAGE<br />     <span style="color: #00C800;">Local</span>   <span style="color: #000000;">1</span>:    O    <span style="color: #00C800;">Class</span>: <span style="color: #000000;">TOLEAUTO</span><br />     <span style="color: #00C800;">Local</span>   <span style="color: #000000;">2</span>:    A    Len:    <span style="color: #000000;">6</span><br />     <span style="color: #00C800;">Local</span>   <span style="color: #000000;">3</span>:    S    <br />   TXBROWSE:<span style="color: #000000;">TOEXCEL</span><br />     Param   <span style="color: #000000;">1</span>:    O    <span style="color: #00C800;">Class</span>: <span style="color: #000000;">TOLEAUTO</span><br />   <span style="color: #000000;">&#40;</span>b<span style="color: #000000;">&#41;</span><span style="color: #0000ff;">XBROWSE</span><br />     <span style="color: #00C800;">Local</span>   <span style="color: #000000;">1</span>:    U    <br />     <span style="color: #00C800;">Local</span>   <span style="color: #000000;">2</span>:    U    <br />     <span style="color: #00C800;">Local</span>   <span style="color: #000000;">3</span>:    A    Len:    <span style="color: #000000;">9</span><br />     <span style="color: #00C800;">Local</span>   <span style="color: #000000;">4</span>:    L    .T.<br />     <span style="color: #00C800;">Local</span>   <span style="color: #000000;">5</span>:    U    <br />     <span style="color: #00C800;">Local</span>   <span style="color: #000000;">6</span>:    U    <br />     <span style="color: #00C800;">Local</span>   <span style="color: #000000;">7</span>:    O    <span style="color: #00C800;">Class</span>: <span style="color: #000000;">TXBROWSE</span><br />     <span style="color: #00C800;">Local</span>   <span style="color: #000000;">8</span>:    O    <span style="color: #00C800;">Class</span>: <span style="color: #000000;">TOLEAUTO</span><br />     <span style="color: #00C800;">Local</span>   <span style="color: #000000;">9</span>:    U    <br />     <span style="color: #00C800;">Local</span>  <span style="color: #000000;">10</span>:    U    <br />     <span style="color: #00C800;">Local</span>  <span style="color: #000000;">11</span>:    U    <br />     <span style="color: #00C800;">Local</span>  <span style="color: #000000;">12</span>:    U    <br />     <span style="color: #00C800;">Local</span>  <span style="color: #000000;">13</span>:    U    <br />     <span style="color: #00C800;">Local</span>  <span style="color: #000000;">14</span>:    U    <br />     <span style="color: #00C800;">Local</span>  <span style="color: #000000;">15</span>:    U    <br />     <span style="color: #00C800;">Local</span>  <span style="color: #000000;">16</span>:    U    <br />     <span style="color: #00C800;">Local</span>  <span style="color: #000000;">17</span>:    U    <br />     <span style="color: #00C800;">Local</span>  <span style="color: #000000;">18</span>:    U    <br />     <span style="color: #00C800;">Local</span>  <span style="color: #000000;">19</span>:    N    <span style="color: #000000;">21</span><br />     <span style="color: #00C800;">Local</span>  <span style="color: #000000;">20</span>:    U    <br />     <span style="color: #00C800;">Local</span>  <span style="color: #000000;">21</span>:    U    <br />     <span style="color: #00C800;">Local</span>  <span style="color: #000000;">22</span>:    U    <br />     <span style="color: #00C800;">Local</span>  <span style="color: #000000;">23</span>:    U    <br />     <span style="color: #00C800;">Local</span>  <span style="color: #000000;">24</span>:    A    Len:    <span style="color: #000000;">0</span><br />     <span style="color: #00C800;">Local</span>  <span style="color: #000000;">25</span>:    L    .F.<br />     <span style="color: #00C800;">Local</span>  <span style="color: #000000;">26</span>:    A    Len:    <span style="color: #000000;">0</span><br />     <span style="color: #00C800;">Local</span>  <span style="color: #000000;">27</span>:    L    .T.<br />     <span style="color: #00C800;">Local</span>  <span style="color: #000000;">28</span>:    U    <br />     <span style="color: #00C800;">Local</span>  <span style="color: #000000;">29</span>:    N    <span style="color: #000000;">0</span><br />     <span style="color: #00C800;">Local</span>  <span style="color: #000000;">30</span>:    U    <br />     <span style="color: #00C800;">Local</span>  <span style="color: #000000;">31</span>:    U    <br />     <span style="color: #00C800;">Local</span>  <span style="color: #000000;">32</span>:    U    <br />     <span style="color: #00C800;">Local</span>  <span style="color: #000000;">33</span>:    U    <br />   TBTNBMP:<span style="color: #0000ff;">CLICK</span><br />     Param   <span style="color: #000000;">1</span>:    O    <span style="color: #00C800;">Class</span>: <span style="color: #000000;">TBTNBMP</span><br />   TBTNBMP:<span style="color: #000000;">LBUTTONUP</span><br />   TCONTROL:<span style="color: #000000;">HANDLEEVENT</span><br />     Param   <span style="color: #000000;">1</span>:    N    <span style="color: #000000;">14</span><br />     Param   <span style="color: #000000;">2</span>:    N    <span style="color: #000000;">15</span><br />     Param   <span style="color: #000000;">3</span>:    N    <span style="color: #000000;">0</span><br />     <span style="color: #00C800;">Local</span>   <span style="color: #000000;">1</span>:    L    .T.<br />     <span style="color: #00C800;">Local</span>   <span style="color: #000000;">2</span>:    N    <span style="color: #000000;">0</span><br />     <span style="color: #00C800;">Local</span>   <span style="color: #000000;">3</span>:    S    <br />   TBTNBMP:<span style="color: #000000;">HANDLEEVENT</span><br />     Param   <span style="color: #000000;">1</span>:    N    <span style="color: #000000;">514</span><br />     Param   <span style="color: #000000;">2</span>:    N    <span style="color: #000000;">0</span><br />     Param   <span style="color: #000000;">3</span>:    N    <span style="color: #000000;">917519</span><br />     <span style="color: #00C800;">Local</span>   <span style="color: #000000;">1</span>:    U    <br />   _FWH<br />     Param   <span style="color: #000000;">1</span>:    N    <span style="color: #000000;">514</span><br />     Param   <span style="color: #000000;">2</span>:    N    <span style="color: #000000;">0</span><br />     Param   <span style="color: #000000;">3</span>:    N    <span style="color: #000000;">917519</span><br />   DIALOGBOXINDIRECT<br />     Param   <span style="color: #000000;">1</span>:    N    <span style="color: #000000;">917519</span><br />     Param   <span style="color: #000000;">2</span>:    N    <span style="color: #000000;">514</span><br />     Param   <span style="color: #000000;">3</span>:    N    <span style="color: #000000;">0</span><br />     Param   <span style="color: #000000;">4</span>:    N    <span style="color: #000000;">917519</span><br />     Param   <span style="color: #000000;">5</span>:    N    <span style="color: #000000;">176</span><br />     <span style="color: #00C800;">Local</span>   <span style="color: #000000;">1</span>:    O    <span style="color: #00C800;">Class</span>: <span style="color: #000000;">TBTNBMP</span><br />   TDIALOG:<span style="color: #0000ff;">ACTIVATE</span><br />     Param   <span style="color: #000000;">1</span>:    N    <span style="color: #000000;">9306112</span><br />     Param   <span style="color: #000000;">2</span>:    C    <span style="color: #ff0000;">"€ Ï€       Ñ    B U L U N A M A Y A N L A R   -   H A T A L I S T        R    ÿÿ   ) «T B A R         1P    <br />  ½á µT X B R O W S E       "</span><br />     Param   <span style="color: #000000;">3</span>:    N    <span style="color: #000000;">527000</span><br />     Param   <span style="color: #000000;">4</span>:    O    <span style="color: #00C800;">Class</span>: <span style="color: #000000;">TDIALOG</span><br />   <span style="color: #0000ff;">XBROWSE</span><br />     Param   <span style="color: #000000;">1</span>:    U    <br />     Param   <span style="color: #000000;">2</span>:    U    <br />     Param   <span style="color: #000000;">3</span>:    B    <span style="color: #000000;">&#123;</span>|| ... <span style="color: #000000;">&#125;</span><br />     Param   <span style="color: #000000;">4</span>:    L    .F.<br />     Param   <span style="color: #000000;">5</span>:    B    <span style="color: #000000;">&#123;</span>|| ... <span style="color: #000000;">&#125;</span><br />     Param   <span style="color: #000000;">6</span>:    L    .T.<br />     Param   <span style="color: #000000;">7</span>:    U    <br />     Param   <span style="color: #000000;">8</span>:    U    <br />     Param   <span style="color: #000000;">9</span>:    U    <br />     Param  <span style="color: #000000;">10</span>:    U    <br />     Param  <span style="color: #000000;">11</span>:    U    <br />     Param  <span style="color: #000000;">12</span>:    L    .F.<br />     Param  <span style="color: #000000;">13</span>:    O    <span style="color: #00C800;">Class</span>: <span style="color: #000000;">TDIALOG</span><br />     Param  <span style="color: #000000;">14</span>:    U    <br />     <span style="color: #00C800;">Local</span>   <span style="color: #000000;">1</span>:    N    <span style="color: #000000;">527000</span><br />     <span style="color: #00C800;">Local</span>   <span style="color: #000000;">2</span>:    S    <br />     <span style="color: #00C800;">Local</span>   <span style="color: #000000;">3</span>:    O    <span style="color: #00C800;">Class</span>: <span style="color: #000000;">TDIALOG</span><br />   TOPLU_TEBLIGAT_AKTARMA<br />     Param   <span style="color: #000000;">1</span>:    A    Len:   <span style="color: #000000;">21</span><br />     Param   <span style="color: #000000;">2</span>:    C    <span style="color: #ff0000;">"BULUNAMAYANLAR - HATALIST"</span><br />     Param   <span style="color: #000000;">3</span>:    L    .F.<br />     Param   <span style="color: #000000;">4</span>:    U    <br />     Param   <span style="color: #000000;">5</span>:    U    <br />     Param   <span style="color: #000000;">6</span>:    U    <br />     Param   <span style="color: #000000;">7</span>:    L    .T.<br />     Param   <span style="color: #000000;">8</span>:    L    .F.<br />     Param   <span style="color: #000000;">9</span>:    U    <br />     Param  <span style="color: #000000;">10</span>:    C    <span style="color: #ff0000;">"slnum"</span><br />     Param  <span style="color: #000000;">11</span>:    L    .F.<br />     Param  <span style="color: #000000;">12</span>:    L    .F.<br />     <span style="color: #00C800;">Local</span>   <span style="color: #000000;">1</span>:    O    <span style="color: #00C800;">Class</span>: <span style="color: #000000;">TDIALOG</span><br />     <span style="color: #00C800;">Local</span>   <span style="color: #000000;">2</span>:    O    <span style="color: #00C800;">Class</span>: <span style="color: #000000;">TBAR</span><br />     <span style="color: #00C800;">Local</span>   <span style="color: #000000;">3</span>:    O    <span style="color: #00C800;">Class</span>: <span style="color: #000000;">TXBROWSE</span><br />     <span style="color: #00C800;">Local</span>   <span style="color: #000000;">4</span>:    O    <span style="color: #00C800;">Class</span>: <span style="color: #000000;">TFONT</span><br />     <span style="color: #00C800;">Local</span>   <span style="color: #000000;">5</span>:    O    <span style="color: #00C800;">Class</span>: <span style="color: #000000;">TFONT</span><br />     <span style="color: #00C800;">Local</span>   <span style="color: #000000;">6</span>:    U    <br />     <span style="color: #00C800;">Local</span>   <span style="color: #000000;">7</span>:    U    <br />     <span style="color: #00C800;">Local</span>   <span style="color: #000000;">8</span>:    N    <span style="color: #000000;">720.00</span><br />     <span style="color: #00C800;">Local</span>   <span style="color: #000000;">9</span>:    N    <span style="color: #000000;">270.00</span><br />     <span style="color: #00C800;">Local</span>  <span style="color: #000000;">10</span>:    U    <br />     <span style="color: #00C800;">Local</span>  <span style="color: #000000;">11</span>:    U    <br />     <span style="color: #00C800;">Local</span>  <span style="color: #000000;">12</span>:    U    <br />     <span style="color: #00C800;">Local</span>  <span style="color: #000000;">13</span>:    U    <br />     <span style="color: #00C800;">Local</span>  <span style="color: #000000;">14</span>:    U    <br />     <span style="color: #00C800;">Local</span>  <span style="color: #000000;">15</span>:    L    .T.<br />     <span style="color: #00C800;">Local</span>  <span style="color: #000000;">16</span>:    U    <br />     <span style="color: #00C800;">Local</span>  <span style="color: #000000;">17</span>:    N    <span style="color: #000000;">1</span><br />     <span style="color: #00C800;">Local</span>  <span style="color: #000000;">18</span>:    N    <span style="color: #000000;">1</span><br />     <span style="color: #00C800;">Local</span>  <span style="color: #000000;">19</span>:    L    .F.<br />     <span style="color: #00C800;">Local</span>  <span style="color: #000000;">20</span>:    A    Len:    <span style="color: #000000;">0</span><br />     <span style="color: #00C800;">Local</span>  <span style="color: #000000;">21</span>:    L    .T.<br />   TAPPLICATION:<span style="color: #000000;">RUN</span><br />     <span style="color: #00C800;">Local</span>   <span style="color: #000000;">1</span>:    O    <span style="color: #00C800;">Class</span>: <span style="color: #000000;">TPUBLIC</span><br />     <span style="color: #00C800;">Local</span>   <span style="color: #000000;">2</span>:    A    Len:   <span style="color: #000000;">14</span><br />     <span style="color: #00C800;">Local</span>   <span style="color: #000000;">3</span>:    A    Len:   <span style="color: #000000;">14</span><br />     <span style="color: #00C800;">Local</span>   <span style="color: #000000;">4</span>:    N    <span style="color: #000000;">15</span><br />     <span style="color: #00C800;">Local</span>   <span style="color: #000000;">5</span>:    C    <span style="color: #ff0000;">"Toplu_TEBLIGAT_Aktarma"</span><br />     <span style="color: #00C800;">Local</span>   <span style="color: #000000;">6</span>:    L    .F.<br />     <span style="color: #00C800;">Local</span>   <span style="color: #000000;">7</span>:    A    Len:   <span style="color: #000000;">14</span><br />   <span style="color: #000000;">&#40;</span>b<span style="color: #000000;">&#41;</span>DEFINE_RIBBON<br />     Param   <span style="color: #000000;">1</span>:    C    <span style="color: #ff0000;">"Toplu_TEBLIGAT_Aktarma()"</span><br />   TMENU:<span style="color: #0000ff;">ACTIVATE</span><br />     Param   <span style="color: #000000;">1</span>:    O    <span style="color: #00C800;">Class</span>: <span style="color: #000000;">TMENUITEM</span><br />   TRBTN:<span style="color: #000000;">LBUTTONUP</span><br />     Param   <span style="color: #000000;">1</span>:    N    <span style="color: #000000;">85</span><br />     Param   <span style="color: #000000;">2</span>:    N    <span style="color: #000000;">93</span><br />     Param   <span style="color: #000000;">3</span>:    O    <span style="color: #00C800;">Class</span>: <span style="color: #000000;">TRBGROUP</span><br />     Param   <span style="color: #000000;">4</span>:    L    .F.<br />     <span style="color: #00C800;">Local</span>   <span style="color: #000000;">1</span>:    N    <span style="color: #000000;">0</span><br />     <span style="color: #00C800;">Local</span>   <span style="color: #000000;">2</span>:    A    Len:    <span style="color: #000000;">2</span><br />   TCONTROL:<span style="color: #000000;">HANDLEEVENT</span><br />     Param   <span style="color: #000000;">1</span>:    N    <span style="color: #000000;">39</span><br />     Param   <span style="color: #000000;">2</span>:    N    <span style="color: #000000;">39</span><br />     Param   <span style="color: #000000;">3</span>:    N    <span style="color: #000000;">0</span><br />     <span style="color: #00C800;">Local</span>   <span style="color: #000000;">1</span>:    L    .T.<br />     <span style="color: #00C800;">Local</span>   <span style="color: #000000;">2</span>:    L    .F.<br />     <span style="color: #00C800;">Local</span>   <span style="color: #000000;">3</span>:    S    <br />   TRBTN:<span style="color: #000000;">HANDLEEVENT</span><br />     Param   <span style="color: #000000;">1</span>:    N    <span style="color: #000000;">514</span><br />     Param   <span style="color: #000000;">2</span>:    N    <span style="color: #000000;">0</span><br />     Param   <span style="color: #000000;">3</span>:    N    <span style="color: #000000;">2555943</span><br />     <span style="color: #00C800;">Local</span>   <span style="color: #000000;">1</span>:    U    <br />   _FWH<br />     Param   <span style="color: #000000;">1</span>:    N    <span style="color: #000000;">514</span><br />     Param   <span style="color: #000000;">2</span>:    N    <span style="color: #000000;">0</span><br />     Param   <span style="color: #000000;">3</span>:    N    <span style="color: #000000;">2555943</span><br />   WINRUN<br />     Param   <span style="color: #000000;">1</span>:    N    <span style="color: #000000;">2555943</span><br />     Param   <span style="color: #000000;">2</span>:    N    <span style="color: #000000;">514</span><br />     Param   <span style="color: #000000;">3</span>:    N    <span style="color: #000000;">0</span><br />     Param   <span style="color: #000000;">4</span>:    N    <span style="color: #000000;">2555943</span><br />     Param   <span style="color: #000000;">5</span>:    N    <span style="color: #000000;">138</span><br />     <span style="color: #00C800;">Local</span>   <span style="color: #000000;">1</span>:    O    <span style="color: #00C800;">Class</span>: <span style="color: #000000;">TRBTN</span><br />   TWINDOW:<span style="color: #0000ff;">ACTIVATE</span><br />     Param   <span style="color: #000000;">1</span>:    N    <span style="color: #000000;">527000</span><br />   TAPPLICATION:<span style="color: #0000ff;">ACTIVATE</span><br />     Param   <span style="color: #000000;">1</span>:    C    <span style="color: #ff0000;">"MAXIMIZED"</span><br />     Param   <span style="color: #000000;">2</span>:    U    <br />     Param   <span style="color: #000000;">3</span>:    U    <br />     Param   <span style="color: #000000;">4</span>:    U    <br />     Param   <span style="color: #000000;">5</span>:    B    <span style="color: #000000;">&#123;</span>|| ... <span style="color: #000000;">&#125;</span><br />     Param   <span style="color: #000000;">6</span>:    U    <br />     Param   <span style="color: #000000;">7</span>:    B    <span style="color: #000000;">&#123;</span>|| ... <span style="color: #000000;">&#125;</span><br />     Param   <span style="color: #000000;">8</span>:    B    <span style="color: #000000;">&#123;</span>|| ... <span style="color: #000000;">&#125;</span><br />     Param   <span style="color: #000000;">9</span>:    U    <br />     Param  <span style="color: #000000;">10</span>:    U    <br />     Param  <span style="color: #000000;">11</span>:    U    <br />     Param  <span style="color: #000000;">12</span>:    U    <br />     Param  <span style="color: #000000;">13</span>:    U    <br />     Param  <span style="color: #000000;">14</span>:    U    <br />     Param  <span style="color: #000000;">15</span>:    U    <br />     Param  <span style="color: #000000;">16</span>:    U    <br />     Param  <span style="color: #000000;">17</span>:    B    <span style="color: #000000;">&#123;</span>|| ... <span style="color: #000000;">&#125;</span><br />     Param  <span style="color: #000000;">18</span>:    U    <br />     Param  <span style="color: #000000;">19</span>:    U    <br />     Param  <span style="color: #000000;">20</span>:    L    .F.<br />     <span style="color: #00C800;">Local</span>   <span style="color: #000000;">1</span>:    O    <span style="color: #00C800;">Class</span>: <span style="color: #000000;">TWINDOW</span><br />     <span style="color: #00C800;">Local</span>   <span style="color: #000000;">2</span>:    U    <br />     <span style="color: #00C800;">Local</span>   <span style="color: #000000;">3</span>:    U    <br />   MAIN<br />     <span style="color: #00C800;">Local</span>   <span style="color: #000000;">1</span>:    O    <span style="color: #00C800;">Class</span>: <span style="color: #000000;">TAPPLICATION</span><br />     <span style="color: #00C800;">Local</span>   <span style="color: #000000;">2</span>:    N    <span style="color: #000000;">10526880</span><br />     <span style="color: #00C800;">Local</span>   <span style="color: #000000;">3</span>:    O    <span style="color: #00C800;">Class</span>: <span style="color: #000000;">TFONT</span><br />     <span style="color: #00C800;">Local</span>   <span style="color: #000000;">4</span>:    C    <span style="color: #ff0000;">""</span><br />     <span style="color: #00C800;">Local</span>   <span style="color: #000000;">5</span>:    N    <span style="color: #000000;">1632</span><br />     <span style="color: #00C800;">Local</span>   <span style="color: #000000;">6</span>:    N    <span style="color: #000000;">864</span><br />     <span style="color: #00C800;">Local</span>   <span style="color: #000000;">7</span>:    N    <span style="color: #000000;">1920</span><br />     <span style="color: #00C800;">Local</span>   <span style="color: #000000;">8</span>:    N    <span style="color: #000000;">1080</span><br /><br />Linked RDDs<br />===========<br />   DBF<br />   DBFFPT<br />   DBFBLOB<br />   DBFCDX<br />   DBFNTX<br /><br />DataBases in use<br />================<br /><br />Classes in use:<br />===============<br />     <span style="color: #000000;">1</span> ERROR<br />     <span style="color: #000000;">2</span> HBCLASS<br />     <span style="color: #000000;">3</span> HBOBJECT<br />     <span style="color: #000000;">4</span> CHARACTER<br />     <span style="color: #000000;">5</span> NUMERIC<br />     <span style="color: #000000;">6</span> ARRAY<br />     <span style="color: #000000;">7</span> SCALAROBJECT<br />     <span style="color: #000000;">8</span> HASH<br />     <span style="color: #000000;">9</span> HASH<br />    <span style="color: #000000;">10</span> BLOCK<br />    <span style="color: #000000;">11</span> TWINDOW<br />    <span style="color: #000000;">12</span> TCONTROL<br />    <span style="color: #000000;">13</span> TGET<br />    <span style="color: #000000;">14</span> TFONT<br />    <span style="color: #000000;">15</span> TCURSOR<br />    <span style="color: #000000;">16</span> TPUBLIC<br />    <span style="color: #000000;">17</span> TDIALOG<br />    <span style="color: #000000;">18</span> TBRUSH<br />    <span style="color: #000000;">19</span> TXIMAGE<br />    <span style="color: #000000;">20</span> TSAY<br />    <span style="color: #000000;">21</span> TMETER<br />    <span style="color: #000000;">22</span> TREG32<br />    <span style="color: #000000;">23</span> TCLIPBOARD<br />    <span style="color: #000000;">24</span> TRECT<br />    <span style="color: #000000;">25</span> TAPPLICATION<br />    <span style="color: #000000;">26</span> TMYDATABASE<br />    <span style="color: #000000;">27</span> TMYTABLE<br />    <span style="color: #000000;">28</span> TMYTABLE_RKAYIT<br />    <span style="color: #000000;">29</span> TMYTABLE_CERCEVE<br />    <span style="color: #000000;">30</span> TMYTABLE_RLOG<br />    <span style="color: #000000;">31</span> TMYTABLE_USERSN<br />    <span style="color: #000000;">32</span> TMYTABLE_DEPARTMAN<br />    <span style="color: #000000;">33</span> TMYTABLE_USERIL<br />    <span style="color: #000000;">34</span> TMYTABLE_GUSYETKI<br />    <span style="color: #000000;">35</span> TMYTABLE_USGRUP<br />    <span style="color: #000000;">36</span> TMYTABLE_WBOLUM<br />    <span style="color: #000000;">37</span> TMYTABLE_PARAM<br />    <span style="color: #000000;">38</span> TMYTABLE_MASTER<br />    <span style="color: #000000;">39</span> TMYTABLE_INDEX<br />    <span style="color: #000000;">40</span> TMYTABLE_RINIFILE<br />    <span style="color: #000000;">41</span> TMYTABLE_BLOG<br />    <span style="color: #000000;">42</span> TMYTABLE_BINIFILE<br />    <span style="color: #000000;">43</span> TMYTABLE_BKAYIT<br />    <span style="color: #000000;">44</span> TMYTABLE_USGRUPG<br />    <span style="color: #000000;">45</span> TMYTABLE_AVUKAT<br />    <span style="color: #000000;">46</span> TMYTABLE_REFNO2<br />    <span style="color: #000000;">47</span> TMYTABLE_BTIPI<br />    <span style="color: #000000;">48</span> TMYTABLE_DOVIZ<br />    <span style="color: #000000;">49</span> TMYTABLE_FAIZ1<br />    <span style="color: #000000;">50</span> TMYTABLE_FAIZ2<br />    <span style="color: #000000;">51</span> TMYTABLE_FAIZ3<br />    <span style="color: #000000;">52</span> TMYTABLE_FAIZ4<br />    <span style="color: #000000;">53</span> TMYTABLE_FAIZ5<br />    <span style="color: #000000;">54</span> TMYTABLE_FAIZ6<br />    <span style="color: #000000;">55</span> TMYTABLE_FAIZ7<br />    <span style="color: #000000;">56</span> TMYTABLE_FAIZ8<br />    <span style="color: #000000;">57</span> TMYTABLE_FAIZ9<br />    <span style="color: #000000;">58</span> TMYTABLE_FAIZ10<br />    <span style="color: #000000;">59</span> TMYTABLE_FAIZ11<br />    <span style="color: #000000;">60</span> TMYTABLE_FAIZ12<br />    <span style="color: #000000;">61</span> TMYTABLE_FAIZ13<br />    <span style="color: #000000;">62</span> TMYTABLE_FAIZ14<br />    <span style="color: #000000;">63</span> TMYTABLE_FAIZ15<br />    <span style="color: #000000;">64</span> TMYTABLE_FAIZ16<br />    <span style="color: #000000;">65</span> TMYTABLE_FAIZ17<br />    <span style="color: #000000;">66</span> TMYTABLE_FAIZ18<br />    <span style="color: #000000;">67</span> TMYTABLE_FAIZ19<br />    <span style="color: #000000;">68</span> TMYTABLE_FAIZTAN<br />    <span style="color: #000000;">69</span> TMYTABLE_UYAPIL<br />    <span style="color: #000000;">70</span> TMYTABLE_UYAPILC<br />    <span style="color: #000000;">71</span> TMYTABLE_DOVIZKUR<br />    <span style="color: #000000;">72</span> TMYTABLE_SORUBANK<br />    <span style="color: #000000;">73</span> TMYTABLE_ICDAIRE<br />    <span style="color: #000000;">74</span> TMYTABLE_DTUPDATE<br />    <span style="color: #000000;">75</span> TMYTABLE_MTIPI<br />    <span style="color: #000000;">76</span> TMYTABLE_BANKA<br />    <span style="color: #000000;">77</span> TMYTABLE_BANKAM<br />    <span style="color: #000000;">78</span> TMYTABLE_3SAHIS<br />    <span style="color: #000000;">79</span> TMYTABLE_KIME<br />    <span style="color: #000000;">80</span> TMYTABLE_GOREV<br />    <span style="color: #000000;">81</span> TMYTABLE_GOREVGRB<br />    <span style="color: #000000;">82</span> TMYTABLE_GOREVOZ<br />    <span style="color: #000000;">83</span> TMYTABLE_MULKTIPI<br />    <span style="color: #000000;">84</span> TMYTABLE_EVRAK<br />    <span style="color: #000000;">85</span> TMYTABLE_EVRNEREDE<br />    <span style="color: #000000;">86</span> TMYTABLE_EVRSONDURUM<br />    <span style="color: #000000;">87</span> TMYTABLE_ADRESLER<br />    <span style="color: #000000;">88</span> TMYTABLE_KTFORM<br />    <span style="color: #000000;">89</span> TMYTABLE_KSTIPI<br />    <span style="color: #000000;">90</span> TMYTABLE_GGUNLUK<br />    <span style="color: #000000;">91</span> TMYTABLE_BELGEKAT<br />    <span style="color: #000000;">92</span> TMYTABLE_MUVEKKIL<br />    <span style="color: #000000;">93</span> TMYTABLE_PMAHKEME<br />    <span style="color: #000000;">94</span> TMYTABLE_TAPULAR<br />    <span style="color: #000000;">95</span> TMYTABLE_DOSALTTUR<br />    <span style="color: #000000;">96</span> TMYTABLE_MUVYET<br />    <span style="color: #000000;">97</span> TMYTABLE_MUVADR<br />    <span style="color: #000000;">98</span> TMYTABLE_MUVBANK<br />    <span style="color: #000000;">99</span> TMYTABLE_MUVVEK<br />   <span style="color: #000000;">100</span> TMYTABLE_MUVYAZ<br />   <span style="color: #000000;">101</span> TMYTABLE_MUVSOZ<br />   <span style="color: #000000;">102</span> TMYTABLE_MMASRAF<br />   <span style="color: #000000;">103</span> TMYTABLE_MMASRAFD<br />   <span style="color: #000000;">104</span> TMYTABLE_SABLONRP<br />   <span style="color: #000000;">105</span> TMYTABLE_BAROIL<br />   <span style="color: #000000;">106</span> TMYTABLE_MAHKONU<br />   <span style="color: #000000;">107</span> TMYTABLE_MHBELGE<br />   <span style="color: #000000;">108</span> TMYTABLE_KTDILEK<br />   <span style="color: #000000;">109</span> TMYTABLE_KTDILEKA<br />   <span style="color: #000000;">110</span> TMYTABLE_AJANDAKT<br />   <span style="color: #000000;">111</span> TMYTABLE_USERSNEK<br />   <span style="color: #000000;">112</span> TMYTABLE_P_ADLIYE<br />   <span style="color: #000000;">113</span> TMYTABLE_RESTATIL<br />   <span style="color: #000000;">114</span> TMYTABLE_BAVUKAT<br />   <span style="color: #000000;">115</span> TMYTABLE_BUSYETKI<br />   <span style="color: #000000;">116</span> TMYTABLE_TTIPI<br />   <span style="color: #000000;">117</span> TMYTABLE_VEKILUCR<br />   <span style="color: #000000;">118</span> TMYTABLE_OVEKILUC<br />   <span style="color: #000000;">119</span> TMYTABLE_VEKALET<br />   <span style="color: #000000;">120</span> TMYTABLE_VEK_YA<br />   <span style="color: #000000;">121</span> TMYTABLE_VEKISIM<br />   <span style="color: #000000;">122</span> TMYTABLE_UC_BOLUM<br />   <span style="color: #000000;">123</span> TMYTABLE_NOTER<br />   <span style="color: #000000;">124</span> TMYTABLE_VEKBELGE<br />   <span style="color: #000000;">125</span> TMYTABLE_ICRAKART<br />   <span style="color: #000000;">126</span> TMYTABLE_ALACAK<br />   <span style="color: #000000;">127</span> TMYTABLE_BORC<br />   <span style="color: #000000;">128</span> TMYTABLE_TELEFON<br />   <span style="color: #000000;">129</span> TMYTABLE_PLAKA<br />   <span style="color: #000000;">130</span> TMYTABLE_PLAKA1<br />   <span style="color: #000000;">131</span> TMYTABLE_PLAKA2<br />   <span style="color: #000000;">132</span> TMYTABLE_GMENKUL<br />   <span style="color: #000000;">133</span> TMYTABLE_GMENKUL1<br />   <span style="color: #000000;">134</span> TMYTABLE_GMENKUL2<br />   <span style="color: #000000;">135</span> TMYTABLE_MIRASB<br />   <span style="color: #000000;">136</span> TMYTABLE_BORGOR<br />   <span style="color: #000000;">137</span> TMYTABLE_MUVGOR<br />   <span style="color: #000000;">138</span> TMYTABLE_MAHGOR<br />   <span style="color: #000000;">139</span> TMYTABLE_TEBLIGAT<br />   <span style="color: #000000;">140</span> TMYTABLE_BADRES<br />   <span style="color: #000000;">141</span> TMYTABLE_BGUNLUK<br />   <span style="color: #000000;">142</span> TMYTABLE_OTAHSIL<br />   <span style="color: #000000;">143</span> TMYTABLE_HACIZ<br />   <span style="color: #000000;">144</span> TMYTABLE_HMALLAR<br />   <span style="color: #000000;">145</span> TMYTABLE_YAPILAN<br />   <span style="color: #000000;">146</span> TMYTABLE_MENKUL<br />   <span style="color: #000000;">147</span> TMYTABLE_YAPISLR<br />   <span style="color: #000000;">148</span> TMYTABLE_MAHKEME<br />   <span style="color: #000000;">149</span> TMYTABLE_DBMEMO<br />   <span style="color: #000000;">150</span> TMYTABLE_KONU<br />   <span style="color: #000000;">151</span> TMYTABLE_EKBILGI<br />   <span style="color: #000000;">152</span> TMYTABLE_AKTIFAV<br />   <span style="color: #000000;">153</span> TMYTABLE_TAAHHUT<br />   <span style="color: #000000;">154</span> TMYTABLE_TALIMAT<br />   <span style="color: #000000;">155</span> TMYTABLE_RAPOROZ<br />   <span style="color: #000000;">156</span> TMYTABLE_AJANDA<br />   <span style="color: #000000;">157</span> TMYTABLE_POSTA<br />   <span style="color: #000000;">158</span> TMYTABLE_HAVALE<br />   <span style="color: #000000;">159</span> TMYTABLE_ODEME<br />   <span style="color: #000000;">160</span> TMYTABLE_LOCKDB<br />   <span style="color: #000000;">161</span> TMYTABLE_TAAHMAS<br />   <span style="color: #000000;">162</span> TMYTABLE_TAAHDET<br />   <span style="color: #000000;">163</span> TMYTABLE_COLL1<br />   <span style="color: #000000;">164</span> TMYTABLE_COLL2<br />   <span style="color: #000000;">165</span> TMYTABLE_SMSSABLON<br />   <span style="color: #000000;">166</span> TMYTABLE_BALACAK<br />   <span style="color: #000000;">167</span> TMYTABLE_MASRAF<br />   <span style="color: #000000;">168</span> TMYTABLE_MASRAFD<br />   <span style="color: #000000;">169</span> TMYTABLE_ICBELGE<br />   <span style="color: #000000;">170</span> TMYTABLE_COLLA1<br />   <span style="color: #000000;">171</span> TMYTABLE_COLLA2<br />   <span style="color: #000000;">172</span> TMYTABLE_MENKULM<br />   <span style="color: #000000;">173</span> TMYTABLE_MENKULM1<br />   <span style="color: #000000;">174</span> TMYTABLE_MENKULM2<br />   <span style="color: #000000;">175</span> TMYTABLE_CHBELGE<br />   <span style="color: #000000;">176</span> TMYTABLE_EKTAHSIL<br />   <span style="color: #000000;">177</span> TMYTABLE_VKBELGE<br />   <span style="color: #000000;">178</span> TMYTABLE_ICVEKUC<br />   <span style="color: #000000;">179</span> TMYTABLE_ZAMAN<br />   <span style="color: #000000;">180</span> TMYTABLE_GUNLUKKT<br />   <span style="color: #000000;">181</span> TMYTABLE_MAHTARAF<br />   <span style="color: #000000;">182</span> TMYTABLE_MAHDURUS<br />   <span style="color: #000000;">183</span> TMYTABLE_MHDELIL<br />   <span style="color: #000000;">184</span> TMYTABLE_MHTANIK<br />   <span style="color: #000000;">185</span> TMYTABLE_BBANKA<br />   <span style="color: #000000;">186</span> TMYTABLE_VEBELGE<br />   <span style="color: #000000;">187</span> TMYTABLE_ICNOTLAR<br />   <span style="color: #000000;">188</span> TMYTABLE_MAASHCZ<br />   <span style="color: #000000;">189</span> TMYTABLE_MAASHCZT<br />   <span style="color: #000000;">190</span> TMYTABLE_OFISGOR<br />   <span style="color: #000000;">191</span> TOB_PARAMETRE<br />   <span style="color: #000000;">192</span> TCERCEVE<br />   <span style="color: #000000;">193</span> FRREPORTMANAGER<br />   <span style="color: #000000;">194</span> TMYFASTREPORT<br />   <span style="color: #000000;">195</span> FRPRINTOPTIONS<br />   <span style="color: #000000;">196</span> FRPREVIEWOPTIONS<br />   <span style="color: #000000;">197</span> FRENGINEOPTIONS<br />   <span style="color: #000000;">198</span> FRREPORTOPTIONS<br />   <span style="color: #000000;">199</span> WIN_OLEAUTO<br />   <span style="color: #000000;">200</span> TOLEAUTO<br />   <span style="color: #000000;">201</span> TIPCLIENT<br />   <span style="color: #000000;">202</span> TIPCLIENTHTTP<br />   <span style="color: #000000;">203</span> TURL<br />   <span style="color: #000000;">204</span> TICON<br />   <span style="color: #000000;">205</span> TMENU<br />   <span style="color: #000000;">206</span> TMENUITEM<br />   <span style="color: #000000;">207</span> TRIBBONBAR<br />   <span style="color: #000000;">208</span> TRPANEL<br />   <span style="color: #000000;">209</span> TRBGROUP<br />   <span style="color: #000000;">210</span> TRBTN<br />   <span style="color: #000000;">211</span> TMSGBAR<br />   <span style="color: #000000;">212</span> TMSGITEM<br />   <span style="color: #000000;">213</span> TTIMER<br />   <span style="color: #000000;">214</span> TGROUP<br />   <span style="color: #000000;">215</span> TCHECKBOX<br />   <span style="color: #000000;">216</span> <span style="color: #0000ff;">GET</span><br />   <span style="color: #000000;">217</span> TCLIPGET<br />   <span style="color: #000000;">218</span> TBTNBMP<br />   <span style="color: #000000;">219</span> TDSAY<br />   <span style="color: #000000;">220</span> TPANEL<br />   <span style="color: #000000;">221</span> TSCROLLMSG<br />   <span style="color: #000000;">222</span> TYK_CORE<br />   <span style="color: #000000;">223</span> TWDETAY<br />   <span style="color: #000000;">224</span> TBUTTON<br />   <span style="color: #000000;">225</span> TBUTTONBMP<br />   <span style="color: #000000;">226</span> TBAR<br />   <span style="color: #000000;">227</span> TXBROWSE<br />   <span style="color: #000000;">228</span> TXBRWCOLUMN<br />   <span style="color: #000000;">229</span> TSCROLLBAR<br />   <span style="color: #000000;">230</span> TXMLDOCUMENT<br />   <span style="color: #000000;">231</span> TXMLNODE<br />   <span style="color: #000000;">232</span> TXMLITERATOR<br />   <span style="color: #000000;">233</span> TXMLITERATORSCAN<br />   <span style="color: #000000;">234</span> TSTRUCT<br /><br />Memory Analysis<br />===============<br />      <span style="color: #000000;">1353</span> <span style="color: #00C800;">Static</span> variables<br /><br />   Dynamic memory consume:<br />      Actual  Value:   <span style="color: #000000;">18284544</span> bytes<br />      Highest Value:   <span style="color: #000000;">18284544</span> bytes<br /></div>[/code:jl2rhdjq]
(DOS Error -2147418111) WINOLE/1009 No exported method: LAN
Hi, What language is that. Possibly this is not installed in EXCEL? But I have not seen this error either. Best regards, Otto
(DOS Error -2147418111) WINOLE/1009 No exported method: LAN
Maybe: [code=fw:e1z15zr5]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #B900B9;">/*<br /><br />&nbsp; &nbsp;A. American format: "999,999,999.99"<br /><br />&nbsp; &nbsp;E. European format: "999.999.999,99"<br /><br />&nbsp; &nbsp;I. Indian &nbsp; format: "99,99,999.99"<br /><br />&nbsp; &nbsp;*/</span><br /><br />&nbsp; &nbsp;fwNumFormat<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">'E'</span>, .t. <span style="color: #000000;">&#41;</span> &nbsp;<span style="color: #B900B9;">// Italian format</span><br />&nbsp;</div>[/code:e1z15zr5] Regards, saludos.
(DOS Error -2147418111) WINOLE/1009 No exported method: LAN
[url:2ep3ylt3]http&#58;//forums&#46;fivetechsupport&#46;com/viewtopic&#46;php?f=16&t=14704[/url:2ep3ylt3] [url:2ep3ylt3]https&#58;//github&#46;com/manuelcalerosolis/Gestool/blob/master/prg/Xbrowse&#46;102&#46;prg[/url:2ep3ylt3] * Enhancements: Class TXBrowse, thanks to Anser! 1) Used TRY CATCH when HARBOUR Compiler is used to Create an Excel Object Method ToExcel() Line 4834 Method ToCalc() Line 5074 Fuction SetExcelLanguage() Line 5869 2) Value of the Static Variable nxlLangID set to 0 in ToCalc() Line 5042 3) Value of the Static Variable nxlLangID set to nil when ever there is an exit from ToCalc(). Line No's 5048, 5055, 5068, 5078 and 5349 Regards, saludos.
(DOS Error -2147418111) WINOLE/1009 No exported method: LAN
[quote="karinha":xohs10av][url:xohs10av]http&#58;//forums&#46;fivetechsupport&#46;com/viewtopic&#46;php?f=16&t=14704[/url:xohs10av] [url:xohs10av]https&#58;//github&#46;com/manuelcalerosolis/Gestool/blob/master/prg/Xbrowse&#46;102&#46;prg[/url:xohs10av] * Enhancements: Class TXBrowse, thanks to Anser! 1) Used TRY CATCH when HARBOUR Compiler is used to Create an Excel Object Method ToExcel() Line 4834 Method ToCalc() Line 5074 Fuction SetExcelLanguage() Line 5869 2) Value of the Static Variable nxlLangID set to 0 in ToCalc() Line 5042 3) Value of the Static Variable nxlLangID set to nil when ever there is an exit from ToCalc(). Line No's 5048, 5055, 5068, 5078 and 5349 Regards, saludos.[/quote:xohs10av] Thank you very much for answer. I use last version of fwh 22.06. The error is not given every time run this code. After trying run code again, there may not be given error. It gives randomly.
(DOS Error -2147418111) WINOLE/1009 No exported method: LAN
[quote:3au8sy7f]This error comes randomly[/quote:3au8sy7f] Surprising. Anyway, we will try to make the function ExcelLangID() in olefuncs.prg safer. We will get back on this subject.
(DOS Error -2147418111) WINOLE/1009 No exported method: LAN
Master Nages, sorry for the sincerity, but it is impossible to understand what this function does. Maestro Nages, disculpe la sinceridad, pero es imposible entender qué hace esta función. * New: Functions in olefuncs.prg ExcelLangID() --> nExcelLangID ExcelLang() --> en,es,fr,pt,de,it ExcelTranslate( cFunc ) --> Translated function Dbf2ExcelNumFormat( cPicture ) -> cExcelPic [url:16fsb5ej]https&#58;//forums&#46;fivetechsupport&#46;com/~fivetec1/forums/viewtopic&#46;php?f=16&t=27548[/url:16fsb5ej] Regards, saludos.
(DOS Error -2147418111) WINOLE/1009 No exported method: LAN
Mr. Rao any news about this. [quote="nageswaragunupudi":1gkzkuji][quote:1gkzkuji]This error comes randomly[/quote:1gkzkuji] Surprising. Anyway, we will try to make the function ExcelLangID() in olefuncs.prg safer. We will get back on this subject.[/quote:1gkzkuji]
(DOS Error -2147418111) WINOLE/1009 No exported method: LAN
Hi, Any news?
(DOS Error -2147418111) WINOLE/1009 No exported method: LAN
Hakan may be this helps. I have modified OleFuncs.Prg as below. I have put double slash and my name to the lines that I have midified (i.e //birol) [code=fw:3s2bhpv4]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #B900B9;">/*<br />*<br />* &nbsp;OleFuncs.Prg<br />*<br />* &nbsp;For common use in other modules<br />*<br />*/</span><br /><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"fivewin.ch"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"adodef.ch"</span><br /><br />#ifdef __XHARBOUR__<br />&nbsp; &nbsp;#xtranslate hb_StrToHex<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#91;</span><c,...><span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp;=> StrToHex<span style="color: #000000;">&#40;</span> <c> <span style="color: #000000;">&#41;</span><br />#endif<br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">static</span> nExcelLangID, nExcelLangNo<br /><span style="color: #00C800;">static</span> cDecimalSeparator := <span style="color: #ff0000;">'.'</span>, cThousandsSeparator := <span style="color: #ff0000;">','</span>, cListSeparator := <span style="color: #ff0000;">','</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">static</span> lExcel, lWord, lCalc<br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">function</span> FWGetOleObject<span style="color: #000000;">&#40;</span> cApp, lInstalled <span style="color: #000000;">&#41;</span> &nbsp;<span style="color: #B900B9;">// @lInstalled</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> oObj<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> lInstalled != .f.<br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">TRY</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oObj &nbsp;:= GetActiveObject<span style="color: #000000;">&#40;</span> cApp <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; CATCH<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">TRY</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oObj &nbsp;:= CreateObject<span style="color: #000000;">&#40;</span> cApp <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;CATCH<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;END<br />&nbsp; &nbsp; &nbsp; END<br />&nbsp; &nbsp; &nbsp; lInstalled &nbsp;:= <span style="color: #000000;">&#40;</span> oObj != <span style="color: #00C800;">nil</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">endif</span><br /><br /><span style="color: #00C800;">return</span> oObj<br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">function</span> WinWordObj<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>; <span style="color: #00C800;">return</span> FWGetOleObject<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Word.Application"</span>, &nbsp; @lWord &nbsp;<span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">function</span> ExcelObj<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>; &nbsp; <span style="color: #00C800;">return</span> FWGetOleObject<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Excel.Application"</span>, &nbsp;@lExcel <span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">function</span> SunCalcObj<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>; <span style="color: #00C800;">return</span> FWGetOleObject<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"com.sun.star.ServiceManager"</span>, @lCalc <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">function</span> GetExcelRange<span style="color: #000000;">&#40;</span> cBook, cSheet, acRange, lOpened <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> oExcel, oBook, oSheet, oRange<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> oExcel := ExcelObj<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> != <span style="color: #00C800;">nil</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> oBook := GetExcelBook<span style="color: #000000;">&#40;</span> cBook, @lOpened <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> != <span style="color: #00C800;">nil</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">TRY</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> Empty<span style="color: #000000;">&#40;</span> cSheet <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oSheet &nbsp; := oBook:<span style="color: #000000;">ActiveSheet</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oSheet &nbsp; := oBook:<span style="color: #000000;">WorkSheets</span><span style="color: #000000;">&#40;</span> cSheet <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">endif</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> ValType<span style="color: #000000;">&#40;</span> acRange <span style="color: #000000;">&#41;</span> == <span style="color: #ff0000;">'A'</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oRange &nbsp; := oSheet:<span style="color: #000000;">Range</span><span style="color: #000000;">&#40;</span> oSheet:<span style="color: #000000;">Cells</span><span style="color: #000000;">&#40;</span> acRange<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span>, acRange<span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oSheet:<span style="color: #000000;">Cells</span><span style="color: #000000;">&#40;</span> acRange<span style="color: #000000;">&#91;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#93;</span>, acRange<span style="color: #000000;">&#91;</span> <span style="color: #000000;">4</span> <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; elseif ValType<span style="color: #000000;">&#40;</span> acRange <span style="color: #000000;">&#41;</span> == <span style="color: #ff0000;">'C'</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oRange &nbsp; := oSheet:<span style="color: #000000;">Range</span><span style="color: #000000;">&#40;</span> acRange <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oRange &nbsp; := oSheet:<span style="color: #000000;">UsedRange</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">endif</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;CATCH<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;END<br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">endif</span><br />&nbsp; &nbsp;<span style="color: #00C800;">endif</span><br /><br /><span style="color: #00C800;">return</span> oRange<br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">function</span> GetExcelBook<span style="color: #000000;">&#40;</span> cBook, lOpened <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> oExcel, oBook, cBookX<br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> c, n, nBooks<br /><br />&nbsp; &nbsp;lOpened &nbsp; &nbsp; := .f.<br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> oExcel := ExcelObj<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> != <span style="color: #00C800;">nil</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> Empty<span style="color: #000000;">&#40;</span> cBook <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oBook := oExcel:<span style="color: #000000;">ActiveWorkBook</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cBook &nbsp; &nbsp;:= TrueName<span style="color: #000000;">&#40;</span> cBook <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span> File<span style="color: #000000;">&#40;</span> cBook <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cBookX &nbsp; := cBook<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cBook := Upper<span style="color: #000000;">&#40;</span> cFilePath<span style="color: #000000;">&#40;</span> cBook <span style="color: #000000;">&#41;</span> + cFileNoExt<span style="color: #000000;">&#40;</span> cBook <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nBooks &nbsp; := IfNil<span style="color: #000000;">&#40;</span> oExcel:<span style="color: #000000;">WorkBooks</span>:<span style="color: #0000ff;">Count</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">for</span> n := <span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> nBooks<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;c &nbsp;:= oExcel:<span style="color: #000000;">WorkBooks</span><span style="color: #000000;">&#40;</span> n <span style="color: #000000;">&#41;</span>:<span style="color: #000000;">FullName</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span> cBook == Upper<span style="color: #000000;">&#40;</span> cFilePath<span style="color: #000000;">&#40;</span> c <span style="color: #000000;">&#41;</span> + cFileNoExt<span style="color: #000000;">&#40;</span> c <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">return</span> oExcel:<span style="color: #000000;">WorkBooks</span><span style="color: #000000;">&#40;</span> n <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">endif</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">next</span> n<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">TRY</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oBook &nbsp; &nbsp;:= oExcel:<span style="color: #000000;">WorkBooks</span>:<span style="color: #000000;">Open</span><span style="color: #000000;">&#40;</span> cBookX <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;lOpened &nbsp;:= .t.<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CATCH<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; END<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">endif</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">endif</span><br />&nbsp; &nbsp;<span style="color: #00C800;">endif</span><br /><br /><span style="color: #00C800;">return</span> oBook<br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">function</span> ExcelBookSaveAs<span style="color: #000000;">&#40;</span> oBook, cSaveAs, lShow <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// [lShow default .f.]</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> cExt &nbsp;:= Upper<span style="color: #000000;">&#40;</span> cFileExt<span style="color: #000000;">&#40;</span> cSaveAs <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> nSaveAs<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">DEFAULT</span> lShow := .f.<br /><br />&nbsp; &nbsp;nSaveAs &nbsp;:= <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> cExt == <span style="color: #ff0000;">"HTM"</span> .or. cExt == <span style="color: #ff0000;">"HTML"</span>, <span style="color: #000000;">44</span>, <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> cExt == <span style="color: #ff0000;">"CSV"</span>, <span style="color: #000000;">62</span>, <span style="color: #00C800;">nil</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #B900B9;">// 44 = xlHtml, 6 = xlCSV, 62 = xlCSVUTF8</span><br /><br />&nbsp; &nbsp;cSaveAs &nbsp; &nbsp; := TrueName<span style="color: #000000;">&#40;</span> cSaveAs <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;WITH OBJECT oBook<br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">Application</span>:<span style="color: #000000;">DisplayAlerts</span> := .f.<br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">TRY</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span> cExt == <span style="color: #ff0000;">"PDF"</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; :<span style="color: #000000;">ExportAsFixedFormat</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span>, cSaveAs, AdoDefault<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, AdoDefault<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;AdoDefault<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, AdoDefault<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, AdoDefault<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, lShow <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;elseif !Empty<span style="color: #000000;">&#40;</span> nSaveAs <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; :<span style="color: #000000;">SaveAs</span><span style="color: #000000;">&#40;</span> cSaveAs, nSaveAs <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> lShow<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span> nSaveAs == <span style="color: #000000;">44</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; HTMLVIEW<span style="color: #000000;">&#40;</span> cSaveAs <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; WinExec<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"notepad.exe "</span> + cSaveAs <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">endif</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">endif</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; :<span style="color: #000000;">SaveAs</span><span style="color: #000000;">&#40;</span> cSaveAs <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">endif</span><br />&nbsp; &nbsp; &nbsp; CATCH<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cSaveAs &nbsp;:= <span style="color: #ff0000;">""</span><br />&nbsp; &nbsp; &nbsp; END<br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">Close</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;END<br /><br /><span style="color: #00C800;">return</span> cSaveAs<br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">function</span> FW_ToggleDeskTop<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> oShell<br /><br />&nbsp; &nbsp;oShell &nbsp; := TOleAuto<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Shell.Application"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oShell:<span style="color: #000000;">ToggleDeskTop</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;">function</span> ExcelLangID<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> oExcel<br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> aID &nbsp; := <span style="color: #000000;">&#123;</span> ;<br />&nbsp; &nbsp;<span style="color: #000000;">&#123;</span> <span style="color: #000000;">1033</span>, <span style="color: #000000;">2057</span>, <span style="color: #000000;">10249</span>, <span style="color: #000000;">4105</span>, <span style="color: #000000;">9225</span>, <span style="color: #000000;">14345</span>, <span style="color: #000000;">6153</span>, <span style="color: #000000;">8201</span>, <span style="color: #000000;">5129</span>, <span style="color: #000000;">13321</span>, <span style="color: #000000;">7177</span>, <span style="color: #000000;">11273</span>, <span style="color: #000000;">12297</span> <span style="color: #000000;">&#125;</span>, ;<br />&nbsp; &nbsp;<span style="color: #000000;">&#123;</span> <span style="color: #000000;">3082</span>,<span style="color: #000000;">1034</span>,<span style="color: #000000;">11274</span>,<span style="color: #000000;">16394</span>,<span style="color: #000000;">13322</span>,<span style="color: #000000;">9226</span>,<span style="color: #000000;">5130</span>,<span style="color: #000000;">7178</span>,<span style="color: #000000;">12298</span>,<span style="color: #000000;">17418</span>,<span style="color: #000000;">4106</span>,<span style="color: #000000;">18442</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">58378</span>,<span style="color: #000000;">2058</span>,<span style="color: #000000;">19466</span>,<span style="color: #000000;">6154</span>,<span style="color: #000000;">15370</span>,<span style="color: #000000;">10250</span>,<span style="color: #000000;">20490</span>,<span style="color: #000000;">21514</span>,<span style="color: #000000;">14346</span>,<span style="color: #000000;">8202</span> <span style="color: #000000;">&#125;</span>, ;<br />&nbsp; &nbsp;<span style="color: #000000;">&#123;</span> <span style="color: #000000;">1036</span>,<span style="color: #000000;">2060</span>,<span style="color: #000000;">11276</span>,<span style="color: #000000;">3084</span>,<span style="color: #000000;">9228</span>,<span style="color: #000000;">12300</span>,<span style="color: #000000;">15372</span>,<span style="color: #000000;">5132</span>,<span style="color: #000000;">13324</span>,<span style="color: #000000;">6156</span>,<span style="color: #000000;">14348</span>,<span style="color: #000000;">58380</span>,<span style="color: #000000;">8204</span>,<span style="color: #000000;">10252</span>,<span style="color: #000000;">4108</span>,<span style="color: #000000;">7180</span> <span style="color: #000000;">&#125;</span>, ;<br />&nbsp; &nbsp;<span style="color: #000000;">&#123;</span> <span style="color: #000000;">1046</span>, <span style="color: #000000;">2070</span> <span style="color: #000000;">&#125;</span>, ;<br />&nbsp; &nbsp;<span style="color: #000000;">&#123;</span> <span style="color: #000000;">1031</span>,<span style="color: #000000;">3079</span>,<span style="color: #000000;">5127</span>,<span style="color: #000000;">4103</span>,<span style="color: #000000;">2055</span> <span style="color: #000000;">&#125;</span>, ;<br />&nbsp; &nbsp;<span style="color: #000000;">&#123;</span> <span style="color: #000000;">1040</span>, <span style="color: #000000;">2064</span> <span style="color: #000000;">&#125;</span>, ;<br />&nbsp; &nbsp;<span style="color: #000000;">&#123;</span> <span style="color: #000000;">1055</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span> <span style="color: #B900B9;">//birol</span><br />&nbsp; &nbsp;<span style="color: #B900B9;">// 1 English, 2 Spanish, 3 French, 4 Portugese, 5 German, 6 Italian, 7 Turkish &nbsp; //birol</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> nExcelLangID == <span style="color: #00C800;">nil</span><br />&nbsp; &nbsp; &nbsp; oExcel &nbsp; &nbsp; &nbsp; &nbsp; := ExcelObj<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; nExcelLangID &nbsp; := <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> oExcel == <span style="color: #00C800;">nil</span>, <span style="color: #000000;">0</span>, oExcel:<span style="color: #000000;">LanguageSettings</span>:<span style="color: #000000;">LanguageID</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; nExcelLangNo &nbsp; := AScan<span style="color: #000000;">&#40;</span> aID, <span style="color: #000000;">&#123;</span> |a| AScan<span style="color: #000000;">&#40;</span> a, nExcelLangID <span style="color: #000000;">&#41;</span> > <span style="color: #000000;">0</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">TRY</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cDecimalSeparator &nbsp; &nbsp;:= oExcel:<span style="color: #000000;">International</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#93;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cThousandsSeparator &nbsp;:= oExcel:<span style="color: #000000;">International</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">4</span> <span style="color: #000000;">&#93;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cListSeparator &nbsp; &nbsp; &nbsp; := oExcel:<span style="color: #000000;">International</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">5</span> <span style="color: #000000;">&#93;</span><br />&nbsp; &nbsp; &nbsp; CATCH<br />&nbsp; &nbsp; &nbsp; END<br />&nbsp; &nbsp;<span style="color: #00C800;">endif</span><br /><br /><span style="color: #00C800;">return</span> nExcelLangID<br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">function</span> ExcelLang<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> nExcelLangNo == <span style="color: #00C800;">nil</span><br />&nbsp; &nbsp; &nbsp; ExcelLangID<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">endif</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">'en'</span>, <span style="color: #ff0000;">'es'</span>, <span style="color: #ff0000;">'fr'</span>, <span style="color: #ff0000;">'pt'</span>, <span style="color: #ff0000;">'de'</span>, <span style="color: #ff0000;">'it'</span>, <span style="color: #ff0000;">'tr'</span> <span style="color: #000000;">&#125;</span><span style="color: #000000;">&#91;</span> <span style="color: #0000ff;">Max</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>, nExcelLangNo <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#93;</span> &nbsp;<span style="color: #B900B9;">//birol</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">function</span> ExcelTranslate<span style="color: #000000;">&#40;</span> cFunc <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> cRet, nAt, cName<br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">// 1 English, 2 Spanish, 3 French, 4 Portugese, 5 German, 6 Italian, 7 Turkish &nbsp; &nbsp; &nbsp;birol</span><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> aTranslates := <span style="color: #000000;">&#123;</span> ;<br />&nbsp; &nbsp;<span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"TRUE"</span>, &nbsp; &nbsp; &nbsp;<span style="color: #ff0000;">"VERDADERO"</span>, &nbsp; <span style="color: #ff0000;">"VRAI"</span>, &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #ff0000;">"VERDADEIRO"</span>, <span style="color: #ff0000;">"WAHR"</span>, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #ff0000;">"VERO"</span>, &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"DO?RU"</span>, <span style="color: #000000;">&#125;</span>, ;<br />&nbsp; &nbsp;<span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"FALSE"</span>, &nbsp; &nbsp; <span style="color: #ff0000;">"FALSO"</span>, &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"FAUX"</span>, &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #ff0000;">"FALSO"</span>, &nbsp; &nbsp; &nbsp;<span style="color: #ff0000;">"FALSCH"</span>, &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #ff0000;">"FALSO"</span>, &nbsp; &nbsp; &nbsp;<span style="color: #ff0000;">"YANLI?"</span>, <span style="color: #000000;">&#125;</span>, ;<br />&nbsp; &nbsp;<span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"SUM("</span>, &nbsp; &nbsp; &nbsp;<span style="color: #ff0000;">"SUMA("</span>, &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"SOMME("</span>, &nbsp; &nbsp; &nbsp;<span style="color: #ff0000;">"SOMA("</span>, &nbsp; &nbsp; &nbsp;<span style="color: #ff0000;">"SUMME("</span>, &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #ff0000;">"SOMMA("</span>, &nbsp; &nbsp; <span style="color: #ff0000;">"TOPLA("</span>, <span style="color: #000000;">&#125;</span>, ;<br />&nbsp; &nbsp;<span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"SUBTOTAL("</span>, <span style="color: #ff0000;">"SUBTOTALES("</span>, <span style="color: #ff0000;">"SOUS.TOTAL("</span>, <span style="color: #ff0000;">"SUBTOTAL("</span>, &nbsp;<span style="color: #ff0000;">"TEILERGEBNIS("</span>, <span style="color: #ff0000;">"SUBTOTALE("</span>, <span style="color: #ff0000;">"ALTTOPLAM("</span> <span style="color: #000000;">&#125;</span>, ;<br />&nbsp; &nbsp;<span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">','</span>, &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">';'</span>, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">';'</span>, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">';'</span>, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #ff0000;">';'</span>, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #ff0000;">';'</span>, &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">';'</span> <span style="color: #000000;">&#125;</span> ;<br />&nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> nExcelLangNo == <span style="color: #00C800;">nil</span><br />&nbsp; &nbsp; &nbsp; ExcelLangID<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">endif</span><br />&nbsp; &nbsp;cFunc &nbsp; &nbsp; &nbsp; := Upper<span style="color: #000000;">&#40;</span> cFunc <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;cRet &nbsp; &nbsp; &nbsp; &nbsp;:= cFunc<br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> nExcelLangNo > <span style="color: #000000;">1</span> .and. nExcelLangNo <= <span style="color: #000000;">7</span> &nbsp; <span style="color: #B900B9;">//birol</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// Translation required</span><br />&nbsp; &nbsp; &nbsp; cName &nbsp; &nbsp;:= cFunc<br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> nAt := <span style="color: #00C800;">At</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">'('</span>, cFunc <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> > <span style="color: #000000;">0</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cName &nbsp; &nbsp;:= <span style="color: #0000ff;">Left</span><span style="color: #000000;">&#40;</span> cFunc, nAt <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">endif</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> nAt := AScan<span style="color: #000000;">&#40;</span> aTranslates, <span style="color: #000000;">&#123;</span> |a| a<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span> == cName <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> > <span style="color: #000000;">0</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cRet &nbsp; &nbsp; := StrTran<span style="color: #000000;">&#40;</span> cFunc, cName, aTranslates<span style="color: #000000;">&#91;</span> nAt, nExcelLangNo <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">endif</span><br />&nbsp; &nbsp;elseif nExcelLangNo != <span style="color: #000000;">1</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> cRet == <span style="color: #ff0000;">"TRUE"</span>; &nbsp;cRet := <span style="color: #ff0000;">"1=1"</span>; <span style="color: #00C800;">endif</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> cRet == <span style="color: #ff0000;">"FALSE"</span>; cRet := <span style="color: #ff0000;">"1=0"</span>; <span style="color: #00C800;">endif</span><br />&nbsp; &nbsp;<span style="color: #00C800;">endif</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> cListSeparator != <span style="color: #ff0000;">','</span><br />&nbsp; &nbsp; &nbsp; cRet &nbsp; &nbsp; := StrTran<span style="color: #000000;">&#40;</span> cRet, <span style="color: #ff0000;">','</span>, cListSeparator <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">endif</span><br /><br /><span style="color: #00C800;">return</span> cRet<br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">function</span> Dbf2ExcelNumFormat<span style="color: #000000;">&#40;</span> cFmt <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> cRet &nbsp; &nbsp; := <span style="color: #ff0000;">'##0'</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> nExcelLangNo == <span style="color: #00C800;">nil</span><br />&nbsp; &nbsp; &nbsp; ExcelLangID<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</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> cFmt <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> <span style="color: #0000ff;">Left</span><span style="color: #000000;">&#40;</span> cFmt, <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> == <span style="color: #ff0000;">'@'</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cFmt &nbsp; &nbsp; := LTrim<span style="color: #000000;">&#40;</span> AfterAtNum<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">' '</span>, cFmt, <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">endif</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">do</span> <span style="color: #00C800;">while</span> <span style="color: #ff0000;">' '</span> $ cFmt<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cFmt &nbsp; &nbsp; := Trim<span style="color: #000000;">&#40;</span> BeforAtNum<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">' '</span>, cFmt <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">enddo</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> <span style="color: #ff0000;">'.'</span> $ cFmt<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cRet &nbsp; &nbsp; += <span style="color: #000000;">&#40;</span> cDecimalSeparator + Replicate<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">'0'</span>, Len<span style="color: #000000;">&#40;</span> AfterAtNum<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">'.'</span>, cFmt <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">endif</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> <span style="color: #ff0000;">','</span> $ cFmt<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cRet &nbsp; &nbsp; := <span style="color: #ff0000;">'#'</span> + cThousandsSeparator + cRet<br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">endif</span><br />&nbsp; &nbsp;<span style="color: #00C800;">endif</span><br /><br /><span style="color: #00C800;">return</span> cRet<br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">function</span> ExcelSeparators<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>; <span style="color: #00C800;">return</span> <span style="color: #000000;">&#123;</span> cDecimalSeparator, cThousandsSeparator, cListSeparator <span style="color: #000000;">&#125;</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><span style="color: #B900B9;">// OPEN OFFICE FUNCTIONS : ( Mr. ANSER.KK )</span><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">function</span> GetPropertyValue<span style="color: #000000;">&#40;</span> oService, cName, xValue <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> oArg<br /><br />&nbsp; &nbsp;oArg := oService:<span style="color: #000000;">Bridge_GetStruct</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"com.sun.star.beans.PropertyValue"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oArg:<span style="color: #0000ff;">Name</span> &nbsp;:= cName<br />&nbsp; &nbsp;oArg:<span style="color: #000000;">Value</span> := xValue<br /><br /><span style="color: #00C800;">return</span> oArg<br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">function</span> ConvertToOoURL<span style="color: #000000;">&#40;</span>cPath<span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; <span style="color: #00C800;">local</span> cURL<br /><br />&nbsp; &nbsp; cURL:= StrTran<span style="color: #000000;">&#40;</span> cPath, <span style="color: #ff0000;">"<span style="color: #000000;">\"</span>, "</span>/<span style="color: #ff0000;">" ) &nbsp; // change backslashes to forward slashes.<br />* &nbsp; &nbsp;cURL:= StrTran( cURL, "</span>:<span style="color: #ff0000;">", "</span>|<span style="color: #ff0000;">" ) &nbsp;// X: not allowed for driveletter, use X| instead<br />&nbsp; &nbsp; cURL:= StrTran( cURL, "</span> <span style="color: #ff0000;">", "</span>%<span style="color: #000000;">20</span><span style="color: #ff0000;">") // Space in file filename<br />&nbsp; &nbsp; cURL = "</span>file:<span style="color: #B900B9;">///" + cURL</span><br /><br /><span style="color: #00C800;">return</span> cURL<br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #B900B9;">// Notice: Not needed for Harbour 3.4 as it has been included in Harbour 3.4</span><br /><span style="color: #B900B9;">/*<br />#ifndef __XHARBOUR__<br /><br />#define WIN_VT_ERROR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;10<br />#define WIN_DISP_E_PARAMNOTFOUND ( 0x80020004 )<br /><br />function OleDefaultArg()<br /><br />return &nbsp; __oleVariantNew( WIN_VT_ERROR, WIN_DISP_E_PARAMNOTFOUND )<br /><br />#endif<br />*/</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">function</span> OfficeExtractImage<span style="color: #000000;">&#40;</span> cSrcFile, lReExtract <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> oWord, oDoc, cRet := <span style="color: #ff0000;">""</span><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> aFiles, cThumb, nAt, cExt, cPath<br /><br />&nbsp; &nbsp;cExt &nbsp; &nbsp; &nbsp; &nbsp;:= Lower<span style="color: #000000;">&#40;</span> cFileExt<span style="color: #000000;">&#40;</span> cSrcFile <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> nAt := AScan<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"docx"</span>, <span style="color: #ff0000;">"xlsx"</span>, <span style="color: #ff0000;">"pptx"</span> <span style="color: #000000;">&#125;</span>, <span style="color: #000000;">&#123;</span> |c| c == cExt <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> == <span style="color: #000000;">0</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">return</span> <span style="color: #ff0000;">""</span><br />&nbsp; &nbsp;<span style="color: #00C800;">endif</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">DEFAULT</span> lReExtract := .f.<br /><br />&nbsp; &nbsp;cSrcFile &nbsp; &nbsp;:= TrueName<span style="color: #000000;">&#40;</span> cSrcFile <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;cRet &nbsp; &nbsp; &nbsp; &nbsp;:= cFileSetExt<span style="color: #000000;">&#40;</span> cSrcFile, <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"emf"</span>, <span style="color: #ff0000;">"wmf"</span>, <span style="color: #ff0000;">"jpeg"</span> <span style="color: #000000;">&#125;</span><span style="color: #000000;">&#91;</span> nAt <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> .not. lReExtract .and. File<span style="color: #000000;">&#40;</span> cRet <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">return</span> cRet<br />&nbsp; &nbsp;<span style="color: #00C800;">endif</span><br /><br />&nbsp; &nbsp;cRet &nbsp; &nbsp; := <span style="color: #ff0000;">""</span><br />&nbsp; &nbsp;aFiles &nbsp; := hb_GetFilesInZip<span style="color: #000000;">&#40;</span> cSrcFile <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> ! Empty<span style="color: #000000;">&#40;</span> aFiles <span style="color: #000000;">&#41;</span><br />#ifdef __XHARBOUR__<br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> nAt := AScan<span style="color: #000000;">&#40;</span> aFiles, <span style="color: #000000;">&#123;</span> |c| <span style="color: #ff0000;">"<span style="color: #000000;">\t</span>humbnail."</span> $ lower<span style="color: #000000;">&#40;</span> c <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> > <span style="color: #000000;">0</span><br />#else<br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> nAt := AScan<span style="color: #000000;">&#40;</span> aFiles, <span style="color: #000000;">&#123;</span> |c| <span style="color: #ff0000;">"/thumbnail."</span> $ lower<span style="color: #000000;">&#40;</span> c <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> > <span style="color: #000000;">0</span><br />#endif<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cThumb &nbsp; := aFiles<span style="color: #000000;">&#91;</span> nAt <span style="color: #000000;">&#93;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">endif</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> cThumb <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; cPath &nbsp; &nbsp; &nbsp; := cFilePath<span style="color: #000000;">&#40;</span> cSrcFile <span style="color: #000000;">&#41;</span><br />#ifndef __XHARBOUR__<br />&nbsp; &nbsp; &nbsp; cThumb &nbsp; &nbsp; &nbsp;:= CharRepl<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"/"</span>, cThumb, <span style="color: #ff0000;">"<span style="color: #000000;">\"</span> )<br />#endif<br />&nbsp; &nbsp; &nbsp; FErase( cPath + cFileNoPath( cThumb ) )<br />&nbsp; &nbsp; &nbsp; hb_UnZipFile( cSrcFile, nil, .f., nil, cPath, cThumb )<br />&nbsp; &nbsp; &nbsp; cRet &nbsp; &nbsp; := cFileSetExt( cSrcFile, cFileExt( cThumb ) )<br />&nbsp; &nbsp; &nbsp; cThumb &nbsp; := cPath + cFileNoPath( cThumb )<br />&nbsp; &nbsp; &nbsp; FErase( cRet )<br />&nbsp; &nbsp; &nbsp; FRENAME( cThumb, cRet )<br /><br />&nbsp; &nbsp; &nbsp; if !File( cRet )<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;// failure<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cRet &nbsp; &nbsp; := "</span><span style="color: #ff0000;">"<br />&nbsp; &nbsp; &nbsp; endif<br />&nbsp; &nbsp;endif<br /><br />return cRet<br /><br />//----------------------------------------------------------------------------//<br /><br /><br />#ifndef __XHARBOUR__<br /><br />//<br />// Problems with HB_UnzipFile() of Harbour<br />// Files in subfolder are not unzipped unless the subfolder exists<br />// 3rd parameter has no effect and always unzips to subfolder<br />//<br />// This is a condensed and modified version of the function from ziparc.prg<br />// for the purpose of extracting thumbnails. This is not a full replacement<br />//<br /><br />static function hb_UnzipFile( cSrcZip, bUpdate, lWithPath, cPassword, cPath, cUnzip, bProgress )<br /><br />&nbsp; &nbsp;local lRetVal := .f.<br /><br />&nbsp; &nbsp;local hUnzip, nErr, cZipName<br />&nbsp; &nbsp;local hHandle, nSize, nLen, dDate, cTime<br />&nbsp; &nbsp;local cBuffer := Space( 32768 )<br /><br />&nbsp; &nbsp;if .not. &nbsp;Empty( hUnzip := hb_unzipOpen( cSrcZip ) )<br />&nbsp; &nbsp; &nbsp; if ValType( cUnZip ) == 'A'<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cUnZip &nbsp; := cUnzip[ 1 ]<br />&nbsp; &nbsp; &nbsp; endif<br /><br />&nbsp; &nbsp; &nbsp; if Empty( cPath )<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cPath := hb_FNameDir( cSrcZip )<br />&nbsp; &nbsp; &nbsp; endif<br /><br />&nbsp; &nbsp; &nbsp; cPath := hb_DirSepAdd( cPath )<br /><br />&nbsp; &nbsp; &nbsp; nErr := hb_unzipFileFirst( hUnzip )<br />&nbsp; &nbsp; &nbsp; do while nErr == 0<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if hb_unzipFileInfo( hUnzip, @cZipName, @dDate, @cTime,,,, @nSize ) == 0<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if ( Upper( CharRepl( '/', cZipName, '<span style="color: #000000;">\'</span> ) ) == Upper( CharRepl( '/', cUnZip, '<span style="color: #000000;">\'</span> ) ) )<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if ( hHandle := FCreate( cPath + cFileNoPath( CharRepl( '/', cUnzip, '<span style="color: #000000;">\'</span> ) ) ) ) != -1 //F_ERROR<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if hb_unzipFileOpen( hUnzip, cPassword ) == 0 //UNZ_OK<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;do while ( nLen := hb_unzipFileRead( hUnzip, @cBuffer, hb_BLen( cBuffer ) ) ) > 0<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; FWrite( hHandle, cBuffer, nLen )<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;enddo<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;hb_unzipFileClose( hUnzip )<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;FClose( hHandle )<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;hb_FSetDateTime( cPath + cZipName, dDate, cTime )<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;lRetVal &nbsp;:= .t.<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; endif<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;endif<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;EXIT<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; endif<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;endif<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nErr := hb_unzipFileNext( hUnzip )<br />&nbsp; &nbsp; &nbsp; enddo<br />&nbsp; &nbsp; &nbsp; hb_unzipClose( hUnzip )<br />&nbsp; &nbsp;endif<br /><br />return lRetVal<br /><br />#endif<br /><br />//----------------------------------------------------------------------------//<br /><br /><br />#ifdef __XHARBOUR__<br />function HarbourNew();return .f.<br />#else<br />function HarbourNew()<br /><br />&nbsp; &nbsp;static lNew<br /><br />&nbsp; &nbsp;if lNew == nil<br />&nbsp; &nbsp; &nbsp; lNew &nbsp;:= LEFT( AFTERATNUM( "</span><span style="color: #000000;">&#40;</span>r<span style="color: #ff0000;">", Version() ), 4 ) >= "</span><span style="color: #000000;">1801</span><span style="color: #ff0000;">"<br />&nbsp; &nbsp;endif<br /><br />return lNew<br />#endif<br /><br />//----------------------------------------------------------------------------//<br /><br />function xlRangeValue( oRange )<br /><br />&nbsp; &nbsp;local aValue &nbsp; := oRange:Value<br /><br />&nbsp; &nbsp;if !HarbourNew()<br />&nbsp; &nbsp; &nbsp; aValue &nbsp; := ArrTransposeQ( aValue )<br />&nbsp; &nbsp;endif<br /><br />return aValue<br /><br />//----------------------------------------------------------------------------//<br /><br />function WMIService()<br /><br />&nbsp; &nbsp;static oWMI<br /><br />&nbsp; &nbsp;local oLocator<br /><br />&nbsp; &nbsp;if oWMI == nil<br /><br />&nbsp; &nbsp; &nbsp; oLocator &nbsp; := CREATEOBJECT( "</span>wbemScripting.SwbemLocator<span style="color: #ff0000;">" )<br />&nbsp; &nbsp; &nbsp; oWMI &nbsp; &nbsp; &nbsp; := oLocator:ConnectServer()<br /><br />&nbsp; &nbsp;endif<br /><br />return oWMI<br /><br />//----------------------------------------------------------------------------//<br /><br /></span></div>[/code:3s2bhpv4]
(DOS Error -2147418111) WINOLE/1009 No exported method: LAN
Thank you very much Birol. I will try it immediately.
(FW 2.7) en PreVer El Factor No Se Inicializa siempre al 1
Al prever un reporte en pantalla, pongo el factor en 3, doy doble click sobre el reporte para reducir otro doble click para agrandar, el factor se pone en el valor 1. No Conserva el Valor del Factor.
(New) Problem with Vertical Scrollbar Thumb Position
Hello, I have just discovered a problem with the Vertical Scrollbar Thumb Position and TListBox Browse. I am not sure if this is a new problem i.e. since FWH March 2006 and XHB March 2006. Problem is this: I have a test database file with about 50 000 records and it is displayed in my favourite TListBox Browse format. I never noticed this before but if you are at the beginning of the file the Vertical Scrollbar Thumb Position moves slowly down while pressing and holding down the Page Down key i.e. it is keeping in synch with the data BUT if you go to the end of the file i.e. by pressing Ctrl Page Down and then press Page Up twice (or hold down the Page Up key) the Vertical Scrollbar Thumb Position jumps to the top of the Vertical Scrollbar i.e. it does not move slowly up while pressing and holding down the Page Up key keeping in synch with the data (like it does move slowly down while pressing and holding down the Page Down key). That was quite a mouthful - hope it makes sense. Regards, Dale.
(New) Problem with Vertical Scrollbar Thumb Position
Sorry, sorry, sorry!!! No problem. I just checked - my problem - due to a corrupt database record / compound index problem - not TListBox Browse!!! Regards, Dale.
(New) Problem with Vertical Scrollbar Thumb Position
Dave, I think your office is possesed with a scrollbar demon... <!-- s;) --><img src="{SMILIES_PATH}/icon_wink.gif" alt=";)" title="Wink" /><!-- s;) --> James
(OT Harbour) Xml - Búsqueda bestia
Hola a todos, Teniendo un xml tal que así: [code=fw:1edfu9d7]<div class="fw" id="{CB}" style="font-family: monospace;"><Principal><br />   <Desglose><br />      <Auxiliar><br />          <Precio><span style="color: #000000;">10.1</span></Precio><br />      </Auxiliar><br />   </Desglose><br /></Principal><br /> </div>[/code:1edfu9d7] Habria alguna forma de hacer una busqueda DIRECTA a "Precio", es decir, buscando el tag "Precio", devuelva la cadena de jerarquia donde se encuentra, que seria en el ejemplo: Principal, Desglose, Auxiliar. Se me ocurren varias formas, nada ortodoxas, a cual de ellas peor <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) --> pero no quiero reinventar la rueda y tampoco inventar el hilo negro y mucho menos matar moscas a cañonazos. <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
(OT Harbour) Xml - Búsqueda bestia
prueba asi local cSrcFileName := "Archivo.xml" local cNodeName := "Precio" local cNodeString := '' local cNodeBegTag := "<Precio" local cNodeEndTag := "</Precio>" local cSrcString cSrcString := HB_MEMOREAD( cSrcFileName ) cNodeString:= HL_ExtrcSIS( cSrcString, cNodeBegTag, cNodeEndTag ) ? "<Precio"+cNodeString+"</Precio>" RETURN procedure HL_ExtrcSIS(; // Extract String IN String cUpStr,; // Up-String cDelm1,; // Delimiter - 1 cDelm2) // Delimiter - 2 LOCAL cRVal := '',; nPos1 := 0,; nPos2 := 0 IF !EMPTY( cUpStr ) .AND. !EMPTY( cDelm1 ) .AND. (!EMPTY( cDelm2 ) .OR. cDelm2 == CRLF ) // A517..21 IF cDelm1 $ cUpStr nPos1 := AT( cDelm1, cUpStr ) + LEN( cDelm1 ) IF cDelm2 $ SUBS( cUpStr, nPos1 ) inkey(.<!-- s8) --><img src="{SMILIES_PATH}/icon_cool.gif" alt="8)" title="Cool" /><!-- s8) --> nPos2 := HL_PAT( nPos1, cDelm2, cUpStr ) cRVal := SUBS( cUpStr, nPos1, nPos2-nPos1 ) cUpStr := SUBS( cUpStr, 1, nPos1 - LEN( cDelm1 ) - 1 ) + SUBS( cUpStr, nPos2 + LEN(cDelm2) ) ELSE cRVal := SUBS( cUpStr, nPos1 ) cUpStr := LEFT( cUpStr, nPos1 ) ENDIF cDelm2 $ SUBS( cUpStr, nPos1 ) ENDIF cDelm1 $ cUpStr ENDIF !EMPTY( cUpStr ) .AND. !EMPTY( cDelm1 ) .AND. !EMPTY( cDelm2 ) // A517 RETU cRVal // HL_ExtrcSIS() PROCEDURE HL_PAT(nBasPos,cAraKtr, cInKtr) LOCAL nRVal := 0 IF nBasPos <= LEN( cInKtr ) nRVal := AT( cAraKtr, SUBS( cInKtr, nBasPos ) ) IF nRVal > 0 nRVal := nBasPos + nRVal - 1 ENDI ENDIF nBasBos <= LEN( cAraKtr ) RETU nRVal SALUDOS
(OT Harbour) Xml - Búsqueda bestia
jbrita, Gracias por tu codigo ¿ lo tienes en produccion ? ¿ Tendrías algo similar pero para hashes ? Saludos
(OT Harbour) Xml - Búsqueda bestia
Mira de usar mxmlFindPath <!-- m --><a class="postlink" href="https://michaelrsweet.github.io/mxml/mxml.html#3_8">https://michaelrsweet.github.io/mxml/mxml.html#3_8</a><!-- m --> Y si no, puedes convertir tu xml a un hash a traves de xmltohash() , [url:ab019qgp]http&#58;//xthefull&#46;blogspot&#46;com&#46;es/2017/04/convertir-xml-hash-en-harbour-update-v&#46;html[/url:ab019qgp]
(OT Harbour) Xml - Búsqueda bestia
Rafa, gracias por la respuesta. Yo habia pensado en un hb_hascan() que buscara una key y devolviera los nodos padre para llegar hasta el. La verdad, pensé que quizá ya lo tenía harbour, puesto que me pareció una operación de hashes que podría ser habitual. Saludos.
(OT) Building Harbour on a Mac
I began working with a Mac a few months ago, started off well building harbour from source, then building my apps from there. I am able to still build my apps but I broke something along the way and now cannot build harbour itself any long. This is not a FiveMac problem, but perhaps somebody can help guide me to the solution here. The mac has received various upgrades along the way, most recently upgraded to Yosemite, but I had this problem before the Yosemite update. I think the problem started after and xcode update, but I'm not sure about that. The harbour builds are all failing with the following error: ld: library not found for -lslang I do have slang installed, having installed it using Homebrew. Well before the error is thrown I already see this in the logs: ! Component: 'slang' found in /usr/local/include I get the feeling that I am missing libaries for the architecture(s) I am building (i386 and x86_64). Can anybody offer me some advice regarding how to go about debugging and fixing this issue. Robb
(OT) Building Harbour on a Mac
Robb, Doing a fresh checkout on Yosemite to test it...
(OT) Building Harbour on a Mac
Robb, This the last that I get: [quote:33g7ziqg]hbmk2[gtalleg]: Exit code: 10: dependency missing or disabled ! Finished package build... ./bin/darwin/clang/hbmk2 ./config/postinst.hb first ! postinst script finished[/quote:33g7ziqg] to me it seems ok Do you reach to the same point ?
(OT) Building Harbour on a Mac
I'm getting an error at the very end building specific tools. ld: library not found for -lslang clang: error linker command failed with exit code 1 (use -v to see invocation) make[3]: *** [hbtest] Error 1 make[2]: *** [descend] Error 2 make[1]: *** [hbtest] Error 2 make: *** [utils] Error 2 I have little doubt I've caused this problem for myself, I haven't figured out how to debug this yet. I have a Mac OS VM that was created from this specific machine before it had this problem. I can build harbour on that VM without issue (both 3.2 and 3.4), but looking at the two machines I still don't see a meaningful difference between them. That VM gives me a working path, but I still need to understand not just what I broke, but how I broke it. Right now I'm confused.
(OT) Building Harbour on a Mac
Robb, > I do have slang installed, having installed it using Homebrew This may be the reason as there is no need to install any hombrew. Just install OSX dev tools and you are ready to build Harbour.
(OT) How to display & print TIFF 4 files?
Seems FreeImage can't display Huffman-compressed TIFF files (i.e. TIF files that have the maximum compression). (I think they are known as "TIFF 4" files). Can anyone suggest something, even a 3rd party solution, that is able to display and print such files in my FWH/xHarbour apps? Colin Wisbey
(OT) Symbol MC50
We use for our mobile solution devices from Symbol. These devices we get with windows mobile 2003 2nd Edition. Does someone know if a MC50 can be updated to Windows mobile 6 or if there is a new hardware available. We do not need keys like the MC55 has. Best regards, Otto
(Off Topic) Consulta SQL (SOLUCIONADO)
Compañeros del foro tegan buen dia.... Lo que pasa es que requiero hacer una consulta SQL, en donde se relacionan 3 tablas, en la primera tabla LA PRINCIPAL tengo el id del cliente y el id de empresa en donde trabaja. En otra tabla tengo el nombre de cliente y en otra tabla el nombre de la empresa, asi: TABLA_MOVIMIENTO [list:27n25715] id_cliente id_empresa tipo_cliente 11______ 21_______ C________ 12______ 22_______ C________ 13______ 23_______ C________ [/list:u:27n25715] TABLA_CLIENTE [list:27n25715] id_cliente nombre_cliente 11______ PEDRO 12______ VILMA 13______ PEBELS [/list:u:27n25715] TABLA_EMPRESAS [list:27n25715] id_empresa nombre_empresa 21_______ DISTRIBUIDORA 22_______ CONSTRUCTURA 23_______ SERVICIOS [/list:u:27n25715] RESULTADO QUE QUIERO OBTENER [list:27n25715] id_cliente id_empresa tipo_cliente nombre_cliente nombre_empresa 11______ 21________ C________ PEDRO_______ DISTRIBUIDORA 12______ 22________ C________ VILMA_______ COMERCIALIZADORA 13______ 23________ C________ PEBELS______ SERVICIOS [/list:u:27n25715] La consulta la hago de la siguiente manera: [code=fw:27n25715]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #0000ff;">SELECT</span> A.*,B.*,C.* <span style="color: #0000ff;">FROM</span> TABLA_MOVIMIENTO A <span style="color: #0000ff;">LEFT</span> <span style="color: #0000ff;">JOIN</span> TABLA_CLIENTES B <span style="color: #0000ff;">ON</span> A.id_cliente=B.id_cliente  <span style="color: #0000ff;">LEFT</span> <span style="color: #0000ff;">JOIN</span> TABLA_EMPRESAS C <span style="color: #0000ff;">ON</span> A.id_empresa=C.id_empresa <span style="color: #0000ff;">WHERE</span> A.tipocliente=<span style="color: #ff0000;">'C'</span><br /> </div>[/code:27n25715] Pero obtengo esto RESULTADO OBTENIDO [list:27n25715] id_cliente id_empresa tipo_cliente nombre_cliente nombre_empresa 11______ 21________ C________ PEDRO_______ DISTRIBUIDORA 11______ 21________ C________ PEDRO_______ DISTRIBUIDORA 12______ 22________ C________ VILMA_______ COMERCIALIZADORA 12______ 22________ C________ VILMA_______ COMERCIALIZADORA 13______ 23________ C________ PEBELS______ SERVICIOS 13______ 23________ C________ PEBELS______ SERVICIOS [/list:u:27n25715] Me duplica los registros.... Alguna idea?
(Off Topic) Consulta SQL (SOLUCIONADO)
Intenta conectar la tabla de MOVIMIENTOS a la de CLIENTES y EMPRESA en un mismo JOIN y en ON condiciona los parametros que las relacionan usando un AND, es algo visto por encima, saludos... <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: -->
(Off Topic) Consulta SQL (SOLUCIONADO)
Leandro: Te muestro una consulta similar a la que tienes tú y me va bien. 1.- Son tres tablas 2.- Uno la segunda (Proveedor) y tercera (Proyecto) tablas desde la primera (HdrOdc) [code=fw:2mh8dh1n]<div class="fw" id="{CB}" style="font-family: monospace;"><br />oRsHdr:<span style="color: #000000;">Source</span>&nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; := <span style="color: #ff0000;">"SELECT "</span> +;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"HdrOdc.*,"</span> +;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"Proveedor.Pro_Nom,"</span> +;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"Proveedor.Pro_Sub,"</span> +;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"Proyecto.Pro_Des "</span> +;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"FROM "</span> +;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"HdrOdc "</span> +;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"LEFT JOIN "</span> +;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"Proveedor "</span> +;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"ON "</span> +;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"HdrOdc.Hdr_Prv = Proveedor.Pro_Pro "</span> +;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"LEFT JOIN "</span> +;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"Proyecto "</span> +;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"ON "</span> +;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"HdrOdc.Hdr_Pro = Proyecto.Pro_Pro "</span> +;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"WHERE "</span> +;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"HdrOdc.Hdr_Odc < 0"</span><br />&nbsp;</div>[/code:2mh8dh1n] Saludos
(Off Topic) Consulta SQL (SOLUCIONADO)
Hola sr,, al vuelo,,, usa GRUPOS [code=fw:185rnb0n]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #0000ff;">SELECT</span> A.*,B.*,C.* <span style="color: #0000ff;">FROM</span> TABLA_MOVIMIENTO A <span style="color: #0000ff;">LEFT</span> <span style="color: #0000ff;">JOIN</span> TABLA_CLIENTES B <span style="color: #0000ff;">ON</span> A.id_cliente=B.id_cliente &nbsp;<span style="color: #0000ff;">LEFT</span> <span style="color: #0000ff;">JOIN</span> TABLA_EMPRESAS C <span style="color: #0000ff;">ON</span> A.id_empresa=C.id_empresa <span style="color: #0000ff;">WHERE</span> A.tipocliente=<span style="color: #ff0000;">'C'</span> &nbsp;<span style="color: #0000ff;">GROUP BY</span> CONCAT<span style="color: #000000;">&#40;</span>id_cliente, id_empresa, tipo_cliente<span style="color: #000000;">&#41;</span><br />&nbsp;</div>[/code:185rnb0n]
(Off Topic) Consulta SQL (SOLUCIONADO)
Mr Leandro Reason for getting duplicates: Your SQL Statement: [code=fw:1kv9ixmr]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #0000ff;">SELECT</span> A.*,B.*,C.* <span style="color: #0000ff;">FROM</span> TABLA_MOVIMIENTO A <span style="color: #0000ff;">LEFT</span> <span style="color: #0000ff;">JOIN</span> TABLA_CLIENTES B <span style="color: #0000ff;">ON</span> A.id_cliente=B.id_cliente &nbsp;<span style="color: #0000ff;">LEFT</span> <span style="color: #0000ff;">JOIN</span> TABLA_EMPRESAS C <span style="color: #0000ff;">ON</span> A.id_empresa=C.id_empresa <span style="color: #0000ff;">WHERE</span> A.tipocliente=<span style="color: #ff0000;">'C'</span><br />&nbsp;</div>[/code:1kv9ixmr] has 2 spelling mistakes. The first table you joined is TABLA_CLIENTES but it should be TABLA_CLIENTE. In your database you may be having 2 tables TABLA_CLIENTE and TABLA_CLIENTES. TABLA_CLIENTES must be having duplicate records for each Cliente. That is the reason for your getting duplicates. The joining ID in the joined tables should be Unique. If you rectify the spelling mistakes, correct SQL statement is: [code=fw:1kv9ixmr]<div class="fw" id="{CB}" style="font-family: monospace;"><br />&nbsp; &nbsp;<span style="color: #0000ff;">SELECT</span> A.*,B.*,C.* <span style="color: #0000ff;">FROM</span> TABLA_MOVIMIENTO A <span style="color: #0000ff;">LEFT</span> <span style="color: #0000ff;">JOIN</span> TABLA_CLIENTE B <span style="color: #0000ff;">ON</span> A.id_cliente=B.id_cliente &nbsp;<span style="color: #0000ff;">LEFT</span> <span style="color: #0000ff;">JOIN</span> TABLA_EMPRESAS C <span style="color: #0000ff;">ON</span> A.id_empresa=C.id_empresa <span style="color: #0000ff;">WHERE</span> A.tipo_cliente=<span style="color: #ff0000;">'C'</span><br />&nbsp;</div>[/code:1kv9ixmr] Use this SQL and you will get the results correctly. (3 rows)
(Off Topic) Consulta SQL (SOLUCIONADO)
Yo lo haría de otra forma pero tal como tú lo tienes sólo hace falta el DISTINCT: Cambia: [code=fw:2f4hywde]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #0000ff;">SELECT</span> A.*,B.*,C.* <span style="color: #0000ff;">FROM</span> TABLA_MOVIMIENTO A <span style="color: #0000ff;">LEFT</span> <span style="color: #0000ff;">JOIN</span> TABLA_CLIENTES B <span style="color: #0000ff;">ON</span> A.id_cliente=B.id_cliente  <span style="color: #0000ff;">LEFT</span> <span style="color: #0000ff;">JOIN</span> TABLA_EMPRESAS C <span style="color: #0000ff;">ON</span> A.id_empresa=C.id_empresa <span style="color: #0000ff;">WHERE</span> A.tipocliente=<span style="color: #ff0000;">'C'</span><br /> </div>[/code:2f4hywde] por SELECT [color=#FF0000:2f4hywde]DISTINCT [/color:2f4hywde]A.*,B.*,C.* FROM TABLA_MOVIMIENTO A LEFT JOIN TABLA_CLIENTES B ON A.id_cliente=B.id_cliente  LEFT JOIN TABLA_EMPRESAS C ON A.id_empresa=C.id_empresa WHERE A.tipocliente='C'
(Off Topic) Consulta SQL (SOLUCIONADO)
Muchas gracias a todos por responder... Amigo willi, la solucion salio de combinar tu respuesta y la de Mr.Rao. Unicamente llame los campos de los nombres de las tablas relacionadas para evitar que se duplicaran los registros, coloque el DISTINCT y funciono correctamente... <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) --> La consulta quedo de la siguiente manera: [code=fw:1k3hrim9]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #0000ff;">SELECT</span> DISTINCT A.*,B.nombre_cliente,C.nombre_empresa <span style="color: #0000ff;">FROM</span> TABLA_MOVIMIENTO A <span style="color: #0000ff;">LEFT</span> <span style="color: #0000ff;">JOIN</span> TABLA_CLIENTE B <span style="color: #0000ff;">ON</span> A.id_cliente=B.id_cliente  <span style="color: #0000ff;">LEFT</span> <span style="color: #0000ff;">JOIN</span> TABLA_EMPRESAS C <span style="color: #0000ff;">ON</span> A.id_empresa=C.id_empresa <span style="color: #0000ff;">WHERE</span> A.tipo_cliente=<span style="color: #ff0000;">'C'</span><br /> </div>[/code:1k3hrim9] Codigo Final [code=fw:1k3hrim9]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #0000ff;">SELECT</span> DISTINCT A.*,B.nombre1,B.nombre2,B.apellido1,C.tipo_lote <span style="color: #0000ff;">FROM</span> lyma_cobro_serv A <span style="color: #0000ff;">LEFT</span> <span style="color: #0000ff;">JOIN</span> ma_tercero B <span style="color: #0000ff;">ON</span> A.ss_tercer=B.documento <span style="color: #0000ff;">LEFT</span> <span style="color: #0000ff;">JOIN</span> pm_tipo_lote C <span style="color: #0000ff;">ON</span> A.ss_tiplot=C.id_tipo_lote <span style="color: #0000ff;">WHERE</span> A.ss_period=<span style="color: #ff0000;">'0215'</span> AND A.ss_manzan=<span style="color: #ff0000;">'25'</span><br /> </div>[/code:1k3hrim9] Muchas Gracias a Todos
(Peru) Consulta de Ruc y su estado Activo Habido SUNAT
Buen dia con todos Esta consulta es dirigida para Fivwin en Peru, Usando Fivewin se puede hacer una consulta a la SUNAT respecto del RUC para jalar los datos de Razon Social, Direccion, si esta Activo, Habido , etc Les gradecere una mano al respecto Gracias.
(Peru) Consulta de Ruc y su estado Activo Habido SUNAT
[url:34iu0aq6]http&#58;//forums&#46;fivetechsupport&#46;com/viewtopic&#46;php?f=6&t=27920&p=177467&hilit=sunat#p177467[/url:34iu0aq6]
(Peru) Consulta de Ruc y su estado Activo Habido SUNAT
Gracias Karinha... Siempre atenta en el foro !!
(RC) Alterar CAPTION de um Say desde recurso sem definir obj
Sr. Antonio, senha.rc Em tempo de execução, gostaria de alterar o CAPTION de um SAY (senha:) , o problema é que não tenho o objeto, ou seja, preciso alterar o CAPTION mais sem definir o objeto, isso é possível? LOGIN DIALOG DISCARDABLE 126, 89, 201, 118 STYLE WS_POPUP|DS_MODALFRAME|WS_CAPTION|WS_SYSMENU|WS_VISIBLE CAPTION "Login do Usußrio" FONT 8, "MS Sans Serif" { CONTROL "", 101, "Edit", WS_BORDER|WS_TABSTOP, 79, 28, 104, 12 CONTROL "", 102, "Edit", ES_PASSWORD|WS_BORDER|WS_TABSTOP, 79, 57, 104, 12 CONTROL "&Entrar", 150, "Button", WS_TABSTOP, 24, 95, 70, 20 CONTROL "&Cancelar", 160, "Button", WS_TABSTOP, 107, 95, 70, 20 CONTROL "Usußrio:", 80, "Static", WS_GROUP, 79, 18, 60, 8 [b:3g9j6rc8]CONTROL "Senha:", -1, "Static", WS_GROUP, 79, 47, 60, 8[/b:3g9j6rc8] CONTROL "TBitMap", 140, "TBitMap", 0x00000000, 16, 8, 44, 77 CONTROL "", 105, "Button", BS_GROUPBOX, 5, 1, 191, 90 }
(RC) Alterar CAPTION de um Say desde recurso sem definir obj
SGS, [url:2m6mwveq]http&#58;//msdn&#46;microsoft&#46;com/en-us/library/ms645521(VS&#46;85)&#46;aspx[/url:2m6mwveq] SetDlgItemText( oDlg:hWnd, -1, "new text" )
(RC) Alterar CAPTION de um Say desde recurso sem definir obj
obrigado Sr. Antonio
(SOLVE) different harbour 3.2 r150129225 with r1506171039
Dear Antonio, using Harbour 3.2 r150129225 + bcc7 + fivewin 15.07 below sample run ok, but if we use harbour 3.2 r1506171039 , the program will error. [code=fw:ogx8piv1]<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> adata :=<span style="color: #000000;">&#123;</span><span style="color: #000000;">1</span>,<span style="color: #000000;">2</span>,<span style="color: #000000;">3</span><span style="color: #000000;">&#125;</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: #0000ff;">msginfo</span><span style="color: #000000;">&#40;</span>adata<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 /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /> </div>[/code:ogx8piv1] Regards, Kok
(SOLVE) different harbour 3.2 r150129225 with r1506171039
Kok, What error do you get ?
(SOLVE) different harbour 3.2 r150129225 with r1506171039
Dear Antonio, With r150129225 the result is 1, With r1506171039 , variabel does not exit. Regards, Kok
(SOLVE) different harbour 3.2 r150129225 with r1506171039
[quote="kok joek hoa":33z1klr1]Dear Antonio, With r150129225 the result is 1, With r1506171039 , variabel does not exit. Regards, Kok[/quote:33z1klr1] I tried your code It works perfectly [url=http&#58;//postimage&#46;org/:33z1klr1][img:33z1klr1]http&#58;//s3&#46;postimg&#46;org/5evyafd4j/Title190&#46;png[/img:33z1klr1][/url:33z1klr1]
(SOLVE) different harbour 3.2 r150129225 with r1506171039
Dear cnavarro, not compile error but runtime error, regards, Kok
(SOLVE) different harbour 3.2 r150129225 with r1506171039
[quote="kok joek hoa":1t2agq4g]Dear cnavarro, not compile error but runtime error, regards, Kok[/quote:1t2agq4g] Kok The image appears in your program runs correctly Maybe, if you are changing version of harbour, make sure your tools of compilation and linking are properly configured and are not mixing both versions.
(SOLVE) different harbour 3.2 r150129225 with r1506171039
That version of FWH and Borland is using?
(SOLVE) different harbour 3.2 r150129225 with r1506171039
Dear cnavarro,, Thank you for your help, yes, I don't mix them, this my rmk file. [code=fw:3lclocl7]<div class="fw" id="{CB}" style="font-family: monospace;"><br />#Borland make sample, <span style="color: #000000;">&#40;</span>c<span style="color: #000000;">&#41;</span> FiveTech Software <span style="color: #000000;">2005</span><br /><br /><br />HBDIR=D:\HB1506<br />BCDIR=f:\bcc70<br />FWDIR=f:\com1507\fwh<br /><br />PELL =D:\pellesc<br /><br />#change these paths as needed<br />.path.PRG = .\<br />.path.OBJ = .\obj<br />.path.CH  = $<span style="color: #000000;">&#40;</span>FWDIR<span style="color: #000000;">&#41;</span>\include;$<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\include<br />.path.C   = .\<br />.path.RC  = .\<br />.path.H   = $<span style="color: #000000;">&#40;</span>BCDIR<span style="color: #000000;">&#41;</span>\include <br /><br />#important: <span style="color: #000000;">Use</span> Uppercase <span style="color: #00C800;">for</span> filenames extensions, in the <span style="color: #00C800;">next</span> two rules!<br /><br />PRG =           \<br />test.PRG        \<br /><br /><br />C =             \<br /><br /><br />PROJECT    : <span style="color: #000000;">test</span>.exe<br /><br />test.exe  : $<span style="color: #000000;">&#40;</span>PRG:.PRG=.OBJ<span style="color: #000000;">&#41;</span> $<span style="color: #000000;">&#40;</span>C:.C=.OBJ<span style="color: #000000;">&#41;</span> <br />   echo off<br />   echo $<span style="color: #000000;">&#40;</span>BCDIR<span style="color: #000000;">&#41;</span>\bin\c0w32.obj + > b32.bc<br />   echo     obj\test.obj              \<br />              ,+ >> b32.bc<br />    echo test.exe, + >> b32.bc<br />    echo test.map, + >> b32.bc<br />    echo $<span style="color: #000000;">&#40;</span>FWDIR<span style="color: #000000;">&#41;</span>\lib\FiveH.lib $<span style="color: #000000;">&#40;</span>FWDIR<span style="color: #000000;">&#41;</span>\lib\FiveHC.lib $<span style="color: #000000;">&#40;</span>FWDIR<span style="color: #000000;">&#41;</span>\lib\libmysql.lib $<span style="color: #000000;">&#40;</span>FWDIR<span style="color: #000000;">&#41;</span>\lib\libmysqld.lib $<span style="color: #000000;">&#40;</span>FWDIR<span style="color: #000000;">&#41;</span>\lib\dolphin.lib + >> b32.bc<br />    echo $<span style="color: #000000;">&#40;</span>FWDIR<span style="color: #000000;">&#41;</span>\lib\barlib32.lib   + >>b32.bc<br />    echo $<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\LIB\hbwin.lib + >> b32.bc<br />    echo $<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\LIB\gtwin.lib + >> b32.bc<br />    echo $<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\LIB\gtgui.lib + >> b32.bc<br />    echo $<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\LIB\hbrtl.lib + >> b32.bc<br />    echo $<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\LIB\hbvm.lib + >> b32.bc<br />    echo $<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\LIB\hblang.lib + >> b32.bc<br />    echo $<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\LIB\hbmacro.lib + >> b32.bc<br />    echo $<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\LIB\hbrdd.lib + >> b32.bc<br />    echo $<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\LIB\rddntx.lib + >> b32.bc<br />    echo $<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\LIB\rddcdx.lib + >> b32.bc<br />    echo $<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\LIB\rddfpt.lib + >> b32.bc<br />    echo $<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\LIB\hbsix.lib + >> b32.bc<br />    echo $<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\LIB\hbdebug.lib + >> b32.bc<br />    echo $<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\LIB\hbcommon.lib + >> b32.bc<br />    echo $<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\LIB\hbpp.lib + >> b32.bc<br />    echo $<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\LIB\hbcpage.lib + >> b32.bc<br />    echo $<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\LIB\hbcplr.lib + >> b32.bc<br />    echo $<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\LIB\hbct.lib + >> b32.bc<br />    echo $<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\LIB\hbpcre.lib + >> b32.bc<br />    echo $<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\LIB\xhb.lib + >> b32.bc<br />    echo $<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\LIB\hbziparc.lib + >> b32.bc<br />    echo $<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\LIB\hbmzip.lib + >> b32.bc<br />    echo $<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\LIB\hbzlib.lib + >> b32.bc<br />    echo $<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\LIB\minizip.lib + >> b32.bc<br />    echo $<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\LIB\png.lib + >> b32.bc<br />    echo $<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\LIB\hbcurl.lib + >> b32.bc<br />    echo $<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\LIB\hbusrrdd.lib + >> b32.bc<br />    echo $<span style="color: #000000;">&#40;</span>FWDIR<span style="color: #000000;">&#41;</span>\lib\libcurl.lib + >> b32.bc<br /><br />    rem Uncomment these two lines <span style="color: #0000ff;">to</span> use Advantage RDD<br />    echo $<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\LIB\rddads.lib + >> b32.bc<br />    echo $<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\LIB\Ace32.lib + >> b32.bc<br /><br />    rem echo $<span style="color: #000000;">&#40;</span>FWDIR<span style="color: #000000;">&#41;</span>\lib\dolphin.lib + >> b32.bc<br />    rem echo $<span style="color: #000000;">&#40;</span>FWDIR<span style="color: #000000;">&#41;</span>\lib\libmysql.lib + >> b32.bc<br /> <br />    echo $<span style="color: #000000;">&#40;</span>BCDIR<span style="color: #000000;">&#41;</span>\lib\cw32.lib + >> b32.bc<br />    echo $<span style="color: #000000;">&#40;</span>BCDIR<span style="color: #000000;">&#41;</span>\lib\uuid.lib + >> b32.bc<br />    echo $<span style="color: #000000;">&#40;</span>BCDIR<span style="color: #000000;">&#41;</span>\lib\import32.lib + >> b32.bc<br />    echo $<span style="color: #000000;">&#40;</span>BCDIR<span style="color: #000000;">&#41;</span>\lib\ws2_32.lib + >> b32.bc<br />    echo $<span style="color: #000000;">&#40;</span>BCDIR<span style="color: #000000;">&#41;</span>\lib\psdk\odbc32.lib + >> b32.bc<br />    echo $<span style="color: #000000;">&#40;</span>BCDIR<span style="color: #000000;">&#41;</span>\lib\psdk\nddeapi.lib + >> b32.bc<br />    echo $<span style="color: #000000;">&#40;</span>BCDIR<span style="color: #000000;">&#41;</span>\lib\psdk\iphlpapi.lib + >> b32.bc<br />    echo $<span style="color: #000000;">&#40;</span>BCDIR<span style="color: #000000;">&#41;</span>\lib\psdk\msimg32.lib + >> b32.bc<br />    echo $<span style="color: #000000;">&#40;</span>BCDIR<span style="color: #000000;">&#41;</span>\lib\psdk\psapi.lib + >> b32.bc<br />    echo $<span style="color: #000000;">&#40;</span>BCDIR<span style="color: #000000;">&#41;</span>\lib\psdk\rasapi32.lib + >> b32.bc<br />    echo $<span style="color: #000000;">&#40;</span>BCDIR<span style="color: #000000;">&#41;</span>\lib\psdk\gdiplus.lib + >> b32.bc<br />    echo $<span style="color: #000000;">&#40;</span>BCDIR<span style="color: #000000;">&#41;</span>\lib\psdk\shell32.lib, >> b32.bc<br />   <br />   <br />   <span style="color: #00C800;">IF</span> EXIST test.res echo test.res >> b32.bc<br />   $<span style="color: #000000;">&#40;</span>BCDIR<span style="color: #000000;">&#41;</span>\bin\ilink32 -Gn -aa -Tpe -s @b32.bc<br />   <br />   <br /><br />.PRG.OBJ:<br />  $<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\bin\harbour $< /N/Oobj\ /I$<span style="color: #000000;">&#40;</span>FWDIR<span style="color: #000000;">&#41;</span>\include;$<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\include <br />  $<span style="color: #000000;">&#40;</span>BCDIR<span style="color: #000000;">&#41;</span>\bin\bcc32 -c -tWM -I$<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\include -oobj\$& obj\$&.c<br /><br />.C.OBJ:<br />  echo -c -tWM -D__HARBOUR__ -DHB_API_MACROS > tmp<br />  echo -I$<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\include;$<span style="color: #000000;">&#40;</span>FWDIR<span style="color: #000000;">&#41;</span>\include;$<span style="color: #000000;">&#40;</span>BCDIR<span style="color: #000000;">&#41;</span>\include >> tmp<br />  $<span style="color: #000000;">&#40;</span>BCDIR<span style="color: #000000;">&#41;</span>\bin\bcc32 -oobj\$& @tmp $&.c<br />  del tmp<br /><br /><br />test.res : <span style="color: #000000;">test</span>.rc<br />#  $<span style="color: #000000;">&#40;</span>BCDIR<span style="color: #000000;">&#41;</span>\bin\brc32.exe -r test.rc<br />  $<span style="color: #000000;">&#40;</span>PELL<span style="color: #000000;">&#41;</span>\bin\PORC.exe  test.rc /I $<span style="color: #000000;">&#40;</span>PELL<span style="color: #000000;">&#41;</span>\include /I $<span style="color: #000000;">&#40;</span>PELL<span style="color: #000000;">&#41;</span>\include\win<br /><br /> </div>[/code:3lclocl7] regards, Kok
(SOLVE) different harbour 3.2 r150129225 with r1506171039
Use the buildh.bat the samples folder of your FWH That result has?
(SOLVE) different harbour 3.2 r150129225 with r1506171039
Dear cnavorra, yes, if we use the buildh.bat from samples, everything run ok. It's strange. regards, Kok
(SOLVE) different harbour 3.2 r150129225 with r1506171039
Solve, Just change this line : $(HBDIR)\bin\harbour $< /[color=#FF0000:37cghz3d]N [/color:37cghz3d]/Oobj\ /I$(FWDIR)\include;$(HBDIR)\include to $(HBDIR)\bin\harbour $< /[color=#FF0000:37cghz3d]n[/color:37cghz3d] /Oobj\ /I$(FWDIR)\include;$(HBDIR)\include Regards, Kok