topic
stringlengths
1
63
text
stringlengths
1
577k
Consulta para la gente de MOD-HARBOUR
José, Solo tienes que instalar mod_harbour en el server Entiendo que tienes instalado xampp ó Apache en el server, es asi ? Es un servidor dedicado (solo tuyo) ? Es preciso que sea así para tener derechos de instalar mod_harbour
Consulta para la gente de MOD-HARBOUR
Hola Antonio, Tengo un servicio de Hosting contratado con la gente de [b:3fqgyc2w]HOSTGATOR[/b:3fqgyc2w] [url:3fqgyc2w]https://www.hostgator.com/[/url:3fqgyc2w] Es un plan llamado baby-cloud que es compartido pero con un limite de usuaros. Me permiten el acceso desde aplicacions externas, de esa manera puedo manejar mis bases de datos desde mi sistema local en fivewin. No se si esta es tu pregunta o no te entendi bien.
Consulta para la gente de MOD-HARBOUR
En este caso creo entender que el hosting muy probablemente sea linux, por lo que para poder usar mod-harbour, deberias poder conectarte por ssh, realziar cambios en el fichero de configuracion del demonio apache, y poder habilitar el plugin de modharbour para que pueda ejecutar codigo tipo prg, creo que lo mas adecuado para esto son los VPS, lo cuales permite tener control total se servidor, el cual podria no ser tu caso, para una mejor ayuda me puedes contactar por mail karlos.vargas at gmail dot com y poder evaluar cual es la mejor forma de apoyarte.
Consulta para la gente de MOD-HARBOUR
[quote="carlos vargas":2vspr6jo]En este caso creo entender que el hosting muy probablemente sea linux, por lo que para poder usar mod-harbour, deberias poder conectarte por ssh, realziar cambios en el fichero de configuracion del demonio apache, y poder habilitar el plugin de modharbour para que pueda ejecutar codigo tipo prg, creo que lo mas adecuado para esto son los VPS, lo cuales permite tener control total se servidor, el cual podria no ser tu caso, para una mejor ayuda me puedes contactar por mail karlos.vargas at gmail dot com y poder evaluar cual es la mejor forma de apoyarte.[/quote:2vspr6jo] Gracias Carlos, Te voy a contactar
Consulta para la gente de MOD-HARBOUR
[url:rpw63nau]https://mybergland.com/fwforum/xbhosts.mp4[/url:rpw63nau] [img:rpw63nau]https://www.modharbour.club/mh_videogallery/img/xbhosts.jpg[/img:rpw63nau]
Consulta por PREVIEW de 1 Listado
Buenas tardes!! Estoy generando listados y mi problema es que la previsualización siempre queda minimizada. como hago para evitar esto? se Puede? asi lo defino: printersetup() PRINT oPrn NAME "Stock de Formularios" PREVIEW Gracias uso FWH 12.06 Harbour 3.10
Consulta por PREVIEW de 1 Listado
Solucionado. agregando la clausula MODAL.
Consulta por Reporte
Amigos, muy buen dia. Tengo un reporte, con Report, me piden que el encabezado y pie de pagina, las lineas que estan es cada columna, sea una linea completa y no que se corte entre cada columna. Quedo atento a su ayuda. Muchas gracias. Antonio. Codigo del Reporte: [code=fw:mellc9fa]<div class="fw" id="{CB}" style="font-family: monospace;"><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;">"report.ch"</span><br /><br /><span style="color: #00C800;">STATIC</span> oReporte<br /><br /><span style="color: #00C800;">function</span> Rep2<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />            <span style="color: #00C800;">Local</span> cTi,cTi3,oPen1,oPen2<br /><br />            Sele <span style="color: #000000;">1</span><br />            Use Pasoinf<br />        <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFo1 <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"ARIAL"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">-10</span><br />        <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFo2 <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"ARIAL"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">-10</span> BOLD<br /><br />            <span style="color: #B900B9;">//DEFINE PEN oPen1 STYLE 0 WIDTH 3 COLOR CLR_RED</span><br />            <span style="color: #B900B9;">//DEFINE PEN oPen2 STYLE 1 WIDTH 2 COLOR CLR_BLUE</span><br /><br />            <span style="color: #0000ff;">DEFINE</span> PEN oPen1 <span style="color: #0000ff;">STYLE</span> <span style="color: #000000;">0</span> WIDTH <span style="color: #000000;">1</span> <span style="color: #0000ff;">COLOR</span> CLR_RED <span style="color: #0000ff;">OF</span> oReporte<br />            <span style="color: #B900B9;">//DEFINE PEN oPen2 STYLE 1 WIDTH 1 COLOR CLR_BLUE</span><br />            <span style="color: #0000ff;">DEFINE</span> PEN oPen2 <span style="color: #0000ff;">STYLE</span> PS_DOT WIDTH <span style="color: #000000;">1</span> <span style="color: #0000ff;">COLOR</span> CLR_HGRAY <span style="color: #0000ff;">OF</span> oReporte<br />            cTi3:= <span style="color: #ff0000;">"INFORMES ECOGRAFIAS INFORMADAS FEBRERO DE 2021"</span><br /><br />        cTi:=<span style="color: #ff0000;">"Para Revision"</span><br /><br />   REPORT oReporte;<br />          <span style="color: #0000ff;">TITLE</span>  cTi3,;<br />                 <span style="color: #ff0000;">""</span>,;<br />                 cTi,;<br />                 <span style="color: #ff0000;">""</span> ;<br />          <span style="color: #0000ff;">FONT</span>   oFo1,;<br />                 oFo2;<br />          PEN    oPen1,;<br />                 oPen2 ;<br />          HEADER <span style="color: #ff0000;">"Fecha: "</span>+dtoc<span style="color: #000000;">&#40;</span>date<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>,;<br />                 <span style="color: #ff0000;">"Hora:  "</span>+time<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> ;<br />                 <span style="color: #0000ff;">RIGHT</span> ;<br />          PREVIEW<br /><br />          COLUMN <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Nro. Ingreso"</span>             <span style="color: #00C800;">DATA</span> Nro_Bon <span style="color: #0000ff;">PICTURE</span> <span style="color: #ff0000;">"9999999999"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">9</span><br />          COLUMN <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Fecha Ingreso"</span>            <span style="color: #00C800;">DATA</span> Fec_Bon <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">10</span><br />          COLUMN <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Fecha Informe"</span>            <span style="color: #00C800;">DATA</span> Fec_Inf <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">10</span><br />          COLUMN <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Nombre Paciente"</span>          <span style="color: #00C800;">DATA</span> Nom_Pac <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">30</span><br />          COLUMN <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Tipo Pago"</span>                <span style="color: #00C800;">DATA</span> Tip_Pag <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">8</span><br />          COLUMN <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Valor Examen"</span>             <span style="color: #00C800;">DATA</span> Val_Bon <span style="color: #0000ff;">PICTURE</span> <span style="color: #ff0000;">"99,999,999"</span> TOTAL <span style="color: #0000ff;">RIGHT</span> <span style="color: #0000ff;">FONT</span> <span style="color: #000000;">2</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">10</span><br /><br />   END REPORT<br /><br />   oReporte:<span style="color: #000000;">cPageTotal</span>:= <span style="color: #ff0000;">"Total Pagina"</span>       <br />   oReporte:<span style="color: #000000;">cGrandTotal</span>:=<span style="color: #ff0000;">"Total General"</span>     <br />   oReporte:<span style="color: #000000;">lPageTotal</span>:=.t.                   <br />   oReporte:<span style="color: #000000;">oDevice</span>:<span style="color: #000000;">SetPortrait</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>            <br />   oReporte:<span style="color: #000000;">oDevice</span>:<span style="color: #000000;">lPrvModal</span>:=.t.          <br /><br />   <span style="color: #0000ff;">ACTIVATE</span> REPORT oReporte <br /><br />   <span style="color: #0000ff;">RELEASE</span> <span style="color: #0000ff;">FONT</span> oFo1, oFo2<br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><br /><br /> </div>[/code:mellc9fa]
Consulta por Reporte
Hola Antonio, Prueba a poner ANTES de ACTIVATE REPORT lo siguiente: oReporte:nSeparator := 0 Espero te funcione Saludos! Eduardo Borondón Muñiz
Consulta por Reporte
[quote="remtec":1gt7d09h]Amigos, muy buen dia. Tengo un reporte, con Report, me piden que el encabezado y pie de pagina, las lineas que estan es cada columna, sea una linea completa y no que se corte entre cada columna. [/quote:1gt7d09h] Antonio. [code=fw:1gt7d09h]<div class="fw" id="{CB}" style="font-family: monospace;">oReporte:<span style="color: #000000;">lJoin</span> := .t.<br />&nbsp;</div>[/code:1gt7d09h]
Consulta por Reporte
Hola Francisco y Eduardo. Muchas gracias por responder. Aplique la sugerencia que me indico Francisco y funciono Perfecto. Muchas gracias a ambos. Muchos saludos Antonio
Consulta rmake varios prg fwh\makes borland
Estimados Colegas Estoy tratando de generar un exe de varios prg ,corro el archivo rmk borland que viene en la carpeta fhw\makes , compilo bien y luego cuando voy a enlazar me tira el error to many exe filenames, PROJECT : GVTA.exe GVTA.exe : $(PRG:.PRG=.OBJ) $(C:.C=.OBJ) GVTA.rc echo off echo $(BCDIR)\bin\c0w32.obj + > b32.bc echo obj\Gvta.obj obj\Clientes.obj obj\CLIVen.obj obj\condicuo.obj, + >> b32.bc en esta linea me tira el error echo obj\rubros.obj obj\zonas.obj obj\EXPRESOS.obj, + >> b32.bc en esta echo obj\fpagos.obj obj\alm.obj obj\libre.obj obj\PROVEEDO.obj, + >> b32.bc si alguien me puede orientar gracias Fabian <!-- e --><a href="mailto:Databaselab2002@yahoo.com.ar">Databaselab2002@yahoo.com.ar</a><!-- e -->
Consulta rmake varios prg fwh\makes borland
Fabian, Te sobra la coma del final: echo obj\rubros.obj obj\zonas.obj obj\EXPRESOS.obj, + >> b32.bc ya que sólo tiene que haber una coma antes del nombre del EXE.
Consulta sobre ADO a René Flores o quien sepa
según un ejemplo entregado en el foro cuando ejecutamos un comando sql con ado podemos obtener el recorset entregado por el resultado de esta manera: oSql:CommandText:=cComando oDatos:=oSql:Execute() Mi pregunta: cuales son los métodos y datos que se pueden manejar desde oDatos? oDatos:MoveFirst(), oDatos:EOF(), oDatos:MoveNext(), oDatos:Fields:Count() y oDatos:RecordCount() siempre me devuelve -1 y eso me representará problemas a la hora de hacer una consulta del tipo: "SELECT * FROM prueba WHERE usuario='david'", ya que si siempre regresa -1, cómo sabré si encontró o no lo que busco? Donde puedo obtener información de los métodos y variables que se pueden manejar, ya que he buscado por toleauto dentro de los fuentes de xharbour y dentro de los fuentes de fwh y nada. (Utilizo xharbour desde cvs) ADORRD tiene problemas a la hora de conectarse con oracle, incluso si modifico el string de conexión que utilizo directamente con ADO solo y puro. Muchas gracias David Lagos S. Coquimbo-Chile
Consulta sobre ADO a René Flores o quien sepa
Antes de ejecutar un objeto RecordSet (que no un command, hay diferencia), primero tienes que configurar tu "cursor". En general los objetos command solo deben ser utilizados cuando vas a realizar una operacion masiva sobre una base de datos, por ejemplo un UPDATE o un Delete. Cuando vas a visualizar datos o requieres traerte un grupo de datos de tablas para visualizar en un browse por ejemplo lo mejor es utilizar un objeto recordset, previamente configurado: De mi manual de ADO: [code:2pzd5ovl] oRecordSet &#58;= TOleAuto&#40;&#41;&#58;New&#40;“adodb&#46;recordset”&#41; oRecordSet&#58;LockType &#58;= adLockOptimistic oRecordSet&#58;CursorType &#58;= adOpenKeySet oRecordSet&#58;ActiveConnection&#40;oMiConexion&#41; oRecordSet&#58;Source &#58;= “Select * from Clientes” **** esto tambien es valido &#58; oRecordSet&#58;Source &#58;= “Clientes” oRecordSet&#58;Open&#40;&#41;&#58;[/code:2pzd5ovl] Aqui lo que estas haciendo es configurando tu cursor antes de abrirlo, estableces el tipo de bloqueo (adLockOptimistic) y el tipo de cursor (adOpenKeySet), si el cursor no es de este tipo, el record count SIEMPRE devuelve -1. Dependiendo del tipo de cursor son las cosas que pudes hacer con el recordset Estos son los tipos de cursores existentes: adOpenForwardOnly 0 Es el cursor por defecto y nos permite recorrer el Recordset en forma secuencial. adOpenKeySet 1 Permite movernos hacia delante y atrás. Permite observar las modificaciones en los datos del Recordset , no así si existen ingresos de nuevos registros adOpenDynamic 2 Permite movernos en cualquier sentido, viendo cualquier modificación, ingreso o eliminación de datos del Recordset. adOpenStatic 3 Permite movernos en cualquier sentido, pero no se verá ningún cambio ocurrido en la tabla.
Consulta sobre ADO a René Flores o quien sepa
Definitivamente tu nivel de conocimientos es increíble un millón de gracias. Por último una pregunta más: Como utilizando este modelo puedo implementar un browse. Vi que hay que hacer algunos cambios a algunos métodos y a una función. Podrías explicarme con un pequeño ejemplo? Mil Gracias David Lagos S. Coquimbo-Chile
Consulta sobre ADO a René Flores o quien sepa
El browse "ta chupao".... solo hay que saber como definirlo y reescribir algunas propiedades. El wbrowse sirve prácticamente para desplegar en pantalla cualquier cosa, textos, tablas dbfs, arrays, y hasta recordsets de ado, asi que lo que vamos a definir son las columnas del browse llamando a la coleccion FIELDS() del recordset: [code:3uqjfug6] @ 0, 0 LISTBOX oBrw FIELDS oRecordSet&#58;Fields&#40;0&#41;&#58;value,; oRecordSet&#58;Fields&#40;1&#41;&#58;value,; oRecordSet&#58;Fields&#40;2&#41;&#58;value,; oRecordSet&#58;Fields&#40;3&#41;&#58;value,; oRecordSet&#58;Fields&#40;4&#41;&#58;value,; oRecordSet&#58;Fields&#40;6&#41;&#58;value; HEADERS "Codigo","Tipo","Canal","Nombre","Ciudad","Pais" OF oWndBrw [/code:3uqjfug6] Después le tenemos que "enseñar" al browse como debe moverse en base al recordset, para esto reescribiremos algunas propiedades del browse para que utilice las propiedades de movimiento del recordset: [code:3uqjfug6] oBrw&#58;bLogicLen = &#123; || oRecordSet&#58;RecordCount &#125; oBrw&#58;bGoTop = &#123; || oRecordSet&#58;MoveFirst&#40;&#41; &#125; oBrw&#58;bGoBottom = &#123; || oRecordSet&#58;MoveLast&#40;&#41; &#125; oBrw&#58;bSkip = &#123; | nSkip | Skipper&#40; oRecordSet, nSkip &#41; &#125; oBrw&#58;cAlias = "ARRAY" [/code:3uqjfug6] La propiedad mas importante es la ::bSkip que indica el numero de registros que se debe de mover el browse ya sea para adelante o para atras para poder desplegar los datos, en el ejemplo anterior, haces una llamada a la función SKIPPER, aquí la tienes: [code:3uqjfug6]STATIC FUNCTION SKIPPER&#40; oRs, nSkip &#41; LOCAL nRec &#58;= oRs&#58;AbsolutePosition oRs&#58;Move&#40; nSkip &#41; IF oRs&#58;EOF; oRs&#58;MoveLast&#40;&#41;; ENDIF IF oRs&#58;BOF; oRs&#58;MoveFirst&#40;&#41;; ENDIF RETURN oRs&#58;AbsolutePosition - nRec [/code:3uqjfug6] Y eso es todo, mas simple ni hacer limonada en verano. Eso si muy imporntate, para poder "browsear" un recordset, este tiene que ser del tipo adOpenKeySet, si no, no te puedes mover sobre el.
Consulta sobre ADO a René Flores o quien sepa
Mil Gracias por el ejemplo René. Todo estaba ok, pero por algún motivo, la rutina dejó de funcionar. Se cae al realizar el "[b:m9bz3n22]oDatos:Open()[/b:m9bz3n22]" del recordset. Aquí va el código y al final como estoy llamando a la función. [code:m9bz3n22]FUNCTION SQL&#40; cComando&#41; LOCAL lOK&#58;=&#46;T&#46; TRY MsgInfo&#40; "Línea 75", "rutinasdeconexion&#46;prg"&#41; oCon&#58;=toleauto&#40;&#41;&#58;new&#40;"adodb&#46;connection"&#41; //oCon&#58;=CreateObject&#40;"adodb&#46;connection"&#41; CATCH oError MsgStop&#40; "Línea 79", "rutinasdeconexion&#46;prg"&#41; lOK&#58;=&#46;F&#46; END IF lOk oCon&#58;ConnectionString&#58;=cStringConexionLocal TRY MsgInfo&#40; "Línea 85", "rutinasdeconexion&#46;prg"&#41; oCon&#58;Open&#40;&#41; CATCH oError MsgStop&#40; "Línea 88", "rutinasdeconexion&#46;prg"&#41; lOK&#58;=&#46;F&#46; oCon&#58;=NIL END IF lOk //creamos un objeto recordset para ejecutar los queries TRY MsgInfo&#40; "Línea 95", "rutinasdeconexion&#46;prg"&#41; oDatos&#58;=TOleAuto&#40;&#41;&#58;New&#40;"adodb&#46;recordset"&#41; //oDatos&#58;=CreateObject&#40;"adodb&#46;recordSet"&#41; CATCH oError MsgStop&#40; "Línea 99", "rutinasdeconexion&#46;prg"&#41; lOK&#58;=&#46;F&#46; oCon&#58;Close&#40;&#41; oDatos&#58;=NIL oCon&#58;=NIL END IF lOk oDatos&#58;CursorLocation &#58;= adUseServer //adUseClient oDatos&#58;LockType &#58;= adLockOptimistic oDatos&#58;CursorType &#58;= adOpenKeyset oDatos&#58;Source&#58;=cComando oDatos&#58;ActiveConnection&#40;oCon&#41; TRY MsgInfo&#40; "Línea 112", "rutinasdeconexion&#46;prg"&#41; oDatos&#58;Open&#40;&#41; CATCH oError MsgStop&#40; "Línea 115", "rutinasdeconexion&#46;prg"&#41; MsgStop&#40;oError&#58;Operation,"adodb&#46;recordset"&#41; lOK&#58;=&#46;F&#46; oCon&#58;Close&#40;&#41; oDatos&#58;=NIL oCon&#58;=NIL END ELSE oCon&#58;Close&#40;&#41; oDatos&#58;=NIL oCon&#58;=NIL ENDIF ELSE oCon&#58;Close&#40;&#41; oCon&#58;=NIL ENDIF ELSE oCon&#58;=NIL ENDIF RETURN lOk[/code:m9bz3n22] [code:m9bz3n22]IF Sql&#40;"SELECT pass_u,pagina FROM EXT1_CENTROCLIP&#46;USUARIO WHERE trim&#40;nombre_u&#41;='"+Alltrim&#40;cUsuario&#41;+"'"&#41; &#46;&#46;&#46; &#46;&#46;&#46; ENDIF[/code:m9bz3n22] cStringConexionLocal es una variable definida como pública que contiene el string de conexión a Oracle 10gR2. ¿Qué podrá ser? Saludos y gracias nuevamente David Lagos S.
Consulta sobre Achoice
Hola a todos... Tengo un Array que quiero mostrar con un AChoice. Hay forma de poner un get que me permita ejecutar una función al dar enter se ejecute y recargue el Array que se está mostrando en el Achoice? Desde ya muchas gracias. Saludos,
Consulta sobre ActiveX
Hola, tengo la obligada desdicha de incorporar en mi sistema la impresion de facturas fiscales EPSON, esto se hace a traves de un control ActiveX, hago lo siguiente: oActiveX&#058;=TActiveX():New(oWnd, "EpsonFPHostControlX.EpsonFPHostControl") oWnd:oClient:=oActiveX Va todo bien, pero me aparece un dibujito de un cable arriba a la izquierda y no me muestra el fondo que utilizo. Muchas gracias Jorge Jaurena
Consulta sobre ActiveX
Jorge, Puedes capturar una imagen de como se ve y ponerla en <!-- w --><a class="postlink" href="http://www.imageshack.us">www.imageshack.us</a><!-- w --> y copiar el url aqui ?
Consulta sobre ActiveX
Ok, hago eso. Antonio, no se si viste un mail que te envie sobre un exe en texto con FWH. Gracias Jorge Jaurena
Consulta sobre ActiveX
Jorge, No lo he recibido, lo mandastes como ZIP ? Igual lo borró el filtro antispam
Consulta sobre ActiveX
Bueno, te comento aqui. La consulta era la siguiente: Tengo que hacer un pequeño programa que levante una base de datos SQL y pretendo usar ODBC o conectar directo al motor, pero el problema es que este programa debe correr en modo texto, ya que correra sobre terminales Symbol utilizando Telnet, y por desgracia el Telnet no levanta nada en modo grafico a pesar de que la terminal usa Windows CE. No tengo intencion de volver a Clipper, me gustaria armar esto con FWH, sera posible esto?, habra algun ejemplo? Muchas gracias. Jorge Jaurena
Consulta sobre ActiveX
Ya subi la imagen, espero que sirva. Este es el url, copio los dos que me dio [url=http&#58;//img224&#46;imageshack&#46;us/my&#46;php?image=asiseveconactivexcz9&#46;jpg:1x7bxxis][img:1x7bxxis]http&#58;//img224&#46;imageshack&#46;us/img224/1230/asiseveconactivexcz9&#46;th&#46;jpg[/img:1x7bxxis][/url:1x7bxxis] [url=http&#58;//img224&#46;imageshack&#46;us/my&#46;php?image=asiseveconactivexcz9&#46;jpg:1x7bxxis][img=http://img224.imageshack.us/img224/1230/asiseveconactivexcz9.th.jpg][/url:1x7bxxis] Gracias Jorge Jaurena
Consulta sobre ActiveX
Jorge... Con que trabajas. Harbour, xHarbour, xHarbour.com... Yo intente en reiteradas oportunidades hacer funcionar la Activex de Epson con Harbour y no se puede, el error como podras ver en mis multiples posts aqui en este foro es como enviar un CHR(0) como comando al Activex En Harbour no pude hacerlo, o mas bien no encontre la solucion con los consejos de Antonio Linares, (puedes buscar los Posts) Mi solucion, ya que tambien trabajo con Xharbour.com fue utilizar la funcion WtArrayWrapper() si necesitas ej. te lo envio.. pero como te dije.. solo lo he logrado con Xhb.com Desde Chile.
Consulta sobre ActiveX
Gracias Antonio por tu respuesta. Si podes enviame algun ejemplo a <!-- e --><a href="mailto:jjaurena@yahoo.com">jjaurena@yahoo.com</a><!-- e --> y pruebo con xHarbour ya que estoy usando Harbour. Saludos! Jorge Jaurena.
Consulta sobre ActiveX
Disculpame me confundi de nombre, quise decir gracias Adolfo.
Consulta sobre ActiveX
Jorge, Puedes simular una consola de texto usando una ventana. Se trata de que bPainted de la ventana tome la información de un array y lo vuelque a la ventana. Así escribes al array, y luego lo vuelcas a la ventana. Es lo que por ejemplo hace Xbase++ para simular su modo consola. Muchas aplicaciones comerciales de gestión también lo usan para simular un terminal
Consulta sobre ActiveX
Antonio tendras un pequeño ejemplo? Gracias!
Consulta sobre ActiveX
Jorge, Como verás, facilmente puedes implementar desplazamiento del texo (scroll vertical), incluso colores, etc. [code:3r9ii3g8] #include "FiveWin&#46;ch" static oWnd, buffer&#91; 25, 80 &#93; function Main&#40;&#41; local oFont, nRow, nCol for nRow = 1 to 25 for nCol = 1 to 80 buffer&#91; nRow, nCol &#93; = " " next next DEFINE FONT oFont NAME "Courier New" SIZE 0, -12 DEFINE WINDOW oWnd TITLE "Terminal" COLOR "W+/B" oWnd&#58;SetFont&#40; oFont &#41; Say&#40; 5, 5, "Hello world!" &#41; Say&#40; 10, 12, "A terminal emulator" &#41; ACTIVATE WINDOW oWnd ; ON PAINT DumpText&#40; oWnd &#41; return nil function DumpText&#40; oWnd &#41; local nRow, nCol for nRow = 1 to 25 for nCol = 1 to 80 oWnd&#58;Say&#40; nRow, nCol, buffer&#91; nRow, nCol &#93; &#41; next next return nil function Say&#40; nRow, nCol, cText &#41; local n for n = 1 to Len&#40; cText &#41; buffer&#91; nRow, nCol + n - 1 &#93; = SubStr&#40; cText, n, 1 &#41; next oWnd&#58;Refresh&#40;&#41; return nil [/code:3r9ii3g8]
Consulta sobre ActiveX
Gracias Antonio, voy a probar algo asi en la terminal. Saludos Jorge Jaurena
Consulta sobre ActiveX
Antonio, el ejemplo funciona en una pc pero en la terminal no levanta porque el texto esta contenido dentro de una ventana windows y telnet solo muestra texto. Se podra hacer esto? Saludos y gracias! Jorge Jaurena.
Consulta sobre BTNBMP
Hola amigos, ¿es posible tener un BTNBMP que se muestre con los bordes redondeados? Estoy haciendo pruebas con lRound:=.T. pero nada. [img:3i84n06w]https&#58;//fotos&#46;subefotos&#46;com/9eb1d9fa3fd99025cf19df0b9d7cfa2co&#46;png[/img:3i84n06w] Gracias
Consulta sobre BTNBMP
[url:6ztx7nka]http&#58;//forums&#46;fivetechsupport&#46;com/viewtopic&#46;php?f=3&t=20309&p=107649&hilit=TESTBTN4#p107649[/url:6ztx7nka] Saludos.
Consulta sobre BTNBMP
Gracias João , veo en el enlace que me indicas que están usando imágenes sobre botones transparentes, no es lo que pretendo. Simplemente necesito un botón sólo texto, con un color de fondo y que tenga el borde redondeado. Gracias,
Consulta sobre BTNBMP
y se usted usar una BitMap vacia? Saludos.
Consulta sobre BTNBMP
Lo pruebo gracias.
Consulta sobre BTNBMP
[img:1382e9lp]https&#58;//i&#46;imgur&#46;com/JtRqzgX&#46;png[/img:1382e9lp] con tsbutton se pude de forma facil.
Consulta sobre BUTTON y BUTTONBMP
Hola a todos; Es una pregunta tonta, pero ahora mismo no se si es correcto, aunque me funciona bien, no se si se tiene que hacer asi. En Resource WorkShop se definen igual los botones BUTTON que los BUTTONBAR ? Hasta ahora los declaro en codigo asi: REDEFINE BUTTON oBotonBMP[1] ID 600 OF oDlg; ACTION If( Grabar(), ( cValid := .T., oDlg:End() ),; ( cValid := .F., MiFoco( @oCampos, 1 ) )) ; MESSAGE "Aceptar" Y probando ahora los BUTTONBMP, sin cambiar nada en el recurso, he hecho: REDEFINE BUTTONBMP oBotonBMP[1] ID 600 OF oDlg; ACTION If( Grabar(), ( cValid := .T., oDlg:End() ),; ( cValid := .F., MiFoco( @oCampos, 1 ) )) ; PROMPT "Aceptar"; BITMAP "VMenu_Nuevo" TEXTRIGHT; TOOLTIP "Aceptar000000" Y funciona genial, usa el mismo control del boton que tenia para los BUTTON pero ahora con BUTTONBAR le añade una imagen al boton, sin controles Borland, genial, pero esto es correcto? Tengo que cambiar algo en el recurso, o esto es correcto? Un saludo JLL
Consulta sobre BUTTON y BUTTONBMP
Saludos Si es correcto, BUTTONBMP hereda de BUTTON esta a su vez crea el boton que nos brinda el API de window La idea es BUTTONBMP es poder agregarle la imagen al boton que creamos con el API de window (con/sin temas activos en la aplicacion) que este no permite agregarle imagenes por default, simplemente se captura el mensaje WM_PAINT para poder hacer eso.
Consulta sobre BUTTON y BUTTONBMP
Muchas gracias Daniel. Como siempre tan amable y apagando fuegos. Muchas gracias. Un saludo JLL
Consulta sobre C
Hola, Alguien me puede decir si esta sintaxis es valida en "C", lamento molestar pero mis conocimientos en C son menos que pocos. [code=fw:2x2dmn56]<div class="fw" id="{CB}" style="font-family: monospace;"><br />char * hb_parc<span style="color: #000000;">&#40;</span> int iParam, ... <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">return</span> hb_parvc<span style="color: #000000;">&#40;</span>int iParam, ... <span style="color: #000000;">&#41;</span> ;<br />&nbsp;<span style="color: #000000;">&#125;</span><br /><br />&nbsp;</div>[/code:2x2dmn56] Gracias por sus respuestas, Lautaro Moreira Osorno Chile
Consulta sobre C
Lautaro, Cuando escribes "..." te refieres a que escribirás parámetros ahí, ó a dejarlo asi como está ? El lenguaje C permite el paso de parámetros como "..." pero no puedes reenviarlos como "..." a otra función. Tienes que usar va_list, va_start(), va_end(). Aqui tienes un ejemplo del código de Harbour: [code=fw:1fn7lqrs]<div class="fw" id="{CB}" style="font-family: monospace;"><br />int hb_snprintf<span style="color: #000000;">&#40;</span> char * buffer, size_t bufsize, const char * format, ... <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />   va_list ap;<br />   int iResult;<br /><br />   va_start<span style="color: #000000;">&#40;</span> ap, format <span style="color: #000000;">&#41;</span>;<br />   iResult = hb_vsnprintf<span style="color: #000000;">&#40;</span> buffer, bufsize, format, ap <span style="color: #000000;">&#41;</span>;<br />   va_end<span style="color: #000000;">&#40;</span> ap <span style="color: #000000;">&#41;</span>;<br /><br />   <span style="color: #00C800;">return</span> iResult;<br /><span style="color: #000000;">&#125;</span><br /> </div>[/code:1fn7lqrs] Hay mucha documentación en Internet al respecto, por ejemplo: <!-- m --><a class="postlink" href="http://www.mailxmail.com/curso-programacion-c/funciones-numero-argumentos-no-especificado">http://www.mailxmail.com/curso-programa ... pecificado</a><!-- m -->
Consulta sobre C
Lautaro, Me imagino que estarás viendo la forma de compatibilizar con el Harbour SVN mas reciente <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> Nosotros ya hemos empezado a estudiarlo y posiblemente podamos publicar una version de FWH compatible en solo unos dias <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Consulta sobre C
Hola, Gracias por la respuesta, efectivamente, estaba pensando en la compatibilidad y pense que se podia recibir como ... y pasar como ... .- Gracias por la respuesta y de todas maneras me sirvio para aprender un poquito mas de C. De nuevo muchas gracias por vuestra atencion. Lautaro Moreira Osorno Chile
Consulta sobre C
Lautaro, Estamos trabajando en una solución que ofrecería compatibilidad con versiones nuevas y antiguas de Harbour, y con xHarbour tambien <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> A ver si hoy mismo obtenemos los resultados <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Consulta sobre C
Antonio, Excelente noticia, Atentamente, Lautaro Moreira Osorno Chile
Consulta sobre C
Lautaro, Ya esta disponible <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> Por favor contáctame por email, gracias
Consulta sobre C
Antonio, Envie el email, Atento a tus respuestas y agradecido por tu atencion, Lautaro Moreira Osorno Chile
Consulta sobre COLUMN BROWSE
Estoy utilizando este browse y necesito: 1) Sacar la barra de desplazamiento horizontal y vertical 2) Como hacer que quede en modo ingreso sin tener que presionar doble click sobre una columna especifica o simular un docle click via comando. 3) Como le coloco un valor a una columna en tiempo de ejecución, por ejemplo, en columna 1 ingreso codigo y busco el valor en una tabla y coloco en la columna 2 el nombre del codigo. Se agradece desde ya... <!-- s:( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":(" title="Sad" /><!-- s:( -->
Consulta sobre COLUMN BROWSE
No sé que Browse usas, si el xBrowse u otro. Yo lo hago así con xBrowse [code=fw:1n3nxwy5]<div class="fw" id="{CB}" style="font-family: monospace;"><br />&nbsp; &nbsp;oCol = oBrw:<span style="color: #000000;">AddCol</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oCol:<span style="color: #000000;">bEditValue</span> := <span style="color: #000000;">&#123;</span> |x| <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> x == <span style="color: #00C800;">nil</span>, <span style="color: #000000;">&#40;</span>cAlias1<span style="color: #000000;">&#41;</span>->codigo, <span style="color: #000000;">&#40;</span>cAlias1<span style="color: #000000;">&#41;</span>->codigo := x <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <br />&nbsp; &nbsp;oCol:<span style="color: #000000;">nEditType</span> &nbsp; &nbsp; := EDIT_GET_BUTTON<br />&nbsp; &nbsp;oCol:<span style="color: #000000;">cHEADER</span> &nbsp; &nbsp; &nbsp; := <span style="color: #ff0000;">"CODIGO &nbsp;"</span> <br />&nbsp; &nbsp;oCol:<span style="color: #000000;">addResource</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"BUSCAR1"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oCol:<span style="color: #000000;">lBtnTransparent</span> := .t.<br />&nbsp; &nbsp;oCol:<span style="color: #000000;">nBtnBmp</span> := <span style="color: #000000;">1</span><br />&nbsp; &nbsp;oCol:<span style="color: #000000;">bEditValid</span> &nbsp; &nbsp;:= <span style="color: #000000;">&#123;</span>|o| <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> Empty<span style="color: #000000;">&#40;</span>o:<span style="color: #000000;">value</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span> , .f., .t.<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp;oCol:<span style="color: #000000;">bEditBlock</span> &nbsp; := <span style="color: #000000;">&#123;</span>|nRow, nCol, oCol| oCol:<span style="color: #000000;">Value</span> := BuscaUnServicio<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> &nbsp;<span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp;oCol:<span style="color: #000000;">bOnPostEdit</span> &nbsp; := <span style="color: #000000;">&#123;</span> | oCol, xVal, nKey | <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> RecCount<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> == <span style="color: #000000;">0</span>,<span style="color: #000000;">&#40;</span> DbAppend<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, oBrw:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>,<span style="color: #000000;">&#41;</span> ,; <br />&nbsp; &nbsp;<span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> nKey == VK_RETURN, <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span>BServicio<span style="color: #000000;">&#40;</span>oBrw,xVal<span style="color: #000000;">&#41;</span>,oBrw:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>,oBrw:<span style="color: #000000;">GoleftMost</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>,<span style="color: #000000;">&#41;</span>,;<br />&nbsp; &nbsp;<span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> nKey == VK_ESCAPE .and. Val<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#40;</span>cAlias1<span style="color: #000000;">&#41;</span>->codigo<span style="color: #000000;">&#41;</span>=<span style="color: #000000;">0</span>,<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span>cAlias1<span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span>dbDelete<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#40;</span>cAlias1<span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span>__dbPack<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>,<span style="color: #000000;">&#40;</span>cAlias1<span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span>dbGoBottom<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>,oBrw:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>, <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span></div>[/code:1n3nxwy5] la función BuscaUnservicio() es para el bmp que pongo en la celda, y la Bservicio() es para validar el código [code=fw:1n3nxwy5]<div class="fw" id="{CB}" style="font-family: monospace;">*------------------------------------------------------------------------------<br /><span style="color: #00C800;">Function</span> BServicio<span style="color: #000000;">&#40;</span>oBrw,xVal<span style="color: #000000;">&#41;</span><br />*------------------------------------------------------------------------------<br /><span style="color: #00C800;">Local</span> cServicio := Val<span style="color: #000000;">&#40;</span>xVal<span style="color: #000000;">&#41;</span> &nbsp; <br />&nbsp; <br />&nbsp; &nbsp; &nbsp; cServicio := PADL<span style="color: #000000;">&#40;</span>cServicio,<span style="color: #000000;">4</span>,<span style="color: #ff0000;">"0"</span><span style="color: #000000;">&#41;</span> <br />&nbsp; &nbsp; &nbsp; SERV-><span style="color: #000000;">&#40;</span>dbSeek<span style="color: #000000;">&#40;</span>cServicio<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span> <br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">If</span> SERV-><span style="color: #000000;">&#40;</span>Found<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#40;</span>oBrw:<span style="color: #000000;">cAlias</span><span style="color: #000000;">&#41;</span>->codigo := cServicio<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#40;</span>oBrw:<span style="color: #000000;">cAlias</span><span style="color: #000000;">&#41;</span>->concepto := SERV->servicio<br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">Else</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cServicio := BuscaUnServicio<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#40;</span>oBrw:<span style="color: #000000;">cAlias</span><span style="color: #000000;">&#41;</span>->codigo := cServicio<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#40;</span>oBrw:<span style="color: #000000;">cAlias</span><span style="color: #000000;">&#41;</span>->concepto := SERV->servicio &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">EndIf</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#40;</span>oBrw:<span style="color: #000000;">cAlias</span><span style="color: #000000;">&#41;</span>->fecha &nbsp; &nbsp;:= aCabAlb<span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#40;</span>oBrw:<span style="color: #000000;">cAlias</span><span style="color: #000000;">&#41;</span>->cliente &nbsp;:= aCabAlb<span style="color: #000000;">&#91;</span> <span style="color: #000000;">3</span><span style="color: #000000;">&#93;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#40;</span>oBrw:<span style="color: #000000;">cAlias</span><span style="color: #000000;">&#41;</span>->agente &nbsp; := aCabAlb<span style="color: #000000;">&#91;</span><span style="color: #000000;">18</span><span style="color: #000000;">&#93;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#40;</span>oBrw:<span style="color: #000000;">cAlias</span><span style="color: #000000;">&#41;</span>->comision := CLIE->comision<br />&nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#40;</span>oBrw:<span style="color: #000000;">cAlias</span><span style="color: #000000;">&#41;</span>->tipcli &nbsp; := aCabAlb<span style="color: #000000;">&#91;</span><span style="color: #000000;">23</span><span style="color: #000000;">&#93;</span><br />&nbsp; &nbsp; &nbsp; oBrw:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>&nbsp; &nbsp; <br /><span style="color: #00C800;">Return</span> .t.</div>[/code:1n3nxwy5] [code=fw:1n3nxwy5]<div class="fw" id="{CB}" style="font-family: monospace;">* ------------------------------------------------------------------<br /><span style="color: #00C800;">FUNCTION</span> BUSCAUNSERVICIO<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />* ------------------------------------------------------------------<br /><span style="color: #00C800;">Local</span> oDlgBus &nbsp; <br /><span style="color: #00C800;">Local</span> oLbxServi &nbsp; <br /><span style="color: #00C800;">Local</span> cAlServ<br /><span style="color: #00C800;">Local</span> nSele := <span style="color: #0000ff;">SELECT</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">Local</span> oDServi, xCodigo := Space<span style="color: #000000;">&#40;</span><span style="color: #000000;">4</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; dbSelectArea<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"SERV"</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; SERV-><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; cAlServ := <span style="color: #0000ff;">ALIAS</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; DATABASE oDServi<br />&nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlgBus <span style="color: #0000ff;">RESOURCE</span> <span style="color: #ff0000;">"DLGBUSCAR"</span> <span style="color: #0000ff;">COLOR</span> RGB<span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span>,<span style="color: #000000;">0</span>,<span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span>,RGB<span style="color: #000000;">&#40;</span><span style="color: #000000;">153</span>,<span style="color: #000000;">204</span>,<span style="color: #000000;">153</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">LISTBOX</span> oLbxServi &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; FIELDS oDServi:<span style="color: #000000;">numero</span>, oDServi:<span style="color: #000000;">servicio</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; HEADERS <span style="color: #ff0000;">"NUMERO"</span>,<span style="color: #ff0000;">"SERVICIO"</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ALIAS</span> cAlServ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">COLOR</span> CLR_BLACK, RGB<span style="color: #000000;">&#40;</span><span style="color: #000000;">220</span>,<span style="color: #000000;">220</span>,<span style="color: #000000;">220</span><span style="color: #000000;">&#41;</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ID</span> <span style="color: #000000;">2001</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">UPDATE</span> ; <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">OF</span> oDlgBus <br />&nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; oDlgbus:<span style="color: #000000;">SetControl</span><span style="color: #000000;">&#40;</span> oLbxServi <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; oDlgBus:<span style="color: #000000;">bGotFocus</span> := <span style="color: #000000;">&#123;</span> || oLbxServi:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; oLbxServi:<span style="color: #000000;">bSkip</span> = <span style="color: #000000;">&#123;</span> | nRecs | oDServi:<span style="color: #000000;">Skipper</span><span style="color: #000000;">&#40;</span> nRecs <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; oLbxServi:<span style="color: #000000;">lCellStyle</span> = .F.<br />&nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">REDEFINE</span> BUTTONBMP <span style="color: #0000ff;">ID</span> <span style="color: #000000;">120</span> <span style="color: #0000ff;">OF</span> oDlgBus BITMAP <span style="color: #ff0000;">"ACEPTAR"</span> TEXTRIGHT ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; <span style="color: #0000ff;">ACTION</span> &nbsp;xCodigo:= oDServi:<span style="color: #000000;">numero</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oDlgBus:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>,dbSelectArea<span style="color: #000000;">&#40;</span>nSele<span style="color: #000000;">&#41;</span> <br /><br />&nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">REDEFINE</span> BUTTONBMP <span style="color: #0000ff;">ID</span> <span style="color: #000000;">121</span> <span style="color: #0000ff;">OF</span> oDlgBus BITMAP <span style="color: #ff0000;">"CANCELAR"</span> TEXTRIGHT ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">ACTION</span> xCodigo := Space<span style="color: #000000;">&#40;</span><span style="color: #000000;">4</span><span style="color: #000000;">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oDlgBus:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>,dbSelectArea<span style="color: #000000;">&#40;</span>nSele<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlgBus <span style="color: #0000ff;">CENTERED</span><br />&nbsp; &nbsp; SysRefresh<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: #000000;">&#40;</span> xCodigo <span style="color: #000000;">&#41;</span></div>[/code:1n3nxwy5] Espero que te sirva
Consulta sobre COLUMN BROWSE
Se agardece por vuestra ayuda ya lo arregle y estoy utilizando TCBRowse que lo modifique a mi pinta en TJbrowse Se agradece... [quote="Pedro":3j3m3r6v]No sé que Browse usas, si el xBrowse u otro. Yo lo hago así con xBrowse [code=fw:3j3m3r6v]<div class="fw" id="{CB}" style="font-family: monospace;"><br />   oCol = oBrw:<span style="color: #000000;">AddCol</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   oCol:<span style="color: #000000;">bEditValue</span> := <span style="color: #000000;">&#123;</span> |x| <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> x == <span style="color: #00C800;">nil</span>, <span style="color: #000000;">&#40;</span>cAlias1<span style="color: #000000;">&#41;</span>->codigo, <span style="color: #000000;">&#40;</span>cAlias1<span style="color: #000000;">&#41;</span>->codigo := x <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <br />   oCol:<span style="color: #000000;">nEditType</span>     := EDIT_GET_BUTTON<br />   oCol:<span style="color: #000000;">cHEADER</span>       := <span style="color: #ff0000;">"CODIGO  "</span> <br />   oCol:<span style="color: #000000;">addResource</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"BUSCAR1"</span> <span style="color: #000000;">&#41;</span><br />   oCol:<span style="color: #000000;">lBtnTransparent</span> := .t.<br />   oCol:<span style="color: #000000;">nBtnBmp</span> := <span style="color: #000000;">1</span><br />   oCol:<span style="color: #000000;">bEditValid</span>    := <span style="color: #000000;">&#123;</span>|o| <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> Empty<span style="color: #000000;">&#40;</span>o:<span style="color: #000000;">value</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span> , .f., .t.<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />   oCol:<span style="color: #000000;">bEditBlock</span>   := <span style="color: #000000;">&#123;</span>|nRow, nCol, oCol| oCol:<span style="color: #000000;">Value</span> := BuscaUnServicio<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>  <span style="color: #000000;">&#125;</span><br />   oCol:<span style="color: #000000;">bOnPostEdit</span>   := <span style="color: #000000;">&#123;</span> | oCol, xVal, nKey | <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> RecCount<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> == <span style="color: #000000;">0</span>,<span style="color: #000000;">&#40;</span> DbAppend<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, oBrw:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>,<span style="color: #000000;">&#41;</span> ,; <br />   <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> nKey == VK_RETURN, <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span>BServicio<span style="color: #000000;">&#40;</span>oBrw,xVal<span style="color: #000000;">&#41;</span>,oBrw:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>,oBrw:<span style="color: #000000;">GoleftMost</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>,<span style="color: #000000;">&#41;</span>,;<br />   <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> nKey == VK_ESCAPE .and. Val<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#40;</span>cAlias1<span style="color: #000000;">&#41;</span>->codigo<span style="color: #000000;">&#41;</span>=<span style="color: #000000;">0</span>,<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span>cAlias1<span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span>dbDelete<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>,;<br />               <span style="color: #000000;">&#40;</span>cAlias1<span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span>__dbPack<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>,<span style="color: #000000;">&#40;</span>cAlias1<span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span>dbGoBottom<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>,oBrw:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>, <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span></div>[/code:3j3m3r6v] la función BuscaUnservicio() es para el bmp que pongo en la celda, y la Bservicio() es para validar el código [code=fw:3j3m3r6v]<div class="fw" id="{CB}" style="font-family: monospace;">*------------------------------------------------------------------------------<br /><span style="color: #00C800;">Function</span> BServicio<span style="color: #000000;">&#40;</span>oBrw,xVal<span style="color: #000000;">&#41;</span><br />*------------------------------------------------------------------------------<br /><span style="color: #00C800;">Local</span> cServicio := Val<span style="color: #000000;">&#40;</span>xVal<span style="color: #000000;">&#41;</span>   <br />  <br />      cServicio := PADL<span style="color: #000000;">&#40;</span>cServicio,<span style="color: #000000;">4</span>,<span style="color: #ff0000;">"0"</span><span style="color: #000000;">&#41;</span> <br />      SERV-><span style="color: #000000;">&#40;</span>dbSeek<span style="color: #000000;">&#40;</span>cServicio<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span> <br />      <span style="color: #00C800;">If</span> SERV-><span style="color: #000000;">&#40;</span>Found<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />         <span style="color: #000000;">&#40;</span>oBrw:<span style="color: #000000;">cAlias</span><span style="color: #000000;">&#41;</span>->codigo := cServicio<br />         <span style="color: #000000;">&#40;</span>oBrw:<span style="color: #000000;">cAlias</span><span style="color: #000000;">&#41;</span>->concepto := SERV->servicio<br />      <span style="color: #00C800;">Else</span><br />         cServicio := BuscaUnServicio<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />         <span style="color: #000000;">&#40;</span>oBrw:<span style="color: #000000;">cAlias</span><span style="color: #000000;">&#41;</span>->codigo := cServicio<br />         <span style="color: #000000;">&#40;</span>oBrw:<span style="color: #000000;">cAlias</span><span style="color: #000000;">&#41;</span>->concepto := SERV->servicio     <br />      <span style="color: #00C800;">EndIf</span><br />      <span style="color: #000000;">&#40;</span>oBrw:<span style="color: #000000;">cAlias</span><span style="color: #000000;">&#41;</span>->fecha    := aCabAlb<span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span><br />      <span style="color: #000000;">&#40;</span>oBrw:<span style="color: #000000;">cAlias</span><span style="color: #000000;">&#41;</span>->cliente  := aCabAlb<span style="color: #000000;">&#91;</span> <span style="color: #000000;">3</span><span style="color: #000000;">&#93;</span><br />      <span style="color: #000000;">&#40;</span>oBrw:<span style="color: #000000;">cAlias</span><span style="color: #000000;">&#41;</span>->agente   := aCabAlb<span style="color: #000000;">&#91;</span><span style="color: #000000;">18</span><span style="color: #000000;">&#93;</span><br />      <span style="color: #000000;">&#40;</span>oBrw:<span style="color: #000000;">cAlias</span><span style="color: #000000;">&#41;</span>->comision := CLIE->comision<br />      <span style="color: #000000;">&#40;</span>oBrw:<span style="color: #000000;">cAlias</span><span style="color: #000000;">&#41;</span>->tipcli   := aCabAlb<span style="color: #000000;">&#91;</span><span style="color: #000000;">23</span><span style="color: #000000;">&#93;</span><br />      oBrw:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>    <br /><span style="color: #00C800;">Return</span> .t.</div>[/code:3j3m3r6v] [code=fw:3j3m3r6v]<div class="fw" id="{CB}" style="font-family: monospace;">* ------------------------------------------------------------------<br /><span style="color: #00C800;">FUNCTION</span> BUSCAUNSERVICIO<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />* ------------------------------------------------------------------<br /><span style="color: #00C800;">Local</span> oDlgBus   <br /><span style="color: #00C800;">Local</span> oLbxServi   <br /><span style="color: #00C800;">Local</span> cAlServ<br /><span style="color: #00C800;">Local</span> nSele := <span style="color: #0000ff;">SELECT</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">Local</span> oDServi, xCodigo := Space<span style="color: #000000;">&#40;</span><span style="color: #000000;">4</span><span style="color: #000000;">&#41;</span><br /><br />    dbSelectArea<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"SERV"</span><span style="color: #000000;">&#41;</span><br />    SERV-><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 />    cAlServ := <span style="color: #0000ff;">ALIAS</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />    DATABASE oDServi<br />      <br />    <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlgBus <span style="color: #0000ff;">RESOURCE</span> <span style="color: #ff0000;">"DLGBUSCAR"</span> <span style="color: #0000ff;">COLOR</span> RGB<span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span>,<span style="color: #000000;">0</span>,<span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span>,RGB<span style="color: #000000;">&#40;</span><span style="color: #000000;">153</span>,<span style="color: #000000;">204</span>,<span style="color: #000000;">153</span><span style="color: #000000;">&#41;</span><br /><br />    <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">LISTBOX</span> oLbxServi  ;<br />            FIELDS oDServi:<span style="color: #000000;">numero</span>, oDServi:<span style="color: #000000;">servicio</span>;<br />            HEADERS <span style="color: #ff0000;">"NUMERO"</span>,<span style="color: #ff0000;">"SERVICIO"</span>;<br />            <span style="color: #0000ff;">ALIAS</span> cAlServ;<br />            <span style="color: #0000ff;">COLOR</span> CLR_BLACK, RGB<span style="color: #000000;">&#40;</span><span style="color: #000000;">220</span>,<span style="color: #000000;">220</span>,<span style="color: #000000;">220</span><span style="color: #000000;">&#41;</span> ;<br />            <span style="color: #0000ff;">ID</span> <span style="color: #000000;">2001</span>;<br />            <span style="color: #0000ff;">UPDATE</span> ; <br />            <span style="color: #0000ff;">OF</span> oDlgBus <br />     <br />    <br />      oDlgbus:<span style="color: #000000;">SetControl</span><span style="color: #000000;">&#40;</span> oLbxServi <span style="color: #000000;">&#41;</span><br />      oDlgBus:<span style="color: #000000;">bGotFocus</span> := <span style="color: #000000;">&#123;</span> || oLbxServi:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />        oLbxServi:<span style="color: #000000;">bSkip</span> = <span style="color: #000000;">&#123;</span> | nRecs | oDServi:<span style="color: #000000;">Skipper</span><span style="color: #000000;">&#40;</span> nRecs <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />        oLbxServi:<span style="color: #000000;">lCellStyle</span> = .F.<br />    <br />     <span style="color: #0000ff;">REDEFINE</span> BUTTONBMP <span style="color: #0000ff;">ID</span> <span style="color: #000000;">120</span> <span style="color: #0000ff;">OF</span> oDlgBus BITMAP <span style="color: #ff0000;">"ACEPTAR"</span> TEXTRIGHT ;<br />                 <span style="color: #0000ff;">ACTION</span>  xCodigo:= oDServi:<span style="color: #000000;">numero</span>,;<br />               oDlgBus:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>,dbSelectArea<span style="color: #000000;">&#40;</span>nSele<span style="color: #000000;">&#41;</span> <br /><br />     <span style="color: #0000ff;">REDEFINE</span> BUTTONBMP <span style="color: #0000ff;">ID</span> <span style="color: #000000;">121</span> <span style="color: #0000ff;">OF</span> oDlgBus BITMAP <span style="color: #ff0000;">"CANCELAR"</span> TEXTRIGHT ;<br />                 <span style="color: #0000ff;">ACTION</span> xCodigo := Space<span style="color: #000000;">&#40;</span><span style="color: #000000;">4</span><span style="color: #000000;">&#41;</span>,;<br />               oDlgBus:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>,dbSelectArea<span style="color: #000000;">&#40;</span>nSele<span style="color: #000000;">&#41;</span><br />    <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlgBus <span style="color: #0000ff;">CENTERED</span><br />    SysRefresh<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />      <br /><span style="color: #00C800;">return</span><span style="color: #000000;">&#40;</span> xCodigo <span style="color: #000000;">&#41;</span></div>[/code:3j3m3r6v] Espero que te sirva[/quote:3j3m3r6v]
Consulta sobre DLL
Buenas tardes. Alguien me podria orientar en lo siguiente: Tengo una dll donde guardo los codigos de la licencia de el software, esta dll se encuentra donde esta el ejecutable. Cuando el sistema es utilizado en modo monousuario, no existe ningun problema con la validación del software, pero cuando el sistema se va a instalar en red, es aqui donde vienen mis dudas. En el equipo "cliente", genero una conexion de red, y ejecuto la aplicación en el "servidor", pero como le puedo hacer para que ese equipo "cliente" sea verificada su licencia?, si la dll esta unicamente en el "servidor". Alguien que me pueda orientar con esto. muchas gracias.
Consulta sobre DLL
Ricardo, Y porque pones el ejecutable en el 'server' ? Que tipo de info hay en la dll ? Como controlas el tema de licencia ? Y si pones la app en cliente y lo datos en el server ?
Consulta sobre DLL
Carles, muy amable por contestar Efectivamente pondré la aplicación en cada cliente para que cada cliente sea "verificado", si tiene o no licencia del software, y la base de datos en el servidor. La dll, esta escrita para que cheque el codigo de licencia de cada maquina, con un algoritmo creado por mi, de tal suerte de que si no existe cierta información en base al cliente y al equipo, entonces solo le doy 30 dias para que utilize el software, y una vez que ó se vencen los 30 dias, ó el cliente se interesa por el software y lo paga, yo le entrego el número de serie de su sistema, y una vez ingresado el número de serie, el cuadro de dialogo de "su sistema.... bla, bla", ya no vuelve a aparecer porque su sistema ya ha sido registrado y pagado. Muchas gracias por tu ayuda, y tu tiempo Saludos
Consulta sobre DbSetFilter
Amigos del foro : Por favor... Tengo un problema con el codigo siguiente : Me da este error : Error BASE/1003 No existe la variable: CALIASCOT cAliasCot lo tengo como Static [code=fw:3yqtqpiy]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">STATIC</span> <span style="color: #00C800;">FUNCTION</span> Filtra_Descripcion<span style="color: #000000;">&#40;</span> cDesc <span style="color: #000000;">&#41;</span><br />    MEMVAR Condi, mDesc, cFiltro, gFiltro<br />    <span style="color: #00C800;">PUBLIc</span> Condi, mDesc, cFiltro, gFiltro<br />    <br />    Condi := <span style="color: #ff0000;">""</span><br />    mDesc := cDesc<br />    <br />    <span style="color: #00C800;">IF</span> mDesc != <span style="color: #ff0000;">" "</span><br />        Condi := Condi + <span style="color: #ff0000;">"AT(mDesc,(cAliasCot)->nombre)>0  .or. AT(mDesc,(cAliasCot)->nombre2)>0 .OR. AT(mDesc,(cAliasCot)->nombre3)>0"</span><br />       cFiltro := <span style="color: #ff0000;">"{||"</span>+Condi+<span style="color: #ff0000;">"}"</span><br />       gFiltro := <span style="color: #ff0000;">'"'</span>+Condi+<span style="color: #ff0000;">'"'</span><br />       ? mDesc<br />        ? <span style="color: #000000;">&#40;</span>cAliasCot<span style="color: #000000;">&#41;</span><br />   <span style="color: #B900B9;">//   SET ORDER TO</span><br />       <span style="color: #000000;">&#40;</span>cAliasCot<span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span>DbSetFilter<span style="color: #000000;">&#40;</span>&cFiltro,gFiltro<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span> <br />       <span style="color: #000000;">&#40;</span>cAliasCot<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 />   <span style="color: #00C800;">ENDIF</span><br />   <br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span></div>[/code:3yqtqpiy] Que estoy haciendo mal ? Saludos
Consulta sobre DbSetFilter
MEMVAR CALIASCOT CALIASCOT := ALIAS() salu2.
Consulta sobre DbSetFilter
Karinha Gracias por tu respuesta, funcionó perfecto Saludos
Consulta sobre FastReport
Hola a todos... Estoy haciendo unas pruebas con FastReport y no logro que la vista previa sea no modal. Es decir, la vista previa me deshabilita la ventana del sistema. Recién me habilita la ventana del sistema cuando cierro el preview. Quisisera tener la ventana de vista previa y poder seguir usando el sistema normalmente sin necesidad de cerrarla. Si alguien sabe como hacer esto, estaré agradecido por el dato. Desde ya muchas gracias. Saludos, Esteban.
Consulta sobre FastReport
<!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: -->
Consulta sobre FastReport
Yo no sepo <!-- s:| --><img src="{SMILIES_PATH}/icon_neutral.gif" alt=":|" title="Neutral" /><!-- s:| --> Saluditos <!-- s:wink: --><img src="{SMILIES_PATH}/icon_wink.gif" alt=":wink:" title="Wink" /><!-- s:wink: -->
Consulta sobre FastReport
Hola Eduardo, En la página de FasTReport hay un ejemplo de como visualizar varios previos en no-modal se llama: multiples_previews.zip. Esta compilado con MiniGui Ext., supongo que para [x]Harbour funciona igual. Yo no lo utilizo, pero espero que te sirva de ayuda. Esta posibilidad se implementó a partir de la version 4.7 con lo siguientes metodos: [code=fw:16k0xgt6]<div class="fw" id="{CB}" style="font-family: monospace;"><br />+ Multiple not-<span style="color: #0000ff;">modal</span> preview mode based <span style="color: #0000ff;">on</span> different reports is added. <span style="color: #00C800;">For</span> this one following <br />methods are added:<br /><br />:<span style="color: #000000;">AddReport</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> - adds <span style="color: #00C800;">new</span> report and makes it <span style="color: #ff0000;">"selected"</span> <span style="color: #000000;">&#40;</span>active<span style="color: #000000;">&#41;</span>. <span style="color: #00C800;">Return</span> number <span style="color: #0000ff;">of</span> <span style="color: #00C800;">new</span> report.<br />:<span style="color: #000000;">SelectReport</span><span style="color: #000000;">&#40;</span>nReport<span style="color: #000000;">&#41;</span> - selects existing report.<br />:<span style="color: #000000;">RemoveReport</span><span style="color: #000000;">&#40;</span>nReport<span style="color: #000000;">&#41;</span> - removes existing report.<br />:<span style="color: #000000;">ClearReports</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> - clear all reports except report with number <span style="color: #000000;">0</span>. <br />:<span style="color: #000000;">PreviewOptions</span>:<span style="color: #000000;">SetModal</span><span style="color: #000000;">&#40;</span>lModal<span style="color: #000000;">&#41;</span> - makes selected report preview <span style="color: #0000ff;">modal</span> or not <span style="color: #0000ff;">modal</span>.<br /><br />Report with number <span style="color: #000000;">0</span> always <span style="color: #0000ff;">exists</span>. Example <span style="color: #0000ff;">of</span> using:<br /><br /><span style="color: #000000;">FrPrn</span>:<span style="color: #000000;">AddReport</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <br />FrPrn:<span style="color: #000000;">LoadFromFile</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"1.fr3"</span><span style="color: #000000;">&#41;</span><br />FrPrn:<span style="color: #000000;">PreviewOptions</span>:<span style="color: #000000;">SetMaximized</span><span style="color: #000000;">&#40;</span>.f.<span style="color: #000000;">&#41;</span><br />FrPrn:<span style="color: #000000;">PreviewOptions</span>:<span style="color: #000000;">SetBounds</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">120</span>, <span style="color: #000000;">120</span>, <span style="color: #000000;">800</span>, <span style="color: #000000;">600</span><span style="color: #000000;">&#41;</span><br />FrPrn:<span style="color: #000000;">PreviewOptions</span>:<span style="color: #000000;">SetModal</span><span style="color: #000000;">&#40;</span>.f.<span style="color: #000000;">&#41;</span><br />FrPrn:<span style="color: #000000;">ShowReport</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />+ :<span style="color: #000000;">PreviewOptions</span>:<span style="color: #000000;">SetRemoveReportOnClose</span><span style="color: #000000;">&#40;</span>lRemove<span style="color: #000000;">&#41;</span> is added. <span style="color: #00C800;">If</span> lRemove = .t. then report will be <br />removed <span style="color: #000000;">&#40;</span>destroyed<span style="color: #000000;">&#41;</span> <span style="color: #00C800;">at</span> preview closing. It does not work <span style="color: #00C800;">for</span> report with number <span style="color: #000000;">0</span>.<br /> </div>[/code:16k0xgt6] Un cordial saludo, Ernesto
Consulta sobre FastReport
Muchas gracias. Voy a ver que hay en el ch y en el fuente del FastReport. Saludos, Esteban.
Consulta sobre Funcky
Estimados Tengo algunas consulta sobre esta libreria Como se distribuye la aplicacion, me explico, hay que instalar todo el paquete o bien solo las dll Saludos Patricio
Consulta sobre Funcky
Nop. Solo tienes que copiar los archivos de FUNCKY a la carpeta Windows\system32 o windows\system de la computadora donde instalas y luego "registrar" el servicio. Copia funcky60.DLL y funcky60.tlb a la carpeta windows\system Luego, desde una ventana de ms-dos "registra" el componente tecleando esto: RegSvr32 C:\Windows\System\FUNCky60.DLL y listo, si utilizas algun instalador como InnoSetup, esto se puede automatizar desde la instalacion.
Consulta sobre Funcky
Gracias maestro ahora una consulta, sobre ftp [code:1tkp2tjj] oFtp &#58;= TOleAuto&#40;&#41;&#58;New&#40;"Funckyftp"&#41; oFtp&#58;Connect&#40;cServer, usuario, clave &#41; if oFtp&#58;Status = 0 oFtp&#58;ChangeDir &#40;"paso\"&#41; cStr &#58;= oFtp&#58;Execute&#40;"LIST", &#46;t&#46; &#41; alert&#40; cStr &#41; //muestra bien los archivos oFtp&#58;Get&#40; "prueba&#46;txt", "c&#58;\prueba&#46;txt",0&#41; endif oFtp&#58;Disconnect&#40;&#41; [/code:1tkp2tjj] me sale el siguiente Error[code:1tkp2tjj] Stack Calls =========== Called from&#58; win32ole&#46;prg => TOLEAUTO&#58;PRUEBA&#46;TXT&#40;0&#41; Called from&#58; => HB_EXECFROMARRAY&#40;0&#41; Called from&#58; win32ole&#46;prg => TOLEAUTO&#58;GET&#40;415&#41; Called from&#58; WCTA&#46;PRG => FUNCKY&#40;1368&#41; Called from&#58; WCTA&#46;PRG => MAIN&#40;20&#41;[/code:1tkp2tjj] Por ahi vi a otro usuario con los metodos GET, pero no lo he encontrado Saludos Patricio
Consulta sobre Funcky
Efectivamente: Aqui tenemos un "pequeño" problema. Sucede que la clase TOLE AUTO tiene un METODO GET y Funcky tambien, lo cual causa un conflicto de intereses.... ¿ a quien le hago caso ?, al metodo GET de Fucnky o al metodo Get de TOLE AUTO Esta claro que lo que se invoca es el metodo GET de la TOLEAUTO, pero te marca el error, porque ese metodo espera unos parametros que no son los que le estan mandando. Esto deberia funcionar asi: oFunckyFTP:Get( "Get", ficheroorigen, ficherodestino ) o oFunckyFTP:Invoke( "Get", ficheroorigen, ficherodestino ) Pruebalo y me dices.
Consulta sobre Funcky
[b:2tye8paf]No funciono, sale el mismo error [code:2tye8paf] oFtp&#58;invoke&#40; "GET", "prueba&#46;txt", "c&#58;\prueba&#46;txt" &#41; oFtp&#58;Get&#40; "GET", "prueba&#46;txt", "c&#58;\prueba&#46;txt" &#41; [/code:2tye8paf][/b:2tye8paf] [code:2tye8paf]Stack Calls =========== Called from&#58; win32ole&#46;prg => TOLEAUTO&#58;PRUEBA&#46;TXT&#40;0&#41; Called from&#58; => HB_EXECFROMARRAY&#40;0&#41; Called from&#58; win32ole&#46;prg => TOLEAUTO&#58;GET&#40;415&#41; Called from&#58; => HB_EXECFROMARRAY&#40;0&#41; Called from&#58; win32ole&#46;prg => TOLEAUTO&#58;INVOKE&#40;415&#41; Called from&#58; WCTA&#46;PRG => FUNCKY&#40;1369&#41; Called from&#58; WCTA&#46;PRG => MAIN&#40;20&#41;[/code:2tye8paf] Pero con la clase de Jose Gimenez funciona bien [b:2tye8paf] oFtp:invoke( "GET", "prueba.txt", "c:\prueba.txt" ) [/b:2tye8paf] Con este linea [b:2tye8paf]oFtp:Get( "prueba.txt", "c:\prueba.txt", 0 )[/b:2tye8paf] Muestra un mensaje de errror [b:2tye8paf]prueba.txt DISP_E_UNKNOWNNAME[/b:2tye8paf] pero no se cae el programa, me parece que esta muy bien debe tener algun problema la clase oleauto de xharbour [code:2tye8paf] * * * Autor&#58; José F&#46; Giménez &#40;JFG&#41; - jfgimenez@wanadoo&#46;es * * tecnico&#46;sireinsa@ctv&#46;es * * Fecha&#58; 6-11-2000 * * * * Revisado&#58; 13-2-2001, 28-2-2001, 13-3-2001 * * * * Nota&#58; basado en la clase TComObj&#40;&#41; de FW 2&#46;1 * * * ************************************************************************** #ifndef __HARBOUR__ #include "FiveWin&#46;ch" #else #include "HBClass&#46;ch" #endif bla&#46;&#46;bla&#46;&#46;bla&#46;&#46; [/code:2tye8paf] Gracias nuevamente maestro Saludos Patricio
Consulta sobre GET
Amigos del foro : Si alguien pudiera ayudarme Esto es un fragmento de mi código : [code=fw:10l8tiuv]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">GET</span> oGet1 <span style="color: #0000ff;">VAR</span> cCodIni <span style="color: #0000ff;">ID</span> <span style="color: #000000;">101</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">update</span> ;<br />        <span style="color: #0000ff;">PICTURE</span> <span style="color: #ff0000;">"@!"</span> ;<br />        <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">CHANGE</span> <span style="color: #00C800;">Self</span>:<span style="color: #000000;">Assign</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> ;<br />        <span style="color: #0000ff;">VALID</span> OkCodIni<span style="color: #000000;">&#40;</span> cCodIni <span style="color: #000000;">&#41;</span><br />        oGet1:<span style="color: #000000;">bGotFocus</span> := <span style="color: #000000;">&#123;</span>||SetKey<span style="color: #000000;">&#40;</span> VK_F2, <span style="color: #000000;">&#123;</span> || VerCodIni<span style="color: #000000;">&#40;</span> oGet1, @cCodIni, oDlg <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#125;</span><br />        oGet1:<span style="color: #000000;">bGotFocus</span> := <span style="color: #000000;">&#123;</span> | oSelf | oSelf:<span style="color: #000000;">SelectAll</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#125;</span> <br />        oGet1:<span style="color: #000000;">bLostFocus</span> := <span style="color: #000000;">&#123;</span>||SetKey<span style="color: #000000;">&#40;</span> VK_F2, <span style="color: #00C800;">nil</span> <span style="color: #000000;">&#41;</span><span style="color: #000000;">&#125;</span></div>[/code:10l8tiuv] La intención es que al mismo tiempo que yo asigno la tecla F2 a VerCodIni, tambien me aparezca seleccionado el Get. Hay alguna forma de que con una sola instrucción oGet1:bGotFocus() pueda hacer las dos cosas ? De antemano muchas gracias Saludos
Consulta sobre GET
Hola Puedes usarlo asi. [code=fw:2bt848qd]<div class="fw" id="{CB}" style="font-family: monospace;">bSetKey := SetKey<span style="color: #000000;">&#40;</span> VK_F2, <span style="color: #000000;">&#123;</span> |x,y,z| iif<span style="color: #000000;">&#40;</span> z:<span style="color: #000000;">classname</span> = <span style="color: #ff0000;">"TGET"</span> .and. Z:<span style="color: #000000;">nId</span> = <span style="color: #000000;">101</span>, VerCodIni<span style="color: #000000;">&#40;</span>..<span style="color: #000000;">&#41;</span>, <span style="color: #00C800;">nil</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">GET</span> oGet1 <span style="color: #0000ff;">VAR</span> cCodIni <span style="color: #0000ff;">ID</span> <span style="color: #000000;">101</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">update</span> ;<br />        <span style="color: #0000ff;">PICTURE</span> <span style="color: #ff0000;">"@!"</span> ;<br />        <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">CHANGE</span> <span style="color: #00C800;">Self</span>:<span style="color: #000000;">Assign</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> ;<br />        <span style="color: #0000ff;">VALID</span> OkCodIni<span style="color: #000000;">&#40;</span> cCodIni <span style="color: #000000;">&#41;</span><br /><br />oGet1:<span style="color: #000000;">bGotFocus</span> := <span style="color: #000000;">&#123;</span> | oSelf | oSelf:<span style="color: #000000;">SelectAll</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg<br /><br />SetKey<span style="color: #000000;">&#40;</span> VK_F2, bSetKey <span style="color: #000000;">&#41;</span><br /><br /><br /> </div>[/code:2bt848qd]
Consulta sobre GET
Patricio Gracias por tus atenciones : Probé tu codigo y funcionó perfecto, pero lo que yo no comenté es que quiero hacerlo para tres Gets y asignar la tecla F2 para los tres Es posible hacerlo ? Aqui está mi código : [code=fw:1zujb7gb]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">STATIC</span> <span style="color: #00C800;">FUNCTION</span> PoneFil<span style="color: #000000;">&#40;</span> oLbx <span style="color: #000000;">&#41;</span><br />    <span style="color: #00C800;">LOCAL</span> oDlg, oBAce, bSetKey1, bSetkey2, bSetKey3<br />    <span style="color: #00C800;">LOCAL</span> oGet1, oGet2, oGet3<br />    <span style="color: #00C800;">LOCAL</span> cCodIni, cCodFin, cFamil<br />    <br />    cat-><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 />    cCodIni := cat->modelo<br />    cat-><span style="color: #000000;">&#40;</span>DBGOBOTTOM<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />    cCodFin := cat->modelo<br />    cat-><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 />    cFamil := <span style="color: #ff0000;">"?????"</span><br />    <br />    bSetKey1 := SetKey<span style="color: #000000;">&#40;</span> VK_F2, <span style="color: #000000;">&#123;</span> |x,y,z| iif<span style="color: #000000;">&#40;</span> z:<span style="color: #000000;">classname</span> = <span style="color: #ff0000;">"TGET"</span> .and. ;<br />                          Z:<span style="color: #000000;">nId</span> = <span style="color: #000000;">101</span>, VerCodIni<span style="color: #000000;">&#40;</span> oGet1, @cCodIni, oDlg <span style="color: #000000;">&#41;</span>, <span style="color: #00C800;">nil</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br />    bSetKey2 := SetKey<span style="color: #000000;">&#40;</span> VK_F2, <span style="color: #000000;">&#123;</span> |x,y,z| iif<span style="color: #000000;">&#40;</span> z:<span style="color: #000000;">classname</span> = <span style="color: #ff0000;">"TGET"</span> .and. ;<br />                              Z:<span style="color: #000000;">nId</span> = <span style="color: #000000;">103</span>, VerCodFin<span style="color: #000000;">&#40;</span> oGet2, @cCodFin, oDlg <span style="color: #000000;">&#41;</span>, <span style="color: #00C800;">nil</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br />    bSetKey3 := SetKey<span style="color: #000000;">&#40;</span> VK_F2, <span style="color: #000000;">&#123;</span> |x,y,z| iif<span style="color: #000000;">&#40;</span> z:<span style="color: #000000;">classname</span> = <span style="color: #ff0000;">"TGET"</span> .and. ;<br />                              Z:<span style="color: #000000;">nId</span> = <span style="color: #000000;">105</span>, VerFamil<span style="color: #000000;">&#40;</span> oGet3, @cFamil, oDlg <span style="color: #000000;">&#41;</span>, <span style="color: #00C800;">nil</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br />                              <br />    <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">RESOURCE</span> <span style="color: #ff0000;">"CamPre"</span><br />      oDlg:<span style="color: #000000;">lHelpIcon</span> := .F.<br />    <br />    <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">GET</span> oGet1 <span style="color: #0000ff;">VAR</span> cCodIni <span style="color: #0000ff;">ID</span> <span style="color: #000000;">101</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">update</span> ;<br />        <span style="color: #0000ff;">PICTURE</span> <span style="color: #ff0000;">"@!"</span> ;<br />        <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">CHANGE</span> <span style="color: #00C800;">Self</span>:<span style="color: #000000;">Assign</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> ;<br />        <span style="color: #0000ff;">VALID</span> OkCodIni<span style="color: #000000;">&#40;</span> cCodIni <span style="color: #000000;">&#41;</span><br />        oGet1:<span style="color: #000000;">bGotFocus</span> := <span style="color: #000000;">&#123;</span> | oSelf | oSelf:<span style="color: #000000;">SelectAll</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#125;</span><br />        <br />    <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">GET</span> oGet2 <span style="color: #0000ff;">VAR</span> cCodFin <span style="color: #0000ff;">ID</span> <span style="color: #000000;">103</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">update</span> ;<br />        <span style="color: #0000ff;">PICTURE</span> <span style="color: #ff0000;">"@!"</span> ;<br />        <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">CHANGE</span> <span style="color: #00C800;">Self</span>:<span style="color: #000000;">Assign</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> ;<br />        <span style="color: #0000ff;">VALID</span> OkCodFin<span style="color: #000000;">&#40;</span> cCodFin <span style="color: #000000;">&#41;</span><br />        oGet2:<span style="color: #000000;">bGotFocus</span> := <span style="color: #000000;">&#123;</span> | oSelf | oSelf:<span style="color: #000000;">SelectAll</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#125;</span><br />        <br />    <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">GET</span> oGet3 <span style="color: #0000ff;">VAR</span> cFamil  <span style="color: #0000ff;">ID</span> <span style="color: #000000;">105</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">update</span> ;<br />        <span style="color: #0000ff;">PICTURE</span> <span style="color: #ff0000;">"@!"</span> ;<br />        <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">CHANGE</span> <span style="color: #00C800;">Self</span>:<span style="color: #000000;">Assign</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />        <br />    <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">BUTTON</span> oBAce <span style="color: #0000ff;">ID</span> <span style="color: #000000;">107</span> <span style="color: #0000ff;">OF</span> oDlg ;<br />        <span style="color: #0000ff;">ACTION</span> Filtro<span style="color: #000000;">&#40;</span> cCodIni, cCodFin, cFamil <span style="color: #000000;">&#41;</span>, oDlg:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />    <br />    <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span><br />        SetKey<span style="color: #000000;">&#40;</span> VK_F2, bSetKey1 <span style="color: #000000;">&#41;</span><br />        SetKey<span style="color: #000000;">&#40;</span> VK_F2, bSetKey2 <span style="color: #000000;">&#41;</span><br />        SetKey<span style="color: #000000;">&#40;</span> VK_F2, bSetKey3 <span style="color: #000000;">&#41;</span><br />      oLbx:<span style="color: #0000ff;">refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />      oLbx:<span style="color: #000000;">SetFocus</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />    <br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span></div>[/code:1zujb7gb] Saludos
Consulta sobre GET
Hola Si es posible, debes hacerlo en un solo Setkey, ya que si asignas en otro eliminas el anterior [code=fw:kxrl57ze]<div class="fw" id="{CB}" style="font-family: monospace;">bSetKey := SetKey<span style="color: #000000;">&#40;</span> VK_F2, <span style="color: #000000;">&#123;</span> |x,y,z| iif<span style="color: #000000;">&#40;</span> z:<span style="color: #000000;">classname</span> = <span style="color: #ff0000;">"TGET"</span> .and. Z:<span style="color: #000000;">nId</span> = <span style="color: #000000;">101</span>, VerCodIni<span style="color: #000000;">&#40;</span>..<span style="color: #000000;">&#41;</span>, <span style="color: #00C800;">nil</span> <span style="color: #000000;">&#41;</span>,;<br />                                      iif<span style="color: #000000;">&#40;</span> z:<span style="color: #000000;">classname</span> = <span style="color: #ff0000;">"TGET"</span> .and. Z:<span style="color: #000000;">nId</span> = <span style="color: #000000;">103</span>, VerCodIni<span style="color: #000000;">&#40;</span>..<span style="color: #000000;">&#41;</span>, <span style="color: #00C800;">nil</span> <span style="color: #000000;">&#41;</span>,;<br />                                      iif<span style="color: #000000;">&#40;</span> z:<span style="color: #000000;">classname</span> = <span style="color: #ff0000;">"TGET"</span> .and. Z:<span style="color: #000000;">nId</span> = <span style="color: #000000;">105</span>, VerCodIni<span style="color: #000000;">&#40;</span>..<span style="color: #000000;">&#41;</span>, <span style="color: #00C800;">nil</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br /><br /> </div>[/code:kxrl57ze]
Consulta sobre GET
Patricio Muchas gracias por tu ayuda te estoy muy agradecido, funcionó tal como yo deseaba Sólo una cosa mas : La linea SetKey( VK_F2, bSetkey) que va despues del ACTIVATE DIALOG cuál es su función porque si no la incluyo tambien funciona mi código ACTIVATE DIALOG oDlg CENTERED //SetKey( VK_F2, bSetKey ) oLbx:refresh() oLbx:SetFocus() Saludos
Consulta sobre GET
Hola que bien que te haya resultado, debes cerrar tu post (SOLUCIONADO ) [code=fw:2sfrrntx]<div class="fw" id="{CB}" style="font-family: monospace;">SetKey<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />Associates a code block with a key. <br /><br />SetKey<span style="color: #000000;">&#40;</span> <nInkeyCode>    , ;<br />       <span style="color: #000000;">&#91;</span><bNewCodeblock><span style="color: #000000;">&#93;</span>, ;<br />       <span style="color: #000000;">&#91;</span><bCondition><span style="color: #000000;">&#93;</span>     <span style="color: #000000;">&#41;</span> --> bOldCodeblock<br /> </div>[/code:2sfrrntx] Como vez retorna la ultima tecla asociada estará activo mientras no asignes un nuevo codeblock a la tecla si ya no quieres asignar mas la tecla F2, solo le asignas NIL [code=fw:2sfrrntx]<div class="fw" id="{CB}" style="font-family: monospace;">Setkey<span style="color: #000000;">&#40;</span> VK_F2, <span style="color: #00C800;">NIL</span> <span style="color: #000000;">&#41;</span></div>[/code:2sfrrntx]
Consulta sobre GET
Buenas tardes, En Harbour consola, hay algo similar que haga lo mismo que hace la sentencia SetGetColorFocus( ) de FW? No se por qué motivo en algunos equipos visualizo el cursor correctamente y en otros equipos no. Tengo en mi PRG inicial SET CURSOR ON Me gustaría de alguna manera resaltar el GET que tenga el foco en una ventana y cuando pierde el foco que vuelva al color por default. Desde ya muchas gracias. Saludos,
Consulta sobre GET
[url:25u51700]https&#58;//www&#46;itlnet&#46;net/programming/program/Reference/c53g01c/ngdfd56&#46;html[/url:25u51700] [quote:25u51700]This includes GETs with INTENSITY ON[/quote:25u51700] En std.ch #command SET INTENSITY <x:ON,OFF,&> => Set( _SET_INTENSITY, <(x)> )
Consulta sobre GRADIENT
Buenas tardes. estoy usando un xbrowse con gradient. si los colores son oscuros pone los registros en esas areas con un color blanco de lo contrario los pone en negro. perfecto y lógico. Pregunto. Cómo defino que NO cambie de color automáticamente sin tener que asignar colores claros a los extremos si o si.? Se Puede? y cómo hago para manejar yo los colores de los registros de acuerdo al valor de un campo.? Muchas Gracias. José Camilo
Consulta sobre GRADIENT
[quote:1adgxk9j]Cómo defino que NO cambie de color automáticamente sin tener que asignar colores claros a los extremos si o si.? Se Puede? [/quote:1adgxk9j] [quote:1adgxk9j]How do I define that it does NOT change color automatically without having to assign light colors to the ends yes or yes? It can? [/quote:1adgxk9j] [code=fw:1adgxk9j]<div class="fw" id="{CB}" style="font-family: monospace;">oBrw:<span style="color: #000000;">lContrastClr</span> &nbsp;:= .f.</div>[/code:1adgxk9j] [quote:1adgxk9j]y cómo hago para manejar yo los colores de los registros de acuerdo al valor de un campo.? [/quote:1adgxk9j] [quote:1adgxk9j]and how do I manage the colors of the records according to the value of a field?[/quote:1adgxk9j] [code=fw:1adgxk9j]<div class="fw" id="{CB}" style="font-family: monospace;">:<span style="color: #000000;">bClrStd</span> := <span style="color: #000000;">&#123;</span> |brw,col| <span style="color: #00C800;">If</span> col == <span style="color: #00C800;">nil</span>, <span style="color: #000000;">&#123;</span> CLR_BLACK, CLR_WHITE <span style="color: #000000;">&#125;</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> col:<span style="color: #000000;">Value</span> > <span style="color: #000000;">2000</span>, <span style="color: #000000;">&#123;</span> CLR_WHITE, CLR_GREEN <span style="color: #000000;">&#125;</span>, <span style="color: #000000;">&#123;</span> CLR_WHITE, CLR_RED <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />&nbsp;</div>[/code:1adgxk9j]
Consulta sobre GRADIENT
[quote:3bo4czmk]Cómo defino que NO cambie de color automáticamente sin tener que asignar colores claros a los extremos si o si.? Se Puede? [/quote:3bo4czmk] [quote:3bo4czmk]How do I define that it does NOT change color automatically without having to assign light colors to the ends yes or yes? It can? [/quote:3bo4czmk] [code=fw:3bo4czmk]<div class="fw" id="{CB}" style="font-family: monospace;">oBrw:<span style="color: #000000;">lContrastClr</span> &nbsp;:= .f.</div>[/code:3bo4czmk] [quote:3bo4czmk]y cómo hago para manejar yo los colores de los registros de acuerdo al valor de un campo.? [/quote:3bo4czmk] [quote:3bo4czmk]and how do I manage the colors of the records according to the value of a field?[/quote:3bo4czmk] [code=fw:3bo4czmk]<div class="fw" id="{CB}" style="font-family: monospace;">:<span style="color: #000000;">bClrStd</span> := <span style="color: #000000;">&#123;</span> |brw,col| <span style="color: #00C800;">If</span> col == <span style="color: #00C800;">nil</span>, <span style="color: #000000;">&#123;</span> CLR_BLACK, CLR_WHITE <span style="color: #000000;">&#125;</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> col:<span style="color: #000000;">Value</span> > <span style="color: #000000;">2000</span>, <span style="color: #000000;">&#123;</span> CLR_WHITE, CLR_GREEN <span style="color: #000000;">&#125;</span>, <span style="color: #000000;">&#123;</span> CLR_WHITE, CLR_RED <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />&nbsp;</div>[/code:3bo4czmk]
Consulta sobre GRADIENT
Muchas Gracias Mr. RAO
Consulta sobre GROUP
Por favor si alguien pudiera ayudarme Estoy poniendo en un dialogo dos grupos el primera contiene 2 radios y el segundo tres Selecciono un radio del primer grupo y cuando quiero seleccionar uno del segundo grupo, el radio del primer grupo se desactiva Este es mi codigo : [code=fw:mkuitueg]<div class="fw" id="{CB}" style="font-family: monospace;"># include <span style="color: #ff0000;">"fivewin.ch"</span><br /><br /><span style="color: #00C800;">STATIC</span> nRad1, nRad2, cId_Art, cId_Pro, cId_Sol, cNomArt, cNomPro, cNomSol<br /><br /><span style="color: #00C800;">FUNCTION</span> RepDet<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />    <span style="color: #00C800;">LOCAL</span> oDlg := <span style="color: #00C800;">NIL</span>,;<br />         aoObjetos := <span style="color: #000000;">&#123;</span> <span style="color: #00C800;">nil</span>, <span style="color: #00C800;">nil</span> <span style="color: #000000;">&#125;</span>, ;<br />         aoBtn := <span style="color: #000000;">&#123;</span> <span style="color: #00C800;">nil</span>, <span style="color: #00C800;">nil</span>, <span style="color: #00C800;">nil</span> <span style="color: #000000;">&#125;</span>,;<br />         aoSay := <span style="color: #000000;">&#123;</span> <span style="color: #00C800;">nil</span>, <span style="color: #00C800;">nil</span> <span style="color: #000000;">&#125;</span><br />    <span style="color: #00C800;">LOCAL</span> aoGrp := <span style="color: #000000;">&#123;</span> <span style="color: #00C800;">nil</span>, <span style="color: #00C800;">nil</span> <span style="color: #000000;">&#125;</span>         <br />   <span style="color: #00C800;">LOCAL</span> aoRad := <span style="color: #000000;">&#123;</span> <span style="color: #00C800;">nil</span>, <span style="color: #00C800;">nil</span> <span style="color: #000000;">&#125;</span><br />    <span style="color: #00C800;">LOCAL</span> cTitulo := <span style="color: #ff0000;">"Reporte detalle partidas de importaciones"</span><br />    <br />    cId_Art := space<span style="color: #000000;">&#40;</span><span style="color: #000000;">18</span><span style="color: #000000;">&#41;</span><br />    cId_Pro := cId_Sol := space<span style="color: #000000;">&#40;</span><span style="color: #000000;">5</span><span style="color: #000000;">&#41;</span><br />    cNomArt := cNomPro := cNomSol := <span style="color: #ff0000;">""</span><br />    nRad1 := <span style="color: #000000;">1</span><br />    nRad2 := <span style="color: #000000;">1</span><br />   <br />   dbCloseAll<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">IF</span> ! Net_Use<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"imp"</span>,,, oApp:<span style="color: #000000;">xDatos</span> <span style="color: #000000;">&#41;</span> .or.;           <span style="color: #B900B9;">// Importaciones</span><br />    ! Net_Use<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"pro"</span>,,, oApp:<span style="color: #000000;">xDatos</span> <span style="color: #000000;">&#41;</span> .or.;         <span style="color: #B900B9;">// Ordenes de proveedores</span><br />    ! Net_Use<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"ven"</span>,,, oApp:<span style="color: #000000;">xDatos</span> <span style="color: #000000;">&#41;</span> .or.;         <span style="color: #B900B9;">// Catalogo de vendedores</span><br />    ! net_use<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"art"</span>,,, oApp:<span style="color: #000000;">xDatos</span> <span style="color: #000000;">&#41;</span> .or.;         <span style="color: #B900B9;">// Catalogo de articulos</span><br />    ! net_use<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"dimp"</span>,,,oApp:<span style="color: #000000;">xDatos</span> <span style="color: #000000;">&#41;</span>                   <span style="color: #B900B9;">// Detalle de importaciones</span><br />      dbCloseAll<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>; <span style="color: #00C800;">RETURN</span><span style="color: #000000;">&#40;</span><span style="color: #00C800;">NIL</span><span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">ENDIF</span><br />   <br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">RESOURCE</span> <span style="color: #ff0000;">"DLG_REP_DET"</span> <span style="color: #0000ff;">TITLE</span> cTitulo<br />   <br />   <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">RADIO</span> aoRad<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">VAR</span> nRad1                <span style="color: #0000ff;">ID</span> <span style="color: #000000;">201</span>,<span style="color: #000000;">202</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">UPDATE</span><br />   <br />   <span style="color: #0000ff;">REDEFINE</span> GROUP aoGrp<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Seleccione"</span>  <span style="color: #0000ff;">ID</span> <span style="color: #000000;">4003</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">UPDATE</span><br />   <br />   <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">RADIO</span> aoRad<span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">VAR</span> nRad2                <span style="color: #0000ff;">ID</span> <span style="color: #000000;">203</span>,<span style="color: #000000;">204</span>,<span style="color: #000000;">205</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">UPDATE</span><br />   <br />   <span style="color: #0000ff;">REDEFINE</span> GROUP aoGrp<span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Seleccione"</span>  <span style="color: #0000ff;">ID</span> <span style="color: #000000;">4007</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">UPDATE</span><br />                     <br />   <span style="color: #00C800;">IF</span> nRad1 == <span style="color: #000000;">1</span><br />    <br />    <br />    <span style="color: #00C800;">IF</span> nRad2 == <span style="color: #000000;">1</span><br />        <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">SAY</span> aoSay<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Articulo :"</span>       <span style="color: #0000ff;">ID</span> <span style="color: #000000;">101</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">UPDATE</span><br />        <br />        <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">GET</span> aoObjetos<span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">VAR</span> cId_Art           <span style="color: #0000ff;">ID</span> <span style="color: #000000;">102</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">UPDATE</span> ;<br />            <span style="color: #0000ff;">PICTURE</span> <span style="color: #ff0000;">"@!"</span> ;<br />            <span style="color: #0000ff;">VALID</span> EVAL <span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#123;</span> || cId_Art := ValCod<span style="color: #000000;">&#40;</span> cId_Art, <span style="color: #ff0000;">"art"</span> <span style="color: #000000;">&#41;</span>, ;<br />                                    iif<span style="color: #000000;">&#40;</span>empty<span style="color: #000000;">&#40;</span>cId_Art<span style="color: #000000;">&#41;</span>, .F., ;<br />                                       <span style="color: #000000;">&#40;</span>cId_Art := art->id, cNomArt := art->nombre, oDlg:<span style="color: #0000ff;">Update</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, .t.<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span> ;<br />                <span style="color: #0000ff;">MESSAGE</span> <span style="color: #ff0000;">"Clave del articulo"</span><br />                aoObjetos<span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">cToolTip</span> := <span style="color: #ff0000;">"Introduzca o seleccione la clave del articulo"</span><br />                <br />            <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">SAY</span> aoSay<span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">VAR</span> cNomArt               <span style="color: #0000ff;">ID</span> <span style="color: #000000;">301</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">UPDATE</span><br />        <span style="color: #00C800;">ENDIF</span>               <br />    <br />    <span style="color: #00C800;">IF</span> nRad2 == <span style="color: #000000;">2</span><br />        <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">SAY</span> aoSay<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Proveedor :"</span>  <span style="color: #0000ff;">ID</span> <span style="color: #000000;">101</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">UPDATE</span><br />        <br />        <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">GET</span> aoObjetos<span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">VAR</span> cId_Pro           <span style="color: #0000ff;">ID</span> <span style="color: #000000;">102</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">UPDATE</span> ;<br />            <span style="color: #0000ff;">PICTURE</span> <span style="color: #ff0000;">"@!"</span> ;<br />            <span style="color: #0000ff;">VALID</span> EVAL <span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#123;</span> || cId_Pro := ValCod<span style="color: #000000;">&#40;</span> cId_Pro, <span style="color: #ff0000;">"pro"</span> <span style="color: #000000;">&#41;</span>, ;<br />                                    iif<span style="color: #000000;">&#40;</span>empty<span style="color: #000000;">&#40;</span>cId_Pro<span style="color: #000000;">&#41;</span>, .F., ;<br />                                       <span style="color: #000000;">&#40;</span>cId_Pro := pro->id, cNomPro := pro->nombre, oDlg:<span style="color: #0000ff;">Update</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, .t.<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span> ;<br />                <span style="color: #0000ff;">MESSAGE</span> <span style="color: #ff0000;">"Clave de proveedor"</span><br />                aoObjetos<span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">cToolTip</span> := <span style="color: #ff0000;">"Introduzca o seleccione la clave de proveedor"</span>    <br />    <br />            <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">SAY</span> aoSay<span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">VAR</span> cNomPro               <span style="color: #0000ff;">ID</span> <span style="color: #000000;">301</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">UPDATE</span>               <br />        <span style="color: #00C800;">ENDIF</span><br />                            <br />        <span style="color: #00C800;">IF</span> nRad2 == <span style="color: #000000;">3</span><br />            <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">SAY</span> aoSay<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Vendedor :"</span>       <span style="color: #0000ff;">ID</span> <span style="color: #000000;">101</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">UPDATE</span> ;<br />        <br />        <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">GET</span> aoObjetos<span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">VAR</span> cId_Sol           <span style="color: #0000ff;">ID</span> <span style="color: #000000;">102</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">UPDATE</span> ;<br />            <span style="color: #0000ff;">PICTURE</span> <span style="color: #ff0000;">"@!"</span> ;<br />                <span style="color: #0000ff;">VALID</span> EVAL <span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#123;</span> || cId_Sol := ValCod<span style="color: #000000;">&#40;</span> cId_Sol, <span style="color: #ff0000;">"ven"</span> <span style="color: #000000;">&#41;</span>, ;<br />                                    iif<span style="color: #000000;">&#40;</span>empty<span style="color: #000000;">&#40;</span>cId_Sol<span style="color: #000000;">&#41;</span>, .F., ;<br />                                        <span style="color: #000000;">&#40;</span>cId_Sol := ven->id, cNomSol := ven->nombre, oDlg:<span style="color: #0000ff;">Update</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, .t.<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span> ;<br />            <span style="color: #0000ff;">MESSAGE</span> <span style="color: #ff0000;">"Clave de vendedor"</span><br />                aoObjetos<span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">cToolTip</span> := <span style="color: #ff0000;">"Introduzca o seleccione la clave de vendedor"</span><br />                <br />            <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">SAY</span> aoSay<span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">VAR</span> cNomSol               <span style="color: #0000ff;">ID</span> <span style="color: #000000;">301</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">UPDATE</span>               <br />            <br />        <span style="color: #00C800;">ENDIF</span><br />        <br />    <span style="color: #00C800;">ENDIF</span><br />    <br />    <span style="color: #0000ff;">REDEFINE</span> BUTTONBMP aoBtn<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">ID</span> <span style="color: #000000;">400</span> <span style="color: #0000ff;">OF</span> oDlg ;<br />    <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"A&ceptar "</span> ;<br />    BITMAP <span style="color: #ff0000;">"BTN_OK"</span> TEXTRIGHT ;<br />    <span style="color: #0000ff;">ACTION</span> oDlg:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> ;     <span style="color: #B900B9;">//( Filtra(), ImpRep(), oDlg:End() ) ;</span><br />      <span style="color: #0000ff;">MESSAGE</span> <span style="color: #ff0000;">"Aceptar"</span> <span style="color: #0000ff;">UPDATE</span><br />      aoBtn<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">cToolTip</span> := <span style="color: #ff0000;">"Presione para Continuar"</span><br /><br />    <span style="color: #0000ff;">REDEFINE</span> BUTTONBMP aoBtn<span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">ID</span> <span style="color: #000000;">401</span> <span style="color: #0000ff;">OF</span> oDlg ;<br />        <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"&Cancelar "</span> BITMAP <span style="color: #ff0000;">"BTN_CAN"</span> TEXTRIGHT ;<br />    <span style="color: #0000ff;">ACTION</span> oDlg:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> ;     <span style="color: #B900B9;">//( lContinuar := .F., oDlg:End() ) ;</span><br />      <span style="color: #0000ff;">MESSAGE</span> <span style="color: #ff0000;">"Cancelar"</span> <span style="color: #0000ff;">UPDATE</span><br />      aoBtn<span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">cToolTip</span> := <span style="color: #ff0000;">"Presione para Cancelar"</span><br /><br />   <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span> <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">INIT</span> oninit<span style="color: #000000;">&#40;</span> oDlg <span style="color: #000000;">&#41;</span><br />   <br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><br /><span style="color: #B900B9;">// --------------------------------------------------------------------------- //</span><br /> </div>[/code:mkuitueg] y esta es una imagen del dialogo [img:mkuitueg]http&#58;//www&#46;mediafire&#46;com/?707bar94c8nmkf3[/img:mkuitueg] De antemano muchas gracias
Consulta sobre GROUP
Disculpen, todavia no se muy bien como poner una imagen Lo vuelvo a intentar [url:3w0nwjnf]http&#58;//www&#46;mediafire&#46;com/download/707bar94c8nmkf3/Captura&#46;JPG[/url:3w0nwjnf]
Consulta sobre GROUP
Hola Juan: Proba con con habilitar el atributo [b:3fxc3qej]Group[/b:3fxc3qej] al primer radio de cada grupo. Esto lo deberias hacer en tu editor de recursos. Atentamente, Rolando Cochabamba - Bolivia FWH 1109 - xHarbour 1.1.0 (SimpLex) - BCC58
Consulta sobre GROUP
Rolando Gracias por responder Ya lo hice y sin embargo no me actualiza el valor de nRad2, se supone que si elijo en el primer grupo el primer radio (selectivo) y en el segundo grupo el segundo o el tercer radio, siempre me considera el primer radio (articulo)
Consulta sobre GROUP
Hola Juan A mi me ha ocurrido lo mismo y es por el editor de recursos, si usas pelles debes colocar en el tipo que es un radiobutton y no auto radiobutton Saludos Pedro
Consulta sobre GROUP
Juan: Al contrario de Héctor, yo los tengo definidos como AUTO RADIOBUTTON desde PellesC y sin problemas, sería bueno que publicaras tus recursos. Saludos
Consulta sobre GROUP
Hector, Armando Ya probe con cambiar el atributo de los radios a auto radiobutton y no funciona Mis radios del primer grupo son "selectivo" y "General" los del segundo grupo son "Articulo", "Proveedor" y "Vendedor" abajo tengo un get que se activa solamente si selecciono el primer radio del grupo uno "Selectivo" y me funcionen los if-endif ; pero al parecer el valor de nRad2 siempre me queda en 1 Estoy pensando que me hace falta algo como un CHANGE para actualizar el valor de nRAd2, pero no se como implementarlo Saludos
Consulta sobre GROUP
Juan: Viendo tu imagen creo comprender tus necesidades, a ver si esto te funciona: El segundo RADIO condiciónalo solo cuando el primer RADIO valga 1 (Selectivo) y el GET lo condicionas solo cuando el segundo RADIO valga 3 (Vendedor) Creo que ya no necesitas los IFs. [code=fw:2y4opqas]<div class="fw" id="{CB}" style="font-family: monospace;"><br />          <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">RADIO</span> aoRad<span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">VAR</span> nRad2 <span style="color: #0000ff;">ID</span> <span style="color: #000000;">203</span>,<span style="color: #000000;">204</span>,<span style="color: #000000;">205</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">UPDATE</span>;<br />          <span style="color: #0000ff;">WHEN</span> nRad1 == <span style="color: #000000;">1</span>     <span style="color: #B900B9;">// AQUÍ</span><br />          ...<br />          ...<br />          ...<br />        <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">GET</span> aoObjetos<span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">VAR</span> cId_Sol           <span style="color: #0000ff;">ID</span> <span style="color: #000000;">102</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">UPDATE</span> ;<br />            <span style="color: #0000ff;">WHEN</span> nRad2 == <span style="color: #000000;">3</span>;          <span style="color: #B900B9;">// Y AQUÍ</span><br />            <span style="color: #0000ff;">PICTURE</span> <span style="color: #ff0000;">"@!"</span> ;<br />                <span style="color: #0000ff;">VALID</span> EVAL <span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#123;</span> || cId_Sol := ValCod<span style="color: #000000;">&#40;</span> cId_Sol, <span style="color: #ff0000;">"ven"</span> <span style="color: #000000;">&#41;</span>, ;<br />                                    iif<span style="color: #000000;">&#40;</span>empty<span style="color: #000000;">&#40;</span>cId_Sol<span style="color: #000000;">&#41;</span>, .F., ;<br />                                        <span style="color: #000000;">&#40;</span>cId_Sol := ven->id, cNomSol := ven->nombre, oDlg:<span style="color: #0000ff;">Update</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, .t.<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span> ;<br />            <span style="color: #0000ff;">MESSAGE</span> <span style="color: #ff0000;">"Clave de vendedor"</span><br /> </div>[/code:2y4opqas] Ojalá que esto te ayude. Saludos
Consulta sobre GROUP
Armando Disculpa por la tardanza [quote:3tuwqi6u]Juan: Viendo tu imagen creo comprender tus necesidades, a ver si esto te funciona: El segundo RADIO condiciónalo solo cuando el primer RADIO valga 1 (Selectivo) y el GET lo condicionas solo cuando el segundo RADIO valga 3 (Vendedor) Creo que ya no necesitas los IFs.[/quote:3tuwqi6u] Sucede que el prompt del say va a cambiar en base al valor que tenga nRad2 y que nRad1 sea 1 Si nRAd1 = 1 y nRad2 = 1, el prompt del say sera "Articulo" Si nRAd1 = 1 y nRad2 = 2, el prompt del say sera "Proveedor" Si nRad1 = 1 y nRad2 = 3, el prompt del say sera "Vendedor" y abrira las bases de datos que correspondan segun el valor de nRad2 Si nRad1 = 2, (General) el get no se activara Cuando salgo del dialogo y pruebo los valores de nRad1 y nRad2 los muestra correctos No se a que se deba Gracias
Consulta sobre GROUP
Juan, El problema es que no puedes hacer unos IFs en función de algo que valdrá x a posteriori. Usa la claúsula ON CHANGE para cambiar el texto del SAY, etc. REDEFINE RADIO ... ON CHANGE If( nRad1 == 1, oSay:SetText( { "Artículo", "Proveedor", "Vendedor" }[ nRad2 ] ),) Como ves, llamamos a If() despues de que se seleccione otro elemento del radio
Consulta sobre GROUP
Y para el GET: REDEGINE GET ... WHEN nRad1 != 2
Consulta sobre GROUP
Antonio Gracias por responder Este es el nuevo codigo [code=fw:2gwwjaaj]<div class="fw" id="{CB}" style="font-family: monospace;"># include <span style="color: #ff0000;">"fivewin.ch"</span><br /><br /><span style="color: #00C800;">STATIC</span> nRad1, nRad2, nOpcion, cId_Art, cId_Pro, cId_Sol, cNomArt, cNomPro, cNomSol<br /><br /><span style="color: #00C800;">FUNCTION</span> RepDet<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />    <span style="color: #00C800;">LOCAL</span> oDlg := <span style="color: #00C800;">NIL</span>,;<br />         aoObjetos := <span style="color: #000000;">&#123;</span> <span style="color: #00C800;">nil</span>, <span style="color: #00C800;">nil</span> <span style="color: #000000;">&#125;</span>, ;<br />         aoBtn := <span style="color: #000000;">&#123;</span> <span style="color: #00C800;">nil</span>, <span style="color: #00C800;">nil</span>, <span style="color: #00C800;">nil</span> <span style="color: #000000;">&#125;</span>,;<br />         aoSay := <span style="color: #000000;">&#123;</span> <span style="color: #00C800;">nil</span>, <span style="color: #00C800;">nil</span> <span style="color: #000000;">&#125;</span><br />    <span style="color: #00C800;">LOCAL</span> aoGrp := <span style="color: #000000;">&#123;</span> <span style="color: #00C800;">nil</span>, <span style="color: #00C800;">nil</span> <span style="color: #000000;">&#125;</span>         <br />   <span style="color: #00C800;">LOCAL</span> aoRad := <span style="color: #000000;">&#123;</span> <span style="color: #00C800;">nil</span>, <span style="color: #00C800;">nil</span> <span style="color: #000000;">&#125;</span><br />    <span style="color: #00C800;">LOCAL</span> cTitulo := <span style="color: #ff0000;">"Reporte detalle partidas de importaciones"</span><br />    <br />    cId_Art := space<span style="color: #000000;">&#40;</span><span style="color: #000000;">18</span><span style="color: #000000;">&#41;</span><br />    cId_Pro := cId_Sol := space<span style="color: #000000;">&#40;</span><span style="color: #000000;">5</span><span style="color: #000000;">&#41;</span><br />    cNomArt := cNomPro := cNomSol := <span style="color: #ff0000;">""</span><br />    nRad1 := <span style="color: #000000;">1</span><br />    nRad2 := <span style="color: #000000;">1</span><br />   <br />   dbCloseAll<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">IF</span> ! Net_Use<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"imp"</span>,,, oApp:<span style="color: #000000;">xDatos</span> <span style="color: #000000;">&#41;</span> .or.;           <span style="color: #B900B9;">// Importaciones</span><br />    ! Net_Use<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"pro"</span>,,, oApp:<span style="color: #000000;">xDatos</span> <span style="color: #000000;">&#41;</span> .or.;         <span style="color: #B900B9;">// Ordenes de proveedores</span><br />    ! Net_Use<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"ven"</span>,,, oApp:<span style="color: #000000;">xDatos</span> <span style="color: #000000;">&#41;</span> .or.;         <span style="color: #B900B9;">// Catalogo de vendedores</span><br />    ! net_use<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"art"</span>,,, oApp:<span style="color: #000000;">xDatos</span> <span style="color: #000000;">&#41;</span> .or.;         <span style="color: #B900B9;">// Catalogo de articulos</span><br />    ! net_use<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"dimp"</span>,,,oApp:<span style="color: #000000;">xDatos</span> <span style="color: #000000;">&#41;</span>                   <span style="color: #B900B9;">// Detalle de importaciones</span><br />      dbCloseAll<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>; <span style="color: #00C800;">RETURN</span><span style="color: #000000;">&#40;</span><span style="color: #00C800;">NIL</span><span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">ENDIF</span><br />   <br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">RESOURCE</span> <span style="color: #ff0000;">"DLG_REP_DET"</span> <span style="color: #0000ff;">TITLE</span> cTitulo TRANSPARENT<br />   <br />   <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">RADIO</span> aoRad<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">VAR</span> nRad1                <span style="color: #0000ff;">ID</span> <span style="color: #000000;">201</span>,<span style="color: #000000;">202</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">UPDATE</span> ;<br />    <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">CHANGE</span> <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> nRad1 == <span style="color: #000000;">1</span>, aoSay<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">SetText</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"Artículo"</span>, <span style="color: #ff0000;">"Proveedor"</span>, <span style="color: #ff0000;">"Vendedor"</span> <span style="color: #000000;">&#125;</span><span style="color: #000000;">&#91;</span> nRad2 <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span>, <span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #0000ff;">REDEFINE</span> GROUP aoGrp<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Seleccione"</span>  <span style="color: #0000ff;">ID</span> <span style="color: #000000;">4003</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">UPDATE</span><br />    <br />   <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">RADIO</span> aoRad<span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">VAR</span> nRad2                <span style="color: #0000ff;">ID</span> <span style="color: #000000;">203</span>,<span style="color: #000000;">204</span>,<span style="color: #000000;">205</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">UPDATE</span> ;<br />    <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">CHANGE</span> <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> nRad1 == <span style="color: #000000;">1</span>, aoSay<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">SetText</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"Artículo"</span>, <span style="color: #ff0000;">"Proveedor"</span>, <span style="color: #ff0000;">"Vendedor"</span> <span style="color: #000000;">&#125;</span><span style="color: #000000;">&#91;</span> nRad2 <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span>, <span style="color: #000000;">&#41;</span><br />    <br />   <span style="color: #0000ff;">REDEFINE</span> GROUP aoGrp<span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Seleccione"</span>  <span style="color: #0000ff;">ID</span> <span style="color: #000000;">4007</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">UPDATE</span><br />   <br />   <br />   <span style="color: #00C800;">if</span> nRad2 == <span style="color: #000000;">3</span><br />    ? nRad2<br />    <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">SAY</span> aoSay<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Vendedor :"</span>       <span style="color: #0000ff;">ID</span> <span style="color: #000000;">101</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">UPDATE</span><br />    <br />    <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">GET</span> aoObjetos<span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">VAR</span> cId_Sol           <span style="color: #0000ff;">ID</span> <span style="color: #000000;">102</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">UPDATE</span> ;<br />            <span style="color: #0000ff;">PICTURE</span> <span style="color: #ff0000;">"@!"</span> ;<br />            <span style="color: #0000ff;">VALID</span> EVAL <span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#123;</span> || cId_Sol := ValCod<span style="color: #000000;">&#40;</span> cId_Sol, <span style="color: #ff0000;">"ven"</span> <span style="color: #000000;">&#41;</span>, ;<br />                                iif<span style="color: #000000;">&#40;</span>empty<span style="color: #000000;">&#40;</span>cId_Sol<span style="color: #000000;">&#41;</span>, .F., ;<br />                                    <span style="color: #000000;">&#40;</span>cId_Sol := ven->id, cNomSol := ven->nombre, oDlg:<span style="color: #0000ff;">Update</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, .t.<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span> ;<br />        <span style="color: #0000ff;">MESSAGE</span> <span style="color: #ff0000;">"Clave de vendedor"</span> ;<br />        <span style="color: #0000ff;">WHEN</span> nRad1 != <span style="color: #000000;">2</span><br />            aoObjetos<span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">cToolTip</span> := <span style="color: #ff0000;">"Introduzca o seleccione la clave de vendedor"</span><br />        <br />        <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">SAY</span> aoSay<span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">VAR</span> cNomSol               <span style="color: #0000ff;">ID</span> <span style="color: #000000;">301</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">UPDATE</span><br />        <br />   elseif nRad2 == <span style="color: #000000;">2</span><br />    ? nRad2<br />    <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">SAY</span> aoSay<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Proveedor :"</span>  <span style="color: #0000ff;">ID</span> <span style="color: #000000;">101</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">UPDATE</span><br />        <br />    <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">GET</span> aoObjetos<span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">VAR</span> cId_Pro           <span style="color: #0000ff;">ID</span> <span style="color: #000000;">102</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">UPDATE</span> ;<br />        <span style="color: #0000ff;">PICTURE</span> <span style="color: #ff0000;">"@!"</span> ;<br />        <span style="color: #0000ff;">VALID</span> EVAL <span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#123;</span> || cId_Pro := ValCod<span style="color: #000000;">&#40;</span> cId_Pro, <span style="color: #ff0000;">"pro"</span> <span style="color: #000000;">&#41;</span>, ;<br />                                iif<span style="color: #000000;">&#40;</span>empty<span style="color: #000000;">&#40;</span>cId_Pro<span style="color: #000000;">&#41;</span>, .F., ;<br />                                   <span style="color: #000000;">&#40;</span>cId_Pro := pro->id, cNomPro := pro->nombre, oDlg:<span style="color: #0000ff;">Update</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, .t.<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span> ;<br />            <span style="color: #0000ff;">MESSAGE</span> <span style="color: #ff0000;">"Clave de proveedor"</span> ;<br />            <span style="color: #0000ff;">WHEN</span> nRad1 != <span style="color: #000000;">2</span> <br />            aoObjetos<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">cToolTip</span> := <span style="color: #ff0000;">"Introduzca o seleccione la clave de proveedor"</span><br />            <br />        <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">SAY</span> aoSay<span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">VAR</span> cNomPro               <span style="color: #0000ff;">ID</span> <span style="color: #000000;">301</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">UPDATE</span>                                   <br />        <br />   elseif nRad2 == <span style="color: #000000;">1</span><br />    ? nRad2<br />    <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">SAY</span> aoSay<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Articulo :"</span>       <span style="color: #0000ff;">ID</span> <span style="color: #000000;">101</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">UPDATE</span><br />        <br />    <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">GET</span> aoObjetos<span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">VAR</span> cId_Art           <span style="color: #0000ff;">ID</span> <span style="color: #000000;">102</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">UPDATE</span> ;<br />        <span style="color: #0000ff;">PICTURE</span> <span style="color: #ff0000;">"@!"</span> ;<br />        <span style="color: #0000ff;">VALID</span> EVAL <span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#123;</span> || cId_Art := ValCod<span style="color: #000000;">&#40;</span> cId_Art, <span style="color: #ff0000;">"art"</span> <span style="color: #000000;">&#41;</span>, ;<br />                                iif<span style="color: #000000;">&#40;</span>empty<span style="color: #000000;">&#40;</span>cId_Art<span style="color: #000000;">&#41;</span>, .F., ;<br />                                   <span style="color: #000000;">&#40;</span>cId_Art := art->id, cNomArt := art->nombre, oDlg:<span style="color: #0000ff;">Update</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, .t.<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span> ;<br />            <span style="color: #0000ff;">MESSAGE</span> <span style="color: #ff0000;">"Clave del articulo"</span> ;<br />            <span style="color: #0000ff;">WHEN</span> nRad1 != <span style="color: #000000;">2</span><br />            aoObjetos<span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">cToolTip</span> := <span style="color: #ff0000;">"Introduzca o seleccione la clave del articulo"</span><br />                <br />        <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">SAY</span> aoSay<span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">VAR</span> cNomArt               <span style="color: #0000ff;">ID</span> <span style="color: #000000;">301</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">UPDATE</span><br />   <br />   <span style="color: #00C800;">endif</span><br />    <br />    <span style="color: #0000ff;">REDEFINE</span> BUTTONBMP aoBtn<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">ID</span> <span style="color: #000000;">400</span> <span style="color: #0000ff;">OF</span> oDlg ;<br />    <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"A&ceptar "</span> ;<br />    BITMAP <span style="color: #ff0000;">"BTN_OK"</span> TEXTRIGHT ;<br />    <span style="color: #0000ff;">ACTION</span> oDlg:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> ;     <span style="color: #B900B9;">//( Filtra(), ImpRep(), oDlg:End() ) ;</span><br />      <span style="color: #0000ff;">MESSAGE</span> <span style="color: #ff0000;">"Aceptar"</span> <span style="color: #0000ff;">UPDATE</span><br />      aoBtn<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">cToolTip</span> := <span style="color: #ff0000;">"Presione para Continuar"</span><br /><br />    <span style="color: #0000ff;">REDEFINE</span> BUTTONBMP aoBtn<span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">ID</span> <span style="color: #000000;">401</span> <span style="color: #0000ff;">OF</span> oDlg ;<br />        <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"&Cancelar "</span> BITMAP <span style="color: #ff0000;">"BTN_CAN"</span> TEXTRIGHT ;<br />    <span style="color: #0000ff;">ACTION</span> oDlg:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> ;     <span style="color: #B900B9;">//( lContinuar := .F., oDlg:End() ) ;</span><br />      <span style="color: #0000ff;">MESSAGE</span> <span style="color: #ff0000;">"Cancelar"</span> <span style="color: #0000ff;">UPDATE</span><br />      aoBtn<span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">cToolTip</span> := <span style="color: #ff0000;">"Presione para Cancelar"</span><br /><br />   <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span> <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">INIT</span>  oninit<span style="color: #000000;">&#40;</span> oDlg <span style="color: #000000;">&#41;</span><br />   ? nRad1, nRad2<br />   <br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /> </div>[/code:2gwwjaaj] En el segundo grupo de radios checo el valor de nRad2 y me los da correctos pero en los ifs no puedo accesar a las bases de datos segun el valor de nRad2 Saludos
Consulta sobre Get
Por favor necesito ayuda Que debo hacer para que en una diálogo de modificación de datos, cuando yo esté en el primer get, este se muestre sombreado para sobreescribir con el nuevo dato Anexo una imagen de mi aplicación [img:2aticwyv]http&#58;//yfrog&#46;com/3mparaconsultaj[/img:2aticwyv] De antemano muchas gracias
Consulta sobre Get
Esta es mi imagen [img:2awci8sz]http&#58;//img130&#46;imageshack&#46;us/img130/4508/paraconsulta&#46;jpg[/img:2awci8sz]
Consulta sobre Get
Un dato adicional Es como si estando en el Get yo haga doble clik izquierdo, entoces el get aparece sombreado y yo puedo de esta forma sobreescribir con el nuevo valor
Consulta sobre Get
Hola Juan. con esto deberia funcionar oGet:bGotFocus = {| oSelf | oSelf:SelectAll() }
Consulta sobre Get
Daniel Muchas gracias, funcionó perfecto Saludos desde México
Consulta sobre Get "" SOLUCIONADO ""
Amigos João y José. Muy buen día. Muchas gracias por su ayuda y tiempo dedicado. Anoche aun cuando había solucionado el problema, cambiando a coordenadas sin recurso, decidí seguir revisando y efectivamente la definición de tipo de botón Aceptar, tenia una diferencia. Botón: Estaba definido en el Type como " DefaultPushbutton", lo modifique a "Pushbutton" y se soluciono el problema, ahora pasa del Get 1, Get 2 y Botón Aceptar. Muchas gracias por todo su interés y ayuda. Muchos saludos. Antonio
Consulta sobre Get "" SOLUCIONADO ""
Hola Amigos Tengo un problema que no me había dado cuenta, es la secuencia de los GETs, al dar ENTER. . Cuando ingresa, toma el foco el ID 110, al dar ENTER, debiera pasar al ID 120, pero inmediatamente toma el foco el Botón Id 604, que va a validar los 2 Gets. Como puedo corregir, para que mediante el ENTER, pase de los 2 Gets y luego al botón Aceptar (Id 604)? En el recurso el índice de los tab Index, están secuencia en los gets. Muchos saludos Antonio. Codigo: [code=fw:13z8v7i8]<div class="fw" id="{CB}" style="font-family: monospace;"><br />                 <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">RESOURCE</span> <span style="color: #ff0000;">"#1007"</span>     <span style="color: #0000ff;">Title</span> <span style="color: #ff0000;">" "</span><br /><br />                <span style="color: #0000ff;">REDEFINE</span> BITMAP oBmp1 <span style="color: #0000ff;">ID</span> <span style="color: #000000;">601</span> <span style="color: #0000ff;">RESOURCE</span> <span style="color: #ff0000;">"#8022"</span> TRANSPARENT <span style="color: #0000ff;">OF</span> oDlg<br />                <span style="color: #0000ff;">REDEFINE</span> BITMAP oBmp1 <span style="color: #0000ff;">ID</span> <span style="color: #000000;">600</span> <span style="color: #0000ff;">RESOURCE</span> <span style="color: #ff0000;">"#8023"</span> TRANSPARENT <span style="color: #0000ff;">OF</span> oDlg<br /><br />                <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">SAY</span> oSay1 <span style="color: #0000ff;">ID</span> <span style="color: #000000;">603</span> <span style="color: #0000ff;">PROMPT</span> OemToAnsi<span style="color: #000000;">&#40;</span>alltrim<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"INFORMES DE CAJA"</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">FONT</span> oFont1  COLORS RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">56</span>, <span style="color: #000000;">76</span>, <span style="color: #000000;">170</span><span style="color: #000000;">&#41;</span><br /><br />            <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">Get</span> oCod_usu1 <span style="color: #0000ff;">Var</span> Cod_usu1 <span style="color: #0000ff;">Id</span> <span style="color: #000000;">110</span> <span style="color: #0000ff;">Of</span> oDlg <span style="color: #0000ff;">UPDATE</span> <span style="color: #0000ff;">Picture</span> <span style="color: #ff0000;">"@!"</span> COLORS RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">9</span>, <span style="color: #000000;">43</span>, <span style="color: #000000;">47</span><span style="color: #000000;">&#41;</span><br />            <br />            <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">Get</span> oCla_usu1 <span style="color: #0000ff;">Var</span> Cla_usu1 <span style="color: #0000ff;">Id</span> <span style="color: #000000;">120</span> <span style="color: #0000ff;">Of</span> oDlg <span style="color: #0000ff;">UPDATE</span> <span style="color: #0000ff;">Picture</span> <span style="color: #ff0000;">"@!"</span> COLORS RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">9</span>, <span style="color: #000000;">43</span>, <span style="color: #000000;">47</span><span style="color: #000000;">&#41;</span><br />            <br /><br />            <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">Button</span> <span style="color: #0000ff;">Id</span> <span style="color: #000000;">605</span> <span style="color: #0000ff;">Of</span> oDlg Border ;<br />                <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">&#40;</span>Ing_1:=<span style="color: #000000;">0</span>,Ing_2:=<span style="color: #000000;">0</span>,oDlg:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>        <span style="color: #B900B9;">// Boton Salida</span><br />        <br /><br />                <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">Button</span> <span style="color: #0000ff;">Id</span> <span style="color: #000000;">604</span> <span style="color: #0000ff;">Of</span> oDlg ;<br />              <span style="color: #0000ff;">ACTION</span> <span style="color: #00C800;">IF</span><span style="color: #000000;">&#40;</span>!Valida_usu<span style="color: #000000;">&#40;</span>Cod_usu1,Cla_usu1<span style="color: #000000;">&#41;</span>,<span style="color: #000000;">&#40;</span>MsgStop<span style="color: #000000;">&#40;</span>Mensa<span style="color: #000000;">&#41;</span>, Ing_1:=<span style="color: #000000;">0</span>, Ing_2:=<span style="color: #000000;">0</span>,.F.<span style="color: #000000;">&#41;</span>, <span style="color: #000000;">&#40;</span> oDlg:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, .T.<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>           <span style="color: #B900B9;">// Aqui Boton Acepta</span><br /><br /><br /><br />                            <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span>  <span style="color: #0000ff;">VALID</span> <span style="color: #000000;">&#40;</span>!GETKEYSTATE<span style="color: #000000;">&#40;</span> <span style="color: #000000;">27</span> <span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br /><br /> </div>[/code:13z8v7i8] FWH 22.03 Harbour Pelles C