topic
stringlengths
1
63
text
stringlengths
1
577k
Como obtengo adordd
Erick, Puedes descargarla desde <!-- w --><a class="postlink" href="http://www.viaopen.com/files/adordd.zip">www.viaopen.com/files/adordd.zip</a><!-- w -->
Como obtengo adorrd
Necesito obtener ADORRD Por favor amigos del foro donde puedo obtenerlo y cual es el costo erick almanza <!-- e --><a href="mailto:dicoms@gmail.com">dicoms@gmail.com</a><!-- e -->
Como obtengo adorrd
Erick, ADORDD es gratuito y puedes descargarlo desde: <!-- w --><a class="postlink" href="http://www.fivetechsoft.com/files/adordd.zip">www.fivetechsoft.com/files/adordd.zip</a><!-- w --> <!-- w --><a class="postlink" href="http://www.viaopen.com/files/adordd.zip">www.viaopen.com/files/adordd.zip</a><!-- w -->
Como obtengo adorrd
Amigos del foro quisiera saber como resuelvo los siguientes errores que se presentan al compilar los ejemplos de la libreria adorrd No se encuentran las funciones _hb_Itemgetsymbol xvmPopLogical xvmPushlocalbyref Gracias por su apoyo erick almanza Panama
Como obtengo el valor almacenado de una direccion de memoria
Buenos dias. Estoy usando una lib en la cual una de sus funciones me regresa la direccion de memoria donde se almacena un valor ¿Com puedo obtener el valor almacenado en una direccion de memoria determinada?. Saludos
Como obtengo el valor almacenado de una direccion de memoria
<!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=6&t=23424&p=125926#p125926">viewtopic.php?f=6&t=23424&p=125926#p125926</a><!-- l -->
Como obtengo los valores de Identificacion definidos en RC
Hola a Todos El caso es que quisiera obtener los Valores que he definido en el RC... O sea tengo esto en el RC de la Aplicación... 1 VERSIONINFO FILEVERSION 2, 0, 2, 0 PRODUCTVERSION 2, 0, 2, 0 FILEFLAGSMASK VS_FFI_FILEFLAGSMASK FILEOS VOS_DOS_WINDOWS32 FILETYPE VFT_APP { BLOCK "StringFileInfo" { BLOCK "040904E4" { VALUE "CompanyName", "GuayoyoSoft\000" VALUE "ProductName", "Gestión Administrativa\000" VALUE "ProductVersion", "2.0.2.0\000" VALUE "FileVersion", "2.0.2.0\000" VALUE "InternalName", "GAdmin\000" VALUE "Actualizacion", "02/Ago/2007\000" VALUE "FileDescription", "Software para Gestión Administrativa\000" VALUE "LegalCopyright", "GuayoyoSoft ©2003-2007\000" VALUE "OriginalFilename", "GAd32.exe\000" VALUE "website", "www.guayoyosoft.net\000" } } } Esos valores son vistos fácilmente desde las utilidades "Mi PC" o "Explorador de Windows" en las propiedades del programa... El tema es que en la aplicación FW necesito tomar los valores de al menos "FileVersion" y "Actualizacion"... Que funciones existen para eso??? Quisiera eliminar una solución chapuza que ha sido repetir los valores en variables de la aplicación, pero a veces olvido cambiar una de ellas y se crea confusión en las actualizaciones. Gracias de Antemano por los comentarios... Giancarlo J. Sabattino S. Valencia, Venezuela
Como obtengo los valores de Identificacion definidos en RC
Giancarlo, Revisa samples\FileVer.prg
Como obtengo los valores de Identificacion definidos en RC
Antonio, Copiando la función a la aplicación no devuelve nada... Entiendo que los únicos parámetros que se pasan son el nombre del ejecutable y la posición en la lista (del fuente) del valor que deseo.
Como obtengo un dato de una pagina web (html) (SOLUCIONADO)
Saludos, Necesito obtener la razon social o nombre de un contribuyente desde una pagina web (html). Le he dado vueltas pero no consigo como obtenerlo, cuando veo el codigo fuente html de la pagina el nombre esta dentro de <title>.....</title> . La pagina es la siguiente : [code=fw:3s215pmy]<div class="fw" id="{CB}" style="font-family: monospace;"><br />http:<span style="color: #B900B9;">//www.elrif.com/index.php?rif=J-08516667-0</span><br /> </div>[/code:3s215pmy] Aqui el codigo que estoy usando : [code=fw:3s215pmy]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><br /><span style="color: #00C800;">Function</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">Local</span> oIe, oDoc, oForm, oObj, oBody, cName<br />   <span style="color: #00C800;">Local</span> cRif:= <span style="color: #ff0000;">"J-08516667-0"</span>+Space<span style="color: #000000;">&#40;</span><span style="color: #000000;">10</span><span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">Local</span> cHtml2<br />   <br />   <span style="color: #00C800;">if</span> !IsInternet<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />      MsgStop<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"No Hay Internet"</span><span style="color: #000000;">&#41;</span><br />      <span style="color: #00C800;">Return</span> <span style="color: #00C800;">Nil</span><br />   <span style="color: #00C800;">endif</span>   <br />   <br />   <span style="color: #00C800;">if</span> !MsgGet<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Consulta de Rif"</span>, <span style="color: #ff0000;">"Rif :"</span>, @cRif<span style="color: #000000;">&#41;</span><br />      <span style="color: #00C800;">Return</span> <span style="color: #00C800;">Nil</span><br />   <span style="color: #00C800;">endif</span>   <br />      <br />   <span style="color: #00C800;">TRY</span><br />      oIE:= CreateObject<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"InternetExplorer.Application"</span><span style="color: #000000;">&#41;</span><br />   CATCH<br />      MsgStop<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">'Error al crear el componente InternetExplorer.Application'</span><span style="color: #000000;">&#41;</span><br />      <span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br />   END<br />   oIE:<span style="color: #000000;">Navigate2</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"http://www.elrif.com/index.php?rif="</span>+cRif <span style="color: #000000;">&#41;</span><br />   <br />   oIe:<span style="color: #000000;">Visible</span>:= .T.<br />   <br />   <span style="color: #00C800;">do</span> <span style="color: #00C800;">While</span> oIE:<span style="color: #000000;">busy</span> <br />   <span style="color: #B900B9;">// SysRefresh()</span><br />     <span style="color: #00C800;">enddo</span><br />   <br />   oDoc:= oIE:<span style="color: #000000;">Document</span><br />   oForm:= oDoc:<span style="color: #000000;">Forms</span><br />   <br />   oBody:= oDoc:<span style="color: #000000;">Body</span><br />   <br />   cName:= oDoc:<span style="color: #000000;">getElementsByTagName</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Table"</span><span style="color: #000000;">&#41;</span><br />      <br />   <span style="color: #B900B9;">// oIE:Stop()</span><br />   <br />   <span style="color: #B900B9;">// oIE:Quit()</span><br />   <br />   <span style="color: #B900B9;">// ? cName  *** Aqui necesito que me devuelva el nombre de la empresa "POLLO SABROSO C.A. (POLLO SABROSO CA)"</span><br />   <br />   ? ValType<span style="color: #000000;">&#40;</span>cName<span style="color: #000000;">&#41;</span><br />              <br />   <br /><span style="color: #00C800;">Return</span> <span style="color: #00C800;">NIL</span><br /> </div>[/code:3s215pmy] Gracias,
Como obtengo un dato de una pagina web (html) (SOLUCIONADO)
Mira se comprendes: [url:1qrkudy2]http&#58;//fivewin&#46;com&#46;br/index&#46;php?/topic/23221-busca-cep-infalivel/?hl=busca[/url:1qrkudy2] Saludos.
Como obtengo un dato de una pagina web (html) (SOLUCIONADO)
Karinha, Si me sirvio el ejemplo. Gracias.
Como obtner Informacion del ADS Instalado SOLUCIONADO
Que tal a todos, buen día Pues con la duda que dice el "Asunto", Quisiera obtener los datos del ADS ya instalado como, numero de usuarios conectados, numero de conexiones, numero máximo de areas de trabajo etc., etc. Alguien ya tubo la inquietud de esto ??? Saludos.
Como obtner Informacion del ADS Instalado SOLUCIONADO
Olá, Pode obner usando as funções AdsMg. Faço assim: [code=fw:3kzteecg]<div class="fw" id="{CB}" style="font-family: monospace;"><br />      <span style="color: #00C800;">IF</span> AdsIsServerLoaded<span style="color: #000000;">&#40;</span> <span style="color: #0000ff;">Left</span><span style="color: #000000;">&#40;</span>cDirAds,<span style="color: #000000;">2</span><span style="color: #000000;">&#41;</span>, @nConn <span style="color: #000000;">&#41;</span> = ADS_REMOTE_SERVER<br />             AdsSetServerType<span style="color: #000000;">&#40;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#41;</span><br />             AdsMgConnect<span style="color: #000000;">&#40;</span> <span style="color: #0000ff;">Left</span><span style="color: #000000;">&#40;</span>cDirAds,<span style="color: #000000;">2</span><span style="color: #000000;">&#41;</span>,,,@nConn <span style="color: #000000;">&#41;</span><br />             aTemp := AdsMgGetInstallInfo<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />             cAdsSerial := <span style="color: #00C800;">IF</span><span style="color: #000000;">&#40;</span>Len<span style="color: #000000;">&#40;</span>aTemp<span style="color: #000000;">&#41;</span>>=<span style="color: #000000;">8</span>,aTemp<span style="color: #000000;">&#91;</span><span style="color: #000000;">8</span><span style="color: #000000;">&#93;</span>,<span style="color: #ff0000;">""</span><span style="color: #000000;">&#41;</span><br />             aTemp := <span style="color: #00C800;">NIL</span><br />       <span style="color: #00C800;">ENDIF</span>     <br /> </div>[/code:3kzteecg]
Como obtner Informacion del ADS Instalado SOLUCIONADO
Hola revisa el ejemplo que trae ADS [b:33goeiv7]testmg.prg[/b:33goeiv7] ahi esta todo.. [code=fw:33goeiv7]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #B900B9;">/*<br />&nbsp;* $Id: testmg.prg 9279 2011-02-14 18:06:32Z druzus $<br />&nbsp;*/</span><br /><br /><span style="color: #B900B9;">/*<br />&nbsp;* Harbour Project source code:<br />&nbsp;* Advantage Database Server RDD Management Functions Test program<br />&nbsp;*<br />&nbsp;* Copyright 2001 Brian Hays <bhays@abacuslaw.com><br />&nbsp;* www - <!-- m --><a class="postlink" href="http://www.harbour-project.org">http://www.harbour-project.org</a><!-- m --><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 software; see the file COPYING. &nbsp;If not, write to<br />&nbsp;* the Free Software Foundation, Inc., 59 Temple Place, Suite 330,<br />&nbsp;* Boston, MA 02111-1307 USA (or visit the web site <!-- m --><a class="postlink" href="http://www.gnu.org/">http://www.gnu.org/</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 /><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"ord.ch"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"set.ch"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"Ads.ch"</span><br /><br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> i<br /><br />&nbsp; &nbsp;REQUEST _ADS<br />&nbsp; &nbsp;rddRegister<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"ADS"</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;rddsetdefault<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"ADS"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;SET <span style="color: #00C800;">SERVER</span> <span style="color: #00C800;">LOCAL</span> &nbsp; &nbsp;<span style="color: #B900B9;">// REMOTE</span><br /><br />&nbsp; &nbsp;AdsSetFileType<span style="color: #000000;">&#40;</span>ADS_CDX<span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">// use test &nbsp; // make this available to get some stats on open tables below</span><br /><br />&nbsp; &nbsp;? <span style="color: #ff0000;">"Advantage Database Server Management Functions in Harbour"</span><br />&nbsp; &nbsp;?<br />&nbsp; &nbsp;? <span style="color: #ff0000;">"Connect:"</span>, AdsMgConnect<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">'C:'</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;aRay := AdsMgGetInstallInfo<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">IF</span> len<span style="color: #000000;">&#40;</span>aRay<span style="color: #000000;">&#41;</span> > <span style="color: #000000;">7</span><br />&nbsp; &nbsp; &nbsp; ? <span style="color: #ff0000;">"Install info:"</span><br />&nbsp; &nbsp; &nbsp; ? aRay<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span><br />&nbsp; &nbsp; &nbsp; ? aRay<span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span><br />&nbsp; &nbsp; &nbsp; ? aRay<span style="color: #000000;">&#91;</span><span style="color: #000000;">3</span><span style="color: #000000;">&#93;</span><br />&nbsp; &nbsp; &nbsp; ? aRay<span style="color: #000000;">&#91;</span><span style="color: #000000;">4</span><span style="color: #000000;">&#93;</span><br />&nbsp; &nbsp; &nbsp; ? aRay<span style="color: #000000;">&#91;</span><span style="color: #000000;">5</span><span style="color: #000000;">&#93;</span><br />&nbsp; &nbsp; &nbsp; ? aRay<span style="color: #000000;">&#91;</span><span style="color: #000000;">6</span><span style="color: #000000;">&#93;</span><br />&nbsp; &nbsp; &nbsp; ? aRay<span style="color: #000000;">&#91;</span><span style="color: #000000;">7</span><span style="color: #000000;">&#93;</span><br />&nbsp; &nbsp; &nbsp; ? aRay<span style="color: #000000;">&#91;</span><span style="color: #000000;">8</span><span style="color: #000000;">&#93;</span><br />&nbsp; &nbsp; &nbsp; ?<br />&nbsp; &nbsp;<span style="color: #00C800;">ENDIF</span><br /><br />&nbsp; &nbsp; &nbsp; ? <span style="color: #ff0000;">"Activity info:"</span><br />&nbsp; &nbsp;? AdsMgGetActivityInfo<span style="color: #000000;">&#40;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;? AdsMgGetActivityInfo<span style="color: #000000;">&#40;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;aRay := AdsMgGetActivityInfo<span style="color: #000000;">&#40;</span><span style="color: #000000;">3</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">IF</span> len<span style="color: #000000;">&#40;</span>aRay<span style="color: #000000;">&#41;</span> > <span style="color: #000000;">3</span><br />&nbsp; &nbsp; &nbsp; ? <span style="color: #ff0000;">"Up Time:"</span>, aRay<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>, aRay<span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span>, aRay<span style="color: #000000;">&#91;</span><span style="color: #000000;">3</span><span style="color: #000000;">&#93;</span>, aRay<span style="color: #000000;">&#91;</span><span style="color: #000000;">4</span><span style="color: #000000;">&#93;</span><br />&nbsp; &nbsp; &nbsp; ?<br />&nbsp; &nbsp;<span style="color: #00C800;">ENDIF</span><br /><br />&nbsp; &nbsp;? &nbsp; &nbsp;<span style="color: #ff0000;">" &nbsp; &nbsp;Item &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;In Use &nbsp; &nbsp; MaxUsed &nbsp; &nbsp;Rejected"</span><br />&nbsp; &nbsp;aRay := AdsMgGetActivityInfo<span style="color: #000000;">&#40;</span><span style="color: #000000;">4</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">IF</span> len<span style="color: #000000;">&#40;</span>aRay<span style="color: #000000;">&#41;</span> > <span style="color: #000000;">2</span><br />&nbsp; &nbsp; &nbsp; ? <span style="color: #ff0000;">"Users: &nbsp; &nbsp; &nbsp; &nbsp; "</span>, aRay<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>, aRay<span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span>, aRay<span style="color: #000000;">&#91;</span><span style="color: #000000;">3</span><span style="color: #000000;">&#93;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">ENDIF</span><br /><br />&nbsp; &nbsp;aRay := AdsMgGetActivityInfo<span style="color: #000000;">&#40;</span><span style="color: #000000;">5</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">IF</span> len<span style="color: #000000;">&#40;</span>aRay<span style="color: #000000;">&#41;</span> > <span style="color: #000000;">2</span><br />&nbsp; &nbsp; &nbsp; ? <span style="color: #ff0000;">"Connections: &nbsp; "</span>, aRay<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>, aRay<span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span>, aRay<span style="color: #000000;">&#91;</span><span style="color: #000000;">3</span><span style="color: #000000;">&#93;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">ENDIF</span><br /><br />&nbsp; &nbsp;aRay := AdsMgGetActivityInfo<span style="color: #000000;">&#40;</span><span style="color: #000000;">6</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">IF</span> len<span style="color: #000000;">&#40;</span>aRay<span style="color: #000000;">&#41;</span> > <span style="color: #000000;">2</span><br />&nbsp; &nbsp; &nbsp; ? <span style="color: #ff0000;">"WorkAreas: &nbsp; &nbsp; "</span>, aRay<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>, aRay<span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span>, aRay<span style="color: #000000;">&#91;</span><span style="color: #000000;">3</span><span style="color: #000000;">&#93;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">ENDIF</span><br /><br />&nbsp; &nbsp;aRay := AdsMgGetActivityInfo<span style="color: #000000;">&#40;</span><span style="color: #000000;">7</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">IF</span> len<span style="color: #000000;">&#40;</span>aRay<span style="color: #000000;">&#41;</span> > <span style="color: #000000;">2</span><br />&nbsp; &nbsp; &nbsp; ? <span style="color: #ff0000;">"Tables: &nbsp; &nbsp; &nbsp; &nbsp;"</span>, aRay<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>, aRay<span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span>, aRay<span style="color: #000000;">&#91;</span><span style="color: #000000;">3</span><span style="color: #000000;">&#93;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">ENDIF</span><br /><br />&nbsp; &nbsp;aRay := AdsMgGetActivityInfo<span style="color: #000000;">&#40;</span><span style="color: #000000;">8</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">IF</span> len<span style="color: #000000;">&#40;</span>aRay<span style="color: #000000;">&#41;</span> > <span style="color: #000000;">2</span><br />&nbsp; &nbsp; &nbsp; ? <span style="color: #ff0000;">"Indexes: &nbsp; &nbsp; &nbsp; "</span>, aRay<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>, aRay<span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span>, aRay<span style="color: #000000;">&#91;</span><span style="color: #000000;">3</span><span style="color: #000000;">&#93;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">ENDIF</span><br /><br />&nbsp; &nbsp;aRay := AdsMgGetActivityInfo<span style="color: #000000;">&#40;</span><span style="color: #000000;">9</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">IF</span> len<span style="color: #000000;">&#40;</span>aRay<span style="color: #000000;">&#41;</span> > <span style="color: #000000;">2</span><br />&nbsp; &nbsp; &nbsp; ? <span style="color: #ff0000;">"Locks: &nbsp; &nbsp; &nbsp; &nbsp; "</span>, aRay<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>, aRay<span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span>, aRay<span style="color: #000000;">&#91;</span><span style="color: #000000;">3</span><span style="color: #000000;">&#93;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">ENDIF</span><br /><br />&nbsp; &nbsp;aRay := AdsMgGetActivityInfo<span style="color: #000000;">&#40;</span><span style="color: #000000;">10</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">IF</span> len<span style="color: #000000;">&#40;</span>aRay<span style="color: #000000;">&#41;</span> > <span style="color: #000000;">2</span><br />&nbsp; &nbsp; &nbsp; ? <span style="color: #ff0000;">"TpsHeaderElems:"</span>, aRay<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>, aRay<span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span>, aRay<span style="color: #000000;">&#91;</span><span style="color: #000000;">3</span><span style="color: #000000;">&#93;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">ENDIF</span><br /><br />&nbsp; &nbsp;aRay := AdsMgGetActivityInfo<span style="color: #000000;">&#40;</span><span style="color: #000000;">11</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">IF</span> len<span style="color: #000000;">&#40;</span>aRay<span style="color: #000000;">&#41;</span> > <span style="color: #000000;">2</span><br />&nbsp; &nbsp; &nbsp; ? <span style="color: #ff0000;">"TpsVisElems: &nbsp; "</span>, aRay<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>, aRay<span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span>, aRay<span style="color: #000000;">&#91;</span><span style="color: #000000;">3</span><span style="color: #000000;">&#93;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">ENDIF</span><br /><br />&nbsp; &nbsp;aRay := AdsMgGetActivityInfo<span style="color: #000000;">&#40;</span><span style="color: #000000;">12</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">IF</span> len<span style="color: #000000;">&#40;</span>aRay<span style="color: #000000;">&#41;</span> > <span style="color: #000000;">2</span><br />&nbsp; &nbsp; &nbsp; ? <span style="color: #ff0000;">"TpsMemoElems: &nbsp;"</span>, aRay<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>, aRay<span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span>, aRay<span style="color: #000000;">&#91;</span><span style="color: #000000;">3</span><span style="color: #000000;">&#93;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">ENDIF</span><br /><br />&nbsp; &nbsp;aRay := AdsMgGetActivityInfo<span style="color: #000000;">&#40;</span><span style="color: #000000;">13</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">IF</span> len<span style="color: #000000;">&#40;</span>aRay<span style="color: #000000;">&#41;</span> > <span style="color: #000000;">2</span><br />&nbsp; &nbsp; &nbsp; ? <span style="color: #ff0000;">"WorkerThreads: "</span>, aRay<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>, aRay<span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span>, aRay<span style="color: #000000;">&#91;</span><span style="color: #000000;">3</span><span style="color: #000000;">&#93;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">ENDIF</span><br /><br />&nbsp; &nbsp;wait<br />&nbsp; &nbsp;?<br /><br />&nbsp; &nbsp;aRay := AdsMgGetCommStats<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">IF</span> len<span style="color: #000000;">&#40;</span>aRay<span style="color: #000000;">&#41;</span> > <span style="color: #000000;">10</span><br />&nbsp; &nbsp; &nbsp; ? aRay<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span> , <span style="color: #ff0000;">"% of pkts with checksum failures "</span><br />&nbsp; &nbsp; &nbsp; ? aRay<span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span> , <span style="color: #ff0000;">"Total packets received &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; "</span><br />&nbsp; &nbsp; &nbsp; ? aRay<span style="color: #000000;">&#91;</span><span style="color: #000000;">3</span><span style="color: #000000;">&#93;</span> , <span style="color: #ff0000;">"Receive packets out of sequence &nbsp;"</span><br />&nbsp; &nbsp; &nbsp; ? aRay<span style="color: #000000;">&#91;</span><span style="color: #000000;">4</span><span style="color: #000000;">&#93;</span> , <span style="color: #ff0000;">"Packet owner not logged in &nbsp; &nbsp; &nbsp; "</span><br />&nbsp; &nbsp; &nbsp; ? aRay<span style="color: #000000;">&#91;</span><span style="color: #000000;">5</span><span style="color: #000000;">&#93;</span> , <span style="color: #ff0000;">"Receive requests out of sequence "</span><br />&nbsp; &nbsp; &nbsp; ? aRay<span style="color: #000000;">&#91;</span><span style="color: #000000;">6</span><span style="color: #000000;">&#93;</span> , <span style="color: #ff0000;">"Checksum failures &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;"</span><br />&nbsp; &nbsp; &nbsp; ? aRay<span style="color: #000000;">&#91;</span><span style="color: #000000;">7</span><span style="color: #000000;">&#93;</span> , <span style="color: #ff0000;">"Server initiated disconnects &nbsp; &nbsp; "</span><br />&nbsp; &nbsp; &nbsp; ? aRay<span style="color: #000000;">&#91;</span><span style="color: #000000;">8</span><span style="color: #000000;">&#93;</span> , <span style="color: #ff0000;">"Removed partial connections &nbsp; &nbsp; &nbsp;"</span><br />&nbsp; &nbsp; &nbsp; ? aRay<span style="color: #000000;">&#91;</span><span style="color: #000000;">9</span><span style="color: #000000;">&#93;</span> , <span style="color: #ff0000;">"Rcvd invalid packets (NT only) &nbsp; "</span><br />&nbsp; &nbsp; &nbsp; ? aRay<span style="color: #000000;">&#91;</span><span style="color: #000000;">10</span><span style="color: #000000;">&#93;</span>, <span style="color: #ff0000;">"RecvFrom failed (NT only) &nbsp; &nbsp; &nbsp; &nbsp;"</span><br />&nbsp; &nbsp; &nbsp; ? aRay<span style="color: #000000;">&#91;</span><span style="color: #000000;">11</span><span style="color: #000000;">&#93;</span>, <span style="color: #ff0000;">"SendTo failed (NT only) &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;"</span><br />&nbsp; &nbsp;<span style="color: #00C800;">ENDIF</span><br /><br />&nbsp; &nbsp;wait<br />&nbsp; &nbsp;?<br /><br />&nbsp; &nbsp;aRay := AdsMgGetConfigInfo<span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">IF</span> len<span style="color: #000000;">&#40;</span>aRay<span style="color: #000000;">&#41;</span> > <span style="color: #000000;">24</span><br />&nbsp; &nbsp; &nbsp; ? aRay<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span> , <span style="color: #ff0000;">" number connections &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;"</span><br />&nbsp; &nbsp; &nbsp; ? aRay<span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span> , <span style="color: #ff0000;">" number work areas &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; "</span><br />&nbsp; &nbsp; &nbsp; ? aRay<span style="color: #000000;">&#91;</span><span style="color: #000000;">3</span><span style="color: #000000;">&#93;</span> , <span style="color: #ff0000;">" number tables &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; "</span><br />&nbsp; &nbsp; &nbsp; ? aRay<span style="color: #000000;">&#91;</span><span style="color: #000000;">4</span><span style="color: #000000;">&#93;</span> , <span style="color: #ff0000;">" number indexes &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;"</span><br />&nbsp; &nbsp; &nbsp; ? aRay<span style="color: #000000;">&#91;</span><span style="color: #000000;">5</span><span style="color: #000000;">&#93;</span> , <span style="color: #ff0000;">" number locks &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;"</span><br />&nbsp; &nbsp; &nbsp; ? aRay<span style="color: #000000;">&#91;</span><span style="color: #000000;">6</span><span style="color: #000000;">&#93;</span> , <span style="color: #ff0000;">" user buffer &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; "</span><br />&nbsp; &nbsp; &nbsp; ? aRay<span style="color: #000000;">&#91;</span><span style="color: #000000;">7</span><span style="color: #000000;">&#93;</span> , <span style="color: #ff0000;">" statistics dump interval &nbsp; &nbsp; &nbsp;"</span><br />&nbsp; &nbsp; &nbsp; ? aRay<span style="color: #000000;">&#91;</span><span style="color: #000000;">8</span><span style="color: #000000;">&#93;</span> , <span style="color: #ff0000;">" max size of error log &nbsp; &nbsp; &nbsp; &nbsp; "</span><br />&nbsp; &nbsp; &nbsp; ? aRay<span style="color: #000000;">&#91;</span><span style="color: #000000;">9</span><span style="color: #000000;">&#93;</span> , <span style="color: #ff0000;">" number TPS header elems &nbsp; &nbsp; &nbsp; "</span><br />&nbsp; &nbsp; &nbsp; ? aRay<span style="color: #000000;">&#91;</span><span style="color: #000000;">10</span><span style="color: #000000;">&#93;</span>, <span style="color: #ff0000;">" number TPS vis elems &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;"</span><br />&nbsp; &nbsp; &nbsp; ? aRay<span style="color: #000000;">&#91;</span><span style="color: #000000;">11</span><span style="color: #000000;">&#93;</span>, <span style="color: #ff0000;">" number TPS memo elems &nbsp; &nbsp; &nbsp; &nbsp; "</span><br />&nbsp; &nbsp; &nbsp; ? aRay<span style="color: #000000;">&#91;</span><span style="color: #000000;">12</span><span style="color: #000000;">&#93;</span>, <span style="color: #ff0000;">" number rcv ECBs (NLM only) &nbsp; &nbsp;"</span><br />&nbsp; &nbsp; &nbsp; ? aRay<span style="color: #000000;">&#91;</span><span style="color: #000000;">13</span><span style="color: #000000;">&#93;</span>, <span style="color: #ff0000;">" number send ECBs (NLM only) &nbsp; "</span><br />&nbsp; &nbsp; &nbsp; ? aRay<span style="color: #000000;">&#91;</span><span style="color: #000000;">14</span><span style="color: #000000;">&#93;</span>, <span style="color: #ff0000;">" number packets per burst &nbsp; &nbsp; &nbsp;"</span><br />&nbsp; &nbsp; &nbsp; ? aRay<span style="color: #000000;">&#91;</span><span style="color: #000000;">15</span><span style="color: #000000;">&#93;</span>, <span style="color: #ff0000;">" number worker threads &nbsp; &nbsp; &nbsp; &nbsp; "</span><br />&nbsp; &nbsp; &nbsp; ? aRay<span style="color: #000000;">&#91;</span><span style="color: #000000;">16</span><span style="color: #000000;">&#93;</span>, <span style="color: #ff0000;">" index sort buffer size &nbsp; &nbsp; &nbsp; &nbsp;"</span><br />&nbsp; &nbsp; &nbsp; ? aRay<span style="color: #000000;">&#91;</span><span style="color: #000000;">17</span><span style="color: #000000;">&#93;</span>, <span style="color: #ff0000;">" reserved &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;"</span><br />&nbsp; &nbsp; &nbsp; ? aRay<span style="color: #000000;">&#91;</span><span style="color: #000000;">18</span><span style="color: #000000;">&#93;</span>, <span style="color: #ff0000;">" reserved &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;"</span><br />&nbsp; &nbsp; &nbsp; ? aRay<span style="color: #000000;">&#91;</span><span style="color: #000000;">19</span><span style="color: #000000;">&#93;</span>, <span style="color: #ff0000;">" error log path &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;"</span><br />&nbsp; &nbsp; &nbsp; ? aRay<span style="color: #000000;">&#91;</span><span style="color: #000000;">20</span><span style="color: #000000;">&#93;</span>, <span style="color: #ff0000;">" semaphore file path &nbsp; &nbsp; &nbsp; &nbsp; "</span><br />&nbsp; &nbsp; &nbsp; ? aRay<span style="color: #000000;">&#91;</span><span style="color: #000000;">21</span><span style="color: #000000;">&#93;</span>, <span style="color: #ff0000;">" TPS log file path &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; "</span><br />&nbsp; &nbsp; &nbsp; ? aRay<span style="color: #000000;">&#91;</span><span style="color: #000000;">22</span><span style="color: #000000;">&#93;</span>, <span style="color: #ff0000;">" reserved &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;"</span><br />&nbsp; &nbsp; &nbsp; ? aRay<span style="color: #000000;">&#91;</span><span style="color: #000000;">23</span><span style="color: #000000;">&#93;</span>, <span style="color: #ff0000;">" reserved &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;"</span><br />&nbsp; &nbsp; &nbsp; ? aRay<span style="color: #000000;">&#91;</span><span style="color: #000000;">24</span><span style="color: #000000;">&#93;</span>, <span style="color: #ff0000;">" NT Service IP send port # &nbsp; &nbsp; "</span><br />&nbsp; &nbsp; &nbsp; ? aRay<span style="color: #000000;">&#91;</span><span style="color: #000000;">25</span><span style="color: #000000;">&#93;</span>, <span style="color: #ff0000;">" NT Service IP rcv port # &nbsp; &nbsp; &nbsp;"</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// ? aRay[26], " reserved &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;"</span><br />&nbsp; &nbsp;<span style="color: #00C800;">ENDIF</span><br /><br />&nbsp; &nbsp;wait<br />&nbsp; &nbsp;?<br /><br />&nbsp; &nbsp;aRay := AdsMgGetConfigInfo<span style="color: #000000;">&#40;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">IF</span> len<span style="color: #000000;">&#40;</span>aRay<span style="color: #000000;">&#41;</span> > <span style="color: #000000;">12</span><br />&nbsp; &nbsp; &nbsp; ? aRay<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span> , <span style="color: #ff0000;">" Total mem taken by cfg params "</span><br />&nbsp; &nbsp; &nbsp; ? aRay<span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span> , <span style="color: #ff0000;">" memory taken by connections &nbsp; "</span><br />&nbsp; &nbsp; &nbsp; ? aRay<span style="color: #000000;">&#91;</span><span style="color: #000000;">3</span><span style="color: #000000;">&#93;</span> , <span style="color: #ff0000;">" memory taken by work areas &nbsp; &nbsp;"</span><br />&nbsp; &nbsp; &nbsp; ? aRay<span style="color: #000000;">&#91;</span><span style="color: #000000;">4</span><span style="color: #000000;">&#93;</span> , <span style="color: #ff0000;">" memory taken by tables &nbsp; &nbsp; &nbsp; &nbsp;"</span><br />&nbsp; &nbsp; &nbsp; ? aRay<span style="color: #000000;">&#91;</span><span style="color: #000000;">5</span><span style="color: #000000;">&#93;</span> , <span style="color: #ff0000;">" memory taken by indexes &nbsp; &nbsp; &nbsp; "</span><br />&nbsp; &nbsp; &nbsp; ? aRay<span style="color: #000000;">&#91;</span><span style="color: #000000;">6</span><span style="color: #000000;">&#93;</span> , <span style="color: #ff0000;">" memory taken by locks &nbsp; &nbsp; &nbsp; &nbsp; "</span><br />&nbsp; &nbsp; &nbsp; ? aRay<span style="color: #000000;">&#91;</span><span style="color: #000000;">7</span><span style="color: #000000;">&#93;</span> , <span style="color: #ff0000;">" memory taken by user buffer &nbsp; "</span><br />&nbsp; &nbsp; &nbsp; ? aRay<span style="color: #000000;">&#91;</span><span style="color: #000000;">8</span><span style="color: #000000;">&#93;</span> , <span style="color: #ff0000;">" memory taken by TPS hdr elems "</span><br />&nbsp; &nbsp; &nbsp; ? aRay<span style="color: #000000;">&#91;</span><span style="color: #000000;">9</span><span style="color: #000000;">&#93;</span> , <span style="color: #ff0000;">" memory taken by TPS vis elems "</span><br />&nbsp; &nbsp; &nbsp; ? aRay<span style="color: #000000;">&#91;</span><span style="color: #000000;">10</span><span style="color: #000000;">&#93;</span>, <span style="color: #ff0000;">" mem taken by TPS memo elems &nbsp; "</span><br />&nbsp; &nbsp; &nbsp; ? aRay<span style="color: #000000;">&#91;</span><span style="color: #000000;">11</span><span style="color: #000000;">&#93;</span>, <span style="color: #ff0000;">" mem taken by rcv ECBs (NLM) &nbsp; "</span><br />&nbsp; &nbsp; &nbsp; ? aRay<span style="color: #000000;">&#91;</span><span style="color: #000000;">12</span><span style="color: #000000;">&#93;</span>, <span style="color: #ff0000;">" mem taken by send ECBs (NLM) &nbsp;"</span><br />&nbsp; &nbsp; &nbsp; ? aRay<span style="color: #000000;">&#91;</span><span style="color: #000000;">13</span><span style="color: #000000;">&#93;</span>, <span style="color: #ff0000;">" mem taken by worker threads &nbsp; "</span><br />&nbsp; &nbsp;<span style="color: #00C800;">ENDIF</span><br /><br />&nbsp; &nbsp;?<br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">// First arg: &nbsp;pass in a file name for list of those with that file open</span><br />&nbsp; &nbsp;<span style="color: #B900B9;">// Second arg: Max # of users (required for memory allocation, default is 100)</span><br />&nbsp; &nbsp;aRay := AdsMgGetUserNames<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;? <span style="color: #ff0000;">"Number of connected users: "</span>, len<span style="color: #000000;">&#40;</span>aRay<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">FOR</span> i := <span style="color: #000000;">1</span> <span style="color: #0000ff;">TO</span> len<span style="color: #000000;">&#40;</span>aRay<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; ? aRay<span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">NEXT</span><br /><br /><br />&nbsp; &nbsp;?<br />&nbsp; &nbsp;? <span style="color: #ff0000;">"Disconnect"</span>, AdsMgDisconnect<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;?<br /><br />&nbsp; &nbsp;? <span style="color: #ff0000;">"end"</span><br />&nbsp; &nbsp;?<br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span></div>[/code:33goeiv7]
Como obtner Informacion del ADS Instalado SOLUCIONADO
Gracias por su ayuda Lo Resolví así por si a alguien le interesa [code=fw:3e9xezmc]<div class="fw" id="{CB}" style="font-family: monospace;"><br />        <span style="color: #0000ff;">Select</span> <span style="color: #000000;">0</span><br />        ADSCreateSQLStatement<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"misusers"</span>,<span style="color: #000000;">3</span><span style="color: #000000;">&#41;</span> <br />        cSQL :=<span style="color: #ff0000;">"EXECUTE PROCEDURE sp_mgGetConnectedUsers()"</span><br />        ADSExecuteSQLDirect<span style="color: #000000;">&#40;</span>cSQL<span style="color: #000000;">&#41;</span> <br />        <span style="color: #0000ff;">SELECT</span> misusers<br />        nNumUsers := LastRec<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>   <span style="color: #B900B9;">//Aquí cuento los números de usuarios conectados</span><br />        DbCloseArea<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /> </div>[/code:3e9xezmc] y ya con ese resultado puedo hacer lo que necesito. Saludos.
Como ocultar la 'X' para cerrar los dialogos...
Hola a todos... Quisiera saber si se puede ocultar o deshabilitar de alguna forma la 'x' para obligar al usuario a salir de los dialogos por medio de un boton que yo pongo... Saludos. Elías Torres.
Como ocultar la 'X' para cerrar los dialogos...
Elías, Puedes una de las dos cosas ó ambas: ocultar la X usando un estilo de diálogo que no la muestre, ó usar un VALID que no le dejará salir hasta que no se cumpla la condición que tu precises: ACTIVATE DIALOG oDlg VALID ... VALID ha de devolver un valor lógico
Como ocultar la 'X' para cerrar los dialogos...
Hola a todos... Antonio, el problema que tengo no es la "x" de los dialogos puesto que los he creado sin el caption y por tanto sin la "x". A lo que me refiero es a la "x" que tiene la propia pantalla de windows, nose si me explico, esa "x" que se encuentra al lado de la hora.... El tema es que si el usuario pulsa ahi le cierra la pantalla en la que se encuentra y por tanto no realiza las acciones que debe hacer... Alguna sugerencia al respecto?.. Saludos y gracias.. Elías Torres.
Como ocultar la 'X' para cerrar los dialogos...
Elías, Usa el VALID de la ventana principal: ACTIVATE WINDOW oWnd VALID ( ... ) Debe ser una expresión lógica que devuelva .t. ó .f.
Como ocultar un get o un button..
Hola a todos... Alguien puede decirme como puedo ocultar, es decir, que no sea visible en un dialogo un get y un button??. He probado oget:hide() y oboton:hide() pero me da error y supongo que sea porque no soporta hide(). Existe alguna forma de no mostrar esto? Saludos. Elías Torres.
Como ocultar un get o un button..
Hola Elias, con los gets no lo he probado, pero con BTNBMP si que funciona el metodo Hide().
Como ocultar un get o un button..
Elías, Que error te da ? Esos métodos están disponibles para todas las ventanas, diálogos y controles
Como ocultar un get o un button..
El error que me da es el siguiente: No exported method HIDE Args: [ 1] = U stack calls: HIDE(0) INVENTARIO(631) (b)LISTADOS_INVENTARIOS(927) TBITMAP:LBUTTONDOWN(0) TWINDOW:HANDLEEVENT(0) TCONTROL:HANDLEEVENT(0) TBITMAP:HANDLEEVENT(0) _FWPPC(0) DIALOGBOX(0) TDIALOG:ACTIVATE(0) LISTADOS_INVENTARIOS(929) (b)MAIN(90) TBITMAP:LBUTTONDOWN(0) TWINDOW:HANDLEEVENT(0) TCONTROL:HANDLEEVENT(0) TBITMAP:HANDLEEVENT(0) _FWPPC(0) DIALOGBOX(0) TDIALOG:ACTIVATE(0) MAIN(102)  El codigo en el que está es este: local oExisRemo,oExisLocal,oboton DEFINE dialog odlg resource "inventariado" IF control_existencias='2' redefine get oExisRemo var inventario->exis_remo id 126 of odlg redefine get oExisLocal var inventario->exis_loc id 128 of odlg ELSE IF control_existencias='1' redefine get oExisLocal var inventario->exis_loc id 128 of odlg ENDIF ENDIF IF control_existencias='1' .or. control_existencias='2' redefine button oboton id 4001 of odlg action calcula_existencias(articulo,oExisRemo,oExisLocal,quien) ELSE oboton:hide() oExisRemo:hide() oExisLocal:hide() endif ACTIVATE dialog odlg Saludos. Elías Torres
Como ocultar un get o un button..
Elías, No le puedes enviar ese mensaje a un control hasta que el diálogo no se ha activado porque los controles aún no tienen un handle valido. Tienes que hacerlo así: IF control_existencias='1' .or. control_existencias='2' redefine button oboton id 4001 of odlg action calcula_existencias(articulo,oExisRemo,oExisLocal,quien) endif ACTIVATE dialog odlg ; ON INIT If( control_existencias=='1' .or. control_existencias=='2',( oboton:hide(), oExisRemo:hide(), oExisLocal:hide() ),)
Como ordenar por columna del xBrowse? (SOLUCIONADO)
Saludos al foro: Cual es la forma fácil de cambiar el orden de una Tabla que se muestra en un XBrowse? Entiendo que es con un clic en el encabezado de la columna pero hasta ahí llego <!-- s:oops: --><img src="{SMILIES_PATH}/icon_redface.gif" alt=":oops:" title="Embarassed" /><!-- s:oops: --> Algún código ejemplo? Saludos
Como ordenar por columna del xBrowse? (SOLUCIONADO)
[code=fw:lnuaccwj]<div class="fw" id="{CB}" style="font-family: monospace;">oQry &nbsp;:= oApp:<span style="color: #000000;">oServer</span>:<span style="color: #000000;">Query</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"SELECT * FROM in_codigo ORDER BY nombre"</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">XBROWSE</span> oBrw DATASOURCE oQry;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; COLUMNS <span style="color: #ff0000;">"codigo"</span>,<span style="color: #ff0000;">"nombre"</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; HEADERS <span style="color: #ff0000;">"Codigo"</span>,<span style="color: #ff0000;">"Descripcion"</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SIZES <span style="color: #000000;">60</span>,<span style="color: #000000;">400</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ID</span> <span style="color: #000000;">111</span> <span style="color: #0000ff;">OF</span> oDlg AUTOSORT <span style="color: #B900B9;">// AutoSort hace el proceso automatico</span><br />&nbsp;</div>[/code:lnuaccwj]
Como ordenar por columna del xBrowse? (SOLUCIONADO)
CmSoft: Más fácil no podría ser, Agradecido. La realidad es que Mr. Rao ha hecho un gran trabajo, Thanks Mr. Rao. Saludos
Como ordenar por columna del xBrowse? (SOLUCIONADO)
La verdad que si, creo que tiene infinidad de utilidades que no usamos incluso.
Como organizo el build.bat para compilar con link.exe
Saludo Cordial para todos Todo el direccionamiento se encuentra bien en Build.bat solo que cuando quiero compilar con link.exe me dice que no encuentra 501_520 me imagine que requeria esta biblioteca ¿Que debo hacer para poder compilar con Link.exe de Microsoft? Un abrazo Gracias
Como organizo el build.bat para compilar con link.exe
Quita esa librería de build.bat y añade estas funciones a tu PRG: function Clipper501() ; return nil function Clipper520() ; return nil
Como organizo el build.bat para compilar con link.exe
Estoy intentando compilar el ejemplo suministrado en el demo utilizando el link.exe, y CA clipper 5.2. Sin embargo una vez cambiados los paths de build.bat me presenta los siguientes mensajes de error: L1001: option name ambiguos ó L1049: too many segments. Cuál puede ser la causa? Qu{e parametros se deben enviar a build.bat? Gracias.
Como pasa esto de VBA A FIVEWIN
Amigos tengo esto y funciona bien : local oExcel := CreateObject( "excel.application" ) local oBook := oExcel:Workbooks:Add() local oSheet oSheet:=oExcel:ActiveSheet oSheet:=oBook:Worksheets( 1 ) oSheet:Shapes:AddTextbox(1, 50, 125, 250, 130):TextFrame:Characters:Text = "EMPRESA PRINCIPAL" ESTO COMO LO PASO A FIVEWIN para manejar los addtbox Sub AddTextBox() ActiveSheet.Shapes.AddTextBox(msoTextOrientationHorizontal, 2.5, 1.5, _ 116, 145).TextFrame.Characters.text = "This is a test of inserting a text box to a sheet and adding some text." With Selection.Characters(Start:=1, Length:=216).font .name = "Arial" .FontStyle = "Regular" .size = 10 .Strikethrough = False .Superscript = False .Subscript = False .OutlineFont = False .Shadow = False .Underline = xlUnderlineStyleNone .ColorIndex = xlAutomatic End With range("I15").Select End Sub gracias
Como pasar parametros a un exe externo
Antonio, Daniel, Compañeros del foro. Con cual función se puede llamar a un programa ejectable externo desde fivewin y pasar una serie de párametros de diferentes tipo. Resulta que el primer parametro en una descripcion de un producto y cada palabra va separada por un espacio en blanco, y el programa que lo recibe intepreta cada palabra como un parametro, la pregunta esta en como pasar este tipo de string en una sola variable. Gracias
Como pasar parametros a un exe externo
Hola cPara := " " + P1 + " " + P2 + " " + P3 cExec := cFilePath(GetModuleFileName(GetInstance()))+"Programa.exe" ShellExecute( 0, "Open", cExec, cPara, 0, 1 ) Espero te sirva asi lo uso y funciona perfecto
Como pasar parametros a un exe externo
No me quedó muy claro, por ejemplo de un inicio: CAJA.EXE 2 ---->¿Que debo de hacer para que ese 2 se guarde en algún lado o lo pueda recoger después dentro del mismo programa CAJA.EXE ? debo declararla como algún tipo de variable ? Gracias
Como pasar parametros a un exe externo
Ernesto: winexec( (wPathB)+"\PFBATCH /c:1 /i:"+cticket+'.cmd'+' /o:'+cticket+'.sal',0) Saludos, Daniel Puente Santa Cruz, Argentina
Como pasar parametros a un exe externo
Gracias por su apoyo, creo que en realidad era mas fácil de lo que imagine.. necesitaba que el cliente ejecutara CAJA.EXE 1, CAJA.EXE 2 o CAJA.EXE 3 lo que hice fué en el programa principal FUNCTION TESTIT(Parametros) Set Date USA wRuta:=Trim(Parametros) IF Empty(Parametros)=.F. wRutaPh:="C:\Datos" + wRuta + "\" Else wRuta:="" wRutaPh:="C:\Datos\" Endif .......... solo resta validar que lo que escriba el usuario sea valido.. Muchas gracias, por el momento con eso la libro
Como paso de este estilo al estilo NEW el tdolphin...
Hola. Tengo esto: [code=fw:2q127py6]<div class="fw" id="{CB}" style="font-family: monospace;">      connect EMBEDDED ::<span style="color: #000000;">oCnx</span> ;<br />      DATABASE <span style="color: #ff0000;">"dbtest"</span> ;<br />      OPTIONS <span style="color: #ff0000;">"Dolphin_server_embedded"</span>, ;<br />      <span style="color: #ff0000;">"--datadir=./dbdir/"</span>, ;<br />      <span style="color: #ff0000;">"--language=./sysdir/spanish/"</span>, ;<br />      <span style="color: #ff0000;">"--skip-innodb"</span>, ;<br />      <span style="color: #ff0000;">"--key-buffer-size=64MB"</span> ;<br />      GROUPS <span style="color: #ff0000;">"Dolphin_server_embedded"</span><br /> </div>[/code:2q127py6] y necesito pasarlo a esto: [code=fw:2q127py6]<div class="fw" id="{CB}" style="font-family: monospace;">oCnx:= <span style="color: #00C800;">new</span><span style="color: #000000;">&#40;</span>...<span style="color: #000000;">&#41;</span></div>[/code:2q127py6] gracias.
Como paso de este estilo al estilo NEW el tdolphin...
Compila con /p y mira el .ppo que genera
Como paso de este estilo al estilo NEW el tdolphin...
[quote="xmanuel":2iuqa1t1]Compila con /p y mira el .ppo que genera[/quote:2iuqa1t1] gracias!
Como pegar a Data(fecha) e Hora de um Arquivo no FTP
Olá... Como pegar essas informações sem usar a Classe TIpClientFtp ? Gracias
Como permitir un CLICK en un boton sobrepasando el VALID ?
Hola. Tengo dos get y un botón. Necesito que me permita hace el click en el boton pase o no pase el valid del get que estoy parado. como lo hago? gracias.
Como permitir un CLICK en un boton sobrepasando el VALID ?
Añádele la cláusula CANCEL a la definición del botón
Como permitir un CLICK en un boton sobrepasando el VALID ?
de 10! gracias.
Como podria hacer esto con xbrowse ?
Hola amigos Tengo dos DBF'S indexadas por el campo código, una es de clientes, y otra de sus almacenes, (Tienen los mismos campos), y me gustaría que en un xbrowse, al hacer doble click sobre un código, se abra un tree, y me muestre los almacenes de éste cliente. He hecho pruebas con el ejemplo xbrwtree, pero me lío cuando son dos bases de datos [code=fw:1m4e8mli]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">Static</span> <span style="color: #00C800;">function</span> rutasc<span style="color: #000000;">&#40;</span>oDlg1,oDlg,recibe,aAlias<span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">local</span> n,conduc:=space<span style="color: #000000;">&#40;</span><span style="color: #000000;">5</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">local</span> titulo:=<span style="color: #ff0000;">"LISTADO DE RUTAS DE CLIENTES"</span><br /><span style="color: #00C800;">local</span> oBrw<br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> Publicas:<span style="color: #000000;">abierta</span>=<span style="color: #000000;">1</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">msginfo</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">'Tienes Una ventana Abierta'</span>,<span style="color: #ff0000;">'Atencion'</span><span style="color: #000000;">&#41;</span><br />&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 />&nbsp; dbUseArea<span style="color: #000000;">&#40;</span>.T.,,Publicas:<span style="color: #000000;">cUnidad</span>+Publicas:<span style="color: #000000;">cSubd</span>+<span style="color: #ff0000;">"<span style="color: #000000;">\A</span>lmacen"</span>,aAlias<span style="color: #000000;">&#91;</span><span style="color: #000000;">23</span><span style="color: #000000;">&#93;</span>,.T.<span style="color: #000000;">&#41;</span><br />&nbsp; <span style="color: #000000;">&#40;</span>aAlias<span style="color: #000000;">&#91;</span><span style="color: #000000;">23</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span>OrdSetFocus<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Codigo"</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />&nbsp; <span style="color: #000000;">&#40;</span>aAlias<span style="color: #000000;">&#91;</span><span style="color: #000000;">23</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span> dbGotop<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; dbUseArea<span style="color: #000000;">&#40;</span>.T.,,Publicas:<span style="color: #000000;">cUnidad</span>+Publicas:<span style="color: #000000;">cSubd</span>+<span style="color: #ff0000;">"<span style="color: #000000;">\P</span>ROVE"</span>,aAlias<span style="color: #000000;">&#91;</span><span style="color: #000000;">21</span><span style="color: #000000;">&#93;</span>,.T.<span style="color: #000000;">&#41;</span><br />&nbsp; <span style="color: #000000;">&#40;</span>aAlias<span style="color: #000000;">&#91;</span><span style="color: #000000;">21</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span>OrdSetFocus<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Codigo"</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />&nbsp; <span style="color: #000000;">&#40;</span>aAlias<span style="color: #000000;">&#91;</span><span style="color: #000000;">21</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span> dbGotop<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;SetParent<span style="color: #000000;">&#40;</span> oDlg1:<span style="color: #000000;">hWnd</span>, oDlg:<span style="color: #000000;">hWnd</span> <span style="color: #000000;">&#41;</span> &nbsp; <br />&nbsp;<br />&nbsp; &nbsp;@ <span style="color: #000000;">0</span>,<span style="color: #000000;">0</span> <span style="color: #0000ff;">XBROWSE</span> oBrw ;<br />&nbsp; &nbsp; &nbsp;COLUMNS <span style="color: #ff0000;">'Codigo'</span>,<span style="color: #ff0000;">'Nombre'</span>,<span style="color: #ff0000;">'Calle'</span>, <span style="color: #ff0000;">'Pobla'</span>,<span style="color: #ff0000;">'Rutar'</span> ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">260</span>,<span style="color: #000000;">320</span> <span style="color: #0000ff;">PIXEL</span> ;<br />&nbsp; &nbsp; &nbsp; COLSIZES ,<span style="color: #000000;">250</span>,<span style="color: #000000;">225</span>,<span style="color: #000000;">200</span>,<span style="color: #000000;">25</span> ; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; JUSTIFY AL_CENTER ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">OF</span> oDlg1 <span style="color: #0000ff;">Alias</span> aAlias<span style="color: #000000;">&#91;</span><span style="color: #000000;">21</span><span style="color: #000000;">&#93;</span> FOOTERS <span style="color: #0000ff;">AUTOCOLS</span> LINES CELL<br />&nbsp; &nbsp; &nbsp; oBrw:<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">5</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">nEditType</span> := <span style="color: #000000;">1</span><br />&nbsp; &nbsp; &nbsp; oBrw:<span style="color: #000000;">bClrSelFocus</span> &nbsp; &nbsp;:= <span style="color: #000000;">&#123;</span> || <span style="color: #000000;">&#123;</span> CLR_BLUE, nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">230</span>, <span style="color: #000000;">255</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; oBrw:<span style="color: #000000;">lColDividerComplete</span> := .f.<br />&nbsp; &nbsp; &nbsp; oBrw:<span style="color: #000000;">nTop</span> &nbsp; &nbsp;:= oDlg1:<span style="color: #000000;">nTop</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; oBrw:<span style="color: #000000;">lKineticBrw</span> &nbsp; &nbsp; &nbsp; &nbsp; := .f.<br />&nbsp; &nbsp; &nbsp; oBrw:<span style="color: #000000;">nBottom</span> := oDlg1:<span style="color: #000000;">nheight</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; oBrw:<span style="color: #000000;">nRight</span> &nbsp;:= oDlg1:<span style="color: #000000;">nWidth</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; oBrw:<span style="color: #000000;">nStretchCol</span> := STRETCHCOL_LAST<br />&nbsp; &nbsp; &nbsp; oBrw:<span style="color: #000000;">nMarqueeStyle</span> = MARQSTYLE_HIGHLROW<br />&nbsp; &nbsp; &nbsp; oBrw:<span style="color: #000000;">CreateFromCode</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; barra1<span style="color: #000000;">&#40;</span>oDlg1,oBrw,titulo<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; oBrw:<span style="color: #000000;">Setfocus</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp;<br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span> &nbsp; <br />&nbsp;</div>[/code:1m4e8mli] Esto me muestra en un browse los datos de Prove Alguna ayuda?
Como podria hacer esto con xbrowse ?
This is a sample using STATES.DBF related to CUSTOMER.DBF in the \fwh\samples folder. Please compile and test this program in the \fwh\samples folder. [code=fw:1tde3pni]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #B900B9;">/*<br />*<br />* &nbsp;XbTree3.Prg<br />* &nbsp;24-12-2010 08:39 PM<br />*<br />*/</span><br /><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveWin.Ch"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"ord.ch"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"xbrowse.ch"</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br />#xtranslate bmp<span style="color: #000000;">&#40;</span> <c> <span style="color: #000000;">&#41;</span> => <span style="color: #ff0000;">"c:<span style="color: #000000;">\f</span>wh<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\1</span>6x16<span style="color: #000000;">\"</span> + <c> + "</span>.bmp<span style="color: #ff0000;">"<br /><br />REQUEST DBFCDX<br /><br />static nTot &nbsp; &nbsp;:= 0<br />//----------------------------------------------------------------------------//<br /><br />function Main()<br /><br />&nbsp; &nbsp;OpenData()<br />&nbsp; &nbsp;TreeBrowse( MakeTree() )<br /><br />return (0)<br /><br />//----------------------------------------------------------------------------//<br /><br />init procedure PrgInit<br /><br />&nbsp; &nbsp;SET DATE ITALIAN<br />&nbsp; &nbsp;SET CENTURY ON<br />&nbsp; &nbsp;SET TIME FORMAT TO "</span>HH:<span style="color: #000000;">MM</span>:<span style="color: #000000;">SS</span><span style="color: #ff0000;">"<br />&nbsp; &nbsp;SET EPOCH TO YEAR(DATE())-50<br /><br />&nbsp; &nbsp;SET DELETED ON<br />&nbsp; &nbsp;SET EXCLUSIVE OFF<br /><br />&nbsp; &nbsp;RDDSETDEFAULT( "</span>DBFCDX<span style="color: #ff0000;">" )<br /><br />&nbsp; &nbsp;XbrNumFormat( 'E', .t. )<br />&nbsp; &nbsp;SetKinetic( .f. )<br />&nbsp; &nbsp;SetGetColorFocus()<br /><br />return<br /><br />//----------------------------------------------------------------------------//<br /><br />static function TreeBrowse( oTree )<br /><br />&nbsp; &nbsp;local oDlg, oBrw, oFont<br />&nbsp; &nbsp;local aColors &nbsp;:= { ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; { CLR_BLACK, &nbsp; RGB(255,255,200) &nbsp;}, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; { CLR_BLACK, &nbsp; CLR_WHITE &nbsp; &nbsp; &nbsp; &nbsp; } &nbsp;}<br /><br />&nbsp; &nbsp;DEFINE FONT oFont NAME "</span>TAHOMA<span style="color: #ff0000;">" SIZE 0,-12<br />&nbsp; &nbsp;DEFINE DIALOG oDlg SIZE 800,500 PIXEL ;<br />&nbsp; &nbsp; &nbsp; TITLE "</span><span style="color: #0000ff;">Xbrowse</span> Tree<span style="color: #ff0000;">" FONT oFont<br /><br />&nbsp; &nbsp;@ 10,10 XBROWSE oBrw SIZE -10,-10 PIXEL OF oDlg ;<br />&nbsp; &nbsp; &nbsp; CELL LINES NOBORDER FOOTERS<br /><br />&nbsp; &nbsp;oBrw:SetTree( oTree, { bmp( "</span>open<span style="color: #ff0000;">" ), bmp( "</span><span style="color: #0000ff;">folder</span><span style="color: #ff0000;">" ), bmp( "</span>source<span style="color: #ff0000;">" ) } )<br /><br />&nbsp; &nbsp;ADD TO oBrw DATA oBrw:oTreeItem:Cargo[ 1 ] HEADER 'FirstName' SIZE 100<br />&nbsp; &nbsp;ADD TO oBrw DATA oBrw:oTreeItem:Cargo[ 2 ] HEADER 'LastName' &nbsp;SIZE 100<br />&nbsp; &nbsp;ADD TO oBrw DATA oBrw:oTreeItem:Cargo[ 3 ] HEADER 'Age' &nbsp; &nbsp;PICTURE '@Z 999'<br />&nbsp; &nbsp;ADD TO oBrw DATA oBrw:oTreeItem:Cargo[ 4 ] HEADER 'Salary' PICTURE '@Z 99,999,999.99'<br /><br /><br />&nbsp; &nbsp;WITH OBJECT oBrw<br />&nbsp; &nbsp; &nbsp; :bClrStd &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= { || aColors[ oBrw:oTreeItem:nLevel ] }<br />&nbsp; &nbsp; &nbsp; :bClrSel &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= { || { CLR_BLACK, CLR_HGRAY } }<br />&nbsp; &nbsp; &nbsp; :Item:cHeader &nbsp; &nbsp; := "</span>State/City<span style="color: #ff0000;">"<br />&nbsp; &nbsp; &nbsp; :Salary:nTotal &nbsp; &nbsp;:= nTot<br />&nbsp; &nbsp; &nbsp; :nStretchCol &nbsp; &nbsp; &nbsp;:= 1<br />&nbsp; &nbsp;END<br /><br />&nbsp; &nbsp;oBrw:CreateFromCode()<br /><br />&nbsp; &nbsp;ACTIVATE DIALOG oDlg CENTERED ON INIT ( oBrw:SetFocus(), .f. )<br />&nbsp; &nbsp;RELEASE FONT oFont<br /><br />return nil<br /><br />//----------------------------------------------------------------------------//<br /><br />static function MakeTree()<br /><br />&nbsp; &nbsp;local aTot<br />&nbsp; &nbsp;local oTree<br /><br />&nbsp; &nbsp;STATES->( DbGoTop() )<br /><br />&nbsp; &nbsp;TREE oTree<br />&nbsp; &nbsp;do while !STATES->( eof() )<br />&nbsp; &nbsp; &nbsp; TREEITEM STATES->NAME CARGO ( aTot := { '', '', 0, 0 } )<br /><br />&nbsp; &nbsp; &nbsp; if STATES->CODE == CUST->STATE<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;TREE<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;do while !CUST->( eof() )<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; TREEITEM CUST->CITY CARGO { CUST->FIRST, CUST->LAST, CUST->AGE, CUST->SALARY }<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; aTot[ 4 ] &nbsp; += CUST->SALARY<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CUST->( DbSkip( 1 ) )<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;enddo<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nTot &nbsp; &nbsp; += aTot[ 4 ]<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ENDTREE<br />&nbsp; &nbsp; &nbsp; endif<br /><br />&nbsp; &nbsp; &nbsp; STATES->( DbSkip( 1 ) )<br />&nbsp; &nbsp;enddo<br />&nbsp; &nbsp;ENDTREE<br /><br />&nbsp; &nbsp;STATES->( DbGoTop() )<br /><br />return oTree<br /><br />//----------------------------------------------------------------------------//<br /><br />static function OpenData()<br /><br />&nbsp; &nbsp;field CODE<br /><br />&nbsp; &nbsp;USE STATES NEW SHARED<br /><br />&nbsp; &nbsp;USE CUSTOMER NEW ALIAS CUST SHARED<br />&nbsp; &nbsp;SET ORDER TO TAG STATE<br />&nbsp; &nbsp;GO TOP<br /><br />&nbsp; &nbsp;SELECT STATES<br />&nbsp; &nbsp;SET RELATION TO CODE INTO CUST SCOPED<br />&nbsp; &nbsp;GO TOP<br /><br />return nil<br /><br />//----------------------------------------------------------------------------//<br /></span></div>[/code:1tde3pni] Screenshot: [url=http&#58;//img52&#46;imageshack&#46;us/i/xbtree3&#46;jpg/:1tde3pni][img:1tde3pni]http&#58;//img52&#46;imageshack&#46;us/img52/3629/xbtree3&#46;jpg[/img:1tde3pni][/url:1tde3pni] In the above sample, the entire data is read into the TreeItem's cargo variable in the memory. Method: 2 ------------- In the next sample, data is NOT read into memory but the DBF is navigated to show the data. [code=fw:1tde3pni]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #B900B9;">/*<br />*<br />* &nbsp;XbTree4.Prg<br />* &nbsp;G.N.Rao<br />*<br />*/</span><br /><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveWin.Ch"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"ord.ch"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"xbrowse.ch"</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br />REQUEST DBFCDX<br /><br />#xtranslate bmp<span style="color: #000000;">&#40;</span> <c> <span style="color: #000000;">&#41;</span> => <span style="color: #ff0000;">"c:<span style="color: #000000;">\f</span>wh<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\1</span>6x16<span style="color: #000000;">\"</span> + <c> + "</span>.bmp<span style="color: #ff0000;">"<br /><br />//----------------------------------------------------------------------------//<br /><br />function Main()<br /><br />&nbsp; &nbsp;OpenData()<br />&nbsp; &nbsp;TreeBrowse( MakeTree() )<br /><br />return (0)<br /><br />//----------------------------------------------------------------------------//<br /><br />init procedure PrgInit<br /><br />&nbsp; &nbsp;SET DATE ITALIAN<br />&nbsp; &nbsp;SET CENTURY ON<br />&nbsp; &nbsp;SET TIME FORMAT TO "</span>HH:<span style="color: #000000;">MM</span>:<span style="color: #000000;">SS</span><span style="color: #ff0000;">"<br />&nbsp; &nbsp;SET EPOCH TO YEAR(DATE())-50<br /><br />&nbsp; &nbsp;SET DELETED ON<br />&nbsp; &nbsp;SET EXCLUSIVE OFF<br /><br />&nbsp; &nbsp;RDDSETDEFAULT( "</span>DBFCDX<span style="color: #ff0000;">" )<br /><br />&nbsp; &nbsp;XbrNumFormat( 'E', .t. )<br />&nbsp; &nbsp;SetKinetic( .f. )<br />&nbsp; &nbsp;SetGetColorFocus()<br /><br />return<br /><br />//----------------------------------------------------------------------------//<br /><br />static function TreeBrowse( oTree )<br /><br />&nbsp; &nbsp;local oDlg, oBrw, oFont<br />&nbsp; &nbsp;local aColors &nbsp;:= { ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; { CLR_BLACK, &nbsp; RGB(255,255,200) &nbsp;}, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; { CLR_BLACK, &nbsp; CLR_WHITE &nbsp; &nbsp; &nbsp; &nbsp; } &nbsp;}<br /><br />&nbsp; &nbsp;DEFINE FONT oFont NAME "</span>TAHOMA<span style="color: #ff0000;">" SIZE 0,-12<br />&nbsp; &nbsp;DEFINE DIALOG oDlg SIZE 800,500 PIXEL ;<br />&nbsp; &nbsp; &nbsp; TITLE "</span><span style="color: #0000ff;">Xbrowse</span> Tree<span style="color: #ff0000;">" FONT oFont<br /><br />&nbsp; &nbsp;@ 10,10 XBROWSE oBrw SIZE -10,-10 PIXEL OF oDlg ;<br />&nbsp; &nbsp; &nbsp; COLUMNS 'First', 'Last', 'Age', 'Salary' ;<br />&nbsp; &nbsp; &nbsp; ALIAS 'CUST' ;<br />&nbsp; &nbsp; &nbsp; CELL LINES NOBORDER FOOTERS<br /><br />&nbsp; &nbsp;oBrw:SetTree( oTree, { bmp( "</span>open<span style="color: #ff0000;">" ), bmp( "</span><span style="color: #0000ff;">folder</span><span style="color: #ff0000;">" ), bmp( "</span>source<span style="color: #ff0000;">" ) }, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;{ |oItem| CUST->( DbGoTo( oItem:Cargo ) ) } )<br /><br /><br /><br />&nbsp; &nbsp;WITH OBJECT oBrw<br />&nbsp; &nbsp; &nbsp; :bClrStd &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= { || aColors[ oBrw:oTreeItem:nLevel ] }<br />&nbsp; &nbsp; &nbsp; :bClrSel &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= { || { CLR_BLACK, CLR_HGRAY } }<br />&nbsp; &nbsp; &nbsp; :Item:cHeader &nbsp; &nbsp; := "</span>State/City<span style="color: #ff0000;">"<br />&nbsp; &nbsp; &nbsp; :Age:cEditPicture := "</span>@Z <span style="color: #000000;">999</span><span style="color: #ff0000;">"<br />&nbsp; &nbsp; &nbsp; :Salary:cEditPicture := "</span>@Z <span style="color: #000000;">999</span>,<span style="color: #000000;">999</span>,<span style="color: #000000;">999.99</span><span style="color: #ff0000;">"<br />&nbsp; &nbsp; &nbsp; :nStretchCol &nbsp; &nbsp; &nbsp;:= 1<br />&nbsp; &nbsp;END<br /><br />&nbsp; &nbsp;oBrw:CreateFromCode()<br /><br />&nbsp; &nbsp;ACTIVATE DIALOG oDlg CENTERED ON INIT ( oBrw:SetFocus(), .f. )<br />&nbsp; &nbsp;RELEASE FONT oFont<br /><br />return nil<br /><br />//----------------------------------------------------------------------------//<br /><br />static function MakeTree()<br /><br />&nbsp; &nbsp;local oTree<br /><br />&nbsp; &nbsp;STATES->( DbGoTop() )<br /><br />&nbsp; &nbsp;TREE oTree<br />&nbsp; &nbsp;do while !STATES->( eof() )<br />&nbsp; &nbsp; &nbsp; TREEITEM STATES->NAME CARGO 0<br /><br />&nbsp; &nbsp; &nbsp; if STATES->CODE == CUST->STATE<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;TREE<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;do while !CUST->( eof() )<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; TREEITEM CUST->CITY CARGO CUST->( RecNo() )<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CUST->( DbSkip( 1 ) )<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;enddo<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ENDTREE<br />&nbsp; &nbsp; &nbsp; endif<br /><br />&nbsp; &nbsp; &nbsp; STATES->( DbSkip( 1 ) )<br />&nbsp; &nbsp;enddo<br />&nbsp; &nbsp;ENDTREE<br /><br />&nbsp; &nbsp;STATES->( DbGoTop() )<br /><br />return oTree<br /><br />//----------------------------------------------------------------------------//<br /><br />static function OpenData()<br /><br />&nbsp; &nbsp;field CODE<br /><br />&nbsp; &nbsp;USE STATES NEW SHARED<br /><br />&nbsp; &nbsp;USE CUSTOMER NEW ALIAS CUST SHARED<br />&nbsp; &nbsp;SET ORDER TO TAG STATE<br />&nbsp; &nbsp;GO TOP<br /><br />&nbsp; &nbsp;SELECT STATES<br />&nbsp; &nbsp;SET RELATION TO CODE INTO CUST SCOPED<br />&nbsp; &nbsp;GO TOP<br /><br />return nil<br /><br />//----------------------------------------------------------------------------//<br /></span></div>[/code:1tde3pni]
Como podria hacer esto con xbrowse ?
!Es lo que buscaba! Me viene perfecto Gracias
Como poner el Fabricante ??
Hola a todos: Alguien sabe como poner los datos del fabricante del software a un ejecutable ( EXE ) ?? Ya que me sale muy frecuente un mensaje de windows XP, que este software no tiene esta informacion ?, luego de darle al boton de continuar se ingresa OK al programa. Es muy molesto, como se puede evitar ? Me imagino que se podrá poner algo en el RC, pero no se como. Saludos,
Como poner el Fabricante ??
Juan, Revisa el ejemplo FWH\samples\FileVer.prg y FileVer.rc
Como poner el Fabricante ??
GRACIAS Antonio: Lo voy a probar y les cuento. Saludos ,
Como poner el Fabricante ??
A mi me ocurre lo mismo, pero no tengo ese ejemplo en mi directorio SAMPLES. Uso FWH 2.7. ¿Me podeis dar alguna pista? Un saludo
Como poner el Fabricante ??
[code:3mvd7cmd] 1 VERSIONINFO FILEVERSION 2, 4, 0, 1 PRODUCTVERSION 4, 2, 0, 0 FILEOS VOS__WINDOWS16 FILETYPE VFT_DLL &#123; BLOCK "StringFileInfo" &#123; BLOCK "040904E4" &#123; VALUE "CompanyName", "Borland International\000\000" VALUE "FileDescription", "Borland Windows Custom Control Library\000" VALUE "FileVersion", "2&#46;04\000\000" VALUE "InternalName", "BWCC\000" VALUE "LegalCopyright", "Copyright \251 Borland Int'l&#46; 1991-1993\000\000" VALUE "OriginalFilename", "BWCC&#46;DLL\000" &#125; &#125; BLOCK "VarFileInfo" &#123; VALUE "Translation", 1033, 1252 &#125; &#125; [/code:3mvd7cmd]
Como poner el Focus a un GET
Hola amigosComo hago para poner el focus en un GET cuando elijo la opcion en un RADIO Ej:FUNCTION RepLlama(mTot) Local oFont, oBtn,oGet private nOp:= 1, oBmp, oTmr, oTmr1, Inter:= nTot:= nSw:= nSw1:= 0,oDlg,fDes,fHas fDes:=(FecPro-Day(FecPro))+1 fHas:=FecPro DEFINE DIALOG oDlg RESOURCE "LLAMADAS" Title 'Llamadas Realizadas del:' REDEFINE RADIO nOp ID 101,102,103,104,105 OF oDlg REDEFINE GET Inter ID 106 OF oDlg UPDATE PICTURE '@z ####' WHEN nOp=5 REDEFINE DTPICKER fDes ID 107 OF oDlg UPDATE WHEN nOp=5 REDEFINE DTPICKER fHas ID 108 OF oDlg UPDATE WHEN nOp=5 REDEFINE METER oTmr VAR nSw ID 109 OF oDlg REDEFINE BITMAP oBmp ID 112 OF oDlg RESOURCE "B-Imprime1" ADJUST oTmr1:=TTimer():New( 700,{|| nSw1++ ,; iif( nSw1 == 0, oBmp:SetBMP( "B-Imprime2" ), ), ; iif( nSw1 == 1, ( oBmp:SetBMP( "B-Imprime1" ), nSw1:= -1 ), ) } ) oTmr1:Activate() REDEFINE BUTTON oBtn ID 110 OF oDlg; ACTION ( GeneraLST(nOp,mTot),oDlg:End() ) REDEFINE BUTTON oBtn ID 111 OF oDlg; ACTION ( oDlg:End() ) ACTIVATE DIALOG oDlg CENTER oTmr1:End()Return NilEn este caso cuando en nOp sea 5Gracias por su ayudaSaludos,Adhemar
Como poner el Focus a un GET
FUNCTION RepLlama(mTot)Local oFont, oBtn,oGetprivate nOp:= 1, oBmp, oTmr, oTmr1, Inter:= nTot:= nSw:= nSw1:= 0,oDlg,fDes,fHasfDes:=(FecPro-Day(FecPro))+1fHas:=FecProDEFINE DIALOG oDlg RESOURCE "LLAMADAS" Title 'Llamadas Realizadas del:'REDEFINE RADIO nOp ID 101,102,103,104,105 OF oDlg ;[b:1nujtvi5]on change(if(nop=5,inter:setfocus(),))[/b:1nujtvi5]//supondo que inter seria o objeto do getREDEFINE GET Inter ID 106 OF oDlg UPDATE PICTURE '@z ####' WHEN nOp=5REDEFINE DTPICKER fDes ID 107 OF oDlg UPDATE WHEN nOp=5REDEFINE DTPICKER fHas ID 108 OF oDlg UPDATE WHEN nOp=5REDEFINE METER oTmr VAR nSw ID 109 OF oDlgREDEFINE BITMAP oBmp ID 112 OF oDlg RESOURCE "B-Imprime1" ADJUSToTmr1:=TTimer():New( 700,{|| nSw1++ ,;iif( nSw1 == 0, oBmp:SetBMP( "B-Imprime2" ), ), ;iif( nSw1 == 1, ( oBmp:SetBMP( "B-Imprime1" ), nSw1:= -1 ), ) } )oTmr1:Activate()REDEFINE BUTTON oBtn ID 110 OF oDlg;ACTION ( GeneraLST(nOp,mTot),oDlg:End() )REDEFINE BUTTON oBtn ID 111 OF oDlg;ACTION ( oDlg:End() )ACTIVATE DIALOG oDlg CENTERoTmr1:End()Return Nil
Como poner el Focus a un GET
Hola amigo,Prueba lo siguiente:[code:1f0ngsy6] REDEFINE RADIO nOp ID 101,102,103,104,105 OF oDlg ; ON CHANGE&#40;nOp,Inter&#41; [/code:1f0ngsy6] [code:1f0ngsy6] Function PongoFoco&#40;nOp,Inter&#41; IF nOp=5 Inter&#58;SetFocus&#40;&#41; ENDIF Return nil [/code:1f0ngsy6]Es lo mismo que postea SGS pero llamando una función que lo hace, es basicamente lo mismo. Cualquiera de las dos opciones debería funcionar sin problemas.Saludos, desde Argentina, Esteban.
Como poner el Focus a un GET
Gracias amigosProbé de ambas formas y no funciona, se queda siempre en el RADIO 5tengo que pulsar la tecla TAB para colocarlo en el GET.necesito mas ayudaSaludosAdhemar
Como poner el Focus a un GET
Hola.Prueba la función asi:[code:j3irzz0w] Function PongoFoco&#40;nOp,Inter&#41; IF nOp=5 nOp&#58;oJump&#58;=Inter Inter&#58;SetFocus&#40;&#41; ENDIF Return nil [/code:j3irzz0w]Espero te sirva.Saludos.
Como poner el Focus a un GET
Ahh...Es porque no estás usando una variable...Prueba definir el Radio asi:[code:1eawig5k] REDEFINE RADIO nOp VAR vOp ID 101,102,103,104,105 OF oDlg ; ON CHANGE&#40;vOp,Inter&#41; [/code:1eawig5k]Supongo que ahi tiene que andar sin problemas.Saludos, Esteban.
Como poner el Focus a un GET
Hola,en lugar de inter:setfocus(), prueba inter:PostMsg( WM_RBUTTONDOWN )saludosMarcelo
Como poner el Focus a un GET
prueba con:__Keyboard(CHR(VK_TAB))0oControl:oJump := oGet1donde ocontrol es el objeto donde estas
Como poner el Focus a un GET
Hola,prueba tambien inter:PostMsg( WM_SETFOCUS ) , creo que es mas adecuadosaludos
Como poner el Focus a un GET
Gracia a todos,Son muy buenos.Me funcionó con oGet:PostMsg(WM_RBUTTONDOWN), ya me estaba rindiendo.Una nueva ayuda. Se puede hacer saltar en DTPICKER del DIA al MES y del MES al AÑO sin necesidad de pulsar el punto "." o la Slash "/" solo escribiendo 251108 Muchisimas gracias por su ayudaSaludosAdhemar
Como poner en negrita un texto....
Hola a todos.... Quisiera saber como puedo hacer para que me salga el tipo de letra en negrita... No se si me tengo que crear un tipo de fuente... obrw:nClrText := { || If( tabla_inventarios->enviado=.t., CLR_RED , CLR_BLACK ) } Lo que quiero es que cuando la condición sea falsa el texto se ponga en rojo y en negrita tambien..... Saludos. Elías Torres.
Como poner un gradiente en un grupo.
Es posible poner un gradient a un grupo ? Gracias.
Como poner una barra de progreso en una descarga con turl
Como puedo poner una barra de progreso en una descargacon la clase turlFUNC x_( cGUARDAR , cCOMO )Local oUrl //"http://www.tuservidorweb.com/veract.txt" )Local oClient cGUARDAR:=ALLTRIM(cGUARDAR) cCOMO :=ALLTRIM(cCOMO) oUrl := tURL():New(cGUARDAR) oClient := tIPClient():New( oUrl ) oClient:nConnTimeout = 20000 oClient:Open( oUrl ) oClient:ReadToFile( cCOMO ) //"newver.txt" ) oClient:Close()retu .t.
Como poner una barra de progreso en una descarga con turl
Vladimir,Posiblemente la solución mas simple es modificar el método ReadToFile() para que admita un codeblock, pues la lectura del fichero se hace por bloques y en cada iteración se podría evaluar el codeblock, viéndose asi el progreso de la barra
Como poner una imagen en este Foro
Hola Amigo consulta como puedo poner una imagen para ver si me pueden ayudar con mi problem saludos
Como poner una imagen en este Foro
Y utilizo <!-- m --><a class="postlink" href="http://postimage.org/">http://postimage.org/</a><!-- m -->
Como poner una marquezina
Que tal al foro, Alguien ya a puesto una marquezina un una ventana ?, si alguien supiera como me podria echar una mano. Es para poner las ofertas en la ventana principal, que esten pasando, en la marquezina. Gracias.
Como poner una marquezina
Mil gracias al que realizo esta clase, la encontre tal como esta: Esta es la clase dSay [code:1u992aov] #include "FiveWin&#46;ch" #include "Constant&#46;ch" #define SS_CENTER 1 #define SS_RIGHT 2 #define SS_GRAYRECT 5 // BOXRECT #define TA_LEFT 0 #define TA_RIGHT 2 #define TA_CENTER 6 #define TA_TOP 0 #define TA_BOTTOM 8 #define COLOR_WINDOW 5 #define COLOR_WINDOWTEXT 8 #define COLOR_BTNSHADOW 16 #define COLOR_BTNHIGHLIGHT 20 #define WM_NCHITTEST 132 // 0x84 #define GWL_STYLE -16 #define GWL_EXSTYLE -20 #ifdef __XPP__ #define Super &#58;&#58;TControl #define New _New #endif static oTimer, aTimer &#58;= &#123;&#125; //----------------------------------------------------------------------------// CLASS TDSay FROM TControl CLASSDATA lRegistered AS LOGICAL DATA l3D DATA cPicture DATA aCaption DATA bGet DATA lShaded, lBox, lRaised DATA nDTop, nDLeft DATA nTTop, nTLeft DATA aRect, nLong DATA nTxtWidth, nTxtHeight DATA nAlign DATA oTimer DATA lScroll, lHorizontal, nSpeed, lWrap // nSpeed&#58; 0 to 100 DATA lBlink, lView METHOD New&#40; nRow, nCol, bText, oWnd, cPicture, oFont,; lCentered, lRight, lBottom, lBorder, lPixels, nClrText, nClrBack,; nWidth, nHeight, cScroll, nSpeed, lWrap, lBlink,; lDesign, lUpdate, lShaded, lBox, lRaised &#41; CONSTRUCTOR METHOD ReDefine&#40; nId, bText, oWnd, cPicture, lCentered, lRight, lBottom,; nClrText, nClrBack, cScroll, nSpeed, lWrap, lBlink,; lUpdate, oFont, lShaded, lBox, lRaised &#41; CONSTRUCTOR METHOD Default&#40;&#41; METHOD Destroy&#40;&#41; METHOD Initiate&#40; hDlg &#41; INLINE Super&#58;Initiate&#40; hDlg &#41;, &#58;&#58;Default&#40;&#41; METHOD HandleEvent&#40; nMsg, nWParam, nLParam &#41; METHOD Display&#40;&#41; INLINE &#58;&#58;BeginPaint&#40;&#41;, &#58;&#58;Paint&#40;&#41;, &#58;&#58;EndPaint&#40;&#41; METHOD Paint&#40;&#41; METHOD Dynamic&#40;&#41; METHOD Refresh&#40;&#41; INLINE If&#40; &#58;&#58;bGet != nil, &#58;&#58;SetText&#40; Eval&#40; &#58;&#58;bGet &#41; &#41;,&#41; METHOD ReSize&#40; nType, nWidth, nHeight &#41; INLINE &#58;&#58;Default&#40;&#41;, Super&#58;ReSize&#40; nType, nWidth, nHeight &#41; METHOD SetText&#40; cText &#41; INLINE ; &#58;&#58;cCaption &#58;= If&#40; &#58;&#58;cPicture != nil,; Transform&#40; cText, &#58;&#58;cPicture &#41;,; cValToChar&#40; cText &#41; &#41;,; &#58;&#58;Default&#40;&#41;, &#58;&#58;Paint&#40;&#41; METHOD VarPut&#40; cValue &#41; ENDCLASS //----------------------------------------------------------------------------// METHOD New&#40; nRow, nCol, bText, oWnd, cPicture, oFont,; lCentered, lRight, lBottom, lBorder, lPixels, nClrText, nClrBack,; nWidth, nHeight, cScroll, nSpeed, lWrap, lBlink,; lDesign, lUpdate, lShaded, lBox, lRaised &#41; CLASS TDSay DEFAULT nRow &#58;= 0, nCol &#58;= 0,; lBorder &#58;= &#46;f&#46;, lCentered &#58;= &#46;f&#46;, lRight &#58;= &#46;f&#46;, lBottom &#58;= &#46;f&#46;, lPixels &#58;= &#46;f&#46;,; oWnd &#58;= GetWndDefault&#40;&#41;,; nClrText &#58;= oWnd&#58;nClrText, nClrBack &#58;= oWnd&#58;nClrPane,; nHeight &#58;= If&#40; oFont != nil, Abs&#40; oFont&#58;nHeight &#41;, SAY_CHARPIX_H &#41;,; lDesign &#58;= &#46;f&#46;, bText &#58;= &#123; || "" &#125;,; lUpdate &#58;= &#46;f&#46;, lShaded &#58;= &#46;f&#46;, lBox &#58;= &#46;f&#46;, lRaised &#58;= &#46;f&#46; &#58;&#58;l3D = lShaded &#46;or&#46; lBox &#46;or&#46; lRaised &#58;&#58;nAlign = nOr&#40; If&#40; lBottom, TA_BOTTOM, TA_TOP &#41;,; If&#40; lCentered, TA_CENTER, If&#40; lRight, TA_RIGHT, TA_LEFT &#41; &#41; &#41; &#58;&#58;bGet = bText &#58;&#58;bSetGet = bText &#58;&#58;cPicture = cPicture &#58;&#58;cCaption = If&#40; Empty&#40; cPicture &#41;, cValToChar&#40; Eval&#40; bText &#41; &#41;,; Transform&#40; Eval&#40; bText &#41;, cPicture &#41; &#41; DEFAULT nWidth &#58;= &#40; If&#40; oFont != nil, Abs&#40; oFont&#58;nWidth &#41;, SAY_CHARPIX_W &#41; * Len&#40; &#58;&#58;cCaption &#41; &#41; - 4 // 8 if ! lPixels &#58;&#58;nTop = nRow * If&#40; oFont != nil, Abs&#40; oFont&#58;nHeight &#41;, SAY_CHARPIX_H &#41; + 2 // 13 &#58;&#58;nLeft = nCol * If&#40; oFont != nil, Abs&#40; oFont&#58;nWidth &#41;, SAY_CHARPIX_W &#41; // 8 else &#58;&#58;nTop = nRow &#58;&#58;nLeft = nCol endif &#58;&#58;nBottom = &#58;&#58;nTop + nHeight - 1 &#58;&#58;nRight = &#58;&#58;nLeft + nWidth - 1 DEFAULT nSpeed &#58;= 55, lWrap &#58;= &#46;f&#46;, lBlink &#58;= &#46;f&#46; &#58;&#58;lScroll = &#40; cScroll != nil &#41; &#58;&#58;lHorizontal = &#40; cScroll == "HORIZONTAL" &#41; &#58;&#58;nSpeed = if&#40; nSpeed < 50, &#40; 50 - nSpeed &#41; * 10, 100 - nSpeed &#41; &#58;&#58;lWrap = lWrap &#58;&#58;lBlink = lBlink &#58;&#58;oWnd = oWnd &#58;&#58;oFont = oFont &#58;&#58;nId = &#58;&#58;GetNewId&#40;&#41; &#58;&#58;nStyle = nOR&#40; WS_CHILD, WS_VISIBLE,; If&#40; lDesign, nOr&#40; WS_CLIPSIBLINGS, WS_TABSTOP &#41;, 0 &#41;,; If&#40; lBorder, WS_BORDER, 0 &#41; &#41; &#58;&#58;lShaded = lShaded &#58;&#58;lBox = lBox &#58;&#58;lRaised = lRaised &#58;&#58;lDrag = lDesign &#58;&#58;lCaptured = &#46;f&#46; &#58;&#58;lUpdate = lUpdate &#58;&#58;SetColor&#40; nClrText, nClrBack &#41; &#58;&#58;Register&#40; nOR&#40; CS_VREDRAW, CS_HREDRAW &#41; &#41; if ! Empty&#40; oWnd&#58;hWnd &#41; &#58;&#58;Create&#40;&#41; &#58;&#58;Default&#40;&#41; if &#58;&#58;l3D &#58;&#58;Set3DLook&#40;&#41; endif oWnd&#58;AddControl&#40; Self &#41; else oWnd&#58;DefControl&#40; Self &#41; endif if &#58;&#58;lDrag &#58;&#58;CheckDots&#40;&#41; endif return Self //----------------------------------------------------------------------------// METHOD ReDefine&#40; nId, bText, oWnd, cPicture, lCentered, lRight, lBottom,; nClrText, nClrBack, cScroll, nSpeed, lWrap, lBlink,; lUpdate, oFont, lShaded, lBox, lRaised &#41; CLASS TDSay DEFAULT lCentered &#58;= &#46;f&#46;, lRight &#58;= &#46;f&#46;, lBottom &#58;= &#46;f&#46;,; nClrText &#58;= oWnd&#58;nClrText, nClrBack &#58;= oWnd&#58;nClrPane,; oWnd &#58;= GetWndDefault&#40;&#41;,; lUpdate &#58;= &#46;f&#46;, lShaded &#58;= &#46;f&#46;, lBox &#58;= &#46;f&#46;, lRaised &#58;= &#46;f&#46; &#58;&#58;l3D = lShaded &#46;or&#46; lBox &#46;or&#46; lRaised &#58;&#58;nId = nId &#58;&#58;nAlign = nOr&#40; If&#40; lBottom, TA_BOTTOM, TA_TOP &#41;,; If&#40; lCentered, TA_CENTER, If&#40; lRight, TA_RIGHT, TA_LEFT &#41; &#41; &#41; &#58;&#58;bGet = bText &#58;&#58;bSetGet = bText &#58;&#58;cPicture = cPicture &#58;&#58;oFont = oFont if bText != nil &#58;&#58;cCaption = If&#40; Empty&#40; cPicture &#41;, cValToChar&#40; Eval&#40; bText &#41; &#41;,; Transform&#40; Eval&#40; bText &#41;, cPicture &#41; &#41; endif DEFAULT nSpeed &#58;= 55, lWrap &#58;= &#46;f&#46;, lBlink &#58;= &#46;f&#46; &#58;&#58;lScroll = &#40; cScroll != nil &#41; &#58;&#58;lHorizontal = &#40; cScroll == "HORIZONTAL" &#41; &#58;&#58;nSpeed = if&#40; nSpeed < 50, &#40; 50 - nSpeed &#41; * 10, 100 - nSpeed &#41; &#58;&#58;lWrap = lWrap &#58;&#58;lBlink = lBlink &#58;&#58;oWnd = oWnd &#58;&#58;hWnd = 0 &#58;&#58;lShaded = lShaded &#58;&#58;lBox = lBox &#58;&#58;lRaised = lRaised &#58;&#58;lDrag = &#46;f&#46; &#58;&#58;lCaptured = &#46;f&#46; &#58;&#58;lUpdate = lUpdate &#58;&#58;SetColor&#40; nClrText, nClrBack &#41; &#58;&#58;Register&#40; nOR&#40; CS_VREDRAW, CS_HREDRAW &#41; &#41; if oWnd != nil oWnd&#58;DefControl&#40; Self &#41; endif return Self //----------------------------------------------------------------------------// METHOD HandleEvent&#40; nMsg, nWParam, nLParam &#41; CLASS TDSay if &#58;&#58;lDrag &#46;and&#46; nMsg == WM_NCHITTEST return DefWindowProc&#40; &#58;&#58;hWnd, nMsg, nWParam, nLParam &#41; endif return Super&#58;HandleEvent&#40; nMsg, nWParam, nLParam &#41; //----------------------------------------------------------------------------// METHOD Default&#40;&#41; CLASS TDSay local lCentered &#58;= nAnd&#40; &#58;&#58;nAlign, TA_CENTER &#41; == TA_CENTER local lRight &#58;= nAnd&#40; &#58;&#58;nAlign, TA_RIGHT &#41; == TA_RIGHT local lBottom &#58;= nAnd&#40; &#58;&#58;nAlign, TA_BOTTOM &#41; == TA_BOTTOM if &#58;&#58;oFont != nil &#58;&#58;SetFont&#40; &#58;&#58;oFont &#41; else &#58;&#58;SetFont&#40; &#58;&#58;oWnd&#58;oFont &#41; endif &#58;&#58;nTxtWidth = 0 &#58;&#58;nTxtHeight = GetTextHeight&#40; &#58;&#58;hWnd, 0 &#41; &#58;&#58;aCaption = Array&#40; MLCount&#40; &#58;&#58;cCaption, 254 &#41; &#41; AEval&#40; &#58;&#58;aCaption, &#123;|c, n| &#58;&#58;aCaption&#91; n &#93; &#58;= Trim&#40; MemoLine&#40; &#58;&#58;cCaption, 252, n &#41; &#41;,; &#58;&#58;nTxtWidth &#58;= Max&#40; &#58;&#58;nTxtWidth, GetTextWidth&#40; 0, &#58;&#58;aCaption&#91; n &#93;,; if&#40; &#58;&#58;oFont != nil, &#58;&#58;oFont&#58;hFont, 0 &#41; &#41; &#41; &#125; &#41; &#58;&#58;aRect &#58;= GetClientRect&#40; &#58;&#58;hWnd &#41; &#58;&#58;nDTop &#58;= &#58;&#58;nTTop &#58;= if&#40; lBottom, &#58;&#58;aRect&#91; 3 &#93;, 0 &#41; &#58;&#58;nDLeft &#58;= &#58;&#58;nTLeft &#58;= if&#40; lCentered, int&#40; &#58;&#58;aRect&#91; 4 &#93; / 2 &#41;, if&#40; lRight, &#58;&#58;aRect&#91; 4 &#93;, 0 &#41; &#41; if &#58;&#58;lBox &#58;&#58;aRect &#58;= &#123; 2, 2, &#58;&#58;aRect&#91; 3 &#93; - 2, &#58;&#58;aRect&#91; 4 &#93; - 2 &#125; elseif &#58;&#58;lShaded &#46;or&#46; &#58;&#58;lRaised &#58;&#58;aRect &#58;= &#123; 1, 1, &#58;&#58;aRect&#91; 3 &#93; - 1, &#58;&#58;aRect&#91; 4 &#93; - 1 &#125; endif if &#58;&#58;lScroll if &#58;&#58;lHorizontal &#58;&#58;nLong &#58;= Max&#40; &#58;&#58;nTxtWidth, &#58;&#58;aRect&#91; 4 &#93; &#41; else &#58;&#58;nLong &#58;= Max&#40; &#58;&#58;nTxtHeight * len&#40; &#58;&#58;aCaption &#41;, &#58;&#58;aRect&#91; 3 &#93; &#41; endif endif InvalidateRect&#40; &#58;&#58;hWnd, &#58;&#58;aRect, &#46;t&#46; &#41; &#58;&#58;lView &#58;= &#46;t&#46; // Call dynamic and blinking if !&#58;&#58;lDrag if &#58;&#58;lScroll &#46;and&#46; &#58;&#58;oTimer = nil DEFINE TIMER &#58;&#58;oTimer INTERVAL &#58;&#58;nSpeed ACTION &#58;&#58;Dynamic&#40;&#41; OF Self ACTIVATE TIMER &#58;&#58;oTimer endif if &#58;&#58;lBlink &#46;and&#46; AScan&#40; aTimer, &#123; | oCtrl | oCtrl == Self &#125; &#41; == 0 AAdd&#40; aTimer, Self &#41; if oTimer = nil DEFINE TIMER oTimer INTERVAL 300 ACTION Blink&#40;&#41; OF &#58;&#58;oWnd ACTIVATE TIMER oTimer endif endif endif return nil //----------------------------------------------------------------------------// METHOD Destroy&#40;&#41; CLASS TDSay if &#58;&#58;lBlink ADel&#40; aTimer, AScan&#40; aTimer, &#123; |o| o == Self&#125; &#41; &#41; ASize&#40; aTimer, len&#40; aTimer&#41; - 1 &#41; if len&#40; aTimer &#41; = 0 oTimer &#58;= nil endif endif return Super&#58;Destroy&#40;&#41; //----------------------------------------------------------------------------// METHOD Paint&#40;&#41; CLASS TDSay local n local nColorShadow, nColorLight &#58;&#58;GetDC&#40;&#41; if &#58;&#58;lActive if &#58;&#58;lView for n &#58;= 1 to len&#40; &#58;&#58;aCaption &#41; WSay&#40; &#58;&#58;hWnd, &#58;&#58;hDC, &#58;&#58;nDTop + &#40; n - 1 &#41; * &#58;&#58;nTxtHeight, &#58;&#58;nDLeft, &#58;&#58;aCaption&#91; n &#93;, &#58;&#58;nClrText,,; If&#40; &#58;&#58;oFont != nil, &#58;&#58;oFont&#58;hFont, 0 &#41;, &#46;T&#46;, &#46;T&#46;, &#58;&#58;nAlign &#41; next if &#58;&#58;lScroll &#46;and&#46; &#58;&#58;lWrap if &#58;&#58;lHorizontal for n &#58;= 1 to len&#40; &#58;&#58;aCaption &#41; WSay&#40; &#58;&#58;hWnd, &#58;&#58;hDC, &#58;&#58;nDTop + &#40; n - 1 &#41; * &#58;&#58;nTxtHeight, &#58;&#58;nDLeft + &#58;&#58;nLong, &#58;&#58;aCaption&#91; n &#93;, &#58;&#58;nClrText,,; If&#40; &#58;&#58;oFont != nil, &#58;&#58;oFont&#58;hFont, 0 &#41;, &#46;T&#46;, &#46;T&#46;, &#58;&#58;nAlign &#41; next else for n &#58;= 1 to len&#40; &#58;&#58;aCaption &#41; WSay&#40; &#58;&#58;hWnd, &#58;&#58;hDC, &#58;&#58;nDTop + &#40; n - 1 &#41; * &#58;&#58;nTxtHeight + &#58;&#58;nLong, &#58;&#58;nDLeft, &#58;&#58;aCaption&#91; n &#93;, &#58;&#58;nClrText,,; If&#40; &#58;&#58;oFont != nil, &#58;&#58;oFont&#58;hFont, 0 &#41;, &#46;T&#46;, &#46;T&#46;, &#58;&#58;nAlign &#41; next endif endif else InvalidateRect&#40; &#58;&#58;hWnd, &#58;&#58;aRect, &#46;t&#46; &#41; endif else nColorShadow &#58;= GetSysColor&#40; COLOR_BTNSHADOW &#41; nColorLight &#58;= GetSysColor&#40; COLOR_BTNHIGHLIGHT &#41; for n &#58;= 1 to len&#40; &#58;&#58;aCaption &#41; WSay&#40; &#58;&#58;hWnd, &#58;&#58;hDC, &#58;&#58;nDTop + &#40; n - 1 &#41; * &#58;&#58;nTxtHeight + 1, &#58;&#58;nDLeft + 1, &#58;&#58;aCaption&#91; n &#93;, nColorLight,,; If&#40; &#58;&#58;oFont != nil, &#58;&#58;oFont&#58;hFont, 0 &#41;, &#46;T&#46;, &#46;T&#46;, &#58;&#58;nAlign &#41; WSay&#40; &#58;&#58;hWnd, &#58;&#58;hDC, &#58;&#58;nDTop + &#40; n - 1 &#41; * &#58;&#58;nTxtHeight, &#58;&#58;nDLeft, &#58;&#58;aCaption&#91; n &#93;, nColorShadow,,; If&#40; &#58;&#58;oFont != nil, &#58;&#58;oFont&#58;hFont, 0 &#41;, &#46;T&#46;, &#46;T&#46;, &#58;&#58;nAlign &#41; next endif // 3D if &#58;&#58;lShaded WndInset&#40; &#58;&#58;hWnd, &#58;&#58;hDC &#41; // SHADED, SHADOW endif if &#58;&#58;lRaised WndRaised&#40; &#58;&#58;hWnd, &#58;&#58;hDC &#41; // RAISED endif if &#58;&#58;lBox WndBoxIn&#40; &#58;&#58;hDC, 0, 0, &#58;&#58;nBottom-&#58;&#58;nTop, &#58;&#58;nRight-&#58;&#58;nLeft &#41; WndBoxRaised&#40; &#58;&#58;hDC, 1, 1, &#58;&#58;nBottom-&#58;&#58;nTop-1, &#58;&#58;nRight-&#58;&#58;nLeft-1 &#41; endif &#58;&#58;ReleaseDC&#40;&#41; return nil //----------------------------------------------------------------------------// METHOD Dynamic&#40;&#41; CLASS TDSay local nSpeed &#58;= if&#40; &#58;&#58;nSpeed < 50, int&#40; &#40; 50 - &#58;&#58;nSpeed + 5 &#41; / 5 &#41;, 1 &#41; if !&#58;&#58;lActive return nil endif if &#58;&#58;lHorizontal &#58;&#58;nDLeft -= nSpeed if &#58;&#58;nDLeft + &#58;&#58;nLong < &#58;&#58;nTLeft if &#58;&#58;lWrap &#58;&#58;nDLeft &#58;= &#58;&#58;nDLeft + &#58;&#58;nLong else &#58;&#58;oTimer&#58;End&#40;&#41; endif endif ScrollWindow&#40; &#58;&#58;hWnd, -nSpeed, 0, &#58;&#58;aRect, &#58;&#58;aRect &#41; else &#58;&#58;nDTop -= nSpeed if &#58;&#58;nDTop + &#58;&#58;nLong < if&#40; &#58;&#58;nTTop = 0, 0, &#58;&#58;nTxtHeight &#41; if &#58;&#58;lWrap &#58;&#58;nDTop &#58;= &#58;&#58;nDTop + &#58;&#58;nLong else &#58;&#58;oTimer&#58;End&#40;&#41; endif endif ScrollWindow&#40; &#58;&#58;hWnd, 0, -nSpeed, &#58;&#58;aRect, &#58;&#58;aRect &#41; endif /* It is not necessary to use the method 'Paint&#40;&#41;' because 'ScrollWindow&#40;&#41;' he calls directly to the method 'Paint&#40;&#41;' */ return nil //----------------------------------------------------------------------------// METHOD VarPut&#40; cValue &#41; CLASS TDSay if ! Empty&#40; &#58;&#58;cPicture &#41; cValue = Transform&#40; cValue, &#58;&#58;cPicture &#41; else cValue = cValToChar&#40; cValue &#41; endif &#58;&#58;bGet = &#123; || cValue &#125; return nil // Static functions //----------------------------------------------------------------------------// static Function Blink&#40;&#41; AEval&#40; aTimer, &#123;| oCtrl | oCtrl&#58;lView &#58;= !oCtrl&#58;lView, if&#40; oCtrl&#58;lActive, oCtrl&#58;Paint&#40;&#41;, &#41; &#125; &#41; return nil [/code:1u992aov] Archivo de cabecera dsay.ch [code:1u992aov] #define _DSAY_CH /*----------------------------------------------------------------------------// !short&#58; DYNAMIC SAY */ // The SPEED tints that to go from 0 to 100 #xcommand REDEFINE DYNAMIC SAY &#91;<oDSay>&#93; ; &#91; <label&#58; PROMPT, VAR> <cText> &#93; ; &#91; PICTURE <cPict> &#93; ; &#91; ID <nId> &#93; ; &#91; <dlg&#58; OF,WINDOW,DIALOG > <oWnd> &#93; ; &#91; <lCenter&#58; CENTERED, CENTER > &#93; ; &#91; <lRight&#58; RIGHT > &#93; ; &#91; <lBottom&#58; BOTTOM > &#93;; &#91; <color&#58; COLOR,COLORS > <nClrText> &#91;,<nClrBack> &#93; &#93; ; &#91; <scroll&#58; VERTICAL, HORIZONTAL > SCROLL &#91; SPEED <nSpeed> &#93; &#91; <lWrap&#58; WRAP > &#93; &#93; ; &#91; <lBlink&#58; BLINKING > &#93; ; &#91; <update&#58; UPDATE > &#93; ; &#91; FONT <oFont> &#93; ; &#91; <lShaded&#58; SHADED, SHADOW > &#93; ; &#91; <lBox&#58; BOX > &#93; ; &#91; <lRaised&#58; RAISED > &#93; ; => ; &#91; <oDSay> &#58;= &#93; TDSay&#40;&#41;&#58;ReDefine&#40; <nId>, <&#123;cText&#125;>, <oWnd>, <cPict>, ; <&#46;lCenter&#46;>, <&#46;lRight&#46;>, <&#46;lBottom&#46;>, <nClrText>, <nClrBack>, ; &#91;Upper&#40;<&#40;scroll&#41;>&#41;&#93;, <nSpeed>, <&#46;lWrap&#46;>, <&#46;lBlink&#46;>, ; <&#46;update&#46;>, <oFont>, <&#46;lShaded&#46;>, <&#46;lBox&#46;>, <&#46;lRaised&#46;> &#41; #xcommand @ <nRow>, <nCol> DYNAMIC SAY &#91; <oDSay> <label&#58; PROMPT,VAR > &#93; <cText> ; &#91; PICTURE <cPict> &#93; ; &#91; <dlg&#58; OF,WINDOW,DIALOG > <oWnd> &#93; ; &#91; FONT <oFont> &#93; ; &#91; <lCenter&#58; CENTERED, CENTER > &#93; ; &#91; <lRight&#58; RIGHT > &#93; ; &#91; <lBottom&#58; BOTTOM > &#93;; &#91; <lBorder&#58; BORDER > &#93; ; &#91; <lPixel&#58; PIXEL, PIXELS > &#93; ; &#91; <color&#58; COLOR,COLORS > <nClrText> &#91;,<nClrBack> &#93; &#93; ; &#91; SIZE <nWidth>, <nHeight> &#93; ; &#91; <scroll&#58; VERTICAL, HORIZONTAL > SCROLL &#91; SPEED <nSpeed> &#93; &#91; <lWrap&#58; WRAP > &#93; &#93; ; &#91; <lBlink&#58; BLINKING > &#93; ; &#91; <design&#58; DESIGN > &#93; ; &#91; <update&#58; UPDATE > &#93; ; &#91; <lShaded&#58; SHADED, SHADOW > &#93; ; &#91; <lBox&#58; BOX > &#93; ; &#91; <lRaised&#58; RAISED > &#93; ; => ; &#91; <oDSay> &#58;= &#93; TDSay&#40;&#41;&#58;New&#40; <nRow>, <nCol>, <&#123;cText&#125;>,; &#91;<oWnd>&#93;, &#91;<cPict>&#93;, <oFont>, <&#46;lCenter&#46;>, <&#46;lRight&#46;>, <&#46;lBottom&#46;>, <&#46;lBorder&#46;>,; <&#46;lPixel&#46;>, <nClrText>, <nClrBack>, <nWidth>, <nHeight>,; &#91;Upper&#40;<&#40;scroll&#41;>&#41;&#93;, <nSpeed>, <&#46;lWrap&#46;>, <&#46;lBlink&#46;>,; <&#46;design&#46;>, <&#46;update&#46;>, <&#46;lShaded&#46;>, <&#46;lBox&#46;>, <&#46;lRaised&#46;> &#41; [/code:1u992aov] Esto es como lo implemento: [code:1u992aov]REDEFINE DYNAMIC SAY oSay VAR Space&#40;60&#41; + "Tu Mensaje Aki" ID 701 OF o&#58;oDlg HORIZONTAL SCROLL SPEED 50 WRAP RIGHT FONT o&#58;oFnt&#91;3&#93;[/code:1u992aov]
Como poner una marquezina
Pablo , perfecto eso era lo que queria ya lo probe y me funciona perfectamente desde NO recursos, pero al querer utilizarlo desde recursos me manda un error, te pongo como lo defino desde recursos : CONTROL "DSay", 107, "Dsay", 0 | WS_CHILD | WS_VISIBLE, 4, 239, 419, 20 Si me podrias decir como lo defines tu en tus recursos. Mil gracias.
Como poner una marquezina
[code:3dgodrvi] CONTROL "tDsay", 701, "TDSay", 0 | WS_CHILD | WS_VISIBLE, 5, 261, 254, 10[/code:3dgodrvi]
Como poner una marquezina
Pablo, mil gracias, funciona muy bien. Te lo agradesco.
Como poner una marquezina
Pablo: Es posible poner imágenes en la marquesina ?, algun ejemplo ? Saludos
Como poner una marquezina
hay un producto de C 5 que lo hace, el banner
Como poner una marquezina
René: Gracias Maestro. Saludos
Como poner varias lineas en un tooltip
Saludos, puede que sea algo sencillo, pero no tengo idea de como se hace en xHarbour, necesito presentar un tooltip, que tiene como 7 lineas de informacion, claro Yo debo poder controlar el cambio de linea, que me imagino se hace con +CHR(13)+CHR(10)+ pero no lo hace (en FW 16 bits si lo hacia) Gracias
Como poner varias lineas en un tooltip
objeto: cToolTip := "primera linea"+CRLF+"segunda linea"+CRLF+"otra mas"
Como poner varias lineas en un tooltip
Rene, muchas gracias por contestar, pero no funciona, el recuadro no respeta los CRLF que sugieres ponga y hace el saldo de linea mucho antes, presentando un mensaje con un monton de lineas y muy poco legible Saludos
Como poner varias lineas en un tooltip
Efectivamente, amigos, en FVH no funcionan los tooltip como en FW, aparecen todos con la misma anchura ignorando los CRLF, a menos que haya algún otro parámetro que estemos ignorando. Al hilo de la cuestión, como se implementan los tooltip tipo ballom como en la toolbar? Saludos, Manuel Aranda
Como poner varias lineas en un tooltip
Manuel, FWH usa los tooltips nativos de Windows. Habrá que investigar como hacerlos multilínea. Para que aparezcan tipo balloon tienes que descomentar este último parámetro en source\classes\window.prg: hWnd = CreateToolTip( Self:hWnd, cToolTip ) // , .t. ) for ballon tooltips !
Como poner varias lineas en un tooltip
Manuel, Para hacerlos multilínea hay que llamar a esta función despues de la llamada a CreateTooltip() en source\classes\window.prg: #define TTM_SETMAXTIPWIDTH 1048 SendMessage( hWnd, TTM_SETMAXTIPWIDTH, 0, 80 ) 80 es variable e indica el ancho máximo permitido del tooltip. A partir de ese ancho, el texto del tooltip se dispone en múltiples líneas basándose en los espacios en el texto, no en CRLF.
Como poner varias lineas en un tooltip
Gracias Antonio por tus indicaciones. Funciona perfecto. <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) -->
Como poner varios reportes y un grafico en un mismo pdf
Buenos días, amigos del Foro Para variar, solicitando ayuda. Quisiera hacer 2 reportes con la clase treport y un gráfico con tgraph y que salgan como un solo reporte, ¿como se hace? Desde ya muchas gracias.
Como poner varios reportes y un grafico en un mismo pdf
José: Creo que ahi deberías hacer un print mas que un report. Pero pierdes la funcionalidad de report (poner columnas, totales, etc) Print claramente es mucho mas manual. Igualmente hecha un vistazo a samples\print02.prg
Como poner varios reportes y un grafico en un mismo pdf
Hola, En su dia aporte una clase para fundir varios libros excel ¿ Qué tiene esto que ver ? En mi caso es cada vez más demandada la salida a excel: Es editable. Luego es suficiente con combinar los libros excel en uno solo <!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?t=32229#p188786">viewtopic.php?t=32229#p188786</a><!-- l --> Salu2
Como poner varios reportes y un grafico en un mismo pdf
Tu clase me parece muy útil y me gustaría usarla. [code=fw:1x2bq06p]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#Include</span> <span style="color: #ff0000;">"<span style="color: #000000;">\p</span>rg<span style="color: #000000;">\g</span>enlib<span style="color: #000000;">\d</span>ebug.ch"</span><br /><span style="color: #00D7D7;">#Include</span> <span style="color: #ff0000;">"<span style="color: #000000;">\p</span>rg<span style="color: #000000;">\g</span>enlib<span style="color: #000000;">\x</span>try.ch"</span></div>[/code:1x2bq06p] Como puedo obtener estos archivos .ch?
Como poner varios reportes y un grafico en un mismo pdf
Hola Jose, Eres el unico que lo ha pedido en este tiempo... jajajajaja No sé qué podemos hacer. Esos dos .ch faltantes exigen funciones y alguna clase más. Hay dos opciones: a) Te paso el codigo que falta que debe tener un buen puñado de dependencias b) Como el uso aportado de esos .ch es tangencial a la clase, eliminar el codigo que "tira" de esos .ch. Asi, para xtry.ch bastaria con eliminar los xTRY y para debug.ch con eliminar los MERROR_() Ya me dices como lo hacemos. Quedo a tus ordenes Salu2
Como poner varios reportes y un grafico en un mismo pdf
Gracias por tu respuesta!!!!!!!!!! Voy a probar la opción b), y si tengo algún problema te pregunto. Muchas gracias
Como pongo en negrita el primer ITEM de un listbox?
Eso. Gracias.
Como pongo en negrita el primer ITEM de un listbox?
Amigo... Mira esto: <!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=6&t=9748">viewtopic.php?f=6&t=9748</a><!-- l --> Sería el mismo concepto pero cambiando el font...
Como pongo en negrita el primer ITEM de un listbox?
mmmmmmm ok pero creo que no es lo que busco, ojo es un listbox comun y corriente no es un xbrowse.
Como pongo en negrita el primer ITEM de un listbox?
Gustavo, Revisa el ejemplo FWH/samples/ownerdra.prg que te muestra como usar bitmaps en los listboxes estandard, eso puede ayudarte. FWH no proporciona una manera escribir una línea en negrita en un listbox estandard, lo que podrias hacer es intentar un listbox sin textos, y el texto que sea un bitmap con el texto en negrita. Pruébalo <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Como pongo en negrita el primer ITEM de un listbox?
[quote="Antonio Linares":1eo5ssv9]Gustavo, Revisa el ejemplo FWH/samples/ownerdra.prg que te muestra como usar bitmaps en los listboxes estandard, eso puede ayudarte. FWH no proporciona una manera escribir una línea en negrita en un listbox estandard, lo que podrias hacer es intentar un listbox sin textos, y el texto que sea un bitmap con el texto en negrita. Pruébalo <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->[/quote:1eo5ssv9] Gracias
Como pongo un Checkbox en una Listbox
No he podido encontrar donde lo hice alguna vez De antemanos, gracias Gonzalo
Como pongo un check dentro de un xbrowse
Como pongo un check dentro de un xbrowse gracias
Como pongo un check dentro de un xbrowse
Vladimir: Yo lo hago así: Primero debes tener definidos dos BMPs en tu archivo de recursos, uno para el check activado, al que llamo "SI", y otro para el check desactivado, al que llamo "NO", despues usas el siguiente código para definir la columna del xBrowse [code=fw:1wsc6osy]<div class="fw" id="{CB}" style="font-family: monospace;"><br />aCol<span style="color: #000000;">&#91;</span> <span style="color: #000000;">6</span><span style="color: #000000;">&#93;</span>:= oBrw:<span style="color: #000000;">AddCol</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />aCol<span style="color: #000000;">&#91;</span> <span style="color: #000000;">6</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">AddResource</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"SI"</span><span style="color: #000000;">&#41;</span><br />aCol<span style="color: #000000;">&#91;</span> <span style="color: #000000;">6</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">AddResource</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"NO"</span><span style="color: #000000;">&#41;</span><br />aCol<span style="color: #000000;">&#91;</span> <span style="color: #000000;">6</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">cHeader</span> := <span style="color: #ff0000;">"Can"</span><br />aCol<span style="color: #000000;">&#91;</span> <span style="color: #000000;">6</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">bBmpData</span>   := <span style="color: #000000;">&#123;</span> || IIF<span style="color: #000000;">&#40;</span>oDbf:<span style="color: #000000;">PRO_CAN</span>,<span style="color: #000000;">1</span>,<span style="color: #000000;">2</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br /> </div>[/code:1wsc6osy] Saludos
Como pongo un radiobutton en horizontal??
Hola a todos... Pues eso que no se como poner el radiobutton en horizontal. Yo lo tengo declarado de la siguiente forma: @ 4, 2 radio obonif var vector_ini->bonifica prompt "Si","No" OF oFld:aDialogs[ 4 ] SIZE 55, 17 Pero me sale uno encima del otro, y lo que quiero es que me salga uno al lado del otro.... ¿Como puedo hacerlo? Saludos y gracias. Elías Torres.
Como pongo un radiobutton en horizontal??
Elias, Hazlo asi: [code:3hqdsiy2] @ 3, 2 RADIO oRad VAR nValue ; ITEMS "&One", "&Two", "T&hree" _3D SIZE 150, 25 ; HELPID 100, 101, 102 ; ON CHANGE MsgBeep&#40;&#41; @ 3, 20 RADIOITEM "&Dos" RADIOMENU oRad COLOR "N/W" OF oWnd SIZE 80, 25 @ 3, 40 RADIOITEM "&Tres" RADIOMENU oRad COLOR "N/W" OF oWnd SIZE 80, 25 [/code:3hqdsiy2]