topic
stringlengths
1
63
text
stringlengths
1
577k
timer en dialog
Buenas tardes con todos es posible que funcione un timer en un dialogo el dialogo es desde recursos saludos y Gracias por todo
timer en dialog
Buenas tardes como estas? El timer solo lo tienes que definir al inicio del dialogo o ventana no importa, simplemente al cerrar el objeto se desactiva. [code=fw:1q30d086]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br /><span style="color: #00C800;">Local</span> oTmr<br /><br /><span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">RESOURCE</span> <span style="color: #ff0000;">"ORCONIMP"</span> <span style="color: #0000ff;">ICON</span> <span style="color: #ff0000;">"#8001"</span> TRANSPARENT<br /><br />&nbsp; <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">TIMER</span> oTmr <span style="color: #0000ff;">INTERVAL</span> <span style="color: #000000;">30000</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">ACTION</span> tuaccion<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">//Cada 30 segundos</span><br />&nbsp; <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">TIMER</span> oTmr <br />...<br /><br />&nbsp; &nbsp; <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">GET</span> oGNomb <span style="color: #0000ff;">VAR</span> cGNomb <span style="color: #0000ff;">ID</span> <span style="color: #000000;">4003</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">UPDATE</span> <span style="color: #0000ff;">PICTURE</span> <span style="color: #ff0000;">"@N"</span>&nbsp; <br />&nbsp; &nbsp; <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">GET</span> oGInte <span style="color: #0000ff;">VAR</span> cGInte <span style="color: #0000ff;">ID</span> <span style="color: #000000;">4005</span> <span style="color: #0000ff;">OF</span> oDlg &nbsp;<span style="color: #0000ff;">UPDATE</span> <span style="color: #0000ff;">PICTURE</span> <span style="color: #ff0000;">"@N"</span>&nbsp;<br />&nbsp; &nbsp; <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">GET</span> oGPrto <span style="color: #0000ff;">VAR</span> cGPrto <span style="color: #0000ff;">ID</span> <span style="color: #000000;">4008</span> <span style="color: #0000ff;">OF</span> oDlg &nbsp;<span style="color: #0000ff;">UPDATE</span> <span style="color: #0000ff;">PICTURE</span> <span style="color: #ff0000;">"@N"</span><br /><br />...<br /><br /><span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span><br /><br />&nbsp;</div>[/code:1q30d086]
timer en dialog
Leandro buenas tardes muchas gracias
timer with a button
Hi guys, I want to do a timer that shows a message after 10 seconds de pressing the button please help me Gente: Necesito programar un timer dentro de un botón que despues de 10 segundos de presionado muestre un msje ayuda por favor
timer with a button
[img:1gmzdm4n]https&#58;//i&#46;imgur&#46;com/LqeJED9&#46;png[/img:1gmzdm4n]
timer with a button
[code=fw:2u0kwut2]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #B900B9;">//-> By Joao Santos - Sao Paulo - Brazil - <!-- e --><a href="mailto:[email protected]">[email protected]</a><!-- e --></span><br /><span style="color: #B900B9;">//-> Participacao Especial, Vailton Renato - <!-- e --><a href="mailto:[email protected]">[email protected]</a><!-- e --></span><br /><br /><span style="color: #00D7D7;">#Include</span> <span style="color: #ff0000;">"FiveWin.Ch"</span><br /><br /><span style="color: #00C800;">STATIC</span> oDlgRelog, oTimerRelog, lDesliga := .F., oWnd, oTimerPorta<br /><span style="color: #00C800;">STATIC</span> oFnt, oSaida<br /><br /><span style="color: #B900B9;">//---------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">FUNCTION</span> RELOG<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> oSayMens, oFnt2, aGrad<br /><br />&nbsp; &nbsp;oSayMens := <span style="color: #ff0000;">"This a Test message"</span><br /><br />&nbsp; &nbsp;aGrad := <span style="color: #000000;">&#123;</span> <span style="color: #000000;">&#123;</span> <span style="color: #000000;">0.30</span>, CLR_BLACK, CLR_YELLOW<span style="color: #000000;">&#125;</span>,<span style="color: #000000;">&#123;</span> <span style="color: #000000;">0.70</span>, CLR_YELLOW, CLR_BLACK <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFnt &nbsp;<span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"Arial"</span> &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">08</span>, &nbsp;<span style="color: #000000;">20</span> BOLD<br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFnt2 <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"Arial"</span> &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">00</span>, <span style="color: #000000;">-12</span> BOLD<br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlgRelog <span style="color: #0000ff;">FROM</span> <span style="color: #000000;">3</span>, <span style="color: #000000;">3</span> <span style="color: #0000ff;">TO</span> <span style="color: #000000;">20</span>, <span style="color: #000000;">50</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Test of Message with Timer"</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; GRADIENT aGrad TRANSPARENT &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">STYLE</span> nOR<span style="color: #000000;">&#40;</span> DS_MODALFRAME <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;oDlgRelog:<span style="color: #000000;">lHelpIcon</span> := .F.<br /><br />&nbsp; &nbsp;@ .<span style="color: #000000;">5</span>,<span style="color: #000000;">10</span> <span style="color: #0000ff;">SAY</span> oSayMens <span style="color: #0000ff;">OF</span> oDlgRelog <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">100</span>, <span style="color: #000000;">12</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">COLOR</span> CLR_BLACK, CLR_WHITE TRANSPARENT <span style="color: #0000ff;">ADJUST</span><br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">5</span>, <span style="color: #000000;">11</span> <span style="color: #0000ff;">BUTTON</span> oSaida <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"&Timer"</span> <span style="color: #0000ff;">OF</span> oDlgRelog &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">50</span>, <span style="color: #000000;">14</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">ACTION</span><span style="color: #000000;">&#40;</span> ACIONA_TIMER<span style="color: #000000;">&#40;</span> oWnd <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;oSaida:<span style="color: #000000;">cToolTip</span> := <span style="color: #ff0000;">"Timer"</span><br /><br />&nbsp; &nbsp;SET <span style="color: #0000ff;">FONT</span> <span style="color: #0000ff;">OF</span> oSaida &nbsp; &nbsp;<span style="color: #0000ff;">TO</span> oFnt<br />&nbsp; &nbsp;SET <span style="color: #0000ff;">FONT</span> <span style="color: #0000ff;">OF</span> oDlgRelog <span style="color: #0000ff;">TO</span> oFnt2<br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlgRelog <span style="color: #0000ff;">CENTERED</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">IF</span> lDesliga<br />&nbsp; &nbsp; &nbsp; oTimerRelog:<span style="color: #000000;">DeActivate</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; oTimerPorta:<span style="color: #000000;">DeActivate</span><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;oFnt:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oFnt2:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><br /><span style="color: #00C800;">FUNCTION</span> ACIONA_TIMER<span style="color: #000000;">&#40;</span> oWnd <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">TIMER</span> oTimerPorta <span style="color: #0000ff;">INTERVAL</span> <span style="color: #000000;">50</span> &nbsp;<span style="color: #0000ff;">OF</span> oDlgRelog &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ACTION</span> ACIONA_RELOGIO<span style="color: #000000;">&#40;</span> oWnd <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">TIMER</span> oTimerPorta<br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><br /><span style="color: #00C800;">FUNCTION</span> ACIONA_RELOGIO<span style="color: #000000;">&#40;</span> oWnd <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> oFont<br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFont <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"Arial"</span> <span style="color: #0000ff;">SIZE</span> &nbsp;<span style="color: #000000;">0</span>, <span style="color: #000000;">-70</span> BOLD<br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFnt &nbsp;<span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"Arial"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">08</span>, &nbsp;<span style="color: #000000;">20</span> BOLD<br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">TIMER</span> oTimerRelog <span style="color: #0000ff;">INTERVAL</span> <span style="color: #000000;">50</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ACTION</span> ExibeRelogio<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">TIMER</span> oTimerRelog<br /><br />&nbsp; &nbsp;SET <span style="color: #0000ff;">FONT</span> <span style="color: #0000ff;">OF</span> oDlgRelog <span style="color: #0000ff;">TO</span> oFont<br />&nbsp; &nbsp;SET <span style="color: #0000ff;">FONT</span> <span style="color: #0000ff;">OF</span> oSaida &nbsp; &nbsp;<span style="color: #0000ff;">TO</span> oFnt<br /><br />&nbsp; &nbsp;oFont:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;lDesliga := .T. &nbsp;<span style="color: #B900B9;">//-> Para Desligar o Timer</span><br /><br />&nbsp; &nbsp;oTimerPorta:<span style="color: #000000;">DeActivate</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: #00C800;">FUNCTION</span> ExibeRelogio<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> NewMensa := <span style="color: #ff0000;">"Mensagem"</span><br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">// Mensageria</span><br />&nbsp; &nbsp;<span style="color: #00C800;">IF</span> ISWINDOWVISIBLE<span style="color: #000000;">&#40;</span> oDlgRelog:<span style="color: #000000;">hWnd</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp;oDlgRelog:<span style="color: #0000ff;">Say</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">3</span>, <span style="color: #000000;">01</span>, NewMensa, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;CLR_YELLOW, CLR_BLACK,, .F. <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// .T. Esquerda - .F. Direita da Dialog.</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">ENDIF</span><br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><br /><span style="color: #B900B9;">//-> FIM / END</span><br />&nbsp;</div>[/code:2u0kwut2] Regards, saludos.
timer y Folder
Estimados, tengo un dialogo con un folder y necesito refrescar cada cierto tiempo el browser. Problema. Solo se lanza la accion del timer cuando cierro el dialogo. Alguna Idea? [code:fmw8v3f1] #include "fivewin&#46;ch" #include "folder&#46;ch" #include "tsbrowse&#46;ch" #include "debug&#46;ch" #include "colores&#46;ch" //------------------------------------------------------------------------------ FUNCTION PantallaPrincipal&#40;&#41; LOCAL oDlg, ; oIcono, ; oFolder, ; oBrw, ; oTimer LOCAL oQuery DEFINE ICON oIcono RESOURCE "ICON_DIPAI" oQuery&#58;= GetApp&#40;&#41;&#58;LeerTabla&#40; &#123; "guia&#46;*" &#125;, , , "idguia" &#41; DEFINE DIALOG oDlg RESOURCE "DLG_MENU" TITLE "prueba Direcciones útiles &#58;&#58;&#46; " ICON oIcono //----------&#40; Folder &#41;---------- REDEFINE FOLDER oFolder ID 114 OF oDlg ; PROMPTS " &Padrón de datos existentes ", "&Alta, Bajas, Modificaciones",; " Mensaje a otro usuario ", "&Datos del Usuario Actual" ; DIALOGS "FLD_BROWSER", "FLD_ABM",; "FLD_MENSAJES", "FLD_USUARIOS"; UPDATE //----------&#40; Browser &#41;---------- REDEFINE BROWSE oBrw ID 101 OF oFolder&#58;aDialogs&#91;1&#93; FONT GetFont&#40;&#41;&#58;celda // Identificacion ADD COLUMN TO oBrw ; Header "Nombre o Entidad" ; DATA SetearColumna&#40; oQuery, 1 &#41;; ALIGN DT_CENTER, DT_CENTER WIDTH 200 PIXELS ADD COLUMN TO oBrw ; Header "Domicilio" ; DATA SetearColumna&#40; oQuery, 2 &#41;; ALIGN DT_CENTER, DT_CENTER WIDTH 200 PIXELS ADD COLUMN TO oBrw ; Header "Teléfono" ; DATA SetearColumna&#40; oQuery, 3 &#41;; ALIGN DT_CENTER, DT_CENTER WIDTH 200 PIXELS MySetBrowse&#40; oBrw, oQuery &#41; oBrw&#58;ChangeFont&#40; GetFont&#40;&#41;&#58;ENCABEZADO, , 2 &#41; oBrw&#58;aColumns&#91;1&#93;&#58;lEdit &#58;= &#46;F&#46; oBrw&#58;aColumns&#91;2&#93;&#58;lEdit &#58;= &#46;F&#46; oBrw&#58;aColumns&#91;3&#93;&#58;lEdit &#58;= &#46;F&#46; oBrw&#58;nAdjColumn &#58;= 3 oBrw&#58;lAutoEdit &#58;= &#46;F&#46; oBrw&#58;nHeightHead += 15 oBrw&#58;nHeightCell += 8 oBrw&#58;lNoHScroll &#58;= &#46;T&#46; oBrw&#58;lNovScroll &#58;= &#46;F&#46; oBrw&#58;Look3d&#40; &#46;T&#46;, , , &#46;T&#46; &#41; oBrw&#58;SetColor&#40; &#123; 2, 5, 6, 15, 8 &#125;,; &#123; &#123; || If&#40; oBrw&#58;nLogicPos&#40;&#41; % 2 = 0,CLR_1, CLR_2 &#41; &#125;,; CLR_WHITE,; CLR_BLUE ,; CLR_GRAY ,; &#123; | | If&#40; oBrw&#58;nLogicPos&#40;&#41; % 2 = 0,CLR_1, CLR_2 &#41; &#125; &#125; &#41; oDlg&#58;bStart&#58;= &#123; || Timer&#40; oTimer, oBrw, oQuery, oDlg &#41; &#125; ACTIVATE DIALOG oDlg CENTERED RETURN &#40; NIL &#41; //------------------------------------------------------------------------------ FUNCTION timer&#40; oTimer, oBrw, oQuery, oDlg &#41; DEFINE timer oTimer interval 1000 of oDlg action &#40; RecargarBrowser&#40; @oBrw, @oQuery &#41; &#41; ACTIVATE timer oTimer RETURN &#40; NIL &#41; //------------------------------------------------------------------------------ // Esta accion solo se ejecuta cuando se cierra el dialogo, mientras // el dialogo esta en pantalla no pasa nada&#46; FUNCTION RecargarBrowser&#40; oBrw, oQuery &#41; oQuery&#58;= GetApp&#40;&#41;&#58;LeerTabla&#40; &#123; "guia&#46;*" &#125;, , , "idguia" &#41; MySetBrowse&#40; oBrw, oQuery &#41; oBrw&#58;refresh&#40;&#41; ? "paso por aca" RETURN &#40; NIL &#41; //------------------------------------------------------------------------------ [/code:fmw8v3f1]
timer y Folder
Arranca el timer en el ON INIT del dialogo.
timer y Folder
[quote="RF":2iuxwzgh]Arranca el timer en el ON INIT del dialogo.[/quote:2iuxwzgh] En mi caso que hago esto: [code:2iuxwzgh] oDlg&#58;bStart&#58;= &#123; || Timer&#40; oTimer, oBrw, oQuery, oDlg &#41; &#125; ACTIVATE DIALOG oDlg CENTERED [/code:2iuxwzgh] el bloque bStart no estaría haciendo el on init? o son cosas diferentes el ON INIT y el bStart? Gracias.
timer y Folder
[quote="goosfancito":j09697wk][quote="RF":j09697wk]Arranca el timer en el ON INIT del dialogo.[/quote:j09697wk] En mi caso que hago esto: [code:j09697wk] oDlg&#58;bStart&#58;= &#123; || Timer&#40; oTimer, oBrw, oQuery, oDlg &#41; &#125; ACTIVATE DIALOG oDlg CENTERED [/code:j09697wk] el bloque bStart no estaría haciendo el on init? o son cosas diferentes el ON INIT y el bStart? Gracias.[/quote:j09697wk] No. bStart es un codeblock que se lanza cuando el dialogo ya a sido creado, el bInit es ANTES de que se cree.
timer y Folder
Son 2 cosas distintas. Sucede que los timers unicamente pueden utilizarse desde ventanas, y no desde dialogos. Debes utilizar el evento ON INIT ya que es en este evento en el que el dialogo tiene atributos de ventana y puede aceptar el arranque del timer, y que este a su vez se pueda "colgar" al sistema de envios de mensajes. El bSTart no te sirve, porque como bien menciona Rafa, ese evento se ejecuta una vez que el dialogo ya tiene atributos de dialogo, es decir, ya es modal y no esta "bombeando" los mensajes de Windows.
tip.lib
where found tip.lib or the source code on harbour ?
tip.lib
In Harbour ===> hbtip.lib
tip.lib
Yes..but I wish see the source code on HarBour project I found only binaries
tip.lib
Silvio, This file can be downloaded from the xHarbour homepage. [color=#0000FF:385ao5bb][b:385ao5bb]xhb10242_src.zip[/b:385ao5bb][/color:385ao5bb] included : [b:385ao5bb]cgi codepage common compiler ct debug lang macro odbc pp rdd rtl tip <!-- s:!: --><img src="{SMILIES_PATH}/icon_exclaim.gif" alt=":!:" title="Exclamation" /><!-- s:!: --> vm[/b:385ao5bb] regards Uwe <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
tip.lib
but for xh I asked H
tip: archivos necesarios para BCC 6.60
Amigos, Embarcadero acaba de sacar la versión 6.60 de BCC. Una vez descargado el último Embarcadero C++Builder® XE4, estos son los ficheros que hay que copiar: <!-- m --><a class="postlink" href="http://www.embarcadero.com/es/products/cbuilder/downloads">http://www.embarcadero.com/es/products/ ... /downloads</a><!-- m --> [quote:kuw3oeh0] En este archivo txt os pongo la lista de los archivos necesarios: <!-- m --><a class="postlink" href="http://ul.to/ubfesr60">http://ul.to/ubfesr60</a><!-- m --> Directorio de C:\Users\Lucas\Desktop\BCC660 18/05/2013 11:00 <DIR> . 18/05/2013 11:00 <DIR> .. 02/05/2013 04:54 <DIR> BCC66 18/05/2013 11:00 0 LUCAS.TXT 1 archivos 0 bytes Directorio de C:\Users\Lucas\Desktop\BCC660\BCC66 02/05/2013 04:54 <DIR> . 02/05/2013 04:54 <DIR> .. 02/05/2013 04:51 <DIR> bin 25/04/2013 18:22 <DIR> include 02/05/2013 04:53 <DIR> lib 0 archivos 0 bytes [...] [...] Total de archivos en la lista: 2158 archivos 110.550.201 bytes 41 dirs [/quote:kuw3oeh0] Finalmente, hay que editar [u:kuw3oeh0]bin\bcc32.cfg e bin\ilink32.cfg para poner adecuadamente el path[/u:kuw3oeh0]. Antonio ha comentado que si hay gente suficiente interesada, entonces compilará FWH con BCC 6.60, y así nos podremos aprovechar de las últimas optimizaciones. Un saludo
tip: archivos necesarios para BCC 6.60
Gracias Lucas Probado y funcionando Saludos
tip: archivos necesarios para BCC 6.60
Lucas te pregunto Ya lo descargue. este fue el cbuilder_xe4_esd.exe Lo instale. Pero tiene una vigencia de 30 dias. En archivo de programas C:\Archivos de programa\Embarcadero\RAD Studio\11.0 Vi tu archivo LUCAS.TXT Lo que te entiendo es una vez instalado sacar los archivo que tu enuncias en el archivo adjunto y listo. [code=fw:3p8vbqk7]<div class="fw" id="{CB}" style="font-family: monospace;"><br />&nbsp;El volumen de la unidad C no tiene etiqueta.<br />&nbsp;El n£mero de serie del volumen es: 34D3-C450<br /><br />&nbsp;Directorio de C:\Archivos de programa\Embarcadero<br /><br /><span style="color: #000000;">19</span>/<span style="color: #000000;">05</span>/<span style="color: #000000;">2013</span> &nbsp;<span style="color: #000000;">03</span>:<span style="color: #000000;">09</span> &nbsp; &nbsp;<DIR> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;.<br /><span style="color: #000000;">19</span>/<span style="color: #000000;">05</span>/<span style="color: #000000;">2013</span> &nbsp;<span style="color: #000000;">03</span>:<span style="color: #000000;">09</span> &nbsp; &nbsp;<DIR> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;..<br /><span style="color: #000000;">19</span>/<span style="color: #000000;">05</span>/<span style="color: #000000;">2013</span> &nbsp;<span style="color: #000000;">03</span>:<span style="color: #000000;">09</span> &nbsp; &nbsp;<DIR> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;RAD Studio<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">0</span> archivos &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">0</span> bytes<br /><br />&nbsp;Directorio de C:\Archivos de programa\Embarcadero\RAD Studio<br /><br /><span style="color: #000000;">19</span>/<span style="color: #000000;">05</span>/<span style="color: #000000;">2013</span> &nbsp;<span style="color: #000000;">03</span>:<span style="color: #000000;">09</span> &nbsp; &nbsp;<DIR> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;.<br /><span style="color: #000000;">19</span>/<span style="color: #000000;">05</span>/<span style="color: #000000;">2013</span> &nbsp;<span style="color: #000000;">03</span>:<span style="color: #000000;">09</span> &nbsp; &nbsp;<DIR> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;..<br /><span style="color: #000000;">19</span>/<span style="color: #000000;">05</span>/<span style="color: #000000;">2013</span> &nbsp;<span style="color: #000000;">03</span>:<span style="color: #000000;">21</span> &nbsp; &nbsp;<DIR> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">11.0</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">0</span> archivos &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">0</span> bytes<br /><br />&nbsp;Directorio de C:\Archivos de programa\Embarcadero\RAD Studio\<span style="color: #000000;">11.0</span><br /><br /><span style="color: #000000;">19</span>/<span style="color: #000000;">05</span>/<span style="color: #000000;">2013</span> &nbsp;<span style="color: #000000;">03</span>:<span style="color: #000000;">21</span> &nbsp; &nbsp;<DIR> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;.<br /><span style="color: #000000;">19</span>/<span style="color: #000000;">05</span>/<span style="color: #000000;">2013</span> &nbsp;<span style="color: #000000;">03</span>:<span style="color: #000000;">21</span> &nbsp; &nbsp;<DIR> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;..<br /><span style="color: #000000;">18</span>/<span style="color: #000000;">04</span>/<span style="color: #000000;">2013</span> &nbsp;<span style="color: #000000;">05</span>:<span style="color: #000000;">55</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">6.405</span> available_downloads_en.htm<br /><span style="color: #000000;">19</span>/<span style="color: #000000;">05</span>/<span style="color: #000000;">2013</span> &nbsp;<span style="color: #000000;">04</span>:<span style="color: #000000;">32</span> &nbsp; &nbsp;<DIR> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;bin<br /><span style="color: #000000;">19</span>/<span style="color: #000000;">05</span>/<span style="color: #000000;">2013</span> &nbsp;<span style="color: #000000;">03</span>:<span style="color: #000000;">31</span> &nbsp; &nbsp;<DIR> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;bin64<br /><span style="color: #000000;">19</span>/<span style="color: #000000;">05</span>/<span style="color: #000000;">2013</span> &nbsp;<span style="color: #000000;">03</span>:<span style="color: #000000;">14</span> &nbsp; &nbsp;<DIR> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;binosx32<br /><span style="color: #000000;">18</span>/<span style="color: #000000;">04</span>/<span style="color: #000000;">2013</span> &nbsp;<span style="color: #000000;">05</span>:<span style="color: #000000;">55</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">121.844</span> deploy_en.htm<br /><span style="color: #000000;">19</span>/<span style="color: #000000;">05</span>/<span style="color: #000000;">2013</span> &nbsp;<span style="color: #000000;">03</span>:<span style="color: #000000;">09</span> &nbsp; &nbsp;<DIR> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">Help</span><br /><span style="color: #000000;">19</span>/<span style="color: #000000;">05</span>/<span style="color: #000000;">2013</span> &nbsp;<span style="color: #000000;">03</span>:<span style="color: #000000;">09</span> &nbsp; &nbsp;<DIR> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">Images</span><br /><span style="color: #000000;">19</span>/<span style="color: #000000;">05</span>/<span style="color: #000000;">2013</span> &nbsp;<span style="color: #000000;">03</span>:<span style="color: #000000;">09</span> &nbsp; &nbsp;<DIR> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Imports<br /><span style="color: #000000;">19</span>/<span style="color: #000000;">05</span>/<span style="color: #000000;">2013</span> &nbsp;<span style="color: #000000;">03</span>:<span style="color: #000000;">09</span> &nbsp; &nbsp;<DIR> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;include<br /><span style="color: #000000;">18</span>/<span style="color: #000000;">04</span>/<span style="color: #000000;">2013</span> &nbsp;<span style="color: #000000;">05</span>:<span style="color: #000000;">55</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">1.045</span> install_en.html<br /><span style="color: #000000;">19</span>/<span style="color: #000000;">05</span>/<span style="color: #000000;">2013</span> &nbsp;<span style="color: #000000;">03</span>:<span style="color: #000000;">22</span> &nbsp; &nbsp;<DIR> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;InterBaseXE3<br /><span style="color: #000000;">18</span>/<span style="color: #000000;">04</span>/<span style="color: #000000;">2013</span> &nbsp;<span style="color: #000000;">11</span>:<span style="color: #000000;">58</span> &nbsp; &nbsp;<DIR> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;lib<br /><span style="color: #000000;">19</span>/<span style="color: #000000;">05</span>/<span style="color: #000000;">2013</span> &nbsp;<span style="color: #000000;">03</span>:<span style="color: #000000;">16</span> &nbsp; &nbsp;<DIR> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;License<br /><span style="color: #000000;">18</span>/<span style="color: #000000;">04</span>/<span style="color: #000000;">2013</span> &nbsp;<span style="color: #000000;">05</span>:<span style="color: #000000;">55</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">144.884</span> license_en.rtf<br /><span style="color: #000000;">18</span>/<span style="color: #000000;">04</span>/<span style="color: #000000;">2013</span> &nbsp;<span style="color: #000000;">05</span>:<span style="color: #000000;">55</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">17.702</span> license_gdiplus.txt<br /><span style="color: #000000;">18</span>/<span style="color: #000000;">04</span>/<span style="color: #000000;">2013</span> &nbsp;<span style="color: #000000;">05</span>:<span style="color: #000000;">55</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">217.802</span> license_pt.rtf<br /><span style="color: #000000;">19</span>/<span style="color: #000000;">05</span>/<span style="color: #000000;">2013</span> &nbsp;<span style="color: #000000;">03</span>:<span style="color: #000000;">09</span> &nbsp; &nbsp;<DIR> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ObjRepos<br /><span style="color: #000000;">19</span>/<span style="color: #000000;">05</span>/<span style="color: #000000;">2013</span> &nbsp;<span style="color: #000000;">03</span>:<span style="color: #000000;">12</span> &nbsp; &nbsp;<DIR> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;PAServer<br /><span style="color: #000000;">19</span>/<span style="color: #000000;">05</span>/<span style="color: #000000;">2013</span> &nbsp;<span style="color: #000000;">03</span>:<span style="color: #000000;">16</span> &nbsp; &nbsp;<DIR> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;QualityCentral<br /><span style="color: #000000;">18</span>/<span style="color: #000000;">04</span>/<span style="color: #000000;">2013</span> &nbsp;<span style="color: #000000;">05</span>:<span style="color: #000000;">55</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">432.144</span> RADStudioXE4_ThirdPartyLicense.html<br /><span style="color: #000000;">18</span>/<span style="color: #000000;">04</span>/<span style="color: #000000;">2013</span> &nbsp;<span style="color: #000000;">05</span>:<span style="color: #000000;">55</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">1.006</span> readme_en.html<br /><span style="color: #000000;">19</span>/<span style="color: #000000;">05</span>/<span style="color: #000000;">2013</span> &nbsp;<span style="color: #000000;">03</span>:<span style="color: #000000;">22</span> &nbsp; &nbsp;<DIR> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Redist<br /><span style="color: #000000;">18</span>/<span style="color: #000000;">04</span>/<span style="color: #000000;">2013</span> &nbsp;<span style="color: #000000;">05</span>:<span style="color: #000000;">55</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">846</span> redist_gdiplus.txt<br /><span style="color: #000000;">19</span>/<span style="color: #000000;">05</span>/<span style="color: #000000;">2013</span> &nbsp;<span style="color: #000000;">03</span>:<span style="color: #000000;">16</span> &nbsp; &nbsp;<DIR> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;schemas<br /><span style="color: #000000;">19</span>/<span style="color: #000000;">05</span>/<span style="color: #000000;">2013</span> &nbsp;<span style="color: #000000;">03</span>:<span style="color: #000000;">09</span> &nbsp; &nbsp;<DIR> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;source<br /><span style="color: #000000;">19</span>/<span style="color: #000000;">05</span>/<span style="color: #000000;">2013</span> &nbsp;<span style="color: #000000;">03</span>:<span style="color: #000000;">18</span> &nbsp; &nbsp;<DIR> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Uninstall<br /><span style="color: #000000;">19</span>/<span style="color: #000000;">05</span>/<span style="color: #000000;">2013</span> &nbsp;<span style="color: #000000;">03</span>:<span style="color: #000000;">16</span> &nbsp; &nbsp;<DIR> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Welcomepage<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">9</span> archivos &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">943.678</span> bytes<br /><br />..<br />..<br />..<br /><br />&nbsp;</div>[/code:3p8vbqk7] Seria genial pàsarnos a este comilador de C y veo que se puede compilar a 64bits
tip: files needed for BCC 6.60
Hello, After you download latest Embarcadero C++Builder® XE4, those are the files needed to be copied: <!-- m --><a class="postlink" href="http://www.embarcadero.com/es/products/cbuilder/downloads">http://www.embarcadero.com/es/products/ ... /downloads</a><!-- m --> [quote:1ymqd9o5] In this .txt you will find the list of files to be copied: <!-- m --><a class="postlink" href="http://ul.to/ubfesr60">http://ul.to/ubfesr60</a><!-- m --> Directorio de C:\Users\Lucas\Desktop\BCC660 18/05/2013 11:00 <DIR> . 18/05/2013 11:00 <DIR> .. 02/05/2013 04:54 <DIR> BCC66 18/05/2013 11:00 0 LUCAS.TXT 1 archivos 0 bytes Directorio de C:\Users\Lucas\Desktop\BCC660\BCC66 02/05/2013 04:54 <DIR> . 02/05/2013 04:54 <DIR> .. 02/05/2013 04:51 <DIR> bin 25/04/2013 18:22 <DIR> include 02/05/2013 04:53 <DIR> lib 0 archivos 0 bytes [...] [...] Total de archivos en la lista: 2158 archivos 110.550.201 bytes 41 dirs [/quote:1ymqd9o5] Antonio, do you plan to compile FWH with latest BCC 6.60?. Thank you.
tip: files needed for BCC 6.60
Lucas, Up tp now, you are the only one asking for it. If there is a reasonable amount of requests, then we could do it.
tip: files needed for BCC 6.60
Antonio, please don't drop BCC582 build, thank you. <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> EMG
tip: files needed for BCC 6.60
Enrico, May I ask if you found any problem with BCC 6.60?. Here is working fine.
tip: files needed for BCC 6.60
Lucas, [quote="lucasdebeltran":pjwowezm]Enrico, May I ask if you found any problem with BCC 6.60?. Here is working fine.[/quote:pjwowezm] I didn't try it yet but I prefer BCC582 because it makes smaller EXEs. EMG
tip: files needed for BCC 6.60
My experience Mi experiencia 18/05/2013 14:36 2.719.232 vmh.exe con BCC582 18/05/2013 14:26 2.663.424 vmh1.exe con BCC660 I used the BuildH.bat provided with FWH He usado el buildh.bat proporcionado con FWH regards Saludos
tip: files needed for BCC 6.60
To get meaningful results you must rebuild [x]Harbour [b:1rf6h3dt]and[/b:1rf6h3dt] FWH with the new compiler. This is my result: [code=fw:1rf6h3dt]<div class="fw" id="{CB}" style="font-family: monospace;"><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: #ff0000;">"Hello, World!"</span><br /><br />&nbsp; &nbsp; <span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span></div>[/code:1rf6h3dt] BCC582: 824320 BCC660: 838656 This is a test with pure xHarbour console EXE, no FWH. I can imagine that the difference is even bigger with FWH EXEs. EMG
tip: files needed for BCC 6.60
Hello, And what about this text: [code=fw:1awgxjz5]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #B900B9;">// test.prg</span><br />PROCEDURE Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> nInicio, nFinal<br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> i<br /><br /><br /><br />&nbsp; &nbsp;nInicio := seconds<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;i:=conta<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;nfinal := seconds<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><br />&nbsp; &nbsp;alert<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Time: "</span>+str<span style="color: #000000;">&#40;</span>nFinal-nInicio<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;ALERT<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Version of C compiler: "</span> + HB_BuildInfo<span style="color: #000000;">&#40;</span> <span style="color: #000000;">7</span> <span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br /><br /><br /><span style="color: #00C800;">RETURN</span><br /><br /><br /><br /><br /><span style="color: #B900B9;">/* &nbsp; func.c &nbsp; */</span><br /><br /><span style="color: #00D7D7;">#pragma</span> BEGINDUMP<br /><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"windows.h"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"hbapi.h"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"hbapiitm.h"</span><br /><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span>CONTA<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp;unsigned long int k;<br />&nbsp; &nbsp;long long i;<br /><br />&nbsp; &nbsp;printf<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Inizio c<span style="color: #000000;">\n</span>"</span><span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;i=<span style="color: #000000;">0</span>;<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">for</span><span style="color: #000000;">&#40;</span>k=<span style="color: #000000;">1</span>;k<=<span style="color: #000000;">2111222333</span>;k++<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; i+=k;<br />&nbsp; &nbsp;printf<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Fine c %I64d<span style="color: #000000;">\n</span>"</span>,i<span style="color: #000000;">&#41;</span>;<br /><br /><br />&nbsp; &nbsp;hb_retni<span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span>;<br /><span style="color: #000000;">&#125;</span><br /><br /><br /><br /><span style="color: #00D7D7;">#pragma</span> ENDDUMP</div>[/code:1awgxjz5] Also, what switches are you using?. Have you tested -c -q -CP437 -d -6 -O2 -OS -Ov -Oi -Oc -tWM -w -Q -w-sig- ? Also, you can use -G01 for size. Did you tried it?.
tip_MailSend() para xHarbour
Master Enrico, és posible esto para xHarbour? [url:3uttq5fx]http&#58;//www&#46;pctoledo&#46;com&#46;br/forum/viewtopic&#46;php?f=4&t=19168&start=15#p135763[/url:3uttq5fx] [code=fw:3uttq5fx]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #B900B9;">/*<br />&nbsp;* tip_MailSend() (This version started from Luiz's original work on SendMail())<br />&nbsp;*<br />&nbsp;* Copyright 2007 Luiz Rafael Culik Guimaraes and Patrick Mast<br />&nbsp;* Copyright 2009 Viktor Szakats (vszakats.net/harbour) (SSL support)<br />&nbsp;* Copyright 2015 Jean Lefebvre (STARTTLS support)<br />&nbsp;* Copyright 2019 Klas Engwall (fixed problem with passwords that contain symbol @)<br />&nbsp;*<br />&nbsp;* This program is free software; you can redistribute it and/or modify<br />&nbsp;* it under the terms of the GNU General Public License as published by<br />&nbsp;* the Free Software Foundation; either version 2, or (at your option)<br />&nbsp;* any later version.<br />&nbsp;*<br />&nbsp;* This program is distributed in the hope that it will be useful,<br />&nbsp;* but WITHOUT ANY WARRANTY; without even the implied warranty of<br />&nbsp;* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. &nbsp;See the<br />&nbsp;* GNU General Public License for more details.<br />&nbsp;*<br />&nbsp;* You should have received a copy of the GNU General Public License<br />&nbsp;* along with this program; see the file LICENSE.txt. &nbsp;If not, write to<br />&nbsp;* the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,<br />&nbsp;* Boston, MA 02110-1301 USA (or visit <!-- m --><a class="postlink" href="https://www.gnu.org/licenses/">https://www.gnu.org/licenses/</a><!-- m -->).<br />&nbsp;*<br />&nbsp;* As a special exception, the Harbour Project gives permission for<br />&nbsp;* additional uses of the text contained in its release of Harbour.<br />&nbsp;*<br />&nbsp;* The exception is that, if you link the Harbour libraries with other<br />&nbsp;* files to produce an executable, this does not by itself cause the<br />&nbsp;* resulting executable to be covered by the GNU General Public License.<br />&nbsp;* Your use of that executable is in no way restricted on account of<br />&nbsp;* linking the Harbour library code into it.<br />&nbsp;*<br />&nbsp;* This exception does not however invalidate any other reasons why<br />&nbsp;* the executable file might be covered by the GNU General Public License.<br />&nbsp;*<br />&nbsp;* This exception applies only to the code released by the Harbour<br />&nbsp;* Project under the name Harbour. &nbsp;If you copy code from other<br />&nbsp;* Harbour Project or Free Software Foundation releases into a copy of<br />&nbsp;* Harbour, as the General Public License permits, the exception does<br />&nbsp;* not apply to the code that you add in this way. &nbsp;To avoid misleading<br />&nbsp;* anyone as to the status of such modified files, you must delete<br />&nbsp;* this exception notice from them.<br />&nbsp;*<br />&nbsp;* If you write modifications of your own for Harbour, it is your choice<br />&nbsp;* whether to permit this exception to apply to your modifications.<br />&nbsp;* If you do not wish that, delete this exception notice.<br />&nbsp;*<br />&nbsp;*/</span><br /><br />#if defined<span style="color: #000000;">&#40;</span> HB_LEGACY_LEVEL4 <span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">FUNCTION</span> hb_SendMail<span style="color: #000000;">&#40;</span> ... <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">RETURN</span> tip_MailSend<span style="color: #000000;">&#40;</span> ... <span style="color: #000000;">&#41;</span><br />#endif<br /><br /><span style="color: #B900B9;">/*<br />&nbsp; &nbsp;cServer &nbsp; &nbsp; -> Required. IP or domain name of the mail server<br />&nbsp; &nbsp;nPort &nbsp; &nbsp; &nbsp; -> Optional. Port used my email server<br />&nbsp; &nbsp;cFrom &nbsp; &nbsp; &nbsp; -> Required. Email address of the sender<br />&nbsp; &nbsp;xTo &nbsp; &nbsp; &nbsp; &nbsp; -> Required. Character string or array of email addresses to send<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; the email to<br />&nbsp; &nbsp;xCC &nbsp; &nbsp; &nbsp; &nbsp; -> Optional. Character string or array of email addresses for<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CC (Carbon Copy)<br />&nbsp; &nbsp;xBCC &nbsp; &nbsp; &nbsp; &nbsp;-> Optional. Character string or array of email addresses for<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; BCC (Blind Carbon Copy)<br />&nbsp; &nbsp;cBody &nbsp; &nbsp; &nbsp; -> Optional. The body message of the email as text, or the<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; filename of the HTML message to send.<br />&nbsp; &nbsp;cSubject &nbsp; &nbsp;-> Optional. Subject of the sending email<br />&nbsp; &nbsp;aFiles &nbsp; &nbsp; &nbsp;-> Optional. Array of attachments to the email to send<br />&nbsp; &nbsp;cUser &nbsp; &nbsp; &nbsp; -> Required. User name for the POP3 server<br />&nbsp; &nbsp;cPass &nbsp; &nbsp; &nbsp; -> Required. Password for cUser<br />&nbsp; &nbsp;cPopServer &nbsp;-> Required. POP3 server name or address<br />&nbsp; &nbsp;nPriority &nbsp; -> Optional. Email priority: 1=High, 3=Normal (Standard), 5=Low<br />&nbsp; &nbsp;lRead &nbsp; &nbsp; &nbsp; -> Optional. If set to .T., a confirmation request is send.<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Standard setting is .F.<br />&nbsp; &nbsp;xTrace &nbsp; &nbsp; &nbsp;-> Optional. If set to .T., a log file is created (smtp-.log).<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Standard setting is .F.<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; If a block is passed, it will be called for each<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; log event with the message a string, no param on<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; session close.<br />&nbsp; &nbsp;lPopAuth &nbsp; &nbsp;-> Optional. Do POP3 authentication before sending mail.<br />&nbsp; &nbsp;lNoAuth &nbsp; &nbsp; -> Optional. Disable authentication methods<br />&nbsp; &nbsp;nTimeOut &nbsp; &nbsp;-> Optional. Number os ms to wait default 10000 (10s)<br />&nbsp; &nbsp;cReplyTo &nbsp; &nbsp;-> Optional.<br />&nbsp; &nbsp;lSSL &nbsp; &nbsp; &nbsp; &nbsp;-> Optional. Need SSL at connect time<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (TLS need this param set to False)<br />&nbsp; &nbsp;cSMTPPass &nbsp; -> Optional.<br />&nbsp; &nbsp;cCharset &nbsp; &nbsp;-> Optional.<br />&nbsp; &nbsp;cEncoding &nbsp; -> Optional.<br />&nbsp; &nbsp;cClientHost -> Optional. Domain name of the SMTP client in the format<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; smtp.example.net OR client IP surrounded by brackets<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; as [127.0.0.1] for IPv4 or as [ipv6:address]<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (e.g. '[ipv6:::1]') for IPv6<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Note: This parameter is optional for backwards<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; compatibility, but should be provided to comply with RFC 2812.<br />&nbsp;*/</span><br /><span style="color: #00C800;">FUNCTION</span> tip_MailSend<span style="color: #000000;">&#40;</span> cServer, nPort, cFrom, xTo, xCC, xBCC, cBody, cSubject, ;<br />&nbsp; &nbsp; &nbsp; aFiles, cUser, cPass, cPopServer, nPriority, lRead, ;<br />&nbsp; &nbsp; &nbsp; xTrace, lPopAuth, lNoAuth, nTimeOut, cReplyTo, ;<br />&nbsp; &nbsp; &nbsp; lSSL, cSMTPPass, cCharset, cEncoding, cClientHost <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> cTmp<br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> cTo<br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> cCC<br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> cBCC<br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> tmp<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> oInMail<br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> oUrl<br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> oUrl1<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> lBodyHTML<br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> lAuthTLS &nbsp; &nbsp; &nbsp;:= .F.<br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> lConnect &nbsp; &nbsp; &nbsp;:= .F.<br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> oPop<br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">/* consider any empty values invalid */</span><br />&nbsp; &nbsp;<span style="color: #00C800;">IF</span> Empty<span style="color: #000000;">&#40;</span> cServer <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; cServer := <span style="color: #00C800;">NIL</span><br />&nbsp; &nbsp;<span style="color: #00C800;">ENDIF</span><br />&nbsp; &nbsp;<span style="color: #00C800;">IF</span> Empty<span style="color: #000000;">&#40;</span> nPort <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; nPort := <span style="color: #00C800;">NIL</span><br />&nbsp; &nbsp;<span style="color: #00C800;">ENDIF</span><br /><br />&nbsp; &nbsp;hb_default<span style="color: #000000;">&#40;</span> @cServer, <span style="color: #ff0000;">"localhost"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;hb_default<span style="color: #000000;">&#40;</span> @cUser, <span style="color: #ff0000;">""</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;hb_default<span style="color: #000000;">&#40;</span> @cPass, <span style="color: #ff0000;">""</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;hb_default<span style="color: #000000;">&#40;</span> @nPort, <span style="color: #000000;">25</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;hb_default<span style="color: #000000;">&#40;</span> @lPopAuth, .T. <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;hb_default<span style="color: #000000;">&#40;</span> @lNoAuth, .F. <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;hb_default<span style="color: #000000;">&#40;</span> @nTimeOut, <span style="color: #000000;">10000</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;hb_default<span style="color: #000000;">&#40;</span> @lSSL, .F. <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;hb_default<span style="color: #000000;">&#40;</span> @cSMTPPass, cPass <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">// cTo</span><br />&nbsp; &nbsp;<span style="color: #00C800;">DO</span> <span style="color: #00C800;">CASE</span><br />&nbsp; &nbsp;<span style="color: #00C800;">CASE</span> HB_ISARRAY<span style="color: #000000;">&#40;</span> xTo <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">FOR</span> tmp := Len<span style="color: #000000;">&#40;</span> xTo <span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">TO</span> <span style="color: #000000;">1</span> STEP <span style="color: #000000;">-1</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">IF</span> Empty<span style="color: #000000;">&#40;</span> xTo<span style="color: #000000;">&#91;</span> tmp <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; hb_ADel<span style="color: #000000;">&#40;</span> xTo, tmp, .T. <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">ENDIF</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">NEXT</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">IF</span> Empty<span style="color: #000000;">&#40;</span> xTo <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">RETURN</span> .F.<br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">ENDIF</span><br />&nbsp; &nbsp; &nbsp; cTo := <span style="color: #ff0000;">""</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">FOR</span> EACH cTmp IN xTo<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cTo += tip_GetRawEmail<span style="color: #000000;">&#40;</span> AllTrim<span style="color: #000000;">&#40;</span> cTmp <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">IF</span> ! cTmp:__enumIsLast<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cTo += <span style="color: #ff0000;">","</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">ENDIF</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">NEXT</span><br />&nbsp; &nbsp;<span style="color: #00C800;">CASE</span> HB_ISSTRING<span style="color: #000000;">&#40;</span> xTo <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; cTo := tip_GetRawEmail<span style="color: #000000;">&#40;</span> AllTrim<span style="color: #000000;">&#40;</span> xTo <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">ENDCASE</span><br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">// CC (Carbon Copy)</span><br />&nbsp; &nbsp;<span style="color: #00C800;">DO</span> <span style="color: #00C800;">CASE</span><br />&nbsp; &nbsp;<span style="color: #00C800;">CASE</span> HB_ISARRAY<span style="color: #000000;">&#40;</span> xCC <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">FOR</span> tmp := Len<span style="color: #000000;">&#40;</span> xCC <span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">TO</span> <span style="color: #000000;">1</span> STEP <span style="color: #000000;">-1</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">IF</span> Empty<span style="color: #000000;">&#40;</span> xCC<span style="color: #000000;">&#91;</span> tmp <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; hb_ADel<span style="color: #000000;">&#40;</span> xCC, tmp, .T. <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">ENDIF</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">NEXT</span><br />&nbsp; &nbsp; &nbsp; cCC := <span style="color: #ff0000;">""</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">FOR</span> EACH cTmp IN xCC<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cCC += tip_GetRawEmail<span style="color: #000000;">&#40;</span> AllTrim<span style="color: #000000;">&#40;</span> cTmp <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">IF</span> ! cTmp:__enumIsLast<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cCC += <span style="color: #ff0000;">","</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">ENDIF</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">NEXT</span><br />&nbsp; &nbsp;<span style="color: #00C800;">CASE</span> HB_ISSTRING<span style="color: #000000;">&#40;</span> xCC <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; cCC := tip_GetRawEmail<span style="color: #000000;">&#40;</span> AllTrim<span style="color: #000000;">&#40;</span> xCC <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">ENDCASE</span><br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">// BCC (Blind Carbon Copy)</span><br />&nbsp; &nbsp;<span style="color: #00C800;">DO</span> <span style="color: #00C800;">CASE</span><br />&nbsp; &nbsp;<span style="color: #00C800;">CASE</span> HB_ISARRAY<span style="color: #000000;">&#40;</span> xBCC <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">FOR</span> tmp := Len<span style="color: #000000;">&#40;</span> xBCC <span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">TO</span> <span style="color: #000000;">1</span> STEP <span style="color: #000000;">-1</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">IF</span> Empty<span style="color: #000000;">&#40;</span> xBCC<span style="color: #000000;">&#91;</span> tmp <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; hb_ADel<span style="color: #000000;">&#40;</span> xBCC, tmp, .T. <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">ENDIF</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">NEXT</span><br />&nbsp; &nbsp; &nbsp; cBCC := <span style="color: #ff0000;">""</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">FOR</span> EACH cTmp IN xBCC<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cBCC += tip_GetRawEmail<span style="color: #000000;">&#40;</span> AllTrim<span style="color: #000000;">&#40;</span> cTmp <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">IF</span> ! cTmp:__enumIsLast<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cBCC += <span style="color: #ff0000;">","</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">ENDIF</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">NEXT</span><br />&nbsp; &nbsp;<span style="color: #00C800;">CASE</span> HB_ISSTRING<span style="color: #000000;">&#40;</span> xBCC <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; cBCC := tip_GetRawEmail<span style="color: #000000;">&#40;</span> AllTrim<span style="color: #000000;">&#40;</span> xBCC <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">ENDCASE</span><br /><br />&nbsp; &nbsp;cUser := StrTran<span style="color: #000000;">&#40;</span> cUser, <span style="color: #ff0000;">"@"</span>, <span style="color: #ff0000;">"&at;"</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">IF</span> HB_ISSTRING<span style="color: #000000;">&#40;</span> cPopServer <span style="color: #000000;">&#41;</span> .AND. lPopAuth<br /><br />&nbsp; &nbsp; &nbsp; BEGIN SEQUENCE WITH __BreakBlock<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// oUrl1 := TUrl():New( iif( lSSL, "pop3s://", "pop://" ) + cUser + ":" + cPass + "@" + cPopServer + "/" )</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oUrl1 := TUrl<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 />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oUrl1:<span style="color: #000000;">cProto</span> &nbsp; &nbsp;:= iif<span style="color: #000000;">&#40;</span> lSSL, <span style="color: #ff0000;">"pop3s"</span>, <span style="color: #ff0000;">"pop"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oUrl1:<span style="color: #000000;">cServer</span> &nbsp; := cPopServer<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oUrl1:<span style="color: #000000;">cUserId</span> &nbsp; := cUser<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oUrl1:<span style="color: #000000;">cPassword</span> := cPass<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oUrl1:<span style="color: #000000;">cUserid</span> := StrTran<span style="color: #000000;">&#40;</span> cUser, <span style="color: #ff0000;">"&at;"</span>, <span style="color: #ff0000;">"@"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oPop := TIPClientPOP<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> oUrl1, xTrace <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; RECOVER<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">RETURN</span> .F.<br />&nbsp; &nbsp; &nbsp; END SEQUENCE<br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">IF</span> oPop:<span style="color: #000000;">Open</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oPop:<span style="color: #000000;">Close</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">ELSE</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">RETURN</span> .F.<br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">ENDIF</span><br />&nbsp; &nbsp;<span style="color: #00C800;">ENDIF</span><br /><br />&nbsp; &nbsp;BEGIN SEQUENCE WITH __BreakBlock<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #B900B9;">// oUrl := TUrl():New( iif( lSSL, "smtps://", "smtp://" ) + cUser + iif( Empty( cSMTPPass ), "", ":" + cSMTPPass ) + "@" + cServer )</span><br />&nbsp; &nbsp; &nbsp; oUrl &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; := TUrl<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 />&nbsp; &nbsp; &nbsp; oUrl:<span style="color: #000000;">cProto</span> &nbsp; &nbsp;:= iif<span style="color: #000000;">&#40;</span> lSSL, <span style="color: #ff0000;">"smtps"</span>, <span style="color: #ff0000;">"smtp"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; oUrl:<span style="color: #000000;">cServer</span> &nbsp; := cServer<br />&nbsp; &nbsp; &nbsp; oUrl:<span style="color: #000000;">cUserId</span> &nbsp; := cUser<br />&nbsp; &nbsp; &nbsp; oUrl:<span style="color: #000000;">cPassword</span> := cSMTPPass<br />&nbsp; &nbsp;RECOVER<br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">RETURN</span> .F.<br />&nbsp; &nbsp;END SEQUENCE<br /><br />&nbsp; &nbsp;oUrl:<span style="color: #000000;">nPort</span> &nbsp; := nPort<br />&nbsp; &nbsp;oUrl:<span style="color: #000000;">cUserid</span> := StrTran<span style="color: #000000;">&#40;</span> cUser, <span style="color: #ff0000;">"&at;"</span>, <span style="color: #ff0000;">"@"</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;oUrl:<span style="color: #000000;">cFile</span> := ;<br />&nbsp; &nbsp; &nbsp; cTo + ;<br />&nbsp; &nbsp; &nbsp; iif<span style="color: #000000;">&#40;</span> Empty<span style="color: #000000;">&#40;</span> cCC <span style="color: #000000;">&#41;</span>, <span style="color: #ff0000;">""</span>, <span style="color: #ff0000;">","</span> + cCC <span style="color: #000000;">&#41;</span> + ;<br />&nbsp; &nbsp; &nbsp; iif<span style="color: #000000;">&#40;</span> Empty<span style="color: #000000;">&#40;</span> cBCC <span style="color: #000000;">&#41;</span>, <span style="color: #ff0000;">""</span>, <span style="color: #ff0000;">","</span> + cBCC <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;BEGIN SEQUENCE WITH __BreakBlock<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; oInmail := TIPClientSMTP<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> oUrl, xTrace,, cClientHost <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;RECOVER<br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">RETURN</span> .F.<br />&nbsp; &nbsp;END SEQUENCE<br /><br />&nbsp; &nbsp;oInmail:<span style="color: #000000;">nConnTimeout</span> := nTimeOut<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">IF</span> ! lNoAuth<br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">IF</span> oInMail:<span style="color: #000000;">OpenSecure</span><span style="color: #000000;">&#40;</span> , lSSL <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;lAuthTLS := oInMail:<span style="color: #000000;">lTLS</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">IF</span> <span style="color: #000000;">&#40;</span> oInMail:<span style="color: #000000;">lAuthLogin</span> .AND. oInMail:<span style="color: #000000;">Auth</span><span style="color: #000000;">&#40;</span> cUser, cSMTPPass <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> .OR. ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#40;</span> oInMail:<span style="color: #000000;">lAuthPlain</span> .AND. oInMail:<span style="color: #000000;">AuthPlain</span><span style="color: #000000;">&#40;</span> cUser, cSMTPPass <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; lConnect := .T.<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; &nbsp; <span style="color: #00C800;">IF</span> ! lConnect<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oInMail:<span style="color: #000000;">Close</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;BEGIN SEQUENCE WITH __BreakBlock<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oInmail := TIPClientSMTP<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> oUrl, xTrace,, cClientHost <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;RECOVER<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">RETURN</span> .F.<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;END SEQUENCE<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oInmail:<span style="color: #000000;">nConnTimeout</span> := nTimeOut<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> ! lConnect<br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">IF</span> ! oInMail:<span style="color: #000000;">Open</span><span style="color: #000000;">&#40;</span> <span style="color: #00C800;">NIL</span>, lAuthTLS <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oInmail:<span style="color: #000000;">Close</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">RETURN</span> .F.<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: #B900B9;">/* If the string is an existing HTML filename, load it. */</span><br />&nbsp; &nbsp;<span style="color: #00C800;">SWITCH</span> Lower<span style="color: #000000;">&#40;</span> hb_FNameExt<span style="color: #000000;">&#40;</span> cBody <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">CASE</span> <span style="color: #ff0000;">".htm"</span><br />&nbsp; &nbsp;<span style="color: #00C800;">CASE</span> <span style="color: #ff0000;">".html"</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">IF</span> hb_vfExists<span style="color: #000000;">&#40;</span> cBody <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cBody := MemoRead<span style="color: #000000;">&#40;</span> cBody <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;lBodyHTML := .T.<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;EXIT<br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">ENDIF</span><br />&nbsp; &nbsp;<span style="color: #00C800;">OTHERWISE</span><br />&nbsp; &nbsp; &nbsp; lBodyHTML := .F.<br />&nbsp; &nbsp;ENDSWITCH<br /><br />&nbsp; &nbsp;oInMail:<span style="color: #000000;">oUrl</span>:<span style="color: #000000;">cUserid</span> := tip_GetRawEmail<span style="color: #000000;">&#40;</span> cFrom <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">IF</span> <span style="color: #000000;">&#40;</span> tmp := <span style="color: #000000;">&#40;</span> oInMail:<span style="color: #000000;">Write</span><span style="color: #000000;">&#40;</span> tip_MailAssemble<span style="color: #000000;">&#40;</span> cFrom, xTo, xCC, cBody, ;<br />&nbsp; &nbsp; &nbsp; cSubject, aFiles, nPriority, lRead, cReplyTo, cCharset, ;<br />&nbsp; &nbsp; &nbsp; cEncoding, lBodyHTML <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> > <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; oInMail:<span style="color: #000000;">Commit</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">ENDIF</span><br />&nbsp; &nbsp;oInMail:<span style="color: #000000;">Close</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">RETURN</span> tmp<br />&nbsp;</div>[/code:3uttq5fx] Regards, saludos.
tip_MailSend() para xHarbour
Try HB_SENDMAIL(). EMG
tipo de dato indefinido al leer planilla EXCEL
Estimados, Estoy leyendo una planilla Excel desde FiveWin y el programa no reconoce si el campo es numérico o alfanumérico, por lo que no puedo capturar la información. Ya le dí los respectivos formatos a los campos dentro de la planilla Excel y aún asi los sigue leyendo como tipo "U" undefine. Aqui está el codigo fuente desde ya agradezco cualquier ayuda saludos! FUNCTION LEEEXCEL() LOCAL cFile,oExcel,oBook,oHoja,nTotRowCount,cNombre,nTotal,Q cFile :="C:\VENTAS.xlsx" oExcel:=TOleAuto():New("Excel.Application") oBook := oExcel:Workbooks:Open(cFile) oHoja := oExcel:Get( "ActiveSheet" ) nTotRowCount:= oHoja:UsedRange:Rows:Count() USE C:\VENTAS NEW EXCLUSIVE FOR Q=2 TO nTotRowCount cNombre:=oHoja:Cells( Q, 1 ):Value nTotal:=oHoja:Cells( Q, 3 ):Value ? TYPE("cNombre") MsgInfo(cNombre) //VENTAS->(DBAPPEND()) //VENTAS->CAMPO1:= vColumna1 NEXT VENTAS->(DBCLOSEAREA()) oExcel:WorkBooks:Close() oExcel:Application:Quit() RELEASE oHoja RELEASE oExcel RETURN .T.
tipo de dato indefinido al leer planilla EXCEL
Hola Me paso algo similar, lo solucioné haciendo una copia de las hoja y pegando los datos "Sin formato", sólo utilizando valores. Saludos
tipo de dato undefine al leer una planilla excel
Estimados, Estoy leyendo una planilla Excel desde FiveWin y el programa no reconoce si el campo es numérico o alfanumérico, por lo que no puedo capturar la información. Ya le dí los respectivos formatos a los campos dentro de la planilla Excel y aún asi los sigue leyendo como tipo "U" undefine. Aqui está el codigo fuente desde ya agradezco cualquier ayuda saludos! FUNCTION LEEEXCEL() LOCAL cFile,oExcel,oBook,oHoja,nTotRowCount,cNombre,nTotal,Q cFile :="C:\VENTAS.xlsx" oExcel:=TOleAuto():New("Excel.Application") oBook := oExcel:Workbooks:Open(cFile) oHoja := oExcel:Get( "ActiveSheet" ) nTotRowCount:= oHoja:UsedRange:Rows:Count() USE C:\VENTAS NEW EXCLUSIVE FOR Q=2 TO nTotRowCount cNombre:=oHoja:Cells( Q, 1 ):Value nTotal:=oHoja:Cells( Q, 3 ):Value ? TYPE("cNombre") MsgInfo(cNombre) //VENTAS->(DBAPPEND()) //VENTAS->CAMPO1:= vColumna1 NEXT VENTAS->(DBCLOSEAREA()) oExcel:WorkBooks:Close() oExcel:Application:Quit() RELEASE oHoja RELEASE oExcel RETURN .T.
tipo de dato undefine al leer una planilla excel
Try using the Transform() function. Transform( <xValue>, <cPicture> ) --> cFormattedString Picture function characters Function Formatting rule B Formats numbers left-justified C Adds CR (credit) after positive numbers D Formats dates in SET DATE format E Formats dates and numbers in British format L Pads numbers with zeros instead of blank spaces R Nontemplate characters are inserted X Adds DB (debit) after negative numbers Z Formats zeros as blanks ( Encloses negative numbers in parentheses ! Converts alphabetic characters to uppercase // The example demonstrates different formatting results of Transform() PROCEDURE Main LOCAL nGain := 8596.58 LOCAL nLoss := -256.50 LOCAL cPhone := "5558978532" LOCAL cName := "Jon Doe" ? Transform( 8596.58, "@E 9,999.99" ) // result: 8.596,58 ? Transform( 8596.58, "999,999.99" ) // result: 8,596.58 ? Transform( 8596.58, "@L 999,999.99" ) // result: 008,596.58 ? Transform( -256.50, "@)" ) // Result: (256.50) ? Transform( "5558978532", "@R (999)999-9999" ) // Result: (555)897-8532 ? Transform( "xharbour", "@!" ) // Result: XHARBOUR ? Transform( "xharbour", "A!AAAAAA" ) // Result: xHarbour RETURN
tipo de dato undefine al leer una planilla excel
Creo que el colega lo que quieres es saber que tipo de dato esta leyendo desde excel, he buscado en los foros y vi algo pero lo probe con FW y siempre dio error, probando las macros de excel y como se hace con la TExcelScrip que es buenisima, pero aun no lo logro, si resuelven algo y pueden compartirlo seria bueno, saludos... <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: -->
tipo de dato undefine al leer una planilla excel
Maybe this will help: Type() -- Determines the data type of a macro expression. Type( <cMacroExpr> ) --> cDataType The function returns a character string identifying the data type of <cMacroExpr> when it is evaluated using the macro operator (&) (see description). Return value Data type A Array B Code block C Character string D Date value H Hash L Logical value M Memo field N Numeric value O Object P Pointer to function or method U Undefined symbol or NIL UE Syntax error in macro expression UI Data type is indeterminable (macro expression too complex) // This example shows all possible return values of Type() PROCEDURE Main PRIVATE aArray := { 1, 2, 3 } PRIVATE bBlock := {|x| 1+x } PRIVATE cChar := "xHarbour" PRIVATE dDate := Date() PRIVATE hHash := Hash() PRIVATE lLogic := .F. PRIVATE nNumber := 123.45 PRIVATE oObject := GetNew() PRIVATE pPtr := ( @Test() ) PRIVATE uNIL := NIL USE Customer ALIAS Cust ? Type( "aArray" ) // result: A ? Type( "bBlock" ) // result: B ? Type( "cChar" ) // result: C ? Type( "dDate" ) // result: D ? Type( "hHash" ) // result: H ? Type( "lLogic" ) // result: L ? Type( "Cust->notes" ) // result: M ? Type( "nNumber" ) // result: N ? Type( "oObject" ) // result: O ? Type( "pPtr" ) // result: P ? Type( "uNIL" ) // result: U ? Type( "Val(" ) // result: UE ? Type( "Test()" ) // result: UI ? Type( "TestFunc()" ) // result: U ? Type( "Date()" ) // result: D ? Type( "oObject:hasFocus()" ) // result: L Test( pPtr, hHash ) // result: P H ? Type( "'A'" ) // result: C ? Type( "A" ) // result: U ? Type( "{1}" ) // result: A ? Type( "{=>}" ) // result: H ? Type( "9" ) // result: N ? Type( ".F." ) // result: L ? Type( "IIf(.T.,'A',1)" ) // result: C RETURN PROCEDURE Test PARAMETERS p1, p2 ? Type( "p1" ), Type( "p2" ) RETURN
tipo de impresora
Hola nuevamente: Hay alguna función que me indique si una impresora es matriz de puntos?? Gracias
tipo tamaño de letra y color de dialog definidpor el usuario
Saludos a todos amigos foristas. Un cliente me esta pidiendo la posibilidad de poder cambiar el tipo de fuente y su tamaño asi como el color de fondo en los dialogos a su gusto desde una opcion de configuracion dentro del mismo software que estamos negociando su desarrollo. Se que dentro del .rc puedo hacerlo, pero la cuestion es que el cliente quiere que dentro del menu pueda hacerlo el cuando quiera y las veces que quiera. Otra cosa importante es que el tamaño de los dialogos no debe verse afectado. Alguna idea de por donde comenzar? Gracias de antemano por la ayuda- Un abrazo a todos.
tipo tamaño de letra y color de dialog definidpor el usuario
Mira este hilo <!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=3&t=33363&start=0">viewtopic.php?f=3&t=33363&start=0</a><!-- l -->
tipo tamaño de letra y color de dialog definidpor el usuario
Las colores del dialog(boton: Cores), puede ser asi? [img:1rewh8xf]http&#58;//i&#46;imgur&#46;com/fnG7AFX&#46;png[/img:1rewh8xf] Saludos.
tipo tamaño de letra y color de dialog definidpor el usuario
Direct link: [url:1sdr3knt]http&#58;//i&#46;imgur&#46;com/fnG7AFX&#46;png[/url:1sdr3knt] saludos.
tipo tamaño de letra y color de dialog definidpor el usuario
Hola ! Gracias [b:2kxh5tfx]cNavarro[/b:2kxh5tfx]. Estoy siguien el hilo que me diste y hay bastante de donde sacar. Muchisímas Gracias! [b:2kxh5tfx]Karinha[/b:2kxh5tfx], gracias por atender mi solicitud. Esa imagen que muestras es justo lo que me gustaria hacer. que el usuario pueda seleccionar sus colores asi. lo mismo me piden con los tipos de letra. Agradecería cualquier idea de tu parte. Mil Gracias a ambos por su atención. <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) -->
tipo tamaño de letra y color de dialog definidpor el usuario
Haga asi: En el MENU PRINCIPAL inicie el archivo: FUNDO.INI cambie para FONDO.INI. [code=fw:14ummg9o]<div class="fw" id="{CB}" style="font-family: monospace;"><br />&nbsp; &nbsp;<span style="color: #B900B9;">// cPathPleno := CURDRIVE() + ":\" + GETCURDIR()</span><br />&nbsp; &nbsp;cPathPleno := <span style="color: #ff0000;">"<span style="color: #000000;">\"</span> + GETCURDIR()<br /><br />&nbsp; &nbsp;// Para Carregar a Ultima Tela Salva no Arquivo .INI chamar FundoWnd()<br />&nbsp; &nbsp;IF FILE( "</span>FUNDO.INI<span style="color: #ff0000;">" )<br />&nbsp; &nbsp; &nbsp; FUNDOWND() // llama el fondo.<br />&nbsp; &nbsp;ELSE &nbsp;// crea FUNDO.INI o FONDO.INI<br />&nbsp; &nbsp; &nbsp; NOME_ARQ := FCREATE("</span>FUNDO.INI<span style="color: #ff0000;">")<br /><br />&nbsp; &nbsp; &nbsp; NREGISTRO := "</span><span style="color: #000000;">&#91;</span>MAIN<span style="color: #000000;">&#93;</span><span style="color: #ff0000;">" &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;+ CRLF &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;"</span>Tipo=<span style="color: #000000;">1</span><span style="color: #ff0000;">" &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;+ CRLF &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;"</span><span style="color: #0000ff;">Style</span>=BRICKS<span style="color: #ff0000;">" &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;+ CRLF &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;"</span>Cor=<span style="color: #000000;">14286847</span><span style="color: #ff0000;">" &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;+ CRLF &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;"</span>File=<span style="color: #ff0000;">"+ALLTRIM(cPathPleno)+"</span>\ARANHA.BMP<span style="color: #ff0000;">" + &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;+ CRLF+CRLF &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; + &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;"</span><span style="color: #000000;">&#91;</span>LOGO<span style="color: #000000;">&#93;</span><span style="color: #ff0000;">" &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;+ CRLF &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;"</span>File=.\Logo.bmp<span style="color: #ff0000;">" &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; + &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;+ CRLF &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;"</span>Row=<span style="color: #000000;">10</span><span style="color: #ff0000;">" &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;+ CRLF &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;"</span>Col=<span style="color: #000000;">10</span><span style="color: #ff0000;">" &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;+ CRLF+CRLF &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; + &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;"</span><span style="color: #000000;">&#91;</span>THANKS<span style="color: #000000;">&#93;</span><span style="color: #ff0000;">" &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;+ CRLF &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;"</span>Special Thanks = <span style="color: #ff0000;">"+"</span>Ednaldo Alves Rolim<span style="color: #ff0000;">" &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;+;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;+ CRLF &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; +;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;"</span>Propriet rio.. = <span style="color: #ff0000;">"+"</span>JoÆo <!-- e --><a href="mailto:[email protected]">[email protected]</a><!-- e --><span style="color: #ff0000;">" &nbsp; +;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;+ CRLF &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;"</span>Meu Site:..... = <span style="color: #ff0000;">"+"</span>Visite: <span style="color: #000000;">www</span>.fivewin.com.br<span style="color: #ff0000;">" &nbsp; &nbsp; &nbsp; &nbsp; +;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;+ CRLF+CRLF &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;+;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;"</span>Autor......... = <span style="color: #ff0000;">"+"</span>JoÆo <!-- e --><a href="mailto:[email protected]">[email protected]</a><!-- e --><span style="color: #ff0000;">"<br /><br />&nbsp; &nbsp; &nbsp; FWRITE( NOME_ARQ, NREGISTRO )<br />&nbsp; &nbsp; &nbsp; FCLOSE( NOME_ARQ )<br /><br />&nbsp; &nbsp; &nbsp; FUNDOWND() // Chamada ao fundo de tela Escolhida Pelo Usu rio. Muito Bom.<br /><br />&nbsp; &nbsp;ENDIF<br /></span></div>[/code:14ummg9o] [code=fw:14ummg9o]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">Function</span> FundoWnd<span style="color: #000000;">&#40;</span> nOption, oWin, cWStyle, nWCor <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; <span style="color: #00C800;">LOCAL</span> oIni, oBrush, oBmp<br />&nbsp; &nbsp; <span style="color: #00C800;">LOCAL</span> nTipo, cStyle, nCor, cFile, cLogo, nRow, nCol, lSelect<br />&nbsp; &nbsp; <span style="color: #00C800;">LOCAL</span> cDiretor := GetPvProfString<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Settings"</span>, <span style="color: #ff0000;">"SaveDir"</span>, FilePath<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, <span style="color: #ff0000;">".<span style="color: #000000;">\F</span>UNDO.INI"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; <span style="color: #00C800;">LOCAL</span> cMascara := <span style="color: #ff0000;">"*.BMP"</span><br /><br />&nbsp; &nbsp; <span style="color: #00C800;">DEFAULT</span> nOption := <span style="color: #000000;">0</span>, oWin := oWnd:<span style="color: #000000;">oWndClient</span><br /><br />&nbsp; &nbsp; <span style="color: #00C800;">IF</span> nOption < <span style="color: #000000;">0</span> .AND. nOption > <span style="color: #000000;">4</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br />&nbsp; &nbsp; <span style="color: #00C800;">ENDIF</span><br /><br />&nbsp; &nbsp; <span style="color: #B900B9;">//-> Carrega</span><br />&nbsp; &nbsp; INI oIni FILE <span style="color: #ff0000;">".<span style="color: #000000;">\F</span>undo.ini"</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">GET</span> nTipo &nbsp; &nbsp;SECTION <span style="color: #ff0000;">"MAIN"</span> ENTRY <span style="color: #ff0000;">"Tipo"</span> &nbsp;<span style="color: #0000ff;">OF</span> oIni <span style="color: #00C800;">DEFAULT</span> <span style="color: #000000;">1</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">GET</span> cStyle &nbsp; SECTION <span style="color: #ff0000;">"MAIN"</span> ENTRY <span style="color: #ff0000;">"Style"</span> <span style="color: #0000ff;">OF</span> oIni <span style="color: #00C800;">DEFAULT</span> <span style="color: #ff0000;">"Bricks"</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">GET</span> nCor &nbsp; &nbsp; SECTION <span style="color: #ff0000;">"MAIN"</span> ENTRY <span style="color: #ff0000;">"Cor"</span> &nbsp; <span style="color: #0000ff;">OF</span> oIni <span style="color: #00C800;">DEFAULT</span> &nbsp;nRGB<span style="color: #000000;">&#40;</span> &nbsp; <span style="color: #000000;">0</span>, &nbsp; <span style="color: #000000;">0</span>, <span style="color: #000000;">255</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">GET</span> cFile &nbsp; &nbsp;SECTION <span style="color: #ff0000;">"MAIN"</span> ENTRY <span style="color: #ff0000;">"File"</span> &nbsp;<span style="color: #0000ff;">OF</span> oIni <span style="color: #00C800;">DEFAULT</span> <span style="color: #ff0000;">".<span style="color: #000000;">\F</span>undo.bmp"</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">GET</span> cLogo &nbsp; &nbsp;SECTION <span style="color: #ff0000;">"LOGO"</span> ENTRY <span style="color: #ff0000;">"File"</span> &nbsp;<span style="color: #0000ff;">OF</span> oIni <span style="color: #00C800;">DEFAULT</span> <span style="color: #ff0000;">".<span style="color: #000000;">\L</span>ogo.bmp"</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">GET</span> nRow &nbsp; &nbsp; SECTION <span style="color: #ff0000;">"LOGO"</span> ENTRY <span style="color: #ff0000;">"Row"</span> &nbsp; <span style="color: #0000ff;">OF</span> oIni <span style="color: #00C800;">DEFAULT</span> <span style="color: #000000;">10</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">GET</span> nCol &nbsp; &nbsp; SECTION <span style="color: #ff0000;">"LOGO"</span> ENTRY <span style="color: #ff0000;">"Col"</span> &nbsp; <span style="color: #0000ff;">OF</span> oIni <span style="color: #00C800;">DEFAULT</span> <span style="color: #000000;">10</span><br />&nbsp; &nbsp; ENDINI<br /><br />&nbsp; &nbsp; <span style="color: #00C800;">IF</span> nOption == <span style="color: #000000;">0</span><br />&nbsp; &nbsp; &nbsp; &nbsp; lSelect := .F.<br /><br />&nbsp; &nbsp; &nbsp;ELSEIF nOption == <span style="color: #000000;">1</span><br />&nbsp; &nbsp; &nbsp; &nbsp; nTipo &nbsp; := <span style="color: #000000;">1</span><br />&nbsp; &nbsp; &nbsp; &nbsp; lSelect := .T.<br /><br />&nbsp; &nbsp; &nbsp;ELSEIF nOption == <span style="color: #000000;">2</span><br />&nbsp; &nbsp; &nbsp; &nbsp; cStyle &nbsp;:= cWStyle<br />&nbsp; &nbsp; &nbsp; &nbsp; nTipo &nbsp; := <span style="color: #000000;">2</span><br />&nbsp; &nbsp; &nbsp; &nbsp; lSelect := .F.<br /><br />&nbsp; &nbsp; &nbsp;ELSEIF nOption == <span style="color: #000000;">3</span><br />&nbsp; &nbsp; &nbsp; &nbsp; nCor &nbsp; &nbsp;:= nWCor<br />&nbsp; &nbsp; &nbsp; &nbsp; nTipo &nbsp; := <span style="color: #000000;">3</span><br />&nbsp; &nbsp; &nbsp; &nbsp; lSelect := .F.<br /><br />&nbsp; &nbsp; &nbsp;ELSEIF nOption == <span style="color: #000000;">4</span><br />&nbsp; &nbsp; &nbsp; &nbsp; nTipo &nbsp; := <span style="color: #000000;">3</span><br />&nbsp; &nbsp; &nbsp; &nbsp; lSelect := .T.<br /><br />&nbsp; &nbsp; <span style="color: #00C800;">ENDIF</span><br /><br />&nbsp; &nbsp; <span style="color: #B900B9;">//---- Cria o Brush</span><br />&nbsp; &nbsp; <span style="color: #B900B9;">//</span><br />&nbsp; &nbsp; <span style="color: #00C800;">IF</span> nTipo == <span style="color: #000000;">1</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">IF</span> lSelect<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// Modelo Antigo - Deu Uns Pauzinhos... troquei e funcionou.</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// cFile := cGetFile( "*.BMP", "Selecione o Arquivo Bitmap (.BMP)" )</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">//-> Assim Pega do Diret¢rio Corrente em C:\...</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">//cFile := &nbsp;cGetFile( cMascara, "Selecione o Arquivo Bitmap (.BMP)", 1, cDiretor, .T. )</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">//-> Assim Pega em Rede -> Para Todas as M quinas.</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cFile := <span style="color: #0000ff;">SubStr</span><span style="color: #000000;">&#40;</span> cGetFile<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"*.BMP"</span>, <span style="color: #ff0000;">"Selecione o Arquivo Bitmap (.BMP)"</span> <span style="color: #000000;">&#41;</span>, <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">ENDIF</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">IF</span> Empty<span style="color: #000000;">&#40;</span> cFile <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">Return</span> <span style="color: #00C800;">Nil</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">ENDIF</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BRUSH</span> oBrush FILE cFile<br />&nbsp; &nbsp; &nbsp; &nbsp; SET <span style="color: #0000ff;">BRUSH</span> <span style="color: #0000ff;">OF</span> oWin <span style="color: #0000ff;">TO</span> oBrush<br />&nbsp;<br />&nbsp; &nbsp; &nbsp;ELSEIF nTipo == <span style="color: #000000;">2</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BRUSH</span> oBrush <span style="color: #0000ff;">STYLE</span> <span style="color: #000000;">&#40;</span> cStyle <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp;ELSEIF nTipo == <span style="color: #000000;">3</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">IF</span> lSelect<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nCor := ChooseColor<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">ENDIF</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BRUSH</span> oBrush <span style="color: #0000ff;">COLOR</span> nCor<br /><br />&nbsp; &nbsp; <span style="color: #00C800;">ENDIF</span><br /><br />&nbsp; &nbsp; <span style="color: #B900B9;">//---- Estabelece o Brush da Janela</span><br />&nbsp; &nbsp; <span style="color: #B900B9;">//</span><br />&nbsp; &nbsp; <span style="color: #00C800;">IF</span> nTipo != <span style="color: #000000;">1</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; SET <span style="color: #0000ff;">BRUSH</span> <span style="color: #0000ff;">OF</span> oWin <span style="color: #0000ff;">TO</span> oBrush<br /><br />&nbsp; &nbsp; <span style="color: #00C800;">ENDIF</span><br /><br />&nbsp; &nbsp; <span style="color: #00C800;">IF</span> nOption != <span style="color: #000000;">0</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// Grava no Arquivo INI as Modifica‡äes</span><br />&nbsp; &nbsp; &nbsp; &nbsp; INI oIni FILE <span style="color: #ff0000;">".<span style="color: #000000;">\F</span>undo.ini"</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SET SECTION <span style="color: #ff0000;">"MAIN"</span> ENTRY <span style="color: #ff0000;">"Tipo"</span> &nbsp;<span style="color: #0000ff;">OF</span> oIni <span style="color: #0000ff;">TO</span> nTipo<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SET SECTION <span style="color: #ff0000;">"MAIN"</span> ENTRY <span style="color: #ff0000;">"Style"</span> <span style="color: #0000ff;">OF</span> oIni <span style="color: #0000ff;">TO</span> cStyle<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SET SECTION <span style="color: #ff0000;">"MAIN"</span> ENTRY <span style="color: #ff0000;">"Cor"</span> &nbsp; <span style="color: #0000ff;">OF</span> oIni <span style="color: #0000ff;">TO</span> nCor<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SET SECTION <span style="color: #ff0000;">"MAIN"</span> ENTRY <span style="color: #ff0000;">"File"</span> &nbsp;<span style="color: #0000ff;">OF</span> oIni <span style="color: #0000ff;">TO</span> cFile<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SET SECTION <span style="color: #ff0000;">"LOGO"</span> ENTRY <span style="color: #ff0000;">"File"</span> &nbsp;<span style="color: #0000ff;">OF</span> oIni <span style="color: #0000ff;">TO</span> cLogo<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SET SECTION <span style="color: #ff0000;">"LOGO"</span> ENTRY <span style="color: #ff0000;">"Row"</span> &nbsp; <span style="color: #0000ff;">OF</span> oIni <span style="color: #0000ff;">TO</span> nRow<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SET SECTION <span style="color: #ff0000;">"LOGO"</span> ENTRY <span style="color: #ff0000;">"Col"</span> &nbsp; <span style="color: #0000ff;">OF</span> oIni <span style="color: #0000ff;">TO</span> nCol<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SET SECTION <span style="color: #ff0000;">"THANKS"</span> ENTRY <span style="color: #ff0000;">"Special Thanks"</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">OF</span> oIni <span style="color: #0000ff;">TO</span> <span style="color: #ff0000;">"Ednaldo Rolim - <!-- e --><a href="mailto:[email protected]">[email protected]</a><!-- e --> - My Friend"</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SET SECTION <span style="color: #ff0000;">"THANKS"</span> ENTRY <span style="color: #ff0000;">"Autor..."</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">OF</span> oIni <span style="color: #0000ff;">TO</span> <span style="color: #ff0000;">"JoÆo Santos &nbsp; - <!-- e --><a href="mailto:[email protected]">[email protected]</a><!-- e --> "</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SET SECTION <span style="color: #ff0000;">"THANKS"</span> ENTRY <span style="color: #ff0000;">"Meu Site:....."</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">OF</span> oIni <span style="color: #0000ff;">TO</span> <span style="color: #ff0000;">"Visite: <!-- w --><a class="postlink" href="http://www.fivewin.com.br">www.fivewin.com.br</a><!-- w -->"</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; ENDINI<br /><br />&nbsp; &nbsp; <span style="color: #00C800;">ENDIF</span><br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br />&nbsp;</div>[/code:14ummg9o]
tipo tamaño de letra y color de dialog definidpor el usuario
En el dialog, haga asi: [code=fw:39jbbzr7]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">FUNCTION</span> AGENDTEL<span style="color: #000000;">&#40;</span> DeOndeVem <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;FIELD AGE_CODIGO &nbsp; &nbsp;<span style="color: #B900B9;">// Se usa si aqui se forman los indices</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> nCor, oIni, oBrush<br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">//-> Pega a Cor no .INI - Colores en el archivo FUNDO.INI</span><br />&nbsp; &nbsp;INI oIni FILE <span style="color: #ff0000;">".<span style="color: #000000;">\F</span>undo.ini"</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">GET</span> nCor SECTION <span style="color: #ff0000;">"MAIN"</span> ENTRY <span style="color: #ff0000;">"Cor"</span> <span style="color: #0000ff;">OF</span> oIni <span style="color: #00C800;">DEFAULT</span> nCor<br />&nbsp; &nbsp;ENDINI<br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BRUSH</span> &nbsp;oBrush <span style="color: #0000ff;">COLOR</span> VAL<span style="color: #000000;">&#40;</span>nCor<span style="color: #000000;">&#41;</span> &nbsp;<span style="color: #B900B9;">// Colores de dialog aqui.</span><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">CURSOR</span> oCurDedo <span style="color: #0000ff;">RESOURCE</span> <span style="color: #ff0000;">"Dedo"</span><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">ICON</span> &nbsp; oIco <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"ICONE04"</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFnt &nbsp; <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"Ms Sans Serif"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">-14</span> BOLD <span style="color: #B900B9;">//UnderLine</span><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFont &nbsp;<span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"Ms Sans Serif"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">-12</span> BOLD <span style="color: #B900B9;">//UnderLine</span><br />&nbsp;<br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">RESOURCE</span> <span style="color: #ff0000;">"DLG_AGENDA_TELEFONICA"</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">TITLE</span> cTitleDial + <span style="color: #ff0000;">" :: Hoje: "</span> + DTOC<span style="color: #000000;">&#40;</span> Date<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">BRUSH</span> oBrush TRANSPARENT <span style="color: #0000ff;">ICON</span> &nbsp;oIco<br /><br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">// cambiar el color en tiempo real.</span><br />&nbsp; &nbsp;<span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">BUTTON</span> oBtns<span style="color: #000000;">&#91;</span><span style="color: #000000;">13</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">ID</span> <span style="color: #000000;">13000</span> <span style="color: #0000ff;">OF</span> oDlg ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">&#40;</span> SET_COLOR<span style="color: #000000;">&#40;</span> oDlg <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;oBtns<span style="color: #000000;">&#91;</span><span style="color: #000000;">13</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">cToolTip</span> := OemToAnsi<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Trocar a Cor da Tela Alt+R "</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span><br />&nbsp;</div>[/code:39jbbzr7] [code=fw:39jbbzr7]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #B900B9;">//---------------------TROCA A COR EM TEMPO REAL----------------------------//</span><br /><span style="color: #00C800;">FUNCTION</span> SET_COLOR<span style="color: #000000;">&#40;</span> oDlg <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> oIni, oBrush, oBmp<br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> nTipo, cStyle, nCor := <span style="color: #000000;">0</span>, cFile, cLogo, nRow, nCol, lSelect<br /><br />&nbsp; &nbsp;oDlg:<span style="color: #000000;">SetColor</span><span style="color: #000000;">&#40;</span> oDlg:<span style="color: #000000;">nClrText</span>, nCor := ChooseColor<span style="color: #000000;">&#40;</span> oDlg:<span style="color: #000000;">nClrPane</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">// Grava no Arquivo INI as Modifica‡äes</span><br />&nbsp; &nbsp;INI oIni FILE <span style="color: #ff0000;">".<span style="color: #000000;">\F</span>undo.ini"</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp;SET SECTION <span style="color: #ff0000;">"MAIN"</span> ENTRY <span style="color: #ff0000;">"Cor"</span> &nbsp; <span style="color: #0000ff;">OF</span> oIni <span style="color: #0000ff;">TO</span> nCor<br /><br />&nbsp; &nbsp;ENDINI<br /><br />&nbsp; &nbsp;oDlg:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oDlg:<span style="color: #000000;">SetFocus</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 />&nbsp;</div>[/code:39jbbzr7] Saludos.
tipo tamaño de letra y color de dialog definidpor el usuario
solucionado lo del color. Gracias nuevamente cNavarro y Joao.
titulos en listbox
Hola buenas tardes, estoy tratando de mostrar para una tienda de ropa una tabla con el stock en cada talle, y según el tipo de prenda: Genero una tabla auxiliar, con los campos según el tipo de prenda, por ej. si son zapatos los campos serán 32,34,36,38 etc, y para las remeras por ej: l, m. x, xl etc. Esto lo hace perfecto, pero el tema es que el listbox queda cargado con los títulos del primer articulo que leyó, si lo datos muestra correctamente. cuando cargo la tabla auxiliar después: olbx:update() olbx:refres() laguna idea? Saludos. Jorge
titulos en listbox
Hello Jorge, I'm not sure if I got your question right. Best regards, Otto oLbx:aHeaders:={ "K","NR.", "test","-> test2","|| test3" } oLbx:refresh() oLbx:SetFocus()
titulos en listbox
Excelente Otto. Muchas gracias. Saludos Jorge
tlayout + splitter is possible?
Daniel Garcia-Gil tlayout + splitter is possible?
tlayout + splitter is possible?
I have contacted Daniel for his advise
tlayout + splitter is possible?
UP
tmysql y xbrowse - rao help
Estimados, tengo un caso curioso con tmysql, que siempre he querido corregir, pero no doy cuando se usa tmysql si la consulta solo toma datos de una tabla, por ej: select * from usuario, se usa internamente tmysqltable, en caso que la consulta toma datos de mas de una tabla usa tmysqlquery. cuando la consulta es un select de varia tablas los datos son bien mostrados con xbrowse, pero cuando se usa una sola tabla, los datos con mostrados correctamente, pero si me desplazo con pgdown o pgup, los datos no son refrescados. si uso up o down si se refrescan bien, solo es con pgdown y pgup. he detectado que es cuando se usa la propiedad :nRowDividerStyle con valor de 1 a 5 si los valores son 0 o 6 funciona bien. [code=fw:qbf4nelr]<div class="fw" id="{CB}" style="font-family: monospace;"> &nbsp; oQry := oSrv:<span style="color: #000000;">Query</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"select a.fecha, a.num_clie, b.nombre, a.num_ciud, a.abono from cobroxdia a inner join clientes b on a.num_clie=b.num_clie where fecha='2013-03-01' and a.num_ciud=11 order by a.fecha"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">IF</span> oSrv:<span style="color: #000000;">NetErr</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; ?oSrv:<span style="color: #000000;">Error</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">RETURN</span><br />&nbsp; &nbsp;<span style="color: #00C800;">ENDIF</span><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"DLG_TEST"</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">XBROWSE</span> oBrw <span style="color: #0000ff;">ID</span> <span style="color: #000000;">101</span> <span style="color: #0000ff;">OF</span> oDlg ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;DATASOURCE oQry &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;COLUMNS <span style="color: #ff0000;">"FECHA"</span>,<span style="color: #ff0000;">"NUM_CLIE"</span>,<span style="color: #ff0000;">"NOMBRE"</span>,<span style="color: #ff0000;">"NUM_CIUD"</span>,<span style="color: #ff0000;">"ABONO"</span><br /><br />&nbsp; &nbsp;WITH OBJECT oBrw<br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">nMarqueeStyle</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= MARQSTYLE_HIGHLROW<br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">bClrRowFocus</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; := <span style="color: #000000;">&#123;</span> || <span style="color: #000000;">&#123;</span> CLR_BLACK, RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">230</span>,<span style="color: #000000;">230</span>,<span style="color: #000000;">230</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">nRowDividerStyle</span> &nbsp; &nbsp; &nbsp; := LINESTYLE_LIGHTGRAY<br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">nColDividerStyle</span> &nbsp; &nbsp; &nbsp; := LINESTYLE_LIGHTGRAY<br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">lColDividerComplete</span> &nbsp; &nbsp;:= .t.<br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">bClrSelFocus</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; := <span style="color: #000000;">&#123;</span> || <span style="color: #000000;">&#123;</span> CLR_WHITE, CLR_BLUE <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp;END<br />&nbsp; &nbsp;AEval<span style="color: #000000;">&#40;</span> oBrw:<span style="color: #000000;">aCols</span>, <span style="color: #000000;">&#123;</span> |o| <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> o:<span style="color: #000000;">cDataType</span> == <span style="color: #ff0000;">'L'</span>, o:<span style="color: #000000;">SetCheck</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, <span style="color: #00C800;">nil</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #0000ff;">ID</span> <span style="color: #000000;">201</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">ACTION</span> oDlg:<span style="color: #000000;">END</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">INIT</span> oBrw:<span style="color: #000000;">SetFocus</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;oQry := oSrv:<span style="color: #000000;">Query</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"select * from prueba"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">IF</span> oSrv:<span style="color: #000000;">NetErr</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; ?oSrv:<span style="color: #000000;">Error</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">RETURN</span><br />&nbsp; &nbsp;<span style="color: #00C800;">ENDIF</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"DLG_TEST"</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">XBROWSE</span> oBrw <span style="color: #0000ff;">ID</span> <span style="color: #000000;">101</span> <span style="color: #0000ff;">OF</span> oDlg ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;DATASOURCE oQry &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;COLUMNS <span style="color: #ff0000;">"CODIGO"</span>,<span style="color: #ff0000;">"NOMBRE"</span>,<span style="color: #ff0000;">"FECHA"</span>,<span style="color: #ff0000;">"EDAD"</span>,<span style="color: #ff0000;">"CASADO"</span>,<span style="color: #ff0000;">"SALARIO"</span><br /><br />&nbsp; &nbsp;WITH OBJECT oBrw<br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">nMarqueeStyle</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= MARQSTYLE_HIGHLROW<br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">bClrRowFocus</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; := <span style="color: #000000;">&#123;</span> || <span style="color: #000000;">&#123;</span> CLR_BLACK, RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">230</span>,<span style="color: #000000;">230</span>,<span style="color: #000000;">230</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">nRowDividerStyle</span> &nbsp; &nbsp; &nbsp; := <span style="color: #000000;">6</span> &nbsp;<span style="color: #B900B9;">/*<<-----------------------------------------------------------------------*/</span><br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">nColDividerStyle</span> &nbsp; &nbsp; &nbsp; := LINESTYLE_LIGHTGRAY<br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">lColDividerComplete</span> &nbsp; &nbsp;:= .t.<br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">bClrSelFocus</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; := <span style="color: #000000;">&#123;</span> || <span style="color: #000000;">&#123;</span> CLR_WHITE, CLR_BLUE <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp;END<br />&nbsp; &nbsp;AEval<span style="color: #000000;">&#40;</span> oBrw:<span style="color: #000000;">aCols</span>, <span style="color: #000000;">&#123;</span> |o| <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> o:<span style="color: #000000;">cDataType</span> == <span style="color: #ff0000;">'L'</span>, o:<span style="color: #000000;">SetCheck</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, <span style="color: #00C800;">nil</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #0000ff;">ID</span> <span style="color: #000000;">201</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">ACTION</span> oDlg:<span style="color: #000000;">END</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">INIT</span> oBrw:<span style="color: #000000;">SetFocus</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">RETURN</span></div>[/code:qbf4nelr]
to Antonio
Dear Antonio, you sad me we can have any control on the top of xbrowse Good for the buttonbar class , can we use toolbar class instead of buttonbar on the top of xbrowse ? I 'm not founding the solution ....
to Antonio
Silvio, You can use a splitter.
to Antonio
Silvio, Instead of placing the control as a child of the browse, create the control above the browse but belonging to the same parent: ... OF ... oWnd // for both of them
to Antonio
Sorry I not Understood... for create toolbar I must create before the rebar and then the imagelist and then the toolbar I cannot set the ccordinates of the rebar if I create the toolbar on the top od dialog or on the top of the wnd run ok as you can see here: [img:1p484hk3]http&#58;//img824&#46;imageshack&#46;us/img824/4619/gggdh&#46;jpg[/img:1p484hk3] [b:1p484hk3]but[/b:1p484hk3] I wish create a toolbar[b:1p484hk3] on the top of the xbrowse[/b:1p484hk3] and t[b:1p484hk3]he xbrowse can be for a sample on the middle of dialog[/b:1p484hk3] , on any position od the dialog or the wnd I cannot create toolbar near the head of the xbrowse
to Antonio
Favor de comunicarte conmigo, Es para el asunto que hablamos que hay pendiente... pabloalbertovidal arroba gmail punto com
to Antonio
Pablo, ok, gracias! <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
to Antonio : ERROR Violation <PROTECTED>: NTOPMARG
I insert a button on ribbonbar with an action ACTION ChangeColors( oRBar, { { 0.12, 16777215, 10674091 }, { 0.70, 10674091, 32768 }, { 0.18, 32768, 16777215 } } ) //your function to change color on ribbonbar function ChangeColors( oRb, aGrad ) local hBmp := GradientBmp( oRb, oRb:nRight - oRb:nRightMargin - 3,; oRb:nBottom - oRb:nTopMargin + 1, aGrad ) local n, j, z, oControl oRb:aGrad := aGrad DeleteObject( oRb:hBrushEx ) oRb:hBrushEx = CreatePatternBrush( hBmp ) DeleteObject( hBmp ) oRb:Refresh() for n = 1 to Len( oRb:aDialogs ) DeleteObject( oRb:aDialogs[ n ]:hBack ) oRb:aDialogs[ n ]:hBack = oRb:hBrushEx if ! Empty( oRb:aDialogs[ n ]:aControls ) for j = 1 to len( oRb:aDialogs[ n ]:aControls ) oControl = oRb:aDialogs[ n ]:aControls[ j ] if oControl:ClassName() == "TRBGROUP" DeleteObject( oControl:hBrushUnsel ) oControl:hBrushUnsel = oRb:hBrushEx DeleteObject( oControl:hBrushSel ) oControl:hBrushSel = nil endif next endif oRb:aDialogs[ n ]:Refresh() next return nil WHY IT MAKE ERROR ?
to Antonio : ERROR Violation <PROTECTED>: NTOPMARG
Hello Silvio, why don’t you post a self-contained sample? Regards, Otto
to Antonio : ERROR Violation <PROTECTED>: NTOPMARG
Hello Silvio... This error is generated because you try change the nTopMargin value ... we can not modify this value
to Antonio : ERROR Violation <PROTECTED>: NTOPMARG
ChangeColors function wrote by Antonio Linares
to Antonio : ERROR Violation <PROTECTED>: NTOPMARG
Silvio... I dont talk about this function.... maybe you have this error in other lines
to Antonio : ERROR Violation <PROTECTED>: NTOPMARG
NO [img:2gcihakp]http&#58;//img19&#46;imageshack&#46;us/img19/7660/ribbon1&#46;png[/img:2gcihakp] I insert on circle button You can see in this picture a popupmenu oBtnCircle:bAction:={ | nRow, nCol | Config_Ribbon(oBtnCircle, nRow, nCol,oRBar )} ..... Function Config_Ribbon(obutton, nRow, nCol,oRBar ) local oMenu MENU oMenu POPUP 2007 MENUITEM "&Green Style" ACTION ChangeColors( oRBar, { { 0.12, 16777215, 10674091 }, { 0.70, 10674091, 32768 }, { 0.18, 32768, 16777215 } } ) MENUITEM "&Silver Style" MENUITEM "&Windows 7 Style" MENUITEM "&Default" ACTION ChangeColors( oRBar, { {0.12, BLUE0, BLUE0 }, { 0.70, BLUE1, BLUE0 }, { 0.18, BLUE0, CLR_WHITE }} ) ENDMENU ACTIVATE MENU oMenu AT nRow, nCol OF obutton obutton :refresh() oRBar:refresh() return NIL Any Idea ? How I can resolve the problem ?
to Antonio : ERROR Violation <PROTECTED>: NTOPMARG
Daniel if I rem protected it run ok
to Antonio : help me please
How I can transfer all data variables of a class on Inspector class ? I explain you I open the class Box and show it on form report designer Now I must open the Inspector and insert all variables of Box ( ntop,nLeft,nwidth,mbottom,....oPen....colorBox,colorBack ...) can you make an samples please thanks
to Antonio : help me please
Silvio, There is a working example in FWH\visual\inspect.prg
to Antonio : set attribute of richedit
on forum there is also a message of stephan Haupt <!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=3&t=7283&hilit=richedit">viewtopic.php?f=3&t=7283&hilit=richedit</a><!-- l --> he asked the same I ask now the possibility to subscript or superscript and change uppercase smallcase on trichedit class haupt tried to make a modify on setattribute method but it not run [code=fw:1xr4zuuu]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br /><span style="color: #00D7D7;">#define</span> CFE_SUBSCRIPT &nbsp; &nbsp; &nbsp;0x00010000 &nbsp; &nbsp; <span style="color: #B900B9;">/* Superscript and subscript are */</span><br /><span style="color: #00D7D7;">#define</span> CFE_SUPERSCRIPT &nbsp; &nbsp;0x00020000 &nbsp; &nbsp; <span style="color: #B900B9;">/* &nbsp;mutually exclusive &nbsp; &nbsp; &nbsp; &nbsp; */</span><br /><br /><span style="color: #00D7D7;">#define</span> CFM_SUBSCRIPT &nbsp; &nbsp; &nbsp;CFE_SUBSCRIPT + CFE_SUPERSCRIPT<br /><span style="color: #00D7D7;">#define</span> CFM_SUPERSCRIPT &nbsp; &nbsp;CFM_SUBSCRIPT<br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">METHOD</span> SetAttribute2<span style="color: #000000;">&#40;</span> lBold, lItalic, lUnderline, lStrikeOut, lSub, lSup, lOnOff <span style="color: #000000;">&#41;</span> <span style="color: #00C800;">CLASS</span> TRichEdit<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> nMask, nEffects<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">DEFAULT</span> lBold &nbsp; &nbsp; &nbsp;:= .f., ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;lItalic &nbsp; &nbsp;:= .f., ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;lUnderline := .f., ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;lStrikeOut := .f., ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;lSub &nbsp; &nbsp; &nbsp; := .f.,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;lSup &nbsp; &nbsp; &nbsp; := .f.,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;lOnOff &nbsp; &nbsp; := .t.<br /><br />&nbsp; &nbsp;nMask := nOR<span style="color: #000000;">&#40;</span> <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> lBold, CFM_BOLD, <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span>, <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> lItalic, CFM_ITALIC, <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> lUnderline, CFM_UNDERLINE, <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> lStrikeOut, CFM_STRIKEOUT, <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> lSub, CFM_SUBSCRIPT,<span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> lSup, CFM_SUPERSCRIPT,<span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;nEffects := nOR<span style="color: #000000;">&#40;</span> <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> lBold, CFE_BOLD, <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span>, <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> lItalic, CFE_ITALIC, <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> lUnderline, CFE_UNDERLINE, <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> lStrikeOut, CFE_STRIKEOUT, <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> lSub, CFE_SUBSCRIPT,<span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> lSup, CFE_SUPERSCRIPT,<span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;RESetAttribute<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">hWnd</span>, nMask, nEffects, lOnOff <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;::<span style="color: #0000ff;">Change</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></div>[/code:1xr4zuuu] can you help me ?
to Antonio :: URGENTE ::
Hola Antonio, Recuerdate del error de la impreción Lo estoy necesitando URGENTEMENTE !!!
to Antonio :: URGENTE ::
Pablo, Librerias enviadas a tu email, gracias! <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
to Antonio :: URGENTE ::
Antonio, Gracias todo funciona Muy Bien <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) -->
to Antonio Linares
Hola Antonio, Necesito saber si se puede hacer lo que [url=http&#58;//forums&#46;fivetechsupport&#46;com/viewtopic&#46;php?f=6&t=22978:36akrdwy]ESTE TEMA[/url:36akrdwy] dice se puede resolver. <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) -->
to Antonio Linares
Pablo, Respondido <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> Disculpa que no vi el mensaje. Suelo darle a la opción "mensajes nuevos" de este foro, y a veces no muestra todos y se me pasan. Asi que lo mejor cuando no respondo es insistir <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
to Antonio about toolbar32
Hi Antonio, can fwh2.7 toolbar32 accept menus in button like tsbutton? regards.
to Antonio about toolbar32
Wanderson, No, its not implemented yet.
to Enrico
Probably you are using an incorrect version of SQLRDD. You have to ask <!-- w --><a class="postlink" href="http://www.xharbour.com">www.xharbour.com</a><!-- w --> for support. EMG
to Enrico
Hi Enricco I hope you can help me ... I Updated the March 2017 version of SQLRDD which has a lib for BCC 7.2 and xHarbour 1.2.3 build 20170312 However, it requires some additional libraries that I can not get that the executable is generated correctly, I attach the list of errors generated by the buildx I would like to know where I find the missing libraries for BCC 7.2. Thanks for your support [list:1blzsa4z] Lines 138, Functions/Procedures 2, pCodes 1421 Embarcadero C++ 7.00 for Win32 Copyright (c) 1993-2015 Embarcadero Technologies, Inc. DEMO01.c: Turbo Incremental Link 6.70 Copyright (c) 1997-2014 Embarcadero Technologies, Inc. Error: Unresolved external 'SQLInstallerError' referenced from C:\HERRAMIENTAS\SQLRDD_2017\LIB\XHARBOUR.ORG\BCC72\SQL.LIB|sqlsrodbc Error: Unresolved external 'SQLConfigDataSource' referenced from C:\HERRAMIENTAS\SQLRDD_2017\LIB\XHARBOUR.ORG\BCC72\SQL.LIB|sqlsrodbc Error: Unresolved external '_PQconnectdb' referenced from C:\HERRAMIENTAS\SQLRDD_2017\LIB\XHARBOUR.ORG\BCC72\SQL.LIB|pgs Error: Unresolved external '_PQsetNoticeProcessor' referenced from C:\HERRAMIENTAS\SQLRDD_2017\LIB\XHARBOUR.ORG\BCC72\SQL.LIB|pgs Error: Unresolved external '_PQfinish' referenced from C:\HERRAMIENTAS\SQLRDD_2017\LIB\XHARBOUR.ORG\BCC72\SQL.LIB|pgs Error: Unresolved external '_PQstatus' referenced from C:\HERRAMIENTAS\SQLRDD_2017\LIB\XHARBOUR.ORG\BCC72\SQL.LIB|pgs Error: Unresolved external '_PQcmdTuples' referenced from C:\HERRAMIENTAS\SQLRDD_2017\LIB\XHARBOUR.ORG\BCC72\SQL.LIB|pgs Error: Unresolved external '_PQerrorMessage' referenced from C:\HERRAMIENTAS\SQLRDD_2017\LIB\XHARBOUR.ORG\BCC72\SQL.LIB|pgs Error: Unresolved external '_PQnfields' referenced from C:\HERRAMIENTAS\SQLRDD_2017\LIB\XHARBOUR.ORG\BCC72\SQL.LIB|pgs Error: Unresolved external '_PQfname' referenced from C:\HERRAMIENTAS\SQLRDD_2017\LIB\XHARBOUR.ORG\BCC72\SQL.LIB|pgs Error: Unresolved external '_PQftype' referenced from C:\HERRAMIENTAS\SQLRDD_2017\LIB\XHARBOUR.ORG\BCC72\SQL.LIB|pgs Error: Unresolved external '_PQfmod' referenced from C:\HERRAMIENTAS\SQLRDD_2017\LIB\XHARBOUR.ORG\BCC72\SQL.LIB|pgs Error: Unresolved external '_PQfsize' referenced from C:\HERRAMIENTAS\SQLRDD_2017\LIB\XHARBOUR.ORG\BCC72\SQL.LIB|pgs Error: Unresolved external '_PQgetlength' referenced from C:\HERRAMIENTAS\SQLRDD_2017\LIB\XHARBOUR.ORG\BCC72\SQL.LIB|pgs Error: Unresolved external '_PQexec' referenced from C:\HERRAMIENTAS\SQLRDD_2017\LIB\XHARBOUR.ORG\BCC72\SQL.LIB|pgs Error: Unresolved external '_PQresStatus' referenced from C:\HERRAMIENTAS\SQLRDD_2017\LIB\XHARBOUR.ORG\BCC72\SQL.LIB|pgs Error: Unresolved external '_PQresultStatus' referenced from C:\HERRAMIENTAS\SQLRDD_2017\LIB\XHARBOUR.ORG\BCC72\SQL.LIB|pgs Error: Unresolved external '_PQntuples' referenced from C:\HERRAMIENTAS\SQLRDD_2017\LIB\XHARBOUR.ORG\BCC72\SQL.LIB|pgs Error: Unresolved external '_PQclear' referenced from C:\HERRAMIENTAS\SQLRDD_2017\LIB\XHARBOUR.ORG\BCC72\SQL.LIB|pgs Error: Unresolved external '_PQgetvalue' referenced from C:\HERRAMIENTAS\SQLRDD_2017\LIB\XHARBOUR.ORG\BCC72\SQL.LIB|pgs Error: Unresolved external '_OCIAttrGet' referenced from C:\HERRAMIENTAS\SQLRDD_2017\LIB\XHARBOUR.ORG\BCC72\SQL.LIB|sqlora Error: Unresolved external '_OCIInitialize' referenced from C:\HERRAMIENTAS\SQLRDD_2017\LIB\XHARBOUR.ORG\BCC72\SQL.LIB|sqlora Error: Unresolved external '_OCIStmtPrepare' referenced from C:\HERRAMIENTAS\SQLRDD_2017\LIB\XHARBOUR.ORG\BCC72\SQL.LIB|sqlora Error: Unresolved external '_OCIEnvInit' referenced from C:\HERRAMIENTAS\SQLRDD_2017\LIB\XHARBOUR.ORG\BCC72\SQL.LIB|sqlora Error: Unresolved external '_OCIServerAttach' referenced from C:\HERRAMIENTAS\SQLRDD_2017\LIB\XHARBOUR.ORG\BCC72\SQL.LIB|sqlora Error: Unresolved external '_OCIHandleAlloc' referenced from C:\HERRAMIENTAS\SQLRDD_2017\LIB\XHARBOUR.ORG\BCC72\SQL.LIB|sqlora Error: Unresolved external '_OCISessionBegin' referenced from C:\HERRAMIENTAS\SQLRDD_2017\LIB\XHARBOUR.ORG\BCC72\SQL.LIB|sqlora Error: Unresolved external '_OCIErrorGet' referenced from C:\HERRAMIENTAS\SQLRDD_2017\LIB\XHARBOUR.ORG\BCC72\SQL.LIB|sqlora Error: Unresolved external '_OCIServerDetach' referenced from C:\HERRAMIENTAS\SQLRDD_2017\LIB\XHARBOUR.ORG\BCC72\SQL.LIB|sqlora Error: Unresolved external '_OCISessionEnd' referenced from C:\HERRAMIENTAS\SQLRDD_2017\LIB\XHARBOUR.ORG\BCC72\SQL.LIB|sqlora Error: Unresolved external '_OCITransCommit' referenced from C:\HERRAMIENTAS\SQLRDD_2017\LIB\XHARBOUR.ORG\BCC72\SQL.LIB|sqlora Error: Unresolved external '_OCITransRollback' referenced from C:\HERRAMIENTAS\SQLRDD_2017\LIB\XHARBOUR.ORG\BCC72\SQL.LIB|sqlora Error: Unresolved external '_OCIBindArrayOfStruct' referenced from C:\HERRAMIENTAS\SQLRDD_2017\LIB\XHARBOUR.ORG\BCC72\SQL.LIB|sqlora Error: Unresolved external '_OCIBindByName' referenced from C:\HERRAMIENTAS\SQLRDD_2017\LIB\XHARBOUR.ORG\BCC72\SQL.LIB|sqlora Error: Unresolved external '_OCIDefineByPos' referenced from C:\HERRAMIENTAS\SQLRDD_2017\LIB\XHARBOUR.ORG\BCC72\SQL.LIB|sqlora Error: Unresolved external '_OCIBindByPos' referenced from C:\HERRAMIENTAS\SQLRDD_2017\LIB\XHARBOUR.ORG\BCC72\SQL.LIB|sqlora Error: Unresolved external '_OCIDefineArrayOfStruct' referenced from C:\HERRAMIENTAS\SQLRDD_2017\LIB\XHARBOUR.ORG\BCC72\SQL.LIB|sqlora Error: Unresolved external '_OCIAttrSet' referenced from C:\HERRAMIENTAS\SQLRDD_2017\LIB\XHARBOUR.ORG\BCC72\SQL.LIB|sqlora Error: Unresolved external '_OCIBreak' referenced from C:\HERRAMIENTAS\SQLRDD_2017\LIB\XHARBOUR.ORG\BCC72\SQL.LIB|sqlora Error: Unresolved external '_OCIReset' referenced from C:\HERRAMIENTAS\SQLRDD_2017\LIB\XHARBOUR.ORG\BCC72\SQL.LIB|sqlora Error: Unresolved external '_OCIHandleFree' referenced from C:\HERRAMIENTAS\SQLRDD_2017\LIB\XHARBOUR.ORG\BCC72\SQL.LIB|sqlora Error: Unresolved external '_OCIDescriptorAlloc' referenced from C:\HERRAMIENTAS\SQLRDD_2017\LIB\XHARBOUR.ORG\BCC72\SQL.LIB|sqlora Error: Unresolved external '_OCILobWrite' referenced from C:\HERRAMIENTAS\SQLRDD_2017\LIB\XHARBOUR.ORG\BCC72\SQL.LIB|sqlora Error: Unresolved external '_OCILobWriteAppend' referenced from C:\HERRAMIENTAS\SQLRDD_2017\LIB\XHARBOUR.ORG\BCC72\SQL.LIB|sqlora Error: Unresolved external '_OCILobGetLength' referenced from C:\HERRAMIENTAS\SQLRDD_2017\LIB\XHARBOUR.ORG\BCC72\SQL.LIB|sqlora Error: Unresolved external '_OCILobRead' referenced from C:\HERRAMIENTAS\SQLRDD_2017\LIB\XHARBOUR.ORG\BCC72\SQL.LIB|sqlora Error: Unresolved external '_OCIServerVersion' referenced from C:\HERRAMIENTAS\SQLRDD_2017\LIB\XHARBOUR.ORG\BCC72\SQL.LIB|sqlora Error: Unresolved external '_OCIStmtExecute' referenced from C:\HERRAMIENTAS\SQLRDD_2017\LIB\XHARBOUR.ORG\BCC72\SQL.LIB|sqlora Error: Unresolved external '_OCIParamGet' referenced from C:\HERRAMIENTAS\SQLRDD_2017\LIB\XHARBOUR.ORG\BCC72\SQL.LIB|sqlora Error: Unresolved external '_OCIDescriptorFree' referenced from C:\HERRAMIENTAS\SQLRDD_2017\LIB\XHARBOUR.ORG\BCC72\SQL.LIB|sqlora Error: Unresolved external '_OCIStmtFetch2' referenced from C:\HERRAMIENTAS\SQLRDD_2017\LIB\XHARBOUR.ORG\BCC72\SQL.LIB|sqlora Error: Unresolved external 'fb_interpret' referenced from C:\HERRAMIENTAS\SQLRDD_2017\LIB\XHARBOUR.ORG\BCC72\SQL.LIB|firebird Error: Unresolved external 'isc_attach_database' referenced from C:\HERRAMIENTAS\SQLRDD_2017\LIB\XHARBOUR.ORG\BCC72\SQL.LIB|firebird Error: Unresolved external 'isc_commit_retaining' referenced from C:\HERRAMIENTAS\SQLRDD_2017\LIB\XHARBOUR.ORG\BCC72\SQL.LIB|firebird Error: Unresolved external 'isc_commit_transaction' referenced from C:\HERRAMIENTAS\SQLRDD_2017\LIB\XHARBOUR.ORG\BCC72\SQL.LIB|firebird Error: Unresolved external 'isc_rollback_transaction' referenced from C:\HERRAMIENTAS\SQLRDD_2017\LIB\XHARBOUR.ORG\BCC72\SQL.LIB|firebird Error: Unresolved external 'isc_dsql_free_statement' referenced from C:\HERRAMIENTAS\SQLRDD_2017\LIB\XHARBOUR.ORG\BCC72\SQL.LIB|firebird Error: Unresolved external 'isc_dsql_allocate_statement' referenced from C:\HERRAMIENTAS\SQLRDD_2017\LIB\XHARBOUR.ORG\BCC72\SQL.LIB|firebird Error: Unresolved external 'isc_dsql_prepare' referenced from C:\HERRAMIENTAS\SQLRDD_2017\LIB\XHARBOUR.ORG\BCC72\SQL.LIB|firebird Error: Unresolved external 'isc_dsql_execute' referenced from C:\HERRAMIENTAS\SQLRDD_2017\LIB\XHARBOUR.ORG\BCC72\SQL.LIB|firebird Error: Unresolved external '_isc_start_transaction' referenced from C:\HERRAMIENTAS\SQLRDD_2017\LIB\XHARBOUR.ORG\BCC72\SQL.LIB|firebird Error: Unresolved external 'isc_dsql_fetch' referenced from C:\HERRAMIENTAS\SQLRDD_2017\LIB\XHARBOUR.ORG\BCC72\SQL.LIB|firebird Error: Unresolved external 'isc_dsql_execute_immediate' referenced from C:\HERRAMIENTAS\SQLRDD_2017\LIB\XHARBOUR.ORG\BCC72\SQL.LIB|firebird Error: Unresolved external 'isc_detach_database' referenced from C:\HERRAMIENTAS\SQLRDD_2017\LIB\XHARBOUR.ORG\BCC72\SQL.LIB|firebird Error: Unresolved external 'isc_version' referenced from C:\HERRAMIENTAS\SQLRDD_2017\LIB\XHARBOUR.ORG\BCC72\SQL.LIB|firebird Error: Unresolved external 'isc_decode_timestamp' referenced from C:\HERRAMIENTAS\SQLRDD_2017\LIB\XHARBOUR.ORG\BCC72\SQL.LIB|firebird Error: Unresolved external 'isc_decode_sql_time' referenced from C:\HERRAMIENTAS\SQLRDD_2017\LIB\XHARBOUR.ORG\BCC72\SQL.LIB|firebird Error: Unresolved external 'isc_open_blob2' referenced from C:\HERRAMIENTAS\SQLRDD_2017\LIB\XHARBOUR.ORG\BCC72\SQL.LIB|firebird Error: Unresolved external 'isc_blob_info' referenced from C:\HERRAMIENTAS\SQLRDD_2017\LIB\XHARBOUR.ORG\BCC72\SQL.LIB|firebird Error: Unresolved external 'isc_vax_integer' referenced from C:\HERRAMIENTAS\SQLRDD_2017\LIB\XHARBOUR.ORG\BCC72\SQL.LIB|firebird Error: Unresolved external 'isc_get_segment' referenced from C:\HERRAMIENTAS\SQLRDD_2017\LIB\XHARBOUR.ORG\BCC72\SQL.LIB|firebird Error: Unresolved external 'isc_close_blob' referenced from C:\HERRAMIENTAS\SQLRDD_2017\LIB\XHARBOUR.ORG\BCC72\SQL.LIB|firebird Error: Unresolved external 'isc_decode_sql_date' referenced from C:\HERRAMIENTAS\SQLRDD_2017\LIB\XHARBOUR.ORG\BCC72\SQL.LIB|firebird Error: Unable to perform link * Linking errors * [/list:u:1blzsa4z]
to Enrico
Hi Enrico Thanks you But, i can not contact with patrick, no answer. Regards
to Enrico
I'm sorry for that. Try posting a message to comp.lang.xharbour newsgroup. Maybe someone there could help you. EMG
to Excel : using Array and ""paste"" it
hi, i´m not sure if this Technique is know : you can "paste" a Array into RANGE of a Excel Sheet to build a Array from DBF is no Problem than you need to "calculate" RANGE to fit Array Data [code=fw:10gwh2wv]<div class="fw" id="{CB}" style="font-family: monospace;">  cEnde := ZAHL2CHR<span style="color: #000000;">&#40;</span> nColCount <span style="color: #000000;">&#41;</span><br />  oSheet:<span style="color: #000000;">range</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"A1:"</span> + cEnde+ + LTRIM<span style="color: #000000;">&#40;</span> STR<span style="color: #000000;">&#40;</span> nLen <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> :<span style="color: #000000;">value</span> := aArray</div>[/code:10gwh2wv] as you can see it is easy and very quick [code=fw:10gwh2wv]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">FUNCTION</span> ZAHL2CHR<span style="color: #000000;">&#40;</span> nLFcount <span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">LOCAL</span> nMal<br /><span style="color: #00C800;">LOCAL</span> cEnde<br /><br />   <span style="color: #00C800;">IF</span> nLFcount > <span style="color: #000000;">26</span><br />      nMal := INT<span style="color: #000000;">&#40;</span> nLFcount / <span style="color: #000000;">26</span> <span style="color: #000000;">&#41;</span><br />      <span style="color: #00C800;">IF</span> nMal = nLFcount / <span style="color: #000000;">26</span><br />         cEnde := CHR<span style="color: #000000;">&#40;</span> nMal + <span style="color: #000000;">64</span> - <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> + CHR<span style="color: #000000;">&#40;</span> <span style="color: #000000;">90</span> <span style="color: #000000;">&#41;</span><br />      <span style="color: #00C800;">ELSE</span><br />         cEnde := CHR<span style="color: #000000;">&#40;</span> nMal + <span style="color: #000000;">64</span> <span style="color: #000000;">&#41;</span> + CHR<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> nLFcount - <span style="color: #000000;">&#40;</span> nMal * <span style="color: #000000;">26</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> + <span style="color: #000000;">64</span> <span style="color: #000000;">&#41;</span><br />      <span style="color: #00C800;">ENDIF</span><br />   <span style="color: #00C800;">ELSE</span><br />      cEnde := CHR<span style="color: #000000;">&#40;</span> nLFcount + <span style="color: #000000;">64</span> <span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">ENDIF</span><br /><span style="color: #00C800;">RETURN</span> cEnde<br /> </div>[/code:10gwh2wv]
to Excel : using Array and ""paste"" it
Yes. Very well known. aArray := oRange:Value for reading and oRange:Value := aArray for assigning "should" work. And work perfectly with VB. When it comes to Harbour and xHarbour there are some issues. We need to be aware of the differences between xHarbour and Harbour and also between older and current versions of Harbour. These are the reasons, why we advise using aData := RsGetRows( oRs ) instead of aData := oRs:GetRows() and aData := xlRangeValue( oRange ) instead of aData := oRange:Value. Now about assignment: [code=fw:2gmggt9g]<div class="fw" id="{CB}" style="font-family: monospace;"><br />oSheet:<span style="color: #000000;">Range</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"A1:C1"</span> <span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span> := <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> <span style="color: #B900B9;">//WORKS.</span><br />oSheet:<span style="color: #000000;">Range</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"A1:C2"</span> <span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span> := <span style="color: #000000;">&#123;</span> <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>,<span style="color: #000000;">&#123;</span><span style="color: #000000;">4</span>,<span style="color: #000000;">5</span>,<span style="color: #000000;">6</span><span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span> <span style="color: #B900B9;">// FAILS, though works with VB</span><br /> </div>[/code:2gmggt9g] The following code works: [code=fw:2gmggt9g]<div class="fw" id="{CB}" style="font-family: monospace;"><br />aData := <span style="color: #000000;">&#123;</span><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>,<span style="color: #000000;">&#123;</span><span style="color: #000000;">4</span>,<span style="color: #000000;">5</span>,<span style="color: #000000;">6</span><span style="color: #000000;">&#125;</span><span style="color: #000000;">&#125;</span><br />oRange := oSheet:<span style="color: #000000;">Range</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"A1:C2"</span> <span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">for</span> i := <span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> len<span style="color: #000000;">&#40;</span> aData <span style="color: #000000;">&#41;</span><br />  oRange:<span style="color: #000000;">Rows</span><span style="color: #000000;">&#40;</span> i <span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span> := aData<span style="color: #000000;">&#91;</span> i <span style="color: #000000;">&#93;</span><br /><span style="color: #00C800;">next</span><br /> </div>[/code:2gmggt9g] This is how FW_DbfToExcel() function is implemented.
to Excel : using Array and ""paste"" it
It gets trickier when we write code for library functions. Our functions should work with all language installations of Excel. While "A1:D9" works with some languege installations of Excel, we need to write as "A1;D9" for some other language installations. So, it is safer to write it as : [code=fw:hcvd1ec1]<div class="fw" id="{CB}" style="font-family: monospace;"><br />oRange := oShee:<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> <span style="color: #000000;">1</span>,<span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>, oSheet:<span style="color: #000000;">Cells</span><span style="color: #000000;">&#40;</span> nLastRow, nLastCol <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp;</div>[/code:hcvd1ec1]
to Excel : using Array and ""paste"" it
[quote:togwsief] Code: FUNCTION ZAHL2CHR( nLFcount ) LOCAL nMal LOCAL cEnde IF nLFcount > 26 nMal := INT( nLFcount / 26 ) IF nMal = nLFcount / 26 cEnde := CHR( nMal + 64 - 1 ) + CHR( 90 ) ELSE cEnde := CHR( nMal + 64 ) + CHR( ( nLFcount - ( nMal * 26 ) ) + 64 ) ENDIF ELSE cEnde := CHR( nLFcount + 64 ) ENDIF RETURN cEnde [/quote:togwsief] We may consider using this simplified codeblock: [code=fw:togwsief]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #000000;">&#123;</span>|n|n--,<span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span>n<<span style="color: #000000;">26</span>,Chr<span style="color: #000000;">&#40;</span>n<span style="color: #000000;">+65</span><span style="color: #000000;">&#41;</span>,Chr<span style="color: #000000;">&#40;</span>Int<span style="color: #000000;">&#40;</span>n/<span style="color: #000000;">26</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">+64</span><span style="color: #000000;">&#41;</span>+Chr<span style="color: #000000;">&#40;</span>n%<span style="color: #000000;">26</span><span style="color: #000000;">+65</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#125;</span></div>[/code:togwsief]
to FGamboa
Can you write me at private email, pls --------------------------------------------------
to Gurus ...Converting a script into FWH
Someone can help me to converte this script into fwh.thanks <!-- m --><a class="postlink" href="http://www.codedisqus.com/0myjWejXXj/how-to-get-application-name-to-be-displayed-in-openwith-list.html">http://www.codedisqus.com/0myjWejXXj/ho ... -list.html</a><!-- m --> I need an array with name and link of application to open a file specific sample : aApplicationNames = GetApplicationName(".docx") return : Microsoft Office Word OpenOffice WordPad.exe
to Gurus ...Converting a script into FWH
Silvio, There are many scripts there. Which one do you need ? What are you looking for ? Please explain it
to Gurus ...Converting a script into FWH
I explain : if i I can for sample GetNameapplication(".Jpg") it return me an array with the names of appllications (and folder) can open this file type sample Paint.exe c:\widows\paint.exe with this array I can create a menupopup and give to final user the possibility to open (or print) the file from my application I think the last version is the last script [code=fw:23pajngx]<div class="fw" id="{CB}" style="font-family: monospace;">using System;<br />using System.Diagnostics;<br />using System.IO;<br />using System.Runtime.InteropServices;<br />using System.<span style="color: #0000ff;">Text</span>;<br /><br />namespace HQ.Util.Unmanaged<br /><span style="color: #000000;">&#123;</span><br />    <span style="color: #B900B9;">/// <summary></span><br />    <span style="color: #B900B9;">/// Usage: string executablePath = FileAssociation.GetExecFileAssociatedToExtension(pathExtension, "open");</span><br />    <span style="color: #B900B9;">/// Usage: string command FileAssociation.GetExecCommandAssociatedToExtension(pathExtension, "open");</span><br />    <span style="color: #B900B9;">/// </summary></span><br />    <span style="color: #00C800;">public</span> <span style="color: #00C800;">static</span> <span style="color: #00C800;">class</span> FileAssociation<br />    <span style="color: #000000;">&#123;</span><br />        <span style="color: #B900B9;">/// <summary></span><br />        <span style="color: #B900B9;">/// </span><br />        <span style="color: #B900B9;">/// </summary></span><br />        <span style="color: #B900B9;">/// <param name="ext"></param></span><br />        <span style="color: #B900B9;">/// <param name="verb"></param></span><br />        <span style="color: #B900B9;">/// <returns>Return null if not found</returns></span><br />        <span style="color: #00C800;">public</span> <span style="color: #00C800;">static</span> string GetExecCommandAssociatedToExtension<span style="color: #000000;">&#40;</span>string ext, string verb = <span style="color: #00C800;">null</span><span style="color: #000000;">&#41;</span><br />        <span style="color: #000000;">&#123;</span><br />            <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span>ext<span style="color: #000000;">&#91;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#93;</span> != <span style="color: #ff0000;">'.'</span><span style="color: #000000;">&#41;</span><br />            <span style="color: #000000;">&#123;</span><br />                ext = <span style="color: #ff0000;">"."</span> + ext;<br />            <span style="color: #000000;">&#125;</span><br /><br />            string  executablePath = FileExtentionInfo<span style="color: #000000;">&#40;</span>AssocStr.Command, ext, verb<span style="color: #000000;">&#41;</span>;<br /><br />            <span style="color: #B900B9;">// Ensure to not return the default OpenWith.exe associated executable in Windows 8 or higher</span><br />            <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span>!string.IsNullOrEmpty<span style="color: #000000;">&#40;</span>executablePath<span style="color: #000000;">&#41;</span> && File.<span style="color: #0000ff;">Exists</span><span style="color: #000000;">&#40;</span>executablePath<span style="color: #000000;">&#41;</span> &&<br />                !executablePath.ToLower<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>.EndsWith<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">".dll"</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />            <span style="color: #000000;">&#123;</span><br />                <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span>executablePath.ToLower<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>.EndsWith<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"openwith.exe"</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />                <span style="color: #000000;">&#123;</span><br />                    <span style="color: #00C800;">return</span> <span style="color: #00C800;">null</span>; <span style="color: #B900B9;">// 'OpenWith.exe' is th windows 8 or higher default for unknown extensions. I don't want to have it as associted file</span><br />                <span style="color: #000000;">&#125;</span><br />                <span style="color: #00C800;">return</span> executablePath;<br />            <span style="color: #000000;">&#125;</span><br />            <span style="color: #00C800;">return</span> executablePath;<br />        <span style="color: #000000;">&#125;</span><br /><br />        <span style="color: #B900B9;">/// <summary></span><br />        <span style="color: #B900B9;">/// </span><br />        <span style="color: #B900B9;">/// </summary></span><br />        <span style="color: #B900B9;">/// <param name="ext"></param></span><br />        <span style="color: #B900B9;">/// <param name="verb"></param></span><br />        <span style="color: #B900B9;">/// <returns>Return null if not found</returns></span><br />        <span style="color: #00C800;">public</span> <span style="color: #00C800;">static</span> string GetExecFileAssociatedToExtension<span style="color: #000000;">&#40;</span>string ext, string verb = <span style="color: #00C800;">null</span><span style="color: #000000;">&#41;</span><br />        <span style="color: #000000;">&#123;</span><br />            <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span>ext<span style="color: #000000;">&#91;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#93;</span> != <span style="color: #ff0000;">'.'</span><span style="color: #000000;">&#41;</span><br />            <span style="color: #000000;">&#123;</span><br />                ext = <span style="color: #ff0000;">"."</span> + ext;<br />            <span style="color: #000000;">&#125;</span><br /><br />            string executablePath = FileExtentionInfo<span style="color: #000000;">&#40;</span>AssocStr.Executable, ext, verb<span style="color: #000000;">&#41;</span>; <span style="color: #B900B9;">// Will only work for 'open' verb</span><br />            <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span>string.IsNullOrEmpty<span style="color: #000000;">&#40;</span>executablePath<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />            <span style="color: #000000;">&#123;</span><br />                executablePath = FileExtentionInfo<span style="color: #000000;">&#40;</span>AssocStr.Command, ext, verb<span style="color: #000000;">&#41;</span>; <span style="color: #B900B9;">// required to find command of any other verb than 'open'</span><br /><br />                <span style="color: #B900B9;">// Extract only the path</span><br />                <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span>!string.IsNullOrEmpty<span style="color: #000000;">&#40;</span>executablePath<span style="color: #000000;">&#41;</span> && executablePath.Length > <span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span> <br />                <span style="color: #000000;">&#123;</span><br />                    <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span>executablePath<span style="color: #000000;">&#91;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#93;</span> == <span style="color: #ff0000;">'"'</span><span style="color: #000000;">&#41;</span><br />                    <span style="color: #000000;">&#123;</span><br />                        executablePath = executablePath.Split<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">'<span style="color: #000000;">\"</span>'</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>;<br />                    <span style="color: #000000;">&#125;</span><br />                    <span style="color: #00C800;">else</span> <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span>executablePath<span style="color: #000000;">&#91;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#93;</span> == <span style="color: #ff0000;">'<span style="color: #000000;">\'</span>'</span><span style="color: #000000;">&#41;</span><br />                    <span style="color: #000000;">&#123;</span><br />                        executablePath = executablePath.Split<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">'<span style="color: #000000;">\'</span>'</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>;<br />                    <span style="color: #000000;">&#125;</span><br />                <span style="color: #000000;">&#125;</span><br />            <span style="color: #000000;">&#125;</span><br /><br />            <span style="color: #B900B9;">// Ensure to not return the default OpenWith.exe associated executable in Windows 8 or higher</span><br />            <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span>!string.IsNullOrEmpty<span style="color: #000000;">&#40;</span>executablePath<span style="color: #000000;">&#41;</span> && File.<span style="color: #0000ff;">Exists</span><span style="color: #000000;">&#40;</span>executablePath<span style="color: #000000;">&#41;</span> &&<br />                !executablePath.ToLower<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>.EndsWith<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">".dll"</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />            <span style="color: #000000;">&#123;</span><br />                <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span>executablePath.ToLower<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>.EndsWith<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"openwith.exe"</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />                <span style="color: #000000;">&#123;</span><br />                    <span style="color: #00C800;">return</span> <span style="color: #00C800;">null</span>; <span style="color: #B900B9;">// 'OpenWith.exe' is th windows 8 or higher default for unknown extensions. I don't want to have it as associted file</span><br />                <span style="color: #000000;">&#125;</span><br />                <span style="color: #00C800;">return</span> executablePath;<br />            <span style="color: #000000;">&#125;</span><br />            <span style="color: #00C800;">return</span> executablePath;<br />        <span style="color: #000000;">&#125;</span><br /><br />        <span style="color: #000000;">&#91;</span>DllImport<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Shlwapi.dll"</span>, SetLastError = <span style="color: #00C800;">true</span>, CharSet = CharSet.Auto<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#93;</span><br />        <span style="color: #00C800;">static</span> extern uint AssocQueryString<span style="color: #000000;">&#40;</span>AssocF flags, AssocStr str, string pszAssoc, string pszExtra, <span style="color: #000000;">&#91;</span>Out<span style="color: #000000;">&#93;</span> StringBuilder pszOut, <span style="color: #000000;">&#91;</span>In<span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span>Out<span style="color: #000000;">&#93;</span> ref uint pcchOut<span style="color: #000000;">&#41;</span>;<br /><br />        <span style="color: #00C800;">private</span> <span style="color: #00C800;">static</span> string FileExtentionInfo<span style="color: #000000;">&#40;</span>AssocStr assocStr, string doctype, string verb<span style="color: #000000;">&#41;</span><br />        <span style="color: #000000;">&#123;</span><br />            uint pcchOut = <span style="color: #000000;">0</span>;<br />            AssocQueryString<span style="color: #000000;">&#40;</span>AssocF.Verify, assocStr, doctype, verb, <span style="color: #00C800;">null</span>, ref pcchOut<span style="color: #000000;">&#41;</span>;<br /><br />            Debug.Assert<span style="color: #000000;">&#40;</span>pcchOut != <span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span>;<br />            <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span>pcchOut == <span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span><br />            <span style="color: #000000;">&#123;</span><br />                <span style="color: #00C800;">return</span> <span style="color: #ff0000;">""</span>;<br />            <span style="color: #000000;">&#125;</span><br /><br />            StringBuilder pszOut = <span style="color: #00C800;">new</span> StringBuilder<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#40;</span>int<span style="color: #000000;">&#41;</span>pcchOut<span style="color: #000000;">&#41;</span>;<br />            AssocQueryString<span style="color: #000000;">&#40;</span>AssocF.Verify, assocStr, doctype, verb, pszOut, ref pcchOut<span style="color: #000000;">&#41;</span>;<br />            <span style="color: #00C800;">return</span> pszOut.ToString<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;<br />        <span style="color: #000000;">&#125;</span><br /><br />        <span style="color: #000000;">&#91;</span>Flags<span style="color: #000000;">&#93;</span><br />        <span style="color: #00C800;">public</span> enum AssocF<br />        <span style="color: #000000;">&#123;</span><br />            Init_NoRemapCLSID = 0x1,<br />            Init_ByExeName = 0x2,<br />            Open_ByExeName = 0x2,<br />            Init_DefaultToStar = 0x4,<br />            Init_DefaultToFolder = 0x8,<br />            NoUserSettings = 0x10,<br />            NoTruncate = 0x20,<br />            Verify = 0x40,<br />            RemapRunDll = 0x80,<br />            NoFixUps = 0x100,<br />            IgnoreBaseClass = 0x200<br />        <span style="color: #000000;">&#125;</span><br /><br />        <span style="color: #00C800;">public</span> enum AssocStr<br />        <span style="color: #000000;">&#123;</span><br />            Command = <span style="color: #000000;">1</span>,<br />            Executable,<br />            FriendlyDocName,<br />            FriendlyAppName,<br />            NoOpen,<br />            ShellNewValue,<br />            DDECommand,<br />            DDEIfExec,<br />            DDEApplication,<br />            DDETopic<br />        <span style="color: #000000;">&#125;</span><br /><br /><br /><br />    <span style="color: #000000;">&#125;</span><br /><span style="color: #000000;">&#125;</span></div>[/code:23pajngx] and the command is string applicationName = FileAssoc.GetApplicationName(".docx"); // results in "Microsoft Office Word" Antonio, I tried to use Treg class but on this test I can see only one application and not the list of all application Perhaps I make some error [code=fw:23pajngx]<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 /><br /><span style="color: #00D7D7;">#define</span> KEY_READ        <span style="color: #000000;">25</span><br /><span style="color: #00D7D7;">#define</span> KEY_WRITE       <span style="color: #000000;">6</span><br /><span style="color: #00D7D7;">#define</span> KEY_ALL_ACCESS  <span style="color: #000000;">63</span><br /><br /><span style="color: #00D7D7;">#define</span> REG_SZ      <span style="color: #000000;">1</span><br /><span style="color: #00D7D7;">#define</span> REG_DWORD   <span style="color: #000000;">4</span><br /><br /><span style="color: #00D7D7;">#define</span> ERROR_SUCCESS   <span style="color: #000000;">0</span><br /><br /><br /><span style="color: #00D7D7;">#define</span>  HKEY_CLASSES_ROOT       <span style="color: #000000;">2147483648</span>        <span style="color: #B900B9;">// 0x80000000</span><br /><span style="color: #00D7D7;">#define</span>  HKEY_CURRENT_USER       <span style="color: #000000;">2147483649</span>        <span style="color: #B900B9;">// 0x80000001</span><br /><span style="color: #00D7D7;">#define</span>  HKEY_LOCAL_MACHINE      <span style="color: #000000;">2147483650</span>        <span style="color: #B900B9;">// 0x80000002</span><br /><span style="color: #00D7D7;">#define</span>  HKEY_USERS              <span style="color: #000000;">2147483651</span>        <span style="color: #B900B9;">// 0x80000003</span><br /><span style="color: #00D7D7;">#define</span>  HKEY_PERFORMANCE_DATA   <span style="color: #000000;">2147483652</span>        <span style="color: #B900B9;">// 0x80000004</span><br /><span style="color: #00D7D7;">#define</span>  HKEY_CURRENT_CONFIG     <span style="color: #000000;">2147483653</span>        <span style="color: #B900B9;">// 0x80000005</span><br /><span style="color: #00D7D7;">#define</span>  HKEY_DYN_DATA           <span style="color: #000000;">2147483654</span>        <span style="color: #B900B9;">// 0x80000006</span><br /><br /><br /><span style="color: #00C800;">Function</span> test<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   ShowAssociation<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">".bmp"</span><span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><br /><br /><span style="color: #00C800;">Function</span> ShowAssociation<span style="color: #000000;">&#40;</span>cExt<span style="color: #000000;">&#41;</span><br /><br /><br />  <span style="color: #00C800;">LOCAL</span> cKey<br />  <span style="color: #00C800;">LOCAL</span> cVal<br /><br />  BEGIN SEQUENCE<br /><br />    cKey := <span style="color: #ff0000;">'Software<span style="color: #000000;">\C</span>LASSES<span style="color: #000000;">\'</span> + cExt<br /><br /><br /> IF !IsRegistryKey(HKEY_LOCAL_MACHINE, cKey)<br />       BREAK<br />    ENDIF<br /><br />cVal := GetRegistryValue(HKEY_LOCAL_MACHINE, cKey)<br /><br /><br />  IF EMPTY(cVal)<br />      BREAK<br />    ENDIF<br /><br /><br /> cKey := '</span>Software\CLASSES\<span style="color: #ff0000;">' + cVal + '</span>\Shell\Open\command<span style="color: #ff0000;">'<br /><br /><br /><br />    IF !IsRegistryKey(HKEY_LOCAL_MACHINE, cKey)<br />      BREAK<br />    ENDIF<br /><br /><br />cVal := GetRegistryValue(HKEY_LOCAL_MACHINE, cKey)<br /><br />    IF EMPTY(cVal)<br />      BREAK<br />    ENDIF<br />                        *GETEXEFILENAME<br /><br /> IF UPPER(cVal) == UPPER(EXENAME())<br />      MsgInfo(UPPER(cExt) + '</span> files are currently associated with MPM.<span style="color: #ff0000;">')<br />    ELSE<br />      MsgInfo(UPPER(cExt) + '</span> files are currently associated with <span style="color: #ff0000;">' + ;<br />        cVal + '</span>.<span style="color: #ff0000;">')<br />    ENDIF<br />  RECOVER<br />    Msginfo(UPPER(cExt) + ;<br />      '</span> files are not currently associated with any program.<span style="color: #ff0000;">')<br />  END SEQUENCE<br /><br /><br /><br />     cKey := '</span>Software\CLASSES\<span style="color: #ff0000;">' + cVal + '</span>\OpenWithList<span style="color: #ff0000;">'<br /><br />      IF !IsRegistryKey(HKEY_LOCAL_MACHINE, cKey)<br />      BREAK<br />    ENDIF<br /><br /><br />cVal := GetRegistryValue(HKEY_LOCAL_MACHINE, cKey)<br /><br /><br /><br /> *HKEY_CURRENT_USER<span style="color: #000000;">\S</span>oftware<span style="color: #000000;">\M</span>icrosoft<span style="color: #000000;">\W</span>indows<span style="color: #000000;">\C</span>urrentVersion<span style="color: #000000;">\E</span>xplorer<span style="color: #000000;">\F</span>ileExts<span style="color: #000000;">\.</span>jnlp<span style="color: #000000;">\O</span>penWithList<br /><br /><br /><br />RETURN nil<br /><br />//----------------------------------------------------------------------------------//<br />FUNCTION IsRegistryKey( nKey, cRegKey )<br /><br />   LOCAL oReg<br />   LOCAL lExist<br /><br />   oReg   := TReg32():New( nKey, cRegKey, .F. )<br />   lExist := ( oReg:lError == .F. )<br /><br />   oReg:Close()<br /><br />RETURN lExist<br />//-------------------------------------------------------------------------------------//<br />FUNCTION GetRegistryValue( nKey, cRegKey, cRegVar, cType )<br /><br />   LOCAL oReg<br />   LOCAL uVal<br /><br />   DEFAULT cRegVar := '</span><span style="color: #ff0000;">', cType := '</span>C<span style="color: #ff0000;">'<br /><br />   oReg := TReg32():New( nKey, cRegKey, .F. )<br /><br />   IF ! oReg:lError<br /><br />      DO CASE<br />      CASE cType == '</span>N<span style="color: #ff0000;">'<br />         uVal := 0<br />      CASE cType == '</span>D<span style="color: #ff0000;">'<br />         uVal := CToD( '</span><span style="color: #ff0000;">' )<br />      CASE cType == '</span>L<span style="color: #ff0000;">'<br />         uVal := .F.<br />      OTHERWISE<br />         uVal := '</span><span style="color: #ff0000;">'<br />      ENDCASE<br /><br />      uVal := oReg:Get( cRegVar, uVal )<br />      IF oReg:nError != ERROR_SUCCESS<br />         uVal := NIL<br />      ENDIF<br /><br />   ENDIF<br /><br />   oReg:Close()<br /><br />RETURN uVal<br />//-------------------------------------------------------------------------------------/<br /></span></div>[/code:23pajngx]
to Gurus ...Converting a script into FWH
I think it simpler execute only the default program of a file. You can do it with ShellExecute ([url:1byck9x1]https&#58;//msdn&#46;microsoft&#46;com/en-us/library/windows/desktop/bb762153%28v=vs&#46;85%29&#46;aspx[/url:1byck9x1]) For example: [code=fw:1byck9x1]<div class="fw" id="{CB}" style="font-family: monospace;">ShellExecute<span style="color: #000000;">&#40;</span> GetActiveWindow<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> ,<span style="color: #00C800;">nil</span>,<span style="color: #ff0000;">'c:<span style="color: #000000;">\w</span>ork<span style="color: #000000;">\t</span>estsample.doc'</span>,<span style="color: #ff0000;">''</span>,<span style="color: #ff0000;">''</span>,<span style="color: #000000;">5</span><span style="color: #000000;">&#41;</span></div>[/code:1byck9x1] Regards, Antonino
to Gurus ...Converting a script into FWH
[quote="AntoninoP":k3zj01ln]I think it simpler execute only the default program of a file. You can do it with ShellExecute ([url:k3zj01ln]https&#58;//msdn&#46;microsoft&#46;com/en-us/library/windows/desktop/bb762153%28v=vs&#46;85%29&#46;aspx[/url:k3zj01ln]) For example: [code=fw:k3zj01ln]<div class="fw" id="{CB}" style="font-family: monospace;">ShellExecute<span style="color: #000000;">&#40;</span> GetActiveWindow<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> ,<span style="color: #00C800;">nil</span>,<span style="color: #ff0000;">'c:<span style="color: #000000;">\w</span>ork<span style="color: #000000;">\t</span>estsample.doc'</span>,<span style="color: #ff0000;">''</span>,<span style="color: #ff0000;">''</span>,<span style="color: #000000;">5</span><span style="color: #000000;">&#41;</span></div>[/code:k3zj01ln] Regards, Antonino[/quote:k3zj01ln] +1 ...as simple as that
to Gurus ...Converting a script into FWH
Sorry but I like to have an array with the exe application can open a specific extension the fianl user can select the app he want to open that file sample if I show a jpg the final user can select Paint.exe Infarview.exe as you can see on this picture [img:hmscxsvj]http&#58;//www&#46;eoeo&#46;it/wp-content/uploads/2015/06/gg1&#46;jpg[/img:hmscxsvj]
to MR Nages : Xbrowse html support
Dear Mr Nages , a cell of xbrowse can read a a html script ? I mean to show a small html into cell of a xbrowse thanks
to MR Nages : Xbrowse html support
Any solution ?
to MR Nages : Xbrowse html support
I do not have any solution to display html content inside the cells.
to Mastintin : yahoo financial
Dear Manuel, as Meteo we can load financial data from Yahoo ? I found only <!-- m --><a class="postlink" href="http://download.finance.yahoo.com/d/quotes.csv?s=BOBSL.BO,JAIPAN.BO,SANGHIIN.BO&f=snl1d1t1ohgdrx">http://download.finance.yahoo.com/d/quo ... d1t1ohgdrx</a><!-- m --> <!-- m --><a class="postlink" href="http://stackoverflow.com/questions/5246843/how-to-get-a-complete-list-of-ticker-symbols-from-yahoo-finance/11421395#11421395">http://stackoverflow.com/questions/5246 ... 5#11421395</a><!-- m -->
to Mastintin : yahoo financial
Silvio : <!-- m --><a class="postlink" href="http://finance.yahoo.com/d/quotes.csv?e=.csv&f=c4l1&s=EURUSD=X,GBPUSD=X">http://finance.yahoo.com/d/quotes.csv?e ... X,GBPUSD=X</a><!-- m --> devuelve un cvs que es facil de tratar con Harbour ... y este nos devuelve un json ( como en weather) [url] <!-- m --><a class="postlink" href="https://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20yahoo.finance.quotes%20where%20symbol%20in%20(%22BHP.AX%22">https://query.yahooapis.com/v1/public/y ... 2BHP.AX%22</a><!-- m -->)&format=json&diagnostics=true&env=store%3A%2F%2Fdatatables.org%2Falltableswithkeys&callback=[/url] ....................edito ................................... de este ultimo enlace me he descargado el json que devuelve y analizandolo un poco me encuentor un monton de datos. No soy experto en finanzas pero creo que tenemos todos los datos del valor .... [code=fw:2aigwb9y]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br /><span style="color: #ff0000;">"quote"</span>:<span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"symbol"</span>:<span style="color: #ff0000;">"BHP.AX"</span>,<br />&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"Ask"</span>:<span style="color: #00C800;">null</span>,<br />&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"AverageDailyVolume"</span>:<span style="color: #ff0000;">"7812270"</span>,<br />&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"Bid"</span>:<span style="color: #00C800;">null</span>,<br />&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"AskRealtime"</span>:<span style="color: #ff0000;">"29.050"</span>,<br />&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"BidRealtime"</span>:<span style="color: #ff0000;">"28.980"</span>,<br />&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"BookValue"</span>:<span style="color: #ff0000;">"14.873"</span>,<br />&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"Change_PercentChange"</span>:<span style="color: #ff0000;">"-0.390 - -1.33%"</span>,<br />&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"Change"</span>:<span style="color: #ff0000;">"-0.390"</span>,<br />&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"Commission"</span>:<span style="color: #00C800;">null</span>,<br />&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"Currency"</span>:<span style="color: #ff0000;">"AUD"</span>,<br />&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"ChangeRealtime"</span>:<span style="color: #ff0000;">"-0.390"</span>,<br />&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"AfterHoursChangeRealtime"</span>:<span style="color: #ff0000;">"N/A - N/A"</span>,<br />&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"DividendShare"</span>:<span style="color: #ff0000;">"1.3092"</span>,<br />&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"LastTradeDate"</span>:<span style="color: #ff0000;">"12/11/2014"</span>,<br />&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"TradeDate"</span>:<span style="color: #00C800;">null</span>,<br />&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"EarningsShare"</span>:<span style="color: #ff0000;">"2.591"</span>,<br />&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"ErrorIndicationreturnedforsymbolchangedinvalid"</span>:<span style="color: #00C800;">null</span>,<br />&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"EPSEstimateCurrentYear"</span>:<span style="color: #ff0000;">"2.140"</span>,<br />&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"EPSEstimateNextYear"</span>:<span style="color: #ff0000;">"2.310"</span>,<br />&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"EPSEstimateNextQuarter"</span>:<span style="color: #ff0000;">"0.000"</span>,<br />&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"DaysLow"</span>:<span style="color: #ff0000;">"28.400"</span>,<br />&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"DaysHigh"</span>:<span style="color: #ff0000;">"29.185"</span>,<br />&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"YearLow"</span>:<span style="color: #ff0000;">"28.400"</span>,<br />&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"YearHigh"</span>:<span style="color: #ff0000;">"39.790"</span>,<br />&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"HoldingsGainPercent"</span>:<span style="color: #ff0000;">"- - -"</span>,<br />&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"AnnualizedGain"</span>:<span style="color: #00C800;">null</span>,<br />&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"HoldingsGain"</span>:<span style="color: #00C800;">null</span>,<br />&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"HoldingsGainPercentRealtime"</span>:<span style="color: #ff0000;">"N/A - N/A"</span>,<br />&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"HoldingsGainRealtime"</span>:<span style="color: #00C800;">null</span>,<br />&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"MoreInfo"</span>:<span style="color: #ff0000;">"cnprIed"</span>,<br />&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"OrderBookRealtime"</span>:<span style="color: #00C800;">null</span>,<br />&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"MarketCapitalization"</span>:<span style="color: #ff0000;">"154.3B"</span>,<br />&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"MarketCapRealtime"</span>:<span style="color: #00C800;">null</span>,<br />&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"EBITDA"</span>:<span style="color: #ff0000;">"29.777B"</span>,<br />&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"ChangeFromYearLow"</span>:<span style="color: #ff0000;">"+0.600"</span>,<br />&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"PercentChangeFromYearLow"</span>:<span style="color: #ff0000;">"+2.11%"</span>,<br />&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"LastTradeRealtimeWithTime"</span>:<span style="color: #ff0000;">"N/A - <b>29.000</b>"</span>,<br />&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"ChangePercentRealtime"</span>:<span style="color: #ff0000;">"N/A - -1.33%"</span>,<br />&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"ChangeFromYearHigh"</span>:<span style="color: #ff0000;">"-10.790"</span>,<br />&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"PercebtChangeFromYearHigh"</span>:<span style="color: #ff0000;">"-27.12%"</span>,<br />&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"LastTradeWithTime"</span>:<span style="color: #ff0000;">"12:10am - <b>29.000</b>"</span>,<br />&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"LastTradePriceOnly"</span>:<span style="color: #ff0000;">"29.000"</span>,<br />&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"HighLimit"</span>:<span style="color: #00C800;">null</span>,<br />&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"LowLimit"</span>:<span style="color: #00C800;">null</span>,<br />&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"DaysRange"</span>:<span style="color: #ff0000;">"28.400 - 29.185"</span>,<br />&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"DaysRangeRealtime"</span>:<span style="color: #ff0000;">"N/A - N/A"</span>,<br />&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"FiftydayMovingAverage"</span>:<span style="color: #ff0000;">"32.4389"</span>,<br />&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"TwoHundreddayMovingAverage"</span>:<span style="color: #ff0000;">"35.4219"</span>,<br />&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"ChangeFromTwoHundreddayMovingAverage"</span>:<span style="color: #ff0000;">"-6.4219"</span>,<br />&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"PercentChangeFromTwoHundreddayMovingAverage"</span>:<span style="color: #ff0000;">"-18.13%"</span>,<br />&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"ChangeFromFiftydayMovingAverage"</span>:<span style="color: #ff0000;">"-3.4389"</span>,<br />&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"PercentChangeFromFiftydayMovingAverage"</span>:<span style="color: #ff0000;">"-10.60%"</span>,<br />&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"Name"</span>:<span style="color: #ff0000;">"BHP BLT FPO"</span>,<br />&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"Notes"</span>:<span style="color: #00C800;">null</span>,<br />&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"Open"</span>:<span style="color: #ff0000;">"28.500"</span>,<br />&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"PreviousClose"</span>:<span style="color: #ff0000;">"29.390"</span>,<br />&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"PricePaid"</span>:<span style="color: #00C800;">null</span>,<br />&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"ChangeinPercent"</span>:<span style="color: #ff0000;">"-1.33%"</span>,<br />&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"PriceSales"</span>:<span style="color: #ff0000;">"2.33"</span>,<br />&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"PriceBook"</span>:<span style="color: #ff0000;">"1.98"</span>,<br />&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"ExDividendDate"</span>:<span style="color: #ff0000;">"Sep &nbsp;3"</span>,<br />&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"PERatio"</span>:<span style="color: #ff0000;">"11.34"</span>,<br />&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"DividendPayDate"</span>:<span style="color: #00C800;">null</span>,<br />&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"PERatioRealtime"</span>:<span style="color: #00C800;">null</span>,<br />&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"PEGRatio"</span>:<span style="color: #ff0000;">"4.04"</span>,<br />&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"PriceEPSEstimateCurrentYear"</span>:<span style="color: #ff0000;">"13.73"</span>,<br />&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"PriceEPSEstimateNextYear"</span>:<span style="color: #ff0000;">"12.72"</span>,<br />&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"Symbol"</span>:<span style="color: #ff0000;">"BHP.AX"</span>,<br />&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"SharesOwned"</span>:<span style="color: #00C800;">null</span>,<br />&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"ShortRatio"</span>:<span style="color: #00C800;">null</span>,<br />&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"LastTradeTime"</span>:<span style="color: #ff0000;">"12:10am"</span><br />&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ,<span style="color: #ff0000;">"TickerTrend"</span>:<span style="color: #ff0000;">"&nbsp;======&nbsp;"</span><br />&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ,<span style="color: #ff0000;">"OneyrTargetPrice"</span>:<span style="color: #ff0000;">"34.270"</span>,<br />&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"Volume"</span>:<span style="color: #ff0000;">"9122100"</span>,<br />&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"HoldingsValue"</span>:<span style="color: #00C800;">null</span>,<br />&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"HoldingsValueRealtime"</span>:<span style="color: #00C800;">null</span>,<br />&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"YearRange"</span>:<span style="color: #ff0000;">"28.400 - 39.790"</span>,<br />&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"DaysValueChange"</span>:<span style="color: #ff0000;">"- - -1.33%"</span>,<br />&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"DaysValueChangeRealtime"</span>:<span style="color: #ff0000;">"N/A - N/A"</span>,<br />&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"StockExchange"</span>:<span style="color: #ff0000;">"ASX"</span>,<br />&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"DividendYield"</span>:<span style="color: #ff0000;">"4.45"</span>,<br />&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"PercentChange"</span>:<span style="color: #ff0000;">"-1.33%"</span><span style="color: #000000;">&#125;</span><span style="color: #000000;">&#125;</span><span style="color: #000000;">&#125;</span><span style="color: #000000;">&#125;</span><br />&nbsp;</div>[/code:2aigwb9y]
to Mastintin : yahoo financial
can you make a small sample ? usted puede hacer un pequeño ejemplo?
to Mastintin : yahoo financial
Manuel, Este post que iniciaste es bien interesante. Nos da ideas para aplicaciones desarrolladas con Fivewin accesando data diponible en la red. Saludos, George
to Mastintin : yahoo financial
Yahoo no da en este tema mucha documentación y si quieres algo profesional tienes que pagar( lógico por otra parte ) Así todo se pueden sacar muchos datos , yo aquí solo pongo 4 o 5 , pero en la misma llamada existen muchos mas , los datos que devuelve no se si son en Dólares o Euros ( yo creo que Dólares ) , pero como ejemplo vale . [code=fw:1h2uxu4w]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br /><span style="color: #B900B9;">// Our first DialogBox sample</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;">"ttitle.ch"</span><br /><br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />  <span style="color: #00C800;">local</span> obmp ,cBmp <br />  <span style="color: #00C800;">local</span> oDlg, oIco ,cValor:= <span style="color: #ff0000;">"BHP.AX"</span>+space<span style="color: #000000;">&#40;</span><span style="color: #000000;">20</span><span style="color: #000000;">&#41;</span> &nbsp;<span style="color: #B900B9;">// "GOOGL"+space(20) // "AAPL"+space(20)</span><br />   <span style="color: #00C800;">local</span> ofont<br />   <br /><br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">Font</span> ofont <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"Verdana"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>,<span style="color: #000000;">14</span> <br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">ICON</span> oIco FILE <span style="color: #ff0000;">"..<span style="color: #000000;">\i</span>cons<span style="color: #000000;">\f</span>ivewin.ico"</span><br /><br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Ciudad a buscar"</span> ;<br />      <span style="color: #0000ff;">ICON</span> oIco <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">350</span>, <span style="color: #000000;">240</span><br /><br /> <span style="color: #B900B9;">//  @ 30,10  IMAGE oBmp FILE cBmp OF oDlg size 142,35 pixel NOBORDER </span><br />     <br />           <br />   <br />     @ <span style="color: #000000;">60</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">"Introduce el Valor a buscar :"</span> <span style="color: #0000ff;">size</span> <span style="color: #000000;">100</span>, <span style="color: #000000;">12</span> ;<br />                        <span style="color: #0000ff;">FONT</span> oFont <span style="color: #0000ff;">pixel</span> <span style="color: #0000ff;">OF</span> oDlg<br />     <br />     @ <span style="color: #000000;">70</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">GET</span> cValor <span style="color: #0000ff;">size</span> <span style="color: #000000;">120</span>, <span style="color: #000000;">12</span> <span style="color: #0000ff;">FONT</span> oFont <span style="color: #0000ff;">pixel</span> <span style="color: #0000ff;">OF</span> oDlg <br /><br />     @ <span style="color: #000000;">105</span>, <span style="color: #000000;">85</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"&Buscar"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">40</span>, <span style="color: #000000;">12</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">pixel</span> ;<br />              <span style="color: #0000ff;">FONT</span> oFont ; <br />              <span style="color: #0000ff;">ACTION</span> llamada<span style="color: #000000;">&#40;</span>cValor<span style="color: #000000;">&#41;</span><br /><br />     @ <span style="color: #000000;">105</span>,<span style="color: #000000;">130</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"&Salir"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">40</span>, <span style="color: #000000;">12</span> <span style="color: #0000ff;">pixel</span> <span style="color: #0000ff;">OF</span> oDlg;<br />               <span style="color: #0000ff;">FONT</span> oFont ; <br />               <span style="color: #0000ff;">ACTION</span> oDlg:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><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;">INIT</span>  DlgBarTitle<span style="color: #000000;">&#40;</span> oDlg, <span style="color: #ff0000;">"  Servicio Finaciero"</span>,<span style="color: #ff0000;">"c:<span style="color: #000000;">\f</span>wh<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\a</span>lphaBmp<span style="color: #000000;">\w</span>eather.bmp"</span> ,<span style="color: #000000;">44</span> <span style="color: #000000;">&#41;</span>  ;<br />    <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">PAINT</span> DlgStatusBar<span style="color: #000000;">&#40;</span>oDlg, <span style="color: #000000;">68</span>,, .t. <span style="color: #000000;">&#41;</span> <br />   <br />   oFont:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   <br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #B900B9;">//------------------------------------------------------------------------------</span><br /><span style="color: #B900B9;">//------------------------------------------------------------------------------</span><br /><br /><br /><span style="color: #00C800;">Function</span> llamada<span style="color: #000000;">&#40;</span>cValor<span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">local</span> oHttp<br /><span style="color: #00C800;">local</span> cResp<br /><span style="color: #00C800;">local</span> cDir<br /><span style="color: #00C800;">local</span> Formato :=  <span style="color: #ff0000;">"json"</span>    <br /><br /><br />cDir := <span style="color: #ff0000;">"https://query.yahooapis.com/v1/public/yql?q=select * from yahoo.finance.quotes where symbol in ( '"</span>+ cValor+ <span style="color: #ff0000;">"')"</span><br /><br />cDir := cDir + <span style="color: #ff0000;">"&format="</span>+ Formato +<span style="color: #ff0000;">"&region=ES"</span>+<span style="color: #ff0000;">"&lang=es-es"</span>+<span style="color: #ff0000;">"&env=store%3A%2F%2Fdatatables.org%2Falltableswithkeys&callback="</span><br /><br /><span style="color: #B900B9;">//cDir := cDir + "&format="+ Formato +"&diagnostics=true&env=store%3A%2F%2Fdatatables.org%2Falltableswithkeys&callback="</span><br /><br /><span style="color: #B900B9;">//cDir := "https://query.yahooapis.com/v1/public/yql?q=select * from weather.forecast where woeid in (select woeid from geo.places(1)"</span><br /><span style="color: #B900B9;">//cDir:= cDir + " where text= '"+ cValor +"' ) and u='"+cUnits+"'&format=" + Formato</span><br /> <br /> <span style="color: #00C800;">Try</span><br />      oHttp := CreateObject<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"winhttp.winhttprequest.5.1"</span><span style="color: #000000;">&#41;</span><br />      oHttp:<span style="color: #000000;">Open</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"GET"</span>, cDir, .f. <span style="color: #000000;">&#41;</span><br />      oHttp:<span style="color: #000000;">Send</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />      cResp := oHttp:<span style="color: #000000;">ResponseText</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />         oHttp:<span style="color: #000000;">WaitForResponse</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>   <br />      <span style="color: #B900B9;">// memowrit("finance.txt",cResp )</span><br />      leejson<span style="color: #000000;">&#40;</span> cResp, cValor <span style="color: #000000;">&#41;</span><br />     <br />   Catch<br />      MsgStop<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Error"</span> <span style="color: #000000;">&#41;</span><br />      <span style="color: #00C800;">Return</span> cResp<br />   End <span style="color: #00C800;">Try</span><br /><br /><br /><span style="color: #00C800;">Return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #B900B9;">//------------------------------------------------------------------------------</span><br /><br /><span style="color: #00C800;">function</span> Leejson<span style="color: #000000;">&#40;</span>cResp,cValor <span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">local</span> hvar<br /><span style="color: #00C800;">local</span> hvar1,hvar2<br /><span style="color: #00C800;">local</span> cTexto:=<span style="color: #ff0000;">""</span><br /><span style="color: #00C800;">local</span> oDlg, cBmp<br /><span style="color: #00C800;">local</span> nValor<br /><span style="color: #00C800;">local</span> oBmp<br /><span style="color: #00C800;">local</span> ofont1,ofont2<br /><span style="color: #00C800;">Local</span> oBrwForecast<br /><br /><span style="color: #00C800;">local</span> aForecast:= <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span><br /><span style="color: #00C800;">local</span> i<br /><span style="color: #00C800;">local</span> cImage,cMin,cMax,cData,cDay<br /><span style="color: #00C800;">local</span> ahTexto,hDias,cPrev<br /><span style="color: #00C800;">local</span> cUrl<br /><span style="color: #00C800;">local</span> nRow:=<span style="color: #000000;">185</span><br /><span style="color: #00C800;">local</span> nCol:= <span style="color: #000000;">5</span><br /><span style="color: #00C800;">local</span> cTitle := <span style="color: #ff0000;">"Resultados para el Valor: "</span> + cValor <br />hb_jsondecode<span style="color: #000000;">&#40;</span> cResp, @hvar <span style="color: #000000;">&#41;</span><br /><br /><br />hvar1:= hvar<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"query"</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"results"</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"quote"</span><span style="color: #000000;">&#93;</span><br /><br /> <span style="color: #0000ff;">define</span> <span style="color: #0000ff;">font</span> ofont1 <span style="color: #0000ff;">name</span> <span style="color: #ff0000;">"Arial"</span> <span style="color: #0000ff;">size</span> <span style="color: #000000;">0</span>,<span style="color: #000000;">16</span> bold<br /><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">Font</span> ofont2 <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"Verdana"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>,<span style="color: #000000;">13</span> <br /> <br /> <br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Resultados"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">500</span>, <span style="color: #000000;">570</span> <span style="color: #0000ff;">pixel</span> <span style="color: #0000ff;">color</span> CLR_BLACK,CLR_WHITE<br /><br /> <br />     @ <span style="color: #000000;">10</span> ,<span style="color: #000000;">80</span> <span style="color: #0000ff;">SAY</span> alltrim<span style="color: #000000;">&#40;</span> cTitle <span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">180</span>, <span style="color: #000000;">20</span> ;<br />                        <span style="color: #0000ff;">pixel</span> <span style="color: #0000ff;">Font</span> ofont1 <span style="color: #0000ff;">color</span> CLR_BLACK,CLR_WHITE <br />     <br />     @ <span style="color: #000000;">25</span>, <span style="color: #000000;">70</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">"Fecha : "</span>+ alltrim<span style="color: #000000;">&#40;</span>hvar<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"query"</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"created"</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span>  <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">180</span>, <span style="color: #000000;">20</span> <span style="color: #0000ff;">OF</span> oDlg ;<br />                    <span style="color: #0000ff;">pixel</span>  <span style="color: #0000ff;">color</span> CLR_BLACK,CLR_WHITE <span style="color: #0000ff;">FONT</span> ofont2<br />      <br />      <br />     @ <span style="color: #000000;">50</span>, <span style="color: #000000;">50</span> <span style="color: #0000ff;">say</span> alltrim<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Valor :"</span> <span style="color: #000000;">&#41;</span>  <span style="color: #0000ff;">OF</span> oDlg ;<br />               <span style="color: #0000ff;">pixel</span> <span style="color: #0000ff;">color</span> CLR_BLACK,CLR_WHITE <span style="color: #0000ff;">FONT</span> ofont2 <br />               <br />     @ <span style="color: #000000;">50</span>, <span style="color: #000000;">130</span> <span style="color: #0000ff;">say</span> alltrim<span style="color: #000000;">&#40;</span> hVar1<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"symbol"</span><span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span>  <span style="color: #0000ff;">OF</span> oDlg ;<br />              <span style="color: #0000ff;">pixel</span> <span style="color: #0000ff;">color</span> CLR_BLACK,CLR_WHITE <span style="color: #0000ff;">FONT</span> ofont2         <br />     <br />             <br />     @ <span style="color: #000000;">60</span>, <span style="color: #000000;">50</span> <span style="color: #0000ff;">say</span> <span style="color: #ff0000;">"Volumen Medio "</span> <span style="color: #0000ff;">OF</span> oDlg ;<br />             <span style="color: #0000ff;">pixel</span>  <span style="color: #0000ff;">color</span> CLR_BLACK,CLR_WHITE <span style="color: #0000ff;">FONT</span> ofont2 <br />     @ <span style="color: #000000;">60</span>, <span style="color: #000000;">130</span> <span style="color: #0000ff;">say</span>  hVar1<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"AverageDailyVolume"</span><span style="color: #000000;">&#93;</span>  <span style="color: #0000ff;">OF</span> oDlg ;<br />             <span style="color: #0000ff;">pixel</span>  <span style="color: #0000ff;">color</span> CLR_BLACK,CLR_WHITE <span style="color: #0000ff;">FONT</span> ofont2         <br />           <br />                  <br />     @ <span style="color: #000000;">70</span>, <span style="color: #000000;">50</span> <span style="color: #0000ff;">say</span> <span style="color: #ff0000;">"Demanda "</span>  <span style="color: #0000ff;">OF</span> oDlg ;<br />                     <span style="color: #0000ff;">pixel</span>  <span style="color: #0000ff;">color</span> CLR_BLACK,CLR_WHITE <span style="color: #0000ff;">FONT</span> ofont2 <br />     <br />     @ <span style="color: #000000;">70</span>, <span style="color: #000000;">130</span> <span style="color: #0000ff;">say</span>  hVar1<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"AskRealtime"</span><span style="color: #000000;">&#93;</span>  <span style="color: #0000ff;">OF</span> oDlg ;<br />                     <span style="color: #0000ff;">pixel</span>  <span style="color: #0000ff;">color</span> CLR_BLACK,CLR_WHITE <span style="color: #0000ff;">FONT</span> ofont2 <br />    <br />     @ <span style="color: #000000;">80</span>, <span style="color: #000000;">50</span> <span style="color: #0000ff;">say</span> <span style="color: #ff0000;">"Oferta "</span>  <span style="color: #0000ff;">OF</span> oDlg ;<br />                     <span style="color: #0000ff;">pixel</span>  <span style="color: #0000ff;">color</span> CLR_BLACK,CLR_WHITE <span style="color: #0000ff;">FONT</span> ofont2 <br />     <br />     @ <span style="color: #000000;">80</span>, <span style="color: #000000;">130</span> <span style="color: #0000ff;">say</span>  hVar1<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"BidRealtime"</span><span style="color: #000000;">&#93;</span>  <span style="color: #0000ff;">OF</span> oDlg ;<br />                     <span style="color: #0000ff;">pixel</span>  <span style="color: #0000ff;">color</span> CLR_BLACK,CLR_WHITE <span style="color: #0000ff;">FONT</span> ofont2       <br />    <br />    <br />      <br />    <br />   <br />  <span style="color: #B900B9;">//   @ 85, 95 say "Atmosfera " OF oDlg ;</span><br />   <span style="color: #B900B9;">//                     pixel  color CLR_BLACK,CLR_WHITE FONT ofont1 </span><br />                      <br />     @ <span style="color: #000000;">100</span>, <span style="color: #000000;">50</span> <span style="color: #0000ff;">say</span> <span style="color: #ff0000;">"Ultimo Cambio "</span> <span style="color: #0000ff;">OF</span> oDlg ;<br />                    <span style="color: #0000ff;">pixel</span>  <span style="color: #0000ff;">color</span> CLR_BLACK,CLR_WHITE <span style="color: #0000ff;">FONT</span> ofont2 <br />     @ <span style="color: #000000;">100</span>, <span style="color: #000000;">130</span> <span style="color: #0000ff;">say</span>  hVar1<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"Change_PercentChange"</span><span style="color: #000000;">&#93;</span>  <span style="color: #0000ff;">OF</span> oDlg ;<br />                    <span style="color: #0000ff;">pixel</span>  <span style="color: #0000ff;">color</span> CLR_BLACK,CLR_WHITE <span style="color: #0000ff;">FONT</span> ofont2 <br />                                        <br />       <br />                    <br />     @ <span style="color: #000000;">110</span>, <span style="color: #000000;">50</span> <span style="color: #0000ff;">say</span> <span style="color: #ff0000;">"Maximo Anual "</span> <span style="color: #0000ff;">OF</span> oDlg ;<br />                        <span style="color: #0000ff;">pixel</span>   <span style="color: #0000ff;">color</span> CLR_BLACK,CLR_WHITE <span style="color: #0000ff;">FONT</span> ofont2 <br />                        <br />     @ <span style="color: #000000;">110</span>, <span style="color: #000000;">130</span> <span style="color: #0000ff;">say</span> hVar1<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"YearHigh"</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">OF</span> oDlg ;<br />                        <span style="color: #0000ff;">pixel</span>   <span style="color: #0000ff;">color</span> CLR_BLACK,CLR_WHITE <span style="color: #0000ff;">FONT</span> ofont2 <br />                                <br />  <br />     @ <span style="color: #000000;">120</span>, <span style="color: #000000;">50</span> <span style="color: #0000ff;">say</span> <span style="color: #ff0000;">"Minimo Anual: "</span>  <span style="color: #0000ff;">OF</span> oDlg ;<br />                        <span style="color: #0000ff;">pixel</span> <span style="color: #0000ff;">color</span> CLR_BLACK,CLR_WHITE <span style="color: #0000ff;">FONT</span> ofont2 <br />     @ <span style="color: #000000;">120</span>, <span style="color: #000000;">130</span> <span style="color: #0000ff;">say</span>  hVar1<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"YearLow"</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">OF</span> oDlg ;<br />                        <span style="color: #0000ff;">pixel</span> <span style="color: #0000ff;">color</span> CLR_BLACK,CLR_WHITE <span style="color: #0000ff;">FONT</span> ofont2 <br />    <br /> <br /><br />     <br />         <br />    @ <span style="color: #000000;">270</span>, <span style="color: #000000;">100</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"&Ok"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">40</span>, <span style="color: #000000;">12</span>  <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">pixel</span> ;<br />      <span style="color: #0000ff;">ACTION</span> odlg:<span style="color: #000000;">end</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">FONT</span> oFont2<br />   <br /> <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span> <span style="color: #0000ff;">on</span> <span style="color: #0000ff;">paint</span>  DlgStatusBar<span style="color: #000000;">&#40;</span>oDlg, <span style="color: #000000;">68</span>,, .t. <span style="color: #000000;">&#41;</span> <br />  <br />  ofont1:<span style="color: #000000;">end</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />  ofont2:<span style="color: #000000;">end</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>  <br /><br /> <span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #B900B9;">//------------------------------------------------------------------------------</span><br /><span style="color: #B900B9;">//------------------------------------------------------------------------------</span><br /><br /><span style="color: #00C800;">Function</span> DlgStatusBar<span style="color: #000000;">&#40;</span>oDlg, nHeight, nCorrec , lColor <span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">Local</span> nDlgHeight := oDlg:<span style="color: #000000;">nHeight</span><br /><span style="color: #00C800;">Local</span> aColor     := <span style="color: #000000;">&#123;</span> <span style="color: #000000;">&#123;</span> <span style="color: #000000;">0.40</span>, nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">200</span>, <span style="color: #000000;">200</span>, <span style="color: #000000;">200</span> <span style="color: #000000;">&#41;</span>, nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">184</span>, <span style="color: #000000;">184</span>, <span style="color: #000000;">184</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span>,;<br />                    <span style="color: #000000;">&#123;</span> <span style="color: #000000;">0.60</span>, nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">184</span>, <span style="color: #000000;">184</span>, <span style="color: #000000;">184</span> <span style="color: #000000;">&#41;</span>, nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">150</span>, <span style="color: #000000;">150</span>, <span style="color: #000000;">150</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span><br /><br /><span style="color: #00C800;">DEFAULT</span> nHeight  := <span style="color: #000000;">72</span><br /><span style="color: #00C800;">DEFAULT</span> nCorrec  := <span style="color: #000000;">0</span><br /><span style="color: #00C800;">DEFAULT</span> lColor   := .F.<br /><br />nDlgHeight:= nDlgHeight+ncorrec<br /><span style="color: #00C800;">IF</span> lColor<br />   GradienTfill<span style="color: #000000;">&#40;</span>oDlg:<span style="color: #000000;">hDC</span>,nDlgHeight-<span style="color: #000000;">&#40;</span> nHeight<span style="color: #000000;">-2</span> <span style="color: #000000;">&#41;</span>,<span style="color: #000000;">0</span>,nDlgHeight<span style="color: #000000;">-20</span>,oDlg:<span style="color: #000000;">nWidth</span>, aColor ,.t.<span style="color: #000000;">&#41;</span><br />   WndBoxIn<span style="color: #000000;">&#40;</span> oDlg:<span style="color: #000000;">hDc</span>,nDlgHeight-<span style="color: #000000;">&#40;</span> nHeight<span style="color: #000000;">-1</span> <span style="color: #000000;">&#41;</span>,<span style="color: #000000;">0</span>,nDlgHeight-<span style="color: #000000;">&#40;</span> nHeight <span style="color: #000000;">&#41;</span>,oDlg:<span style="color: #000000;">nWidth</span> <span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">ELSE</span><br />   WndBoxIn<span style="color: #000000;">&#40;</span> oDlg:<span style="color: #000000;">hDc</span>,nDlgHeight -<span style="color: #000000;">&#40;</span> nHeight<span style="color: #000000;">-1</span> <span style="color: #000000;">&#41;</span>,<span style="color: #000000;">4</span>,nDlgHeight-<span style="color: #000000;">&#40;</span> nHeight <span style="color: #000000;">&#41;</span>,oDlg:<span style="color: #000000;">nWidth</span> - <span style="color: #000000;">10</span> <span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">endif</span><br /><br /><span style="color: #00C800;">Return</span> <span style="color: #00C800;">Nil</span><br /><br /><span style="color: #B900B9;">//------------------------------------------------------------------------------</span><br /><br /><span style="color: #00C800;">FUNCTION</span> DlgBarTitle<span style="color: #000000;">&#40;</span> oWnd, cTitle, cBmp ,nHeight <span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">LOCAL</span> oFont<br />   <span style="color: #00C800;">LOCAL</span> oTitle<br />   <span style="color: #00C800;">LOCAL</span> nColText := <span style="color: #000000;">180</span><br />   <span style="color: #00C800;">LOCAL</span> nRowImg  := <span style="color: #000000;">0</span><br />   <br /><br />   <span style="color: #00C800;">DEFAULT</span> cTitle  := <span style="color: #ff0000;">""</span><br />   <span style="color: #00C800;">DEFAULT</span> nHeight := <span style="color: #000000;">48</span><br /><br />   <span style="color: #00C800;">IF</span> nHeight < <span style="color: #000000;">48</span><br />      nColText := <span style="color: #000000;">60</span><br />      nRowImg  := <span style="color: #000000;">12</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;">"Arial"</span> <span style="color: #0000ff;">size</span> <span style="color: #000000;">10</span>, <span style="color: #000000;">30</span><br />   <span style="color: #00C800;">ELSE</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;">"Arial"</span> <span style="color: #0000ff;">size</span> <span style="color: #000000;">12</span>, <span style="color: #000000;">30</span><br />   <span style="color: #00C800;">endif</span><br /><br />    @ <span style="color: #000000;">-1</span>, <span style="color: #000000;">-1</span>  <span style="color: #0000ff;">TITLE</span> oTitle <span style="color: #0000ff;">size</span> oWnd:<span style="color: #000000;">nWidth</span><span style="color: #000000;">+1</span>, nHeight<span style="color: #000000;">+1</span> <span style="color: #0000ff;">of</span> oWnd SHADOWSIZE <span style="color: #000000;">0</span><br />   <br />   @  nRowImg,  <span style="color: #000000;">10</span>  TITLEIMG  <span style="color: #0000ff;">OF</span> oTitle BITMAP cBmp  <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">48</span>, <span style="color: #000000;">48</span> REFLEX ;<br />          TRANSPARENT<br />   <br />    @  nRowImg<span style="color: #000000;">-2</span> ,  nColText TITLETEXT <span style="color: #0000ff;">OF</span> oTitle <span style="color: #0000ff;">TEXT</span> cTitle <span style="color: #0000ff;">COLOR</span> CLR_BLACK <span style="color: #0000ff;">FONT</span> oFont<br /><br />    oTitle:<span style="color: #000000;">aGrdBack</span> := <span style="color: #000000;">&#123;</span> <span style="color: #000000;">&#123;</span> <span style="color: #000000;">1</span>, RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">255</span>, <span style="color: #000000;">255</span>, <span style="color: #000000;">255</span> <span style="color: #000000;">&#41;</span>, RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">229</span>, <span style="color: #000000;">233</span>, <span style="color: #000000;">238</span> <span style="color: #000000;">&#41;</span>  <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span><br />    oTitle:<span style="color: #000000;">nShadowIntensity</span> = <span style="color: #000000;">0</span><br />    oTitle:<span style="color: #000000;">nShadow</span> = <span style="color: #000000;">0</span><br />    oTitle:<span style="color: #000000;">nClrLine1</span> := nrgb<span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span>,<span style="color: #000000;">0</span>,<span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span><br />    oTitle:<span style="color: #000000;">nClrLine2</span> := RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">229</span>, <span style="color: #000000;">233</span>, <span style="color: #000000;">238</span> <span style="color: #000000;">&#41;</span><br />    oWnd:<span style="color: #000000;">oTop</span>:= oTitle<br />    <br />      <br /><br /><span style="color: #00C800;">RETURN</span> oTitle<br /><br /><br /> </div>[/code:1h2uxu4w]
to Mastintin : yahoo financial
Manuel, First I make some modify (add the proxy setup as meteo) [code=fw:2u8v2cuw]<div class="fw" id="{CB}" style="font-family: monospace;"> <br /><br /><span style="color: #B900B9;">// Our first DialogBox sample</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;">"ttitle.ch"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"constant.ch"</span><br /><br /><span style="color: #00D7D7;">#define</span> HTTPREQUEST_PROXYSETTING_DEFAULT   <span style="color: #000000;">0</span><br /><span style="color: #00D7D7;">#define</span> HTTPREQUEST_PROXYSETTING_PRECONFIG <span style="color: #000000;">0</span><br /><span style="color: #00D7D7;">#define</span> HTTPREQUEST_PROXYSETTING_DIRECT    <span style="color: #000000;">1</span><br /><span style="color: #00D7D7;">#define</span> HTTPREQUEST_PROXYSETTING_PROXY     <span style="color: #000000;">2</span><br /><br /><br /><span style="color: #00D7D7;">#define</span> HTTPREQUEST_SETCREDENTIALS_FOR_SERVER  <span style="color: #000000;">0</span><br /><span style="color: #00D7D7;">#define</span> HTTPREQUEST_SETCREDENTIALS_FOR_PROXY   <span style="color: #000000;">1</span><br /><br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />  <span style="color: #00C800;">local</span> obmp ,cBmp<br />  <span style="color: #00C800;">local</span> oDlg, oIco ,cValor:= <span style="color: #ff0000;">"BHP.AX"</span>+space<span style="color: #000000;">&#40;</span><span style="color: #000000;">20</span><span style="color: #000000;">&#41;</span>  <span style="color: #B900B9;">// "GOOGL"+space(20) // "AAPL"+space(20)</span><br />   <span style="color: #00C800;">local</span> ofont<br /><br /><br />  <span style="color: #00C800;">local</span> lProxy<br />  <span style="color: #00C800;">Local</span> cIniFile  := cFilePath<span style="color: #000000;">&#40;</span>GetModuleFileName<span style="color: #000000;">&#40;</span> GetInstance<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">"finanza.ini"</span><br /><br /><br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">Font</span> ofont <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"Verdana"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>,<span style="color: #000000;">14</span><br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">ICON</span> oIco FILE <span style="color: #ff0000;">"c:<span style="color: #000000;">\w</span>ork<span style="color: #000000;">\f</span>wh<span style="color: #000000;">\i</span>cons<span style="color: #000000;">\f</span>ivewin.ico"</span><br /><br /><br />    lProxy:=Request_Proxy<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><br />     <span style="color: #00C800;">If</span> lProxy<br />        cSection :=<span style="color: #ff0000;">"Config"</span><br />        cIniFile  := cFilePath<span style="color: #000000;">&#40;</span>GetModuleFileName<span style="color: #000000;">&#40;</span> GetInstance<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">"finanza.ini"</span><br />        PROXY_SCHOOL  := GetIni<span style="color: #000000;">&#40;</span>cIniFile, cSection, <span style="color: #ff0000;">"Proxy"</span><span style="color: #000000;">&#41;</span><br />        NPORT     := val<span style="color: #000000;">&#40;</span>GetIni<span style="color: #000000;">&#40;</span>cIniFile, cSection, <span style="color: #ff0000;">"Port"</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />        USERNAME := GetIni<span style="color: #000000;">&#40;</span>cIniFile, cSection, <span style="color: #ff0000;">"Username"</span><span style="color: #000000;">&#41;</span><br />        PASSWORD := GetIni<span style="color: #000000;">&#40;</span>cIniFile, cSection, <span style="color: #ff0000;">"Password"</span><span style="color: #000000;">&#41;</span><br />     <span style="color: #00C800;">Endif</span><br /><br /><br /><br /><br /><br /><br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Ciudad a buscar"</span> ;<br />      <span style="color: #0000ff;">ICON</span> oIco <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">350</span>, <span style="color: #000000;">240</span><br /><br /> <span style="color: #B900B9;">//  @ 30,10  IMAGE oBmp FILE cBmp OF oDlg size 142,35 pixel NOBORDER</span><br /><br /><br /><br />     @ <span style="color: #000000;">60</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">"Introduce el Valor a buscar :"</span> <span style="color: #0000ff;">size</span> <span style="color: #000000;">100</span>, <span style="color: #000000;">12</span> ;<br />                        <span style="color: #0000ff;">FONT</span> oFont <span style="color: #0000ff;">pixel</span> <span style="color: #0000ff;">OF</span> oDlg<br /><br />     @ <span style="color: #000000;">70</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">GET</span> cValor <span style="color: #0000ff;">size</span> <span style="color: #000000;">120</span>, <span style="color: #000000;">12</span> <span style="color: #0000ff;">FONT</span> oFont <span style="color: #0000ff;">pixel</span> <span style="color: #0000ff;">OF</span> oDlg<br /><br />     @ <span style="color: #000000;">105</span>, <span style="color: #000000;">85</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"&Buscar"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">40</span>, <span style="color: #000000;">12</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">pixel</span> ;<br />              <span style="color: #0000ff;">FONT</span> oFont ;<br />              <span style="color: #0000ff;">ACTION</span> llamada<span style="color: #000000;">&#40;</span>cValor,lProxy<span style="color: #000000;">&#41;</span><br /><br />     @ <span style="color: #000000;">105</span>,<span style="color: #000000;">130</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"&Salir"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">40</span>, <span style="color: #000000;">12</span> <span style="color: #0000ff;">pixel</span> <span style="color: #0000ff;">OF</span> oDlg;<br />               <span style="color: #0000ff;">FONT</span> oFont ;<br />               <span style="color: #0000ff;">ACTION</span> oDlg:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><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;">INIT</span>  DlgBarTitle<span style="color: #000000;">&#40;</span> oDlg, <span style="color: #ff0000;">"  Servicio Finaciero"</span>,<span style="color: #ff0000;">"c:<span style="color: #000000;">\f</span>wh<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\a</span>lphaBmp<span style="color: #000000;">\w</span>eather.bmp"</span> ,<span style="color: #000000;">44</span> <span style="color: #000000;">&#41;</span>  ;<br />    <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">PAINT</span> DlgStatusBar<span style="color: #000000;">&#40;</span>oDlg, <span style="color: #000000;">68</span>,, .t. <span style="color: #000000;">&#41;</span><br /><br />   oFont:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #B900B9;">//------------------------------------------------------------------------------</span><br /><br /> <span style="color: #B900B9;">//--------------------------------------------------------------------------//</span><br /><br /><br /><span style="color: #00C800;">Function</span> Request_Proxy<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">Local</span>   lReturn<br /><br />   <span style="color: #00C800;">IF</span> MsgyesNo<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Devo usare il proxy ?"</span><span style="color: #000000;">&#41;</span><br />      lReturn :=.t.<br />       Valid_Proxy<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">else</span><br />      lReturn :=.f.<br />   <span style="color: #00C800;">endif</span><br />   <span style="color: #00C800;">return</span> lReturn<br /><br /><span style="color: #B900B9;">//------------------------------------------------------------------------------//</span><br /><br /><br /><span style="color: #00C800;">Function</span> Valid_Proxy<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />       <span style="color: #00C800;">Local</span> oDlgProxy,oFont<br />       <span style="color: #00C800;">Local</span> cIniFile  := cFilePath<span style="color: #000000;">&#40;</span>GetModuleFileName<span style="color: #000000;">&#40;</span> GetInstance<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">"finanza.ini"</span><br />       <span style="color: #00C800;">Local</span> nBottom   := <span style="color: #000000;">14</span><br />       <span style="color: #00C800;">Local</span> nRight    := <span style="color: #000000;">55</span><br />       <span style="color: #00C800;">Local</span> nWidth :=  <span style="color: #0000ff;">Max</span><span style="color: #000000;">&#40;</span> nRight * DLG_CHARPIX_W, <span style="color: #000000;">180</span> <span style="color: #000000;">&#41;</span><br />       <span style="color: #00C800;">Local</span> nHeight := nBottom * DLG_CHARPIX_H<br />       <span style="color: #00C800;">Local</span> oBtnHelp,oBtnOK,oBtnCan<br /><br /><br />       <span style="color: #00C800;">Local</span> cUSERNAME :=  pad<span style="color: #000000;">&#40;</span>GetPvProfString<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Config"</span>,<span style="color: #ff0000;">"Username"</span>       ,<span style="color: #ff0000;">"mioUsername"</span>    ,cIniFile <span style="color: #000000;">&#41;</span> , <span style="color: #000000;">40</span> ,<span style="color: #ff0000;">" "</span> <span style="color: #000000;">&#41;</span><br />       <span style="color: #00C800;">Local</span> cPASSWORD :=  pad<span style="color: #000000;">&#40;</span>GetPvProfString<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Config"</span>,<span style="color: #ff0000;">"Password"</span>       ,<span style="color: #ff0000;">"miapassword"</span>    ,cIniFile <span style="color: #000000;">&#41;</span> , <span style="color: #000000;">40</span> ,<span style="color: #ff0000;">" "</span> <span style="color: #000000;">&#41;</span><br />       <span style="color: #00C800;">Local</span> cPROXY    :=  pad<span style="color: #000000;">&#40;</span>GetPvProfString<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Config"</span>,<span style="color: #ff0000;">"Proxy"</span>       ,<span style="color: #ff0000;">"miaproxy"</span>    ,cIniFile <span style="color: #000000;">&#41;</span> , <span style="color: #000000;">45</span> ,<span style="color: #ff0000;">" "</span> <span style="color: #000000;">&#41;</span><br />       <span style="color: #00C800;">Local</span> nPORT     :=  pad<span style="color: #000000;">&#40;</span>GetPvProfString<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Config"</span>,<span style="color: #ff0000;">"Port"</span>   ,<span style="color: #ff0000;">"8080"</span>    ,cIniFile <span style="color: #000000;">&#41;</span> , <span style="color: #000000;">4</span> ,<span style="color: #ff0000;">" "</span> <span style="color: #000000;">&#41;</span><br /><br /><br />       <span style="color: #00C800;">Local</span> aGet<span style="color: #000000;">&#91;</span><span style="color: #000000;">4</span><span style="color: #000000;">&#93;</span><br /><br />       <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFont <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"MS Sans Serif"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">8</span><br /><br />     <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlgProxy <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Inserimento Proxy"</span> ;<br />      <span style="color: #0000ff;">FROM</span> <span style="color: #000000;">100</span>, <span style="color: #000000;">100</span> <span style="color: #0000ff;">TO</span> <span style="color: #000000;">230</span>,<span style="color: #000000;">600</span>  <span style="color: #0000ff;">pixel</span><br /><br /><br />     @ <span style="color: #000000;">12</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">"Proxy:"</span> <span style="color: #0000ff;">OF</span> oDlgProxy <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">60</span>, <span style="color: #000000;">8</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">FONT</span> oFont<br />     @ <span style="color: #000000;">10</span>, <span style="color: #000000;">45</span> <span style="color: #0000ff;">GET</span> aGet<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">VAR</span> cPROXY <span style="color: #0000ff;">OF</span> oDlgProxy <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">50</span>, <span style="color: #000000;">12</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">FONT</span> oFont<br /><br />     @ <span style="color: #000000;">26</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">"Porta:"</span> <span style="color: #0000ff;">OF</span> oDlgProxy <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">80</span>, <span style="color: #000000;">8</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">FONT</span> oFont<br />     @ <span style="color: #000000;">24</span>, <span style="color: #000000;">45</span> <span style="color: #0000ff;">GET</span> aGet<span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">var</span> nPORT   <span style="color: #0000ff;">OF</span> oDlgProxy <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">44</span>, <span style="color: #000000;">12</span> <span style="color: #0000ff;">PIXEL</span>  <span style="color: #0000ff;">FONT</span> oFont<br /><br />     @ <span style="color: #000000;">12</span>, <span style="color: #000000;">120</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">"Codice utente:"</span> <span style="color: #0000ff;">OF</span> oDlgProxy <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">80</span>, <span style="color: #000000;">8</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">FONT</span> oFont<br />     @ <span style="color: #000000;">10</span>, <span style="color: #000000;">175</span> <span style="color: #0000ff;">GET</span> aGet<span style="color: #000000;">&#91;</span><span style="color: #000000;">3</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">var</span> cUSERNAME <span style="color: #0000ff;">OF</span> oDlgProxy <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">44</span>, <span style="color: #000000;">12</span> <span style="color: #0000ff;">PIXEL</span>  <span style="color: #0000ff;">FONT</span> oFont<br /><br />     @ <span style="color: #000000;">26</span>, <span style="color: #000000;">120</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">"Password:"</span> <span style="color: #0000ff;">OF</span> oDlgProxy <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">80</span>, <span style="color: #000000;">8</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">FONT</span> oFont<br />     @ <span style="color: #000000;">24</span>, <span style="color: #000000;">175</span> <span style="color: #0000ff;">GET</span> aGet<span style="color: #000000;">&#91;</span><span style="color: #000000;">4</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">var</span> cPASSWORD <span style="color: #0000ff;">OF</span> oDlgProxy <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">44</span>, <span style="color: #000000;">12</span> <span style="color: #0000ff;">PIXEL</span>  <span style="color: #0000ff;">FONT</span> oFont<br /><br /><br /><br />   @ <span style="color: #000000;">46</span>, <span style="color: #000000;">4</span> <span style="color: #0000ff;">BUTTON</span> oBtnHelp <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"&Aiuto"</span> <span style="color: #0000ff;">OF</span> oDlgProxy <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">42</span>, <span style="color: #000000;">12</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">FONT</span> oFont  <span style="color: #0000ff;">ACTION</span> Helpindex<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   @ <span style="color: #000000;">46</span>, <span style="color: #000000;">160</span> <span style="color: #0000ff;">BUTTON</span> oBtnOK <span style="color: #0000ff;">PROMPT</span> I18n<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Conferma"</span><span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">OF</span> oDlgProxy <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">42</span>, <span style="color: #000000;">12</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">FONT</span> oFont <span style="color: #00C800;">DEFAULT</span> <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">&#40;</span>oDlgProxy:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span>IDOK <span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />   @ <span style="color: #000000;">46</span>, <span style="color: #000000;">204</span> <span style="color: #0000ff;">BUTTON</span> oBtnCan <span style="color: #0000ff;">PROMPT</span> i18n<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Annulla"</span><span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">OF</span> oDlgProxy <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">42</span>, <span style="color: #000000;">12</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">FONT</span> oFont CANCEL <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">&#40;</span>oDlgProxy:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span>IDCANCEL<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />     <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlgProxy <span style="color: #0000ff;">CENTERED</span><br /><br /><br />     <span style="color: #00C800;">if</span> oDlgProxy:<span style="color: #000000;">nresult</span> == IDOK<br /><br />     SetIni<span style="color: #000000;">&#40;</span> cInifile, <span style="color: #ff0000;">"Config"</span>, <span style="color: #ff0000;">"Proxy"</span>, cPROXY <span style="color: #000000;">&#41;</span><br />     SetIni<span style="color: #000000;">&#40;</span> cInifile, <span style="color: #ff0000;">"Config"</span>, <span style="color: #ff0000;">"Username"</span>, cUSERNAME <span style="color: #000000;">&#41;</span><br />     SetIni<span style="color: #000000;">&#40;</span> cInifile, <span style="color: #ff0000;">"Config"</span>, <span style="color: #ff0000;">"Password"</span>, cPASSWORD <span style="color: #000000;">&#41;</span><br />     SetIni<span style="color: #000000;">&#40;</span> cInifile, <span style="color: #ff0000;">"Config"</span>, <span style="color: #ff0000;">"Port"</span>, nPORT <span style="color: #000000;">&#41;</span><br /><br />  <span style="color: #00C800;">endif</span><br /><br />  <span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><br /><span style="color: #B900B9;">//------------------------------------------------------------------------------</span><br /><br /><br /><span style="color: #00C800;">Function</span> llamada<span style="color: #000000;">&#40;</span>cValor,lProxy<span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">local</span> oHttp<br /><span style="color: #00C800;">local</span> cResp<br /><span style="color: #00C800;">local</span> cDir<br /><span style="color: #00C800;">local</span> Formato :=  <span style="color: #ff0000;">"json"</span><br /><br /><br />cDir := <span style="color: #ff0000;">"https://query.yahooapis.com/v1/public/yql?q=select * from yahoo.finance.quotes where symbol in ( '"</span>+ cValor+ <span style="color: #ff0000;">"')"</span><br /><br />cDir := cDir + <span style="color: #ff0000;">"&format="</span>+ Formato +<span style="color: #ff0000;">"&region=ES"</span>+<span style="color: #ff0000;">"&lang=it-IT"</span>+<span style="color: #ff0000;">"&env=store%3A%2F%2Fdatatables.org%2Falltableswithkeys&callback="</span><br /><br /><span style="color: #B900B9;">//cDir := cDir + "&format="+ Formato +"&diagnostics=true&env=store%3A%2F%2Fdatatables.org%2Falltableswithkeys&callback="</span><br /><br /><span style="color: #B900B9;">//cDir := "https://query.yahooapis.com/v1/public/yql?q=select * from weather.forecast where woeid in (select woeid from geo.places(1)"</span><br /><span style="color: #B900B9;">//cDir:= cDir + " where text= '"+ cValor +"' ) and u='"+cUnits+"'&format=" + Formato</span><br /><br /><br /><br /><br /><br />     <span style="color: #00C800;">If</span> lProxy<br />        cSection :=<span style="color: #ff0000;">"Config"</span><br />        cIniFile  := cFilePath<span style="color: #000000;">&#40;</span>GetModuleFileName<span style="color: #000000;">&#40;</span> GetInstance<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">"finanza.ini"</span><br />        PROXY_SCHOOL    := GetIni<span style="color: #000000;">&#40;</span>cIniFile, cSection, <span style="color: #ff0000;">"Proxy"</span><span style="color: #000000;">&#41;</span><br />        NPORT     := val<span style="color: #000000;">&#40;</span>GetIni<span style="color: #000000;">&#40;</span>cIniFile, cSection, <span style="color: #ff0000;">"Port"</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />        USERNAME := GetIni<span style="color: #000000;">&#40;</span>cIniFile, cSection, <span style="color: #ff0000;">"Username"</span><span style="color: #000000;">&#41;</span><br />        PASSWORD := GetIni<span style="color: #000000;">&#40;</span>cIniFile, cSection, <span style="color: #ff0000;">"Password"</span><span style="color: #000000;">&#41;</span><br />       <span style="color: #00C800;">Endif</span><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br />  <span style="color: #00C800;">Try</span><br />      oHttp := CreateObject<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"winhttp.winhttprequest.5.1"</span> <span style="color: #000000;">&#41;</span><br /><br />      <span style="color: #00C800;">if</span> lProxy<br />         oHttp:<span style="color: #000000;">SetProxy</span><span style="color: #000000;">&#40;</span> HTTPREQUEST_PROXYSETTING_PROXY, PROXY_SCHOOL+<span style="color: #ff0000;">":"</span>+alltrim<span style="color: #000000;">&#40;</span>str<span style="color: #000000;">&#40;</span>NPORT<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br /><br />      <span style="color: #00C800;">endif</span><br /><br /><br />      oHttp:<span style="color: #000000;">Open</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"GET"</span>, cDir, .f. <span style="color: #000000;">&#41;</span><br /><br />       <span style="color: #00C800;">if</span> lProxy<br />         oHttp:<span style="color: #000000;">SetCredentials</span><span style="color: #000000;">&#40;</span>USERNAME,PASSWORD,HTTPREQUEST_SETCREDENTIALS_FOR_PROXY<span style="color: #000000;">&#41;</span><br />      <span style="color: #00C800;">endif</span><br /><br />      oHttp:<span style="color: #000000;">Send</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />       *cResp := oHttp:<span style="color: #000000;">ResponseBody</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />      cResp := oHttp:<span style="color: #000000;">ResponseText</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />      <span style="color: #B900B9;">// memowrit("finance.txt",cResp )</span><br />      leejson<span style="color: #000000;">&#40;</span> cResp, cValor ,lProxy<span style="color: #000000;">&#41;</span><br /><br /><br />  Catch<br />      MsgStop<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Error"</span> <span style="color: #000000;">&#41;</span><br />      <span style="color: #00C800;">Return</span> cResp<br />   End <span style="color: #00C800;">Try</span><br /><br /><br /><span style="color: #00C800;">Return</span> cResp<br /><br /><span style="color: #B900B9;">//------------------------------------------------------------------------------</span><br /><br /><span style="color: #00C800;">function</span> Leejson<span style="color: #000000;">&#40;</span>cResp,cValor ,lProxy<span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">local</span> hvar<br /><span style="color: #00C800;">local</span> hvar1,hvar2<br /><span style="color: #00C800;">local</span> cTexto:=<span style="color: #ff0000;">""</span><br /><span style="color: #00C800;">local</span> oDlg, cBmp<br /><span style="color: #00C800;">local</span> nValor<br /><span style="color: #00C800;">local</span> oBmp<br /><span style="color: #00C800;">local</span> ofont1,ofont2<br /><span style="color: #00C800;">Local</span> oBrwForecast<br /><br /><span style="color: #00C800;">local</span> aForecast:= <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span><br /><span style="color: #00C800;">local</span> i<br /><span style="color: #00C800;">local</span> cImage,cMin,cMax,cData,cDay<br /><span style="color: #00C800;">local</span> ahTexto,hDias,cPrev<br /><span style="color: #00C800;">local</span> cUrl<br /><span style="color: #00C800;">local</span> nRow:=<span style="color: #000000;">185</span><br /><span style="color: #00C800;">local</span> nCol:= <span style="color: #000000;">5</span><br /><span style="color: #00C800;">local</span> cTitle := <span style="color: #ff0000;">"Resultados para el Valor: "</span> + cValor<br />hb_jsondecode<span style="color: #000000;">&#40;</span> cResp, @hvar <span style="color: #000000;">&#41;</span><br /><br /><br />hvar1:= hvar<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"query"</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"results"</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"quote"</span><span style="color: #000000;">&#93;</span><br /><br /> <span style="color: #0000ff;">define</span> <span style="color: #0000ff;">font</span> ofont1 <span style="color: #0000ff;">name</span> <span style="color: #ff0000;">"Arial"</span> <span style="color: #0000ff;">size</span> <span style="color: #000000;">0</span>,<span style="color: #000000;">16</span> bold<br /><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">Font</span> ofont2 <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"Verdana"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>,<span style="color: #000000;">13</span><br /><br /><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Resultados"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">500</span>, <span style="color: #000000;">570</span> <span style="color: #0000ff;">pixel</span> <span style="color: #0000ff;">color</span> CLR_BLACK,CLR_WHITE<br /><br /><br />     @ <span style="color: #000000;">10</span> ,<span style="color: #000000;">80</span> <span style="color: #0000ff;">SAY</span> alltrim<span style="color: #000000;">&#40;</span> cTitle <span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">180</span>, <span style="color: #000000;">20</span> ;<br />                        <span style="color: #0000ff;">pixel</span> <span style="color: #0000ff;">Font</span> ofont1 <span style="color: #0000ff;">color</span> CLR_BLACK,CLR_WHITE<br /><br />     @ <span style="color: #000000;">25</span>, <span style="color: #000000;">70</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">"Fecha : "</span>+ alltrim<span style="color: #000000;">&#40;</span>hvar<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"query"</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"created"</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span>  <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">180</span>, <span style="color: #000000;">20</span> <span style="color: #0000ff;">OF</span> oDlg ;<br />                    <span style="color: #0000ff;">pixel</span>  <span style="color: #0000ff;">color</span> CLR_BLACK,CLR_WHITE <span style="color: #0000ff;">FONT</span> ofont2<br /><br /><br />     @ <span style="color: #000000;">50</span>, <span style="color: #000000;">50</span> <span style="color: #0000ff;">say</span> alltrim<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Valor :"</span> <span style="color: #000000;">&#41;</span>  <span style="color: #0000ff;">OF</span> oDlg ;<br />               <span style="color: #0000ff;">pixel</span> <span style="color: #0000ff;">color</span> CLR_BLACK,CLR_WHITE <span style="color: #0000ff;">FONT</span> ofont2<br /><br />     @ <span style="color: #000000;">50</span>, <span style="color: #000000;">130</span> <span style="color: #0000ff;">say</span> alltrim<span style="color: #000000;">&#40;</span> hVar1<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"symbol"</span><span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span>  <span style="color: #0000ff;">OF</span> oDlg ;<br />              <span style="color: #0000ff;">pixel</span> <span style="color: #0000ff;">color</span> CLR_BLACK,CLR_WHITE <span style="color: #0000ff;">FONT</span> ofont2<br /><br /><br />     @ <span style="color: #000000;">60</span>, <span style="color: #000000;">50</span> <span style="color: #0000ff;">say</span> <span style="color: #ff0000;">"Volumen Medio "</span> <span style="color: #0000ff;">OF</span> oDlg ;<br />             <span style="color: #0000ff;">pixel</span>  <span style="color: #0000ff;">color</span> CLR_BLACK,CLR_WHITE <span style="color: #0000ff;">FONT</span> ofont2<br />     @ <span style="color: #000000;">60</span>, <span style="color: #000000;">130</span> <span style="color: #0000ff;">say</span>  hVar1<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"AverageDailyVolume"</span><span style="color: #000000;">&#93;</span>  <span style="color: #0000ff;">OF</span> oDlg ;<br />             <span style="color: #0000ff;">pixel</span>  <span style="color: #0000ff;">color</span> CLR_BLACK,CLR_WHITE <span style="color: #0000ff;">FONT</span> ofont2<br /><br /><br />     @ <span style="color: #000000;">70</span>, <span style="color: #000000;">50</span> <span style="color: #0000ff;">say</span> <span style="color: #ff0000;">"Demanda "</span>  <span style="color: #0000ff;">OF</span> oDlg ;<br />                     <span style="color: #0000ff;">pixel</span>  <span style="color: #0000ff;">color</span> CLR_BLACK,CLR_WHITE <span style="color: #0000ff;">FONT</span> ofont2<br /><br />     @ <span style="color: #000000;">70</span>, <span style="color: #000000;">130</span> <span style="color: #0000ff;">say</span>  hVar1<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"AskRealtime"</span><span style="color: #000000;">&#93;</span>  <span style="color: #0000ff;">OF</span> oDlg ;<br />                     <span style="color: #0000ff;">pixel</span>  <span style="color: #0000ff;">color</span> CLR_BLACK,CLR_WHITE <span style="color: #0000ff;">FONT</span> ofont2<br /><br />     @ <span style="color: #000000;">80</span>, <span style="color: #000000;">50</span> <span style="color: #0000ff;">say</span> <span style="color: #ff0000;">"Oferta "</span>  <span style="color: #0000ff;">OF</span> oDlg ;<br />                     <span style="color: #0000ff;">pixel</span>  <span style="color: #0000ff;">color</span> CLR_BLACK,CLR_WHITE <span style="color: #0000ff;">FONT</span> ofont2<br /><br />     @ <span style="color: #000000;">80</span>, <span style="color: #000000;">130</span> <span style="color: #0000ff;">say</span>  hVar1<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"BidRealtime"</span><span style="color: #000000;">&#93;</span>  <span style="color: #0000ff;">OF</span> oDlg ;<br />                     <span style="color: #0000ff;">pixel</span>  <span style="color: #0000ff;">color</span> CLR_BLACK,CLR_WHITE <span style="color: #0000ff;">FONT</span> ofont2<br /><br /><br /><br /><br /><br />  <span style="color: #B900B9;">//   @ 85, 95 say "Atmosfera " OF oDlg ;</span><br />   <span style="color: #B900B9;">//                     pixel  color CLR_BLACK,CLR_WHITE FONT ofont1</span><br /><br />     @ <span style="color: #000000;">100</span>, <span style="color: #000000;">50</span> <span style="color: #0000ff;">say</span> <span style="color: #ff0000;">"Ultimo Cambio "</span> <span style="color: #0000ff;">OF</span> oDlg ;<br />                    <span style="color: #0000ff;">pixel</span>  <span style="color: #0000ff;">color</span> CLR_BLACK,CLR_WHITE <span style="color: #0000ff;">FONT</span> ofont2<br />     @ <span style="color: #000000;">100</span>, <span style="color: #000000;">130</span> <span style="color: #0000ff;">say</span>  hVar1<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"Change_PercentChange"</span><span style="color: #000000;">&#93;</span>  <span style="color: #0000ff;">OF</span> oDlg ;<br />                    <span style="color: #0000ff;">pixel</span>  <span style="color: #0000ff;">color</span> CLR_BLACK,CLR_WHITE <span style="color: #0000ff;">FONT</span> ofont2<br /><br /><br /><br />     @ <span style="color: #000000;">110</span>, <span style="color: #000000;">50</span> <span style="color: #0000ff;">say</span> <span style="color: #ff0000;">"Maximo Anual "</span> <span style="color: #0000ff;">OF</span> oDlg ;<br />                        <span style="color: #0000ff;">pixel</span>   <span style="color: #0000ff;">color</span> CLR_BLACK,CLR_WHITE <span style="color: #0000ff;">FONT</span> ofont2<br /><br />     @ <span style="color: #000000;">110</span>, <span style="color: #000000;">130</span> <span style="color: #0000ff;">say</span> hVar1<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"YearHigh"</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">OF</span> oDlg ;<br />                        <span style="color: #0000ff;">pixel</span>   <span style="color: #0000ff;">color</span> CLR_BLACK,CLR_WHITE <span style="color: #0000ff;">FONT</span> ofont2<br /><br /><br />     @ <span style="color: #000000;">120</span>, <span style="color: #000000;">50</span> <span style="color: #0000ff;">say</span> <span style="color: #ff0000;">"Minimo Anual: "</span>  <span style="color: #0000ff;">OF</span> oDlg ;<br />                        <span style="color: #0000ff;">pixel</span> <span style="color: #0000ff;">color</span> CLR_BLACK,CLR_WHITE <span style="color: #0000ff;">FONT</span> ofont2<br />     @ <span style="color: #000000;">120</span>, <span style="color: #000000;">130</span> <span style="color: #0000ff;">say</span>  hVar1<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"YearLow"</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">OF</span> oDlg ;<br />                        <span style="color: #0000ff;">pixel</span> <span style="color: #0000ff;">color</span> CLR_BLACK,CLR_WHITE <span style="color: #0000ff;">FONT</span> ofont2<br /><br /><br /><br /><br /><br />    @ <span style="color: #000000;">270</span>, <span style="color: #000000;">100</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"&Ok"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">40</span>, <span style="color: #000000;">12</span>  <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">pixel</span> ;<br />      <span style="color: #0000ff;">ACTION</span> odlg:<span style="color: #000000;">end</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">FONT</span> oFont2<br /><br /> <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span> <span style="color: #0000ff;">on</span> <span style="color: #0000ff;">paint</span>  DlgStatusBar<span style="color: #000000;">&#40;</span>oDlg, <span style="color: #000000;">68</span>,, .t. <span style="color: #000000;">&#41;</span><br /><br />  ofont1:<span style="color: #000000;">end</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />  ofont2:<span style="color: #000000;">end</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /> <span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #B900B9;">//------------------------------------------------------------------------------</span><br /><span style="color: #B900B9;">//------------------------------------------------------------------------------</span><br /><br /><span style="color: #00C800;">Function</span> DlgStatusBar<span style="color: #000000;">&#40;</span>oDlg, nHeight, nCorrec , lColor <span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">Local</span> nDlgHeight := oDlg:<span style="color: #000000;">nHeight</span><br /><span style="color: #00C800;">Local</span> aColor     := <span style="color: #000000;">&#123;</span> <span style="color: #000000;">&#123;</span> <span style="color: #000000;">0.40</span>, nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">200</span>, <span style="color: #000000;">200</span>, <span style="color: #000000;">200</span> <span style="color: #000000;">&#41;</span>, nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">184</span>, <span style="color: #000000;">184</span>, <span style="color: #000000;">184</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span>,;<br />                    <span style="color: #000000;">&#123;</span> <span style="color: #000000;">0.60</span>, nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">184</span>, <span style="color: #000000;">184</span>, <span style="color: #000000;">184</span> <span style="color: #000000;">&#41;</span>, nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">150</span>, <span style="color: #000000;">150</span>, <span style="color: #000000;">150</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span><br /><br /><span style="color: #00C800;">DEFAULT</span> nHeight  := <span style="color: #000000;">72</span><br /><span style="color: #00C800;">DEFAULT</span> nCorrec  := <span style="color: #000000;">0</span><br /><span style="color: #00C800;">DEFAULT</span> lColor   := .F.<br /><br />nDlgHeight:= nDlgHeight+ncorrec<br /><span style="color: #00C800;">IF</span> lColor<br />   GradienTfill<span style="color: #000000;">&#40;</span>oDlg:<span style="color: #000000;">hDC</span>,nDlgHeight-<span style="color: #000000;">&#40;</span> nHeight<span style="color: #000000;">-2</span> <span style="color: #000000;">&#41;</span>,<span style="color: #000000;">0</span>,nDlgHeight<span style="color: #000000;">-20</span>,oDlg:<span style="color: #000000;">nWidth</span>, aColor ,.t.<span style="color: #000000;">&#41;</span><br />   WndBoxIn<span style="color: #000000;">&#40;</span> oDlg:<span style="color: #000000;">hDc</span>,nDlgHeight-<span style="color: #000000;">&#40;</span> nHeight<span style="color: #000000;">-1</span> <span style="color: #000000;">&#41;</span>,<span style="color: #000000;">0</span>,nDlgHeight-<span style="color: #000000;">&#40;</span> nHeight <span style="color: #000000;">&#41;</span>,oDlg:<span style="color: #000000;">nWidth</span> <span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">ELSE</span><br />   WndBoxIn<span style="color: #000000;">&#40;</span> oDlg:<span style="color: #000000;">hDc</span>,nDlgHeight -<span style="color: #000000;">&#40;</span> nHeight<span style="color: #000000;">-1</span> <span style="color: #000000;">&#41;</span>,<span style="color: #000000;">4</span>,nDlgHeight-<span style="color: #000000;">&#40;</span> nHeight <span style="color: #000000;">&#41;</span>,oDlg:<span style="color: #000000;">nWidth</span> - <span style="color: #000000;">10</span> <span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">endif</span><br /><br /><span style="color: #00C800;">Return</span> <span style="color: #00C800;">Nil</span><br /><br /><span style="color: #B900B9;">//------------------------------------------------------------------------------</span><br /><br /><span style="color: #00C800;">FUNCTION</span> DlgBarTitle<span style="color: #000000;">&#40;</span> oWnd, cTitle, cBmp ,nHeight <span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">LOCAL</span> oFont<br />   <span style="color: #00C800;">LOCAL</span> oTitle<br />   <span style="color: #00C800;">LOCAL</span> nColText := <span style="color: #000000;">180</span><br />   <span style="color: #00C800;">LOCAL</span> nRowImg  := <span style="color: #000000;">0</span><br /><br /><br />   <span style="color: #00C800;">DEFAULT</span> cTitle  := <span style="color: #ff0000;">""</span><br />   <span style="color: #00C800;">DEFAULT</span> nHeight := <span style="color: #000000;">48</span><br /><br />   <span style="color: #00C800;">IF</span> nHeight < <span style="color: #000000;">48</span><br />      nColText := <span style="color: #000000;">60</span><br />      nRowImg  := <span style="color: #000000;">12</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;">"Arial"</span> <span style="color: #0000ff;">size</span> <span style="color: #000000;">10</span>, <span style="color: #000000;">30</span><br />   <span style="color: #00C800;">ELSE</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;">"Arial"</span> <span style="color: #0000ff;">size</span> <span style="color: #000000;">12</span>, <span style="color: #000000;">30</span><br />   <span style="color: #00C800;">endif</span><br /><br />    @ <span style="color: #000000;">-1</span>, <span style="color: #000000;">-1</span>  <span style="color: #0000ff;">TITLE</span> oTitle <span style="color: #0000ff;">size</span> oWnd:<span style="color: #000000;">nWidth</span><span style="color: #000000;">+1</span>, nHeight<span style="color: #000000;">+1</span> <span style="color: #0000ff;">of</span> oWnd SHADOWSIZE <span style="color: #000000;">0</span><br /><br />   @  nRowImg,  <span style="color: #000000;">10</span>  TITLEIMG  <span style="color: #0000ff;">OF</span> oTitle BITMAP cBmp  <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">48</span>, <span style="color: #000000;">48</span> REFLEX ;<br />          TRANSPARENT<br /><br />    @  nRowImg<span style="color: #000000;">-2</span> ,  nColText TITLETEXT <span style="color: #0000ff;">OF</span> oTitle <span style="color: #0000ff;">TEXT</span> cTitle <span style="color: #0000ff;">COLOR</span> CLR_BLACK <span style="color: #0000ff;">FONT</span> oFont<br /><br />    oTitle:<span style="color: #000000;">aGrdBack</span> := <span style="color: #000000;">&#123;</span> <span style="color: #000000;">&#123;</span> <span style="color: #000000;">1</span>, RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">255</span>, <span style="color: #000000;">255</span>, <span style="color: #000000;">255</span> <span style="color: #000000;">&#41;</span>, RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">229</span>, <span style="color: #000000;">233</span>, <span style="color: #000000;">238</span> <span style="color: #000000;">&#41;</span>  <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span><br />    oTitle:<span style="color: #000000;">nShadowIntensity</span> = <span style="color: #000000;">0</span><br />    oTitle:<span style="color: #000000;">nShadow</span> = <span style="color: #000000;">0</span><br />    oTitle:<span style="color: #000000;">nClrLine1</span> := nrgb<span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span>,<span style="color: #000000;">0</span>,<span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span><br />    oTitle:<span style="color: #000000;">nClrLine2</span> := RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">229</span>, <span style="color: #000000;">233</span>, <span style="color: #000000;">238</span> <span style="color: #000000;">&#41;</span><br />    oWnd:<span style="color: #000000;">oTop</span>:= oTitle<br /><br /><br /><br /><span style="color: #00C800;">RETURN</span> oTitle<br /><br /><br /><br /><br /> <span style="color: #00C800;">FUNCTION</span> SetIni<span style="color: #000000;">&#40;</span> cIni, cSection, cEntry, xVar <span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">LOCAL</span> oIni<br /><br />   <span style="color: #00C800;">DEFAULT</span> cIni := oApp:<span style="color: #000000;">cIniFile</span><br /><br />   INI oIni FILE cIni<br />      SET SECTION cSection ;<br />         ENTRY cEntry      ;<br />         <span style="color: #0000ff;">TO</span> xVar           ;<br />         <span style="color: #0000ff;">OF</span> oIni<br />   ENDINI<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> GetIni<span style="color: #000000;">&#40;</span> cIni, cSection, cEntry, xDefault <span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">LOCAL</span> oIni<br />   <span style="color: #00C800;">LOCAL</span> xVar := xDefault<br /><br />   <span style="color: #00C800;">DEFAULT</span> cIni := oApp:<span style="color: #000000;">cIniFile</span><br /><br />   INI oIni FILE cIni<br />      <span style="color: #0000ff;">GET</span> xVar            ;<br />         SECTION cSection ;<br />         ENTRY cEntry     ;<br />         <span style="color: #00C800;">DEFAULT</span> xDefault ;<br />         <span style="color: #0000ff;">OF</span> oIni<br />   ENDINI<br /><br /><span style="color: #00C800;">RETURN</span> xVa<br /> </div>[/code:2u8v2cuw] then I found only this <!-- m --><a class="postlink" href="https://code.google.com/p/yahoo-finance-managed/downloads/list">https://code.google.com/p/yahoo-finance ... loads/list</a><!-- m --> it could be usefull to us ? I not found documentation for yahoo finance but on doaload list there is a source of manager and on finace folder there is a source also for download charts
to Mastintin : yahoo financial
Silvio, para poner un grafico .... [code=fw:efgljwxc]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br /><span style="color: #00C800;">local</span> cRegion:= <span style="color: #ff0000;">"ES"</span><br /><span style="color: #00C800;">local</span> cLang := <span style="color: #ff0000;">"es-ES"</span><br /><span style="color: #00C800;">local</span> aTipo :=<span style="color: #000000;">&#123;</span> <span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"Line"</span>, <span style="color: #ff0000;">"Bar"</span>, <span style="color: #ff0000;">"Candle"</span><span style="color: #000000;">&#125;</span>,<span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"l"</span>, <span style="color: #ff0000;">"b"</span>, <span style="color: #ff0000;">"c"</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span> <br /><span style="color: #00C800;">local</span> aSize := <span style="color: #000000;">&#123;</span> <span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"Large"</span>,<span style="color: #ff0000;">"Middle"</span>,<span style="color: #ff0000;">"Small"</span><span style="color: #000000;">&#125;</span>,<span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"l"</span>, <span style="color: #ff0000;">"m"</span>, <span style="color: #ff0000;">"s"</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span><br /><br />    cTexto:=<span style="color: #ff0000;">"http://chart.finance.yahoo.com/z?s="</span> + alltrim<span style="color: #000000;">&#40;</span>cValor<span style="color: #000000;">&#41;</span>+<span style="color: #ff0000;">"&q="</span>+aTipo<span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span>,<span style="color: #000000;">3</span><span style="color: #000000;">&#93;</span> +<span style="color: #ff0000;">"&region="</span>+cRegion+<span style="color: #ff0000;">"&lang="</span>+ cLang<br />    cTexto:= cTexto+<span style="color: #ff0000;">"&z="</span> + aSize<span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span>,<span style="color: #000000;">3</span><span style="color: #000000;">&#93;</span> <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />             <br />     @ <span style="color: #000000;">140</span>,<span style="color: #000000;">1</span>  <span style="color: #0000ff;">IMAGE</span> oBmp FILE cBmp <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">248</span>,<span style="color: #000000;">144</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">ADJUST</span>  <span style="color: #0000ff;">pixel</span> NOBORDER <br />         <br />      cargaBmp<span style="color: #000000;">&#40;</span>cTexto,oBmp<span style="color: #000000;">&#41;</span><br /><br /><br /> </div>[/code:efgljwxc]
to Mastintin : yahoo financial
Gulp... where I found this information ? Listen .... Citas, a menos que se indique lo contrario, son diferidos. Divisa en USD but I found also [b:2r5st4gs]BHP Billiton Limited (BHP.AX) -ASX Codice: 000BHP/ISIN: AU000000BHP4[/b:2r5st4gs] divisa en AUD Perhaps there is a value tell us type of Values od each symbol I saw there is the possibilty to List all symbols as Browse ( in Italy I see 610 symbols) please see this : <!-- m --><a class="postlink" href="https://es.finance.yahoo.com/q/cp;_ylt=Aipc.U0CG.7_39vN4gNQX2RE361G;_ylu=X3oDMTFlOHFlN2kzBHBvcwM5BHNlYwN5ZmlOYXZUb3BuYXZMZWdvTmV3BHNsawNwcmluY2lwYWxpYXo-?s=ITLMS.MI">https://es.finance.yahoo.com/q/cp;_ylt= ... s=ITLMS.MI</a><!-- m --> for the image for the logo I founded this <!-- m --><a class="postlink" href="http://eur.i1.yimg.com/eur.yimg.com/i/it/fi/fi6.gif">http://eur.i1.yimg.com/eur.yimg.com/i/it/fi/fi6.gif</a><!-- m --> for Italy <!-- m --><a class="postlink" href="http://eur.i1.yimg.com/eur.yimg.com/i/es/fi/fi6.gif">http://eur.i1.yimg.com/eur.yimg.com/i/es/fi/fi6.gif</a><!-- m --> for Espana do you have other values to insert ? as this image [img:2r5st4gs]http&#58;//www&#46;eoeo&#46;it/wp-content/uploads/2014/12/ff&#46;jpg[/img:2r5st4gs]