topic
stringlengths
1
63
text
stringlengths
1
577k
sending mail trought Lotus Notes
Yes, this is the code: oNotesSession := CreateObject( "Notes.Notessession" ) oNotesDb := oNotesSession:GetDatabase( "","" ) oNotesDb:Invoke("CreateDocument") but I get the error that I've posted in the spanish forum. Regards,
sending mail trought Lotus Notes
Jose, I believe Lotus Notes supports MAPI. Have you tried it? James
sending mail trought Lotus Notes
Jose Luis, Prueba lo siguiente: MsgInfo( oNotesSession:hObj ) oNotesDb := OleInvoke( oNotesSession:hObj, "GetDatabase", "", "" ) MsgInfo( oNotesDb ) y dinos que valores te aparecen.
sending mail trought Lotus Notes
Antonio: Los dos mensajes me devuelven valores númericos de 7 digitos y no me dan error. Saludos,
sending mail trought Lotus Notes
Jose Luis, Intenta ahora esto: OleInvoke( oNotesDb, "CreateDocument" )
sentencia sql
Hola amigos, hace tiempo que estoy construyendo un sistema para mi empresa en sql, utilizando la clase tmysql de wormar. Esta funcionando bien, en lo que respecta a facturas, recibos etc. Ahora se me complica, no porque no lo haya resuelto pero sí por que esta mal resuelto, ya no utilizó la potencia de sql en lo que respecto a consulta de las facturas. Este código funciona pero como verán estoy trabajando sobre las tablas individualmente [code=fw:42wewuhe]<div class="fw" id="{CB}" style="font-family: monospace;"> <br />oQryfac := oMysql:<span style="color: #000000;">Query</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"SELECT * FROM factura WHERE  nrofac ="</span>  + <span style="color: #ff0000;">"'"</span> + numfac + <span style="color: #ff0000;">"' AND  ncli="</span> + alltrim<span style="color: #000000;">&#40;</span>str<span style="color: #000000;">&#40;</span>nclia<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <br />oQrydet := oMysql:<span style="color: #000000;">Query</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"SELECT * FROM detalle WHERE  nrofac  ="</span>  + <span style="color: #ff0000;">"'"</span> + numfac + <span style="color: #ff0000;">"' AND  ncli="</span> + alltrim<span style="color: #000000;">&#40;</span>str<span style="color: #000000;">&#40;</span>nclia<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />  oCta:<span style="color: #000000;">ntotal</span> := oQryfac:<span style="color: #000000;">importe</span><br />  oCta:<span style="color: #000000;">subtotal</span> := oQryfac:<span style="color: #000000;">baseimpo</span><br />  oCta:<span style="color: #000000;">niva</span> := oQryfac:<span style="color: #000000;">iva</span><br />  oCta:<span style="color: #000000;">condicion</span> := oQryfac:<span style="color: #000000;">plazo</span><br />  oCta:<span style="color: #000000;">ib</span> :=  oQryfac:<span style="color: #000000;">ingbruto</span><br />  oCta:<span style="color: #000000;">tipocom</span> :=  oQryfac:<span style="color: #000000;">tipo</span><br />  oCta:<span style="color: #000000;">pventa</span> := <span style="color: #0000ff;">substr</span><span style="color: #000000;">&#40;</span> oQryfac:<span style="color: #000000;">nrofac</span>,<span style="color: #000000;">1</span>,<span style="color: #000000;">4</span><span style="color: #000000;">&#41;</span><br />  oCta:<span style="color: #000000;">factura</span> := <span style="color: #0000ff;">substr</span><span style="color: #000000;">&#40;</span> oQryfac:<span style="color: #000000;">nrofac</span>,<span style="color: #000000;">6</span><span style="color: #000000;">&#41;</span><br />  oCta:<span style="color: #000000;">ncli</span> := nclia<br /><br />  nRecno :=oQrydet:<span style="color: #000000;">reccount</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />  <span style="color: #00C800;">if</span> empty<span style="color: #000000;">&#40;</span>nRecno<span style="color: #000000;">&#41;</span><br />     msgstop<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"No hay datos completos para mostrar"</span>,<span style="color: #ff0000;">"Aviso del sistema"</span><span style="color: #000000;">&#41;</span><br />     oQrydet:<span style="color: #000000;">end</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />     oQryfac:<span style="color: #000000;">end</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />     <span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br />  <span style="color: #00C800;">endif</span><br />  <span style="color: #00C800;">for</span>   z = <span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span>  nRecno                        <br />         oQry := bprodu<span style="color: #000000;">&#40;</span>,,oMysql, oQrydet:<span style="color: #000000;">codigo</span><span style="color: #000000;">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#40;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span><br />     aadd<span style="color: #000000;">&#40;</span>oCta:<span style="color: #000000;">adet</span>,<span style="color: #000000;">&#123;</span>oQry:<span style="color: #000000;">codigo</span>,oQry:<span style="color: #000000;">producto</span>,oQry:<span style="color: #000000;">marca</span>,oQry:<span style="color: #000000;">modelo</span>, oQrydet:<span style="color: #000000;">cantidad</span>,oQrydet:<span style="color: #000000;">costo</span>,multi<span style="color: #000000;">&#40;</span>oQrydet:<span style="color: #000000;">cantidad</span>,oQrydet:<span style="color: #000000;">costo</span><span style="color: #000000;">&#41;</span>,<span style="color: #000000;">0</span>,.t.<span style="color: #000000;">&#125;</span><span style="color: #000000;">&#41;</span> <br />     oQrydet:<span style="color: #000000;">skip</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />  <span style="color: #00C800;">next</span><br />  oQrydet:<span style="color: #000000;">end</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />  oQryfac:<span style="color: #000000;">end</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>  </div>[/code:42wewuhe] Como tendría que hacer para que con una sola consulta me traiga un sólo query, incluyendo ( 1) que es la tabla donde esta la descripción de los productos y que tiene la misma columna "codigo" que hay en la tabla "detalle" Es decir factura + detalle + productos Gracias por su atención
sentencia sql
Saludos, en si que es lo que quieres RELACIONAR, es traer los movimientos de la factura a un xbrowse con el nombre del producto? te dejo un ejemplo de como hago para traer un listado de facturas donde esta el codigo del cliente y lo relaciono con el maetro de clientes para traerme el nombre del cliente, haber si eso te ayuda, saludos... <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: --> [code=fw:148gnpvu]<div class="fw" id="{CB}" style="font-family: monospace;"> &nbsp; &nbsp; &nbsp; &nbsp; oQry := TDolphinQry<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"SELECT p.*, "</span> +; <span style="color: #B900B9;">// MAESTRO FACTURAS</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"c.cli_telefono, c.cli_ci_rif, c.cli_nom_ape, c.cli_dir_factura, "</span> +;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"c.cli_direccion, c.cli_referencia, c.cli_sector "</span> +;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"FROM facturas p, clientes c "</span> +;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"WHERE p.ped_tel_cliente = c.cli_telefono "</span> +;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"ORDER BY ped_num_pedido"</span>, oDatos:<span style="color: #000000;">oConex</span> <span style="color: #000000;">&#41;</span><br />&nbsp;</div>[/code:148gnpvu]
sentencia sql
Gracias José esta noche voy a tratar de adaptarlo a lo que quiero hacer Luis
sentencia sql
Esta es una idea [code=fw:2j1o8lq8]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #ff0000;">'SELECT f.*, d.codigo, d.cantidad, p.descripcion, p.unidad <br />FROM facturas f, detalle d, productos p<br />WHERE f.nrofac = '</span>+ numfac +<span style="color: #ff0000;">' <br />AND d.nrofact = f.nrofac <br />AND d.codigo = p.codigo'</span><br /> </div>[/code:2j1o8lq8] aquí obtienes toda la información de la factura (f.*) el código y cantidad de detalle y la descripción y unidad desde productos para una factura = numfac espero sea lo que necesitas saludos Marcelo
sentencia sql
Probé lo que me indicaron en el programa y no me respondía nada Escribí lo siguiente en sqlyog [code=fw:1yvy12ap]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br /><span style="color: #0000ff;">SELECT</span> f.*, d.codigo, d.cantidad, d.costo, p.producto, p.marca, p.modelo <span style="color: #0000ff;">WHERE</span> f.nrofac =<span style="color: #000000;">0001</span><span style="color: #000000;">-00001712</span> AND d.nrofac = f.nrofac AND d.codigo = p.codigo<br /><br /> </div>[/code:1yvy12ap] y me responde Error Code: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'WHERE f.nrofac =0001-00001712 AND d.nrofac = f.nrofac AND d.codigo = p.codigo' at line 1 Por internet hay consultas sobre el error 1064 y parece que el error es de sintaxis ó eso creo yo Otra consulta hay que hacer las claves foráneas? Gracias por su atención
sentencia sql
Hola, La condicion para f.nrofac, debes encerrarla en ' ', quedaria asi : ... where f.nrofac='0001-00001712' AND d.nro... , la delimitacion de las cadenas literales debes anotarlas en las consultas. Atte., Lautaro
sentencia sql
surgom, SELECT f.*, d.codigo, d.cantidad, d.costo, p.producto, p.marca, p.modelo WHERE f.nrofac =0001-00001712 AND d.nrofac = f.nrofac AND d.codigo = p.codigo y el FROM ??? no lo veo Saludos
sentencia sql
Surgom yo lo hago asi SELECT v.*,m.comentarios FROM ventas v INNER JOIN movimientos m ON m.idticket = v.id WHERE v.esanticipo = '1' AND v.saldoanticipo > '0' ORDER BY v.id saludos
sentencia sql
Paco me lo olvide de poner. Hoy por la mañana lo probé en la oficina (había puesto el from) y me daba el mismo error y ahora estoy en mi casa l y me comí el from, y como daba el mismo error no lo revisé. Entré al foro para informar mi error cuando ví que habías contestado Al arreglar me dió el siguiente error Error de SQL (1267): Illegal mix of collations (utf8_spanish_ci,IMPLICIT) and (utf8_general_ci,IMPLICIT) for operation '=' Lo arreglé el error estaba en la tabla facturas que estaba en utf8_general_ci Pero el resultado me muestra todas las columnas que consulté pero vacías Este es el resultado de heidisql [code=fw:2amkekav]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #0000ff;">SELECT</span> f.*, d.codigo, d.cantidad, d.costo,p.producto, p.marca, p.modelo <span style="color: #0000ff;">from</span> factura f, detalle d, producto p  <span style="color: #0000ff;">WHERE</span> f.nrofac =<span style="color: #000000;">0001</span><span style="color: #000000;">-00001712</span> AND d.nrofac = f.nrofac AND d.codigo = p.codigo;<br /><span style="color: #B900B9;">/* Affected rows: 0  Filas encontradas: 0  Advertencias: 0  Duración para 1 query: 0,000 sec. */</span></div>[/code:2amkekav] faltaban las comillas en f.nrofac =0001-00001712 ahra sí [img:2amkekav]http&#58;//www&#46;4shared&#46;com/download/BkDMxCI9ba/27-05-2014_20-04-32&#46;jpg?lgfp=1000[/img:2amkekav] Bueno mientras respondía iba probando y ahí el resultado. Muchas gracias José Luis, Lautaro, Francisco, Marcelo y a toda la lista. Tengo otras dudas que las iré planteando en su momento Luis
sepueden poner bmp en un browse ?
un codigo similar a este se podria poner ?: [code:75fttj7g] local ahBmp&#58;=&#123;ReadBitmap&#40; "bmp\si16&#46;bmp" &#41;, ReadBitmap&#40; "bmp\no16&#46;bmp" &#41; &#125; @ 2,0 LISTBOX oBrw FIELDS Iif&#40;&#40;Alicli&#41;->vis_cli == &#46;t&#46; ,ahBmp&#91;1&#93;,ahBmp&#91;2&#93; &#41; , str&#40;&#40;alicli&#41;->cod_cli,5&#41; ,&#40;alicli&#41;->No2_cli ; COLSIZES 20,180,50 ; HEADERS "vis","Código","Nombre" ; SIZE 240,175 ; ON DBLCLICK Eligefichacli&#40;&#41;; FONT ofont [/code:75fttj7g] Saludso.
sepueden poner bmp en un browse ?
Jose Luis, Sí funciona bien, lo que ocurre es que tienes que usar CurDir() antes del nombre del fichero: local ahBmp:={ReadBitmap( CurDir() + "\bmp\si16.bmp" ), ReadBitmap( CurDir() + "\bmp\no16.bmp" ) } Aqui puedes ver un ejemplo (aunque he usado un bitmap algo grande): [url=http&#58;//imageshack&#46;us:3uksxb60][img:3uksxb60]http&#58;//img78&#46;imageshack&#46;us/img78/4993/image21ib&#46;jpg[/img:3uksxb60][/url:3uksxb60]
sera posible oner el numero de linea en el error
Estimado Antonio sera factuible que en el mensaje de error me salga el numero de línea del codigo fuente .prg ya que no me sale sale algo como: Argument error STR args ,etc pero me falta el numero de línea gracias Wilson pd: no pongo imagenes porque no se como ?
sera posible oner el numero de linea en el error
Wilson, Aqui sale bien, mira: [img:3k0sf9ej]https&#58;//bitbucket&#46;org/fivetech/screenshots/downloads/fivetouch_error&#46;JPG[/img:3k0sf9ej] Este es el formato para poner una imagen: [ img ] <!-- m --><a class="postlink" href="https://bitbucket.org/fivetech/screenshots/downloads/fivetouch_error.JPG">https://bitbucket.org/fivetech/screensh ... _error.JPG</a><!-- m --> [ / img ]
sera posible oner el numero de linea en el error
A mi tampoco me sale e numero de la linea en el reporte de error Antonio se puede implementar richedit para el manejo de texto_?
sera posible oner el numero de linea en el error
Antonio el error al que hago mención se produce en un segundo diálogo que es llamado desde el dialogo principal talvez por ahí esta el asunto ? saludos Wilson
sera posible oner el numero de linea en el error
Wilson, Voy a probarlo, gracias
sera posible oner el numero de linea en el error
Antonio Sera posible publicar la secuencia de ejecución indicar por Errorsys() al estilo clipper/harbour, asi poder conocer la traza que se ha ejecutado.
sera posible oner el numero de linea en el error
Juan, Implementado: [img:ie0n5ebi]https&#58;//bitbucket&#46;org/fivetech/screenshots/downloads/fivetouch_callstck&#46;JPG[/img:ie0n5ebi] Te lo envio y a todos los usuarios de FiveTouch por email
sera posible oner el numero de linea en el error
Antonio Gracias, excelente para ejecutar un programa desde otro programa existe alguna funcionalidad, trate con las funciones __HRBLOAD() y no esta linkada
sera posible oner el numero de linea en el error
Perdon Antonio, con laultima actualizacion esta dando problemas netio_disconnect dice que no esta definida gracias Wilson
sera posible oner el numero de linea en el error
Enviando un nuevo build, gracias!
sera posible oner el numero de linea en el error
Antonio muchas gracias
serial number SD CARD
How to get serial number of a SD CARD? Thanks in advance Otto
serial number SD CARD
Otto test anyfile on the sd sample NSER := NumserieTarjeta(Fopen(curdir()+"\CBATIPKSAV.EXE") ) hth Richard [code=fw:1fqggvde]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br /><span style="color: #00D7D7;">#pragma</span> BEGINDUMP<br /><br /><span style="color: #00D7D7;">#include</span> <hbapi.h><br /><span style="color: #00D7D7;">#include</span> <windows.h><br /><span style="color: #00D7D7;">#include</span> <aygshell.h><br /><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> NUMSERIETARJETA <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />BY_HANDLE_FILE_INFORMATION bHinfo;<br /><br />memset<span style="color: #000000;">&#40;</span> &bHinfo, <span style="color: #000000;">0</span> , sizeof<span style="color: #000000;">&#40;</span>bHinfo<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br /><br />GetFileInformationByHandle<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span>HANDLE<span style="color: #000000;">&#41;</span> hb_parnl<span style="color: #000000;">&#40;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span>, &bHinfo <span style="color: #000000;">&#41;</span>;<br />hb_retnl<span style="color: #000000;">&#40;</span> bHinfo.dwVolumeSerialNumber <span style="color: #000000;">&#41;</span>;<br /><br /><span style="color: #000000;">&#125;</span><br /><br /><br /><span style="color: #00D7D7;">#pragma</span> ENDDUMP<br /><br /><br /><br />&nbsp;</div>[/code:1fqggvde]
serial number SD CARD
Hello Richard, Thank you for your help. I get back a number. It is working. Do I understand the code right: F_open creates a file handle which you pass to GetFileInformationByHandle. DwVolumeSerialNumber is a volume serial number, all files on that volume will have the same dwVolumeSerialNumber. Do you know what happens if you xCopy one SDCARD to another. Does the dwVolumeSerialNumber remain on the copy the same? Thanks again, Otto
serial number SD CARD
Otto Every SD card has its own serial number if you "xcopy" all the files from one to another, you do not copy the serial number , you can just retreive it HTH Richard
serial number SD CARD
Richard, thank you. That is good, that is what I need. So I can use this number to protect the software. Thanks again, Otto
serious problems on TPlann
I'm looking for a willing friend to edit Daniel Garcia's Tplann class. I tried to communicate with Daniel Garcia but I couldn't I also asked Linares to help me communicate with Daniel but he never even answered me via googletalk I have two serious problems [img:1lvgldvk]https&#58;//i&#46;postimg&#46;cc/Nj06D9hg/errore-tplann&#46;jpg[/img:1lvgldvk] 1) In my program I have to manage the daily newspapers, that is, a customer can rent the service for a single day: when the reservation is for a day only on the grid, the reservation shows me badly, if I move the mouse over and try to open the dialog of modification the procedure changes the booking period for example if the reservation is from 01/03/2020 to 01/03/2020 the procedure changes it from 29/02/2020 to 01/03/2020 or from 01/03/2020 to 02/03/2020 by swiping the entire reservations archive. I also tried not to view the dailies but I couldn't 2) as shown in the figure although there is already a reservation from 01/03/2020 to 02/03/2020 (blue box) with the mouse the user can select a reservation from 29/02/2020 to 04/03 / 2020 (gray box and dialog). How is this possible? the procedure could not accept the reservation in that period because the service is already busy from 01/03/2020 to 02/03/2020. So how do you fix this mess?
serious problems on TPlann
For the first I have not solved anything, [b:2w8sbaeh]someone[/b:2w8sbaeh] suggested that the tPlann class was born f[b:2w8sbaeh]or a hotel situation[/b:2w8sbaeh] (I also ask Otto for help) that is, a room is occupied on a day x until the night of the next day, but if in the fields [b:2w8sbaeh]RE> CHECK_IN RE> CHECK_OUT[/b:2w8sbaeh] I enter 01-03-2020 and 02/03/2020 I always have a room occupied on day 02/03, but in reality the customer leaves the room on the morning of March 2 because the customer stays [b:2w8sbaeh]only one night[/b:2w8sbaeh]. but when I go to count the days nDays: = (RE-> CHECK_OUT - RE-> CHECK_IN) [b:2w8sbaeh]the days are 2 and not 1[/b:2w8sbaeh] I can try to set nDays: = (RE-> CHECK_OUT - RE-> CHECK_IN) -1 but then I have a bad reserach if I must check if the rooms is free on an Interval of dates [b:2w8sbaeh]the second problem[/b:2w8sbaeh] I solved with a little function to see if the service is busy at that time, not allowing the new 'insertion.
server for mod harbor
Hello, how can I easily provide server for mod harbor? I have now created an additional virtual server in my Archer TP Link WLAN router. my public IP on port 80/443 is redirected to my PC with internal IP 192.168.0.21. There is Apache server and mod harbor listening. my public IP + port 800/4430 is redirected to my 2nd PC with IP 192.168.0.100. This is a VM server. Again an Apache server is waiting with mod harbor. [img:3yuw9l4l]https&#58;//mybergland&#46;com/fwforum/grafik&#46;png[/img:3yuw9l4l] At whois.com I redirected the IP with "Domain Forward Service": [img:3yuw9l4l]https&#58;//mybergland&#46;com/fwforum/grafik2&#46;png[/img:3yuw9l4l] public IP to my3zinnen.com and public IP + port 800 to modharbour.live. Everything is working fine. <!-- m --><a class="postlink" href="http://modharbour.live">http://modharbour.live</a><!-- m --> points to GENESIS on server 2 <!-- m --><a class="postlink" href="https://my3zinnen.com/tweb.myexamples/test_barbtn_ex.php">https://my3zinnen.com/tweb.myexamples/t ... btn_ex.php</a><!-- m --> to my first server where I have for example TWeb. Now with undert 10 € you have your own server. A copy of WINDOWS 7 for 4.99 - there is still a free WINDOWS 10 update available and a domain name from Whois.com under € 2.- . Installation of Hyper-V on your PC and than a new virtual machine with WINDOWS 7 - than free update to WINDOWS 10. Follow the "5 steps and APACHE mod harbour is running" from here <!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=45&t=37711">viewtopic.php?f=45&t=37711</a><!-- l --> Best regards, Otto
servidor dbf (eleben) 2da revision web con php
ok,gracias le hecho un vistaso saludos
servidor dbf (eleben) 2da revision web con php
Hola buenos dias anexo un modulo de cliente servidor realizado con la clase tsocket el cual por lo pronto hace la conexion al servidor regresa las bases de datos regresa la estructura de una base de datos regresa el contenido de un archivo (20 registros por lo pronto ) despues genero el pagineo completo son modulos bases , el cual nos permitiria anexar cualquier peticion del cliente al servidor se puede meter cualquier funcion de bases de datos como append blank, replace, dbrlock,dbunlock, dbcreate, filtros ect, indexado modulo servidor [url:1o5ucqzj]http&#58;//www&#46;eleben&#46;com&#46;mx/elebens&#46;prg[/url:1o5ucqzj] modulo cliente [url:1o5ucqzj]http&#58;//www&#46;eleben&#46;com&#46;mx/elebenc&#46;prg[/url:1o5ucqzj] falta validaciones que poco a poco ire metiendo ,, pero con esto nos damos una idea como realizar un servidor dbf pasos : 1- ejecutar el servidor (elebens.prg) en cualquier carpeta que contenga dbf las cuales son las que van a manipular 2.- ejecutar el cliente (elebenc.prg) saludos
servidor dbf (eleben) 2da revision web con php
Hola benjiben143 , Creo que puedes ver el hbnetio de harbour que implementa esta funcionalidad, creo que completa, te puede servir para ejemplo o ver como hacer Saludos, Lautaro Moreira
servidor dbf (eleben) 2da revision web con php
ben10, Excelente aporte.
servidor dbf (eleben) 2da revision web con php
Hola, SÓLO por si puede servir la info: En Harbour existen Rdds Cliente-Servidor: - LetoDb - Pritpal Bedhi Cliente-Servidor (desconozco el nombre del rdd), basado en hbNetio, que al parecer dejó muy avanzado pero por al parecer por falta de interés de los colegas abandonó su desarrollo. Creo que este es una muy buena opcion porque permite heredar de cualquier Rdd ya existente en Harbour, en intuyo que su potencia, si se probara y terminara sería mayor que la de LetoDb. Saludos
servidor dbf (eleben) 2da revision web con php
hola buenas buenas de antemano este pequeño avanze me sirvio en una empresa donde lo estan probando y estan contentos con la presentacion de la informacion por internet si usar sql, mysql y mucho mas rapido los browse en la red local ( aqui mando una lista de 20 registro , en donde lo estan probando manda todo el archivo empaquetado el cliente lo recibe y se procesa localmente la informacion ) a si mismo un reporte de x base de datos por x filtro tambien esta implementado la ventaja de esto para mi , que viene como crear el servidor como mandar la peticion y recibir la peticion procesarla y mandarla a cliente se que es el primer paso pero las peticiones las hice en un ratito donde batalle fue por la clase tsocket para el envio de la informacion pero haciendo pruebas quedo muy bien asta podemos mandar archivos completos zip o de grandes cantidades (ya probado ) saludos ,,,
servidor dbf (eleben) 2da revision web con php
benjiben143, Amigo, los comentarios de los colegas son para que veas otras opciones, claro esta que tu avance es mucho muy importante, y desde luego, lo que vale es el esfuerzo que cada quien imprime a sus logros. Colegas, lo que hizo Ben10 no es buscarle la vuelta a la rueda, sino es algo que generó en base a una necesidad propia, hay que aplaudir su entusiasmo y sobre todo dedicación. Pero de sobre manera su entusiasmo por aportarlo a la comunidad, habemos muchos que solo somos espectadores y que estos aportes nos sirven de mucho... Y los que conoces otras herramientas deben exponerlo de igual manera, asi no se le busca la vuelta a la rueda....
servidor dbf (eleben) 2da revision web con php
hola buenas buenas ... ya que actualizada con el browse ya listo con avanze de pagina regreso de pagina inicio de pagina final de pagina el cliente [url:1qulwsif]http&#58;//www&#46;eleben&#46;com&#46;mx/elebenc&#46;prg[/url:1qulwsif] el servidor [url:1qulwsif]http&#58;//www&#46;eleben&#46;com&#46;mx/elebens&#46;prg/[/url:1qulwsif] saludos ...
servidor dbf (eleben) 2da revision web con php
hola ,,, con una pequeña adecuacion en la clase tsocket , al momento de mandar los mensajes ya es multiusuario modificacion en clase tsocket,,, en el metodo senddata ,,,, le mando el socket ya que con el anterior no mandaba el socket adecuado de la peticion [code=fw:3ldm9hoz]<div class="fw" id="{CB}" style="font-family: monospace;"> <br />claseMETHOD SendData<span style="color: #000000;">&#40;</span> cData, Msoc <span style="color: #000000;">&#41;</span> <span style="color: #00C800;">CLASS</span> TSocket<br /><br />   <span style="color: #00C800;">local</span> nSize := Len<span style="color: #000000;">&#40;</span> cData <span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">local</span> nLen  := nSize<br />   <span style="color: #00C800;">local</span> nSent := <span style="color: #000000;">0</span><br /><br />   <span style="color: #00C800;">if</span> ! ::<span style="color: #000000;">lSending</span><br />      ::<span style="color: #000000;">lSending</span> = .t.<br />   <span style="color: #00C800;">else</span><br />      AAdd<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">aBuffer</span>, cData <span style="color: #000000;">&#41;</span><br />      <span style="color: #00C800;">return</span> nSize<br />   <span style="color: #00C800;">endif</span><br />    <span style="color: #00C800;">while</span> <span style="color: #000000;">&#40;</span> nLen > <span style="color: #000000;">0</span> .and. ;<br />           <span style="color: #000000;">&#40;</span> nSent := SocketSend<span style="color: #000000;">&#40;</span> msoc, cData <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> < nLen <span style="color: #000000;">&#41;</span> .or. ;        <span style="color: #B900B9;">//-> aqui el agregue mosc,,,   quitandole ::nsocket  ya que ::nsocket no guardaba el ultimo socket </span><br />           Len<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">aBuffer</span> <span style="color: #000000;">&#41;</span> > <span style="color: #000000;">0</span><br />      <span style="color: #00C800;">if</span> ::<span style="color: #000000;">lDebug</span> .and. ! Empty<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">cLogFile</span> <span style="color: #000000;">&#41;</span><br />         LogFile<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">cLogFile</span>, <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"Sent:"</span>, nSent, <span style="color: #ff0000;">"Len:"</span>, Len<span style="color: #000000;">&#40;</span> cData <span style="color: #000000;">&#41;</span>, <span style="color: #ff0000;">"Buffer Len:"</span>, Len<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">aBuffer</span> <span style="color: #000000;">&#41;</span>, <span style="color: #ff0000;">"Error:"</span>, WSAGetLastError<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br />      <span style="color: #00C800;">endif</span><br />      <span style="color: #B900B9;">// Check for buffered packets to send</span><br />      <span style="color: #00C800;">if</span> nLen == <span style="color: #000000;">0</span> .and. Len<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">aBuffer</span> <span style="color: #000000;">&#41;</span> > <span style="color: #000000;">0</span><br />         cData = ::<span style="color: #000000;">aBuffer</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span><br />         ADel<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">aBuffer</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span><br />         ASize<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">aBuffer</span>, Len<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">aBuffer</span> <span style="color: #000000;">&#41;</span> - <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span><br />      <span style="color: #00C800;">endif</span><br />      <span style="color: #00C800;">if</span> nSent != <span style="color: #000000;">-1</span><br />         cData = <span style="color: #0000ff;">SubStr</span><span style="color: #000000;">&#40;</span> cData, nSent + <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span><br />         nLen  = Len<span style="color: #000000;">&#40;</span> cData <span style="color: #000000;">&#41;</span><br />      <span style="color: #00C800;">else</span><br />         <span style="color: #00C800;">if</span> WSAGetLastError<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> != WSAEWOULDBLOCK<br />            <span style="color: #B900B9;">// exit</span><br />         <span style="color: #00C800;">endif</span><br />      <span style="color: #00C800;">endif</span><br />      SysRefresh<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   end<br /><br />   <span style="color: #B900B9;">// if ::lDebug .and. ! Empty( ::cLogFile )</span><br />   <span style="color: #B900B9;">//    LogFile( ::cLogFile, { cData } )</span><br />   <span style="color: #B900B9;">// endif</span><br /><br />   ::<span style="color: #000000;">lSending</span> = .f.<br /><br /><span style="color: #00C800;">return</span> nSize<br /> </div>[/code:3ldm9hoz] por lo consiguiente el servidor elebens,, ya trabaja en modo multiusuario servidor [url:3ldm9hoz]http&#58;//www&#46;eleben&#46;com&#46;mx/elebens&#46;prg[/url:3ldm9hoz] cliente [url:3ldm9hoz]http&#58;//www&#46;eleben&#46;com&#46;mx/elebenc&#46;prg[/url:3ldm9hoz] saludos
servidor dbf (eleben) 2da revision web con php
Coincido con el amigo, Willy, es bueno tener mas opciones total, "Programar siempre sera un placer".
servidor dbf (eleben) 2da revision web con php
hola le agregue conexcion con php lo que hace es mostar via web las bases de datos del servidor con php sockets que nos quiere decir que podemos mandar lo que queramos de las base de datos ,,,, lo pueden bajar [url:kwwefzxm]http&#58;//www&#46;eleben&#46;com&#46;mx/elebens&#46;prg[/url:kwwefzxm] [url:kwwefzxm]http&#58;//www&#46;eleben&#46;com&#46;mx/elebenc&#46;prg[/url:kwwefzxm] [url:kwwefzxm]http&#58;//www&#46;eleben&#46;com&#46;mx/sphp&#46;php[/url:kwwefzxm] archivo sphp.php [code=fw:kwwefzxm]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #B900B9;">/* Obtener el puerto para el servicio WWW. */</span><br />$service_port = <span style="color: #000000;">3850</span>;<br /><br /><span style="color: #B900B9;">/* Obtener la dirección IP para el host objetivo. */</span><br />$address = gethostbyname<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">'192.168.7.5'</span><span style="color: #000000;">&#41;</span>;<br /><br /><span style="color: #B900B9;">/* Crear un socket TCP/IP. */</span><br />$socket = socket_create<span style="color: #000000;">&#40;</span>AF_INET, SOCK_STREAM, SOL_TCP<span style="color: #000000;">&#41;</span>;<br /><span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span>$socket === <span style="color: #00C800;">false</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; echo <span style="color: #ff0000;">"socket_create() falló: razón: "</span> . socket_strerror<span style="color: #000000;">&#40;</span>socket_last_error<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span> . <span style="color: #ff0000;">"<span style="color: #000000;">\n</span>"</span>;<br /><span style="color: #000000;">&#125;</span> <span style="color: #00C800;">else</span> <span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; echo <span style="color: #ff0000;">"OK.<span style="color: #000000;">\n</span>"</span>;<br /><span style="color: #000000;">&#125;</span><br /><br />echo <span style="color: #ff0000;">"Intentando conectar a '$address' en el puerto '$service_port'..."</span>;<br />$result = socket_connect<span style="color: #000000;">&#40;</span>$socket, $address, $service_port<span style="color: #000000;">&#41;</span>;<br /><span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span>$result === <span style="color: #00C800;">false</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; echo <span style="color: #ff0000;">"socket_connect() falló.<span style="color: #000000;">\n</span>Razón: ($result) "</span> . socket_strerror<span style="color: #000000;">&#40;</span>socket_last_error<span style="color: #000000;">&#40;</span>$socket<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span> . <span style="color: #ff0000;">"<span style="color: #000000;">\n</span>"</span>;<br /><span style="color: #000000;">&#125;</span> <span style="color: #00C800;">else</span> <span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; echo <span style="color: #ff0000;">"OK.<span style="color: #000000;">\n</span>"</span>;<br /><span style="color: #000000;">&#125;</span><br /><br />$in = <span style="color: #ff0000;">"PHP>BASES hola"</span>;<br />$out = <span style="color: #ff0000;">''</span>;<br /><br />echo <span style="color: #ff0000;">"Enviando petición EL SERVIDOR ELEEBEN ..."</span>;<br /><br />socket_write<span style="color: #000000;">&#40;</span>$socket, $in, <span style="color: #0000ff;">strlen</span><span style="color: #000000;">&#40;</span>$in<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>;<br />echo <span style="color: #ff0000;">"OK.<span style="color: #000000;">\n</span>"</span>;<br /><br />echo <span style="color: #ff0000;">"Leyendo respuesta:<span style="color: #000000;">\n</span><span style="color: #000000;">\n</span>"</span>;<br /><span style="color: #00C800;">while</span> <span style="color: #000000;">&#40;</span>$out = socket_read<span style="color: #000000;">&#40;</span>$socket, <span style="color: #000000;">4048</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; echo $out;<br /><span style="color: #000000;">&#125;</span><br /><br />echo <span style="color: #ff0000;">"Cerrando socket..."</span>;<br />socket_close<span style="color: #000000;">&#40;</span>$socket<span style="color: #000000;">&#41;</span>;<br />echo <span style="color: #ff0000;">"OK.<span style="color: #000000;">\n</span><span style="color: #000000;">\n</span>"</span>;<br />?></div>[/code:kwwefzxm]
servidor linux y windows 7 starter
En la empresa compraron una máquina con windows seven starter, quiero correr una aplicación que usa como bbdd Mysql que se encuentra montado en un servidor linux. Con windows 7 o XP no tengo problemas para conectarme pero con starter si. Alguien sabe si esto es una limitación de este sistema. Gracias de antemano
servidor linux y windows 7 starter
Amigo: Tengo la conexión a un servidor linux con W7 starter sin problemas. Saludos
servidor linux y windows 7 starter
Ok, gracias por la respuesta. A buscar la solución entonces ... Saludos
sesion tdolphin
Estimados tengo una aplicación que se conecta con mysql, con una base remota en un hosting, y la típica situación, el usuario abre una ventana, lo llaman o lo que sea y pasa un rato y se cae el sistema... que se perdió la conexion con el host... como puedo resolver esto... yo vi esto. oServer:Execute("SET SESSION wait_timeout = 186400") donde debo ubicarlo... ???
sesion tdolphin
sorry, ya lo vi... vere si funciona...
sesion tdolphin
Mira amigo lo mas simple es mandar un ping a server cada cierto tiempo. Yo utilizo la version Mysql de Sr. William y en ella viene un llamado a un ping al server ASi dejo el programa conectado a server remoto y no tengo problemas con el time out. .... llamado del diaglo o Window Function PInGtimer() DEFINE TIMER oTimer3 of oWnd INTERVAL 5000 ACTION EsTadoServer() Activate timer oTimer3 return Function EsTadoServer() IF !oCon:oKon:ping() MsgStop( "Se ha dectectado que el server no resnponde ","Aviso importante, revise estado del Servidor") oTimer3:desativate() oTimer3:end() oCon:end() QUIt endif oP:Pingserver:= oCon:oKon:ping() return Oscar Chacon.
sesion tdolphin
Estimados, coloque esta opción, y no me corre, se me cae la conexion a los 3 minutos de activar la señal.
sesion tdolphin
Donde la colocaste? Yo la ubique despues de hacer la conexion: oServer := TDolphinSrv():New( .... oServer:Execute( "SET SESSION wait_timeout = 86400;" ) He tenido el sistema abierto por horas y no se me ha desconectado nunca. Saludos!
sesion tdolphin
kpidata, [quote:2uqytq4c] Estimados tengo una aplicación que se conecta con mysql, con una base remota en un hosting [/quote:2uqytq4c] Debes tener en cuenta que el tiempo de la sesion de conexion en los HOSTING son autonomas y no duran mas de 30 segundos, por lo tanto la instruccion SET SESSION wait_timeout = 86400; no aplica en este caso. Yo tengo una aplicacion cuya base de datos trabaja en un hosting, y la verdad que 30 segundos ha sido mas que suficiente para hacer un INSERT, UPDATE, DELETE o un SELECT simple o complejo, incluyendo consultas que usan INNER JOIN / LEFT JOIN, con inclusion de mas de una tabla y con muchos registros. Ahora si la database reside en un servidor que no es un hosting y el acceso es remoto, para ese caso si funciona esa instruccion, sin embargo si y solo si para este caso no es recomendable dejar abierta la conexion tanto tiempo.
sesion tdolphin
Amigo Albeiro. entonces dices que cada vez que grabas algo en una TABLA abres la BASE DE DATOS, saludos
sesion tdolphin
Lo que comenta albeiro es cierto, pero si estas en una pantalla con un xbrowse abierto con una query, si la coexion se cae, el programa se caera al querer hacer algun proceso sobre el. Lo que yo instrumente que me funciona bien tanto en bases de datos almacenadas en hosting como en local, es hacer una simple query para que la conexion no se caiga, cada x tiempo (con un timer). Si te sirve, la coloco aqui En la ventana principal de tu aplicacion pones: [code=fw:10ayoxje]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">TIMER</span> oApp:<span style="color: #000000;">oTimer</span> <span style="color: #0000ff;">INTERVAL</span> <span style="color: #000000;">10000</span> <span style="color: #0000ff;">ACTION</span> Pinguear<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">OF</span> oApp:<span style="color: #000000;">oWnd</span> &nbsp; <br /><span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oApp:<span style="color: #000000;">oWnd</span> <span style="color: #0000ff;">MAXIMIZED</span> <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">INIT</span> oApp:<span style="color: #000000;">oTimer</span>:<span style="color: #0000ff;">Activate</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span></div>[/code:10ayoxje] Y la funcion pinguear seria: [code=fw:10ayoxje]<div class="fw" id="{CB}" style="font-family: monospace;"><br />*********************************************<br />** Pinguar<br /><span style="color: #00C800;">FUNCTION</span> Pinguear<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">LOCAL</span> oQry, lRta <br /><span style="color: #00C800;">IF</span> oApp:<span style="color: #000000;">oServer</span> <> <span style="color: #00C800;">nil</span><br />&nbsp; &nbsp;oQry := oApp:<span style="color: #000000;">oServer</span>:<span style="color: #000000;">Query</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"SELECT 1"</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">IF</span> oQry:<span style="color: #000000;">RecCount</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> = <span style="color: #000000;">0</span><br />&nbsp; &nbsp; &nbsp; oApp:<span style="color: #000000;">oTimer</span>:<span style="color: #000000;">Deactivate</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; oApp:<span style="color: #000000;">oWnd</span>:<span style="color: #000000;">SetMsg</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Reconectando con el servidor......"</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; lRta := oApp:<span style="color: #000000;">oServer</span>:<span style="color: #000000;">Ping</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">IF</span> !lRta <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;MsgStop<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Se desconecto el servidor!"</span>,<span style="color: #ff0000;">"Error"</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;QUIT<br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">ENDIF</span><br />&nbsp; &nbsp; &nbsp; oApp:<span style="color: #000000;">oTimer</span>:<span style="color: #0000ff;">Activate</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> &nbsp; <br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">ELSE</span><br />&nbsp; &nbsp; &nbsp; oApp:<span style="color: #000000;">oWnd</span>:<span style="color: #000000;">SetMsg</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Pingueando..."</span><span style="color: #000000;">&#41;</span> &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp;<span style="color: #00C800;">ENDIF</span><br /><span style="color: #00C800;">ENDIF</span><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">nil</span></div>[/code:10ayoxje] Espero te sirva
session object
Hello, When I programmed with ASP we use the session object to swap data between the different web sides.What are the disadvantages of using the javascript session object instead of the post method. Thank you in advance Otto
session object
Hi Otto. I simulate the way PHP use sessions with a file. You can create a cookie with the name of the user and a string with the name of the file. This file is a dbf placed in a folder with some columns a one row for every string you want to use and its value. With some functions you can create a session, write it, read it, control if is alive and delete it if is a lot of time that is not used or closed by a logout from the program. There is some code to write but is working in the same way PHP does. Massimo
session object
Hello Massimo, I am using javascript session object and this is working perfectly. Only - as nobody seems to use it - I do not know if I will face problems with these objects. Development is much easier as with the post method and also speed is better. Best regards Otto
session object
Hello, I found good documentation for this here: [url:uu6wlwvs]https&#58;//javascript&#46;info/localstorage[/url:uu6wlwvs] The limit is 2mb+, depends on the browser. Best regards, Otto
session object
Hello, session object is working perfectly. Save Javascript objects in sessionStorage <!-- m --><a class="postlink" href="https://stackoverflow.com/questions/6193574/save-javascript-objects-in-sessionstorage">https://stackoverflow.com/questions/619 ... ionstorage</a><!-- m --> calling web page: [code=fw:175hph9f]<div class="fw" id="{CB}" style="font-family: monospace;"><br />   <span style="color: #0000ff;">var</span> <span style="color: #0000ff;">name</span> =  Object.create<span style="color: #000000;">&#40;</span><span style="color: #00C800;">null</span><span style="color: #000000;">&#41;</span>;<br />    <span style="color: #0000ff;">name</span>.FirstName= <span style="color: #ff0000;">"Otto"</span>;<br />    <span style="color: #0000ff;">name</span>.LastName = <span style="color: #ff0000;">"Mustermann"</span><br />    <span style="color: #0000ff;">name</span>.strasse=<span style="color: #ff0000;">"Bahnhofstrasse"</span><br />    <span style="color: #0000ff;">name</span>.Age =<span style="color: #ff0000;">"25"</span><br /><br />     sessionStorage.setItem<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">'example'</span>, JSON.stringify<span style="color: #000000;">&#40;</span><span style="color: #0000ff;">name</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>;</div>[/code:175hph9f] request page [code=fw:175hph9f]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #0000ff;">var</span> temp = sessionStorage.getItem<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">'example'</span><span style="color: #000000;">&#41;</span>;<br />        <br /><span style="color: #0000ff;">var</span> viewName = $.parseJSON<span style="color: #000000;">&#40;</span>temp<span style="color: #000000;">&#41;</span>;<br /><span style="color: #0000ff;">var</span> <span style="color: #00C800;">div</span> = <span style="color: #ff0000;">'<div>'</span> + viewName.FirstName + <span style="color: #ff0000;">' '</span> + viewName.LastName + <span style="color: #ff0000;">' '</span> + viewName.strasse + <span style="color: #ff0000;">' is '</span> + viewName.Age + <span style="color: #ff0000;">' years old.'</span> + <span style="color: #ff0000;">'</div>'</span>;</div>[/code:175hph9f]
session object
Hello friends, Does anyone know the disadvantages of using the session object for the CRUD methods (ADD, EDIT, DELETE) records instead of AJAX? Best regards, Otto
set a dialog on a position
I wish set a dialog at x,y but I not found the position of the msgitem og Msgbar oApp:oMsgItem1:bAction := { |oBtn| ::ConteggioTotali(oApp:oWndMain:oMsgBar) } Function ConteggioTotali(obtn) Local aPoint := AdjustWnd( oBtn, -27*2, 15*2 ) DEFINE DIALOG oDlgConteggio size 400,250 TRANSPARENT; TITLE "Conteggio elementi" ACTIVATE DIALOG oDlgConteggio CENTERED; ON CLICK oDlgConteggio:End() ; ON PAINT oDlgConteggio:Move(aPoint[1]-100, aPoint[2],,,.t.); give me allway under the main window
set a dialog on a position
Try this sample and adapt the logic to your program [code=fw:2lorui72]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"fivewin.ch"</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> oWnd, oBar, oMsgBar, oMsgItemDlg, oMsgItemPop<br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> oWnd<br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTONBAR</span> <span style="color: #0000ff;">OF</span> oWnd <span style="color: #000000;">2007</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> MSGBAR oMsgBar <span style="color: #0000ff;">OF</span> oWnd <span style="color: #000000;">2007</span><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> MSGITEM oMsgItemDlg <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"ShowDialog"</span> <span style="color: #0000ff;">OF</span> oMsgBar <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">100</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">ACTION</span> ShowDlg<span style="color: #000000;">&#40;</span> oMsgItemDlg <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> MSGITEM oMsgItemPop <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Show Popup"</span> <span style="color: #0000ff;">OF</span> oMsgBar <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">100</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">ACTION</span> ShowPopup<span style="color: #000000;">&#40;</span> oMsgItemPop <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> MSGITEM <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Dummy Item"</span> <span style="color: #0000ff;">OF</span> oMsgBar <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">100</span><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> MSGITEM <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Dummy Item"</span> <span style="color: #0000ff;">OF</span> oMsgBar <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">100</span><br /><br />&nbsp; &nbsp;oWnd:<span style="color: #000000;">nHeight</span> &nbsp; := <span style="color: #000000;">500</span><br />&nbsp; &nbsp;oWnd:<span style="color: #000000;">nWidth</span> &nbsp; &nbsp;:= <span style="color: #000000;">700</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <span style="color: #0000ff;">CENTERED</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">static</span> <span style="color: #00C800;">function</span> ShowPopup<span style="color: #000000;">&#40;</span> oMsgItem <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> oPop<br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">MENU</span> oPop <span style="color: #0000ff;">POPUP</span> <span style="color: #000000;">2007</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"One"</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Two"</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Three"</span><br />&nbsp; &nbsp;<span style="color: #0000ff;">ENDMENU</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">MENU</span> oPop <span style="color: #00C800;">AT</span> oMsgItem:<span style="color: #000000;">oMsgBar</span>:<span style="color: #000000;">nTop</span>, oMsgItem:<span style="color: #000000;">nLeft</span> <span style="color: #0000ff;">OF</span> oMsgItem:<span style="color: #000000;">oMsgBar</span>:<span style="color: #000000;">oWnd</span> FLAGS 0x20<br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">static</span> <span style="color: #00C800;">function</span> ShowDlg<span style="color: #000000;">&#40;</span> oMsgItem <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> oDlg<br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> oMsgBar &nbsp;:= oMsgItem:<span style="color: #000000;">oMsgBar</span><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> oWnd &nbsp; &nbsp; := oMsgBar:<span style="color: #000000;">oWnd</span><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> aPt &nbsp; &nbsp; &nbsp;:= <span style="color: #000000;">&#123;</span> oMsgBar:<span style="color: #000000;">nTop</span>, oMsgItem:<span style="color: #000000;">nLeft</span> <span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp;aPt &nbsp; := ClientToScreen<span style="color: #000000;">&#40;</span> oWnd:<span style="color: #000000;">hWnd</span>, aPt <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">100</span>,<span style="color: #000000;">150</span> <span style="color: #0000ff;">PIXEL</span> TRUEPIXEL<br />&nbsp; &nbsp;<span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">INIT</span> oDlg:<span style="color: #0000ff;">Move</span><span style="color: #000000;">&#40;</span> aPt<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span> - oDlg:<span style="color: #000000;">nHeight</span>, aPt<span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br />&nbsp;</div>[/code:2lorui72]
set a dialog on a position
Try this sample and adapt the logic to your program [code=fw:14plochg]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"fivewin.ch"</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> oWnd, oBar, oMsgBar, oMsgItemDlg, oMsgItemPop<br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> oWnd<br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTONBAR</span> <span style="color: #0000ff;">OF</span> oWnd <span style="color: #000000;">2007</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> MSGBAR oMsgBar <span style="color: #0000ff;">OF</span> oWnd <span style="color: #000000;">2007</span><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> MSGITEM oMsgItemDlg <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"ShowDialog"</span> <span style="color: #0000ff;">OF</span> oMsgBar <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">100</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">ACTION</span> ShowDlg<span style="color: #000000;">&#40;</span> oMsgItemDlg <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> MSGITEM oMsgItemPop <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Show Popup"</span> <span style="color: #0000ff;">OF</span> oMsgBar <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">100</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">ACTION</span> ShowPopup<span style="color: #000000;">&#40;</span> oMsgItemPop <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> MSGITEM <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Dummy Item"</span> <span style="color: #0000ff;">OF</span> oMsgBar <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">100</span><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> MSGITEM <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Dummy Item"</span> <span style="color: #0000ff;">OF</span> oMsgBar <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">100</span><br /><br />&nbsp; &nbsp;oWnd:<span style="color: #000000;">nHeight</span> &nbsp; := <span style="color: #000000;">500</span><br />&nbsp; &nbsp;oWnd:<span style="color: #000000;">nWidth</span> &nbsp; &nbsp;:= <span style="color: #000000;">700</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <span style="color: #0000ff;">CENTERED</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">static</span> <span style="color: #00C800;">function</span> ShowPopup<span style="color: #000000;">&#40;</span> oMsgItem <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> oPop<br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">MENU</span> oPop <span style="color: #0000ff;">POPUP</span> <span style="color: #000000;">2007</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"One"</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Two"</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Three"</span><br />&nbsp; &nbsp;<span style="color: #0000ff;">ENDMENU</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">MENU</span> oPop <span style="color: #00C800;">AT</span> oMsgItem:<span style="color: #000000;">oMsgBar</span>:<span style="color: #000000;">nTop</span>, oMsgItem:<span style="color: #000000;">nLeft</span> <span style="color: #0000ff;">OF</span> oMsgItem:<span style="color: #000000;">oMsgBar</span>:<span style="color: #000000;">oWnd</span> FLAGS 0x20<br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">static</span> <span style="color: #00C800;">function</span> ShowDlg<span style="color: #000000;">&#40;</span> oMsgItem <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> oDlg<br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> oMsgBar &nbsp;:= oMsgItem:<span style="color: #000000;">oMsgBar</span><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> oWnd &nbsp; &nbsp; := oMsgBar:<span style="color: #000000;">oWnd</span><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> aPt &nbsp; &nbsp; &nbsp;:= <span style="color: #000000;">&#123;</span> oMsgBar:<span style="color: #000000;">nTop</span>, oMsgItem:<span style="color: #000000;">nLeft</span> <span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp;aPt &nbsp; := ClientToScreen<span style="color: #000000;">&#40;</span> oWnd:<span style="color: #000000;">hWnd</span>, aPt <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">100</span>,<span style="color: #000000;">150</span> <span style="color: #0000ff;">PIXEL</span> TRUEPIXEL<br />&nbsp; &nbsp;<span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">INIT</span> oDlg:<span style="color: #0000ff;">Move</span><span style="color: #000000;">&#40;</span> aPt<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span> - oDlg:<span style="color: #000000;">nHeight</span>, aPt<span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br />&nbsp;</div>[/code:14plochg]
set a dialog on a position
that's just what I was looking for. thank's my friend
set Filter to with set Relation to not work for ""ADS&qu
hi all: "Set Filter to" with "Set Relation to" not work for RDD "ADS", same source work fine for RDD "DBFCDX" . ******************* LOCAL cSALSMAN:="TIM",cCOND cCOND:="SAL->SALSMAN="+"'"+cSALSMAN+"'" USE SAL INDEX SAL_NO NEW SHARE // INDEX ON SNO USE SAL1 INDEX SAL1_DT NEW SHARE SET RELATION TO SAL1->SNO INTO SAL SET SCOPE TO dDT1,dDT2 SET FILTER TO &cCOND // ERROR FILTER FOR "ADS" , BUT WORK FINE FOR "DBFCDX" GO TOP BROWSE() ******************** Anyone Know how ? Best Regards kokoo
set Filter to with set Relation to not work for ""ADS&qu
Kokoo: I think I explained it to you in comp.lang.xharbour newsgroup, but here it goes again anyway: ADS is an EXTERNAL program to your application, so, you cannot use anything related to your program to indicate filters, relations or indexes. I mean, you cannot use alias, variables or used defined functions in the ADS or RDD related functions or comands. in order to set relations or filters, because ADS CANNOT go into your program code or memory and "inspect" the values of such variables. [quote="kokookao2007":130fckz4] LOCAL cSALSMAN:="TIM",cCOND cCOND:="SAL->SALSMAN="+"'"+cSALSMAN+"'" [/quote:130fckz4] The previos expression is not valid, if you are going to use it with ADS you cannot use the "SAL" alias, because ADS cannot know what is the value of "SAL" (this is an internal pointer of your application), so, the right expression is: [code:130fckz4] LOCAL cSALSMAN&#58;="TIM",cCOND cCOND&#58;="SALSMAN="+"'"+cSALSMAN+"'" [/code:130fckz4] This: [code:130fckz4]USE SAL INDEX SAL_NO NEW SHARE // INDEX ON SNO USE SAL1 INDEX SAL1_DT NEW SHARE SET RELATION TO SAL1->SNO INTO SAL SET SCOPE TO dDT1,dDT2 [/code:130fckz4] This can be valid if you want the relation be handled by the client (it could be slow). And the problem comes here: [code:130fckz4] SET FILTER TO &cCOND // ERROR FILTER FOR "ADS" , BUT WORK FINE FOR "DBFCDX" BROWSE&#40;&#41; GO TOP [/code:130fckz4] As I explained to you in the xharbour news group, all the filtering stuff MUST be established in a TEXTUAL FORM, since the cCOND expression is wrong form the begining, it will sure crash when comming to this point. This is the right way: [code:130fckz4]cCond &#58;= cCOND&#58;="SALSMAN="+"'"+cSALSMAN+"'" bCond &#58;= "&#123;||"+cCond+"&#125;" DBSETFILTER&#40;&bCond, cCond&#41; GO TOP BROWSE&#40;&#41; [/code:130fckz4] Remember, ADS is an EXTERNAL programm running out of the cast of your application. ADS doesn't know anything about your programm enviroment and it doesn't have anyway to know about it.
set Filter to with set Relation to not work for ""ADS&qu
hi Rene : Thank you for help Again. In this sample. there is no field "salsman" define in sal1.dbf . [code:2s4tpgg3] cCOND&#58;="SAL->SALSMAN="+"'"+cSALSMAN+"'" edit to &#58; cCOND&#58;="SALSMAN="+"'"+cSALSMAN+"'" // Can not work , SAL1->SALSMAN==>no such field [/code:2s4tpgg3] What I edit : 1)add field "salsman" to sal1.dbf 2)Replace Sal->Salsman to Sal1->Salsman for scope condition (by Set relation to) 3)now cCOND:="SALSMAN="+"'"+cSALSMAN+"'" or cCOND:="SAl1->SALSMAN="+"'"+cSALSMAN+"'" Can be work [code:2s4tpgg3] SOURCE CODE&#58; LOCAL cSALSMAN&#58;="TIM",cCOND USE SAL INDEX SAL_NO NEW SHARE // INDEX ON SNO cCOND&#58;="SAL->SALSMAN="+"'"+cSALSMAN+"'" SET FILTER TO &cCOND USE SAL1 INDEX SAL1_DT NEW SHARE *ADD FIELD SALSMAN FIRST SET RELATION TO SAL1->SNO INTO SAL SET SCOPE TO dDT1,dDT2 GO TO DO WHILE ! EOF&#40;&#41; SAL1->&#40;RLOCK&#40;&#41;&#41; SAL1->SLASMAN&#58;=SAL->SALSMAN SAL1->&#40;DBUNLOCK&#40;&#41;&#41; SKIP ENDDO SET RELATION TO SAL->&#40;DBCLOSEAREA&#40;&#41;&#41; SELE SAL1 cCOND&#58;="SAL1->SALSMAN="+"'"+cSALSMAN+"'" SET FILTER TO &cCOND &#46;&#46;&#46; &#46;&#46;&#46; [/code:2s4tpgg3] Any best solution not to edit struct sal1.dbf for both Rdd "dbfcdx" and "ADS" ? Best Regards kokoo
set Report Orientation
Silvio, It uses the same source code. It does not work like that. It is very complicated to change. It's an open case. Best regards, Otto
set Report Orientation
.
set Report Orientation
Maybe: [code=fw:1qhmkrq3]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #B900B9;">// \samples\RPTLINHA.PRG</span><br /><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"Report.ch"</span><br /><br /><span style="color: #00C800;">STATIC</span> oReport, oDlg<br /><br /><span style="color: #00C800;">FUNCTION</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;SET CENTURY <span style="color: #0000ff;">ON</span><br />&nbsp; &nbsp;SET DATE BRITISH<br />&nbsp; &nbsp;SET TIME FORMAT <span style="color: #0000ff;">TO</span> <span style="color: #ff0000;">"HH:MM:SS"</span><br />&nbsp; &nbsp;SET EPOCH <span style="color: #0000ff;">TO</span> <span style="color: #0000ff;">Year</span><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> - <span style="color: #000000;">30</span><br /><br />&nbsp; &nbsp;USE Customer <span style="color: #0000ff;">ALIAS</span> Test<br /><br />&nbsp; &nbsp;myReport<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><br /><span style="color: #00C800;">FUNCTION</span> myReport<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> oFont1, oFont2, oFont3, oBmp, oPen1, oPen2<br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> nfila := <span style="color: #000000;">-1</span><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> lLand<br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFont1 <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"ARIAL"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>, - <span style="color: #000000;">10</span><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFont2 <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 />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFont3 <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 ITALIC<br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> PEN oPen1 Width <span style="color: #000000;">2</span> <span style="color: #0000ff;">COLOR</span> CLR_CYAN<br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> PEN oPen2 WIDTH <span style="color: #000000;">2</span> <span style="color: #0000ff;">COLOR</span> CLR_GREEN<br /><br />&nbsp; &nbsp;GO TOP<br /><br />&nbsp; &nbsp;REPORT oReport &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">TITLE</span> &nbsp;<span style="color: #ff0000;">"*** LISTADO DE PRUEBA ***"</span>, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">""</span>, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; OemtoAnsi<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"FiveTech Software"</span> <span style="color: #000000;">&#41;</span>, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">""</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">FONT</span> &nbsp; oFont1, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; oFont2, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; oFont3 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; PEN &nbsp; &nbsp;oPen1, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; oPen2 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; 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>, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"Hora..: "</span> + Time<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; FOOTER OemtoAnsi<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"P gina: "</span> <span style="color: #000000;">&#41;</span> + Str<span style="color: #000000;">&#40;</span> oReport:<span style="color: #000000;">nPage</span>, <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span> ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">CENTERED</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; PREVIEW<br /><br />&nbsp; &nbsp;lLand := <span style="color: #00C800;">IF</span><span style="color: #000000;">&#40;</span> oReport:<span style="color: #000000;">oDevice</span>:<span style="color: #000000;">GetOrientation</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> == <span style="color: #000000;">1</span>, <span style="color: #000000;">&#40;</span> .F. <span style="color: #000000;">&#41;</span>, <span style="color: #000000;">&#40;</span> .T. <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;oReport:<span style="color: #000000;">oDevice</span>:<span style="color: #000000;">lPrvModal</span> := .T.<br />&nbsp; &nbsp;oReport:<span style="color: #000000;">oDevice</span>:<span style="color: #000000;">SetPage</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">9</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">IF</span> lLand<br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"LANDSCAPE"</span>, <span style="color: #ff0000;">"Reporte"</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; PrnLandScape<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> &nbsp; <span style="color: #B900B9;">// Horizontal</span><br /><br />&nbsp; &nbsp; &nbsp; oReport:<span style="color: #000000;">lAutoLand</span> := .T.<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">ELSE</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"PORTRAIT"</span>, <span style="color: #ff0000;">"Reporte"</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; PrnPortrait<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// Vertical</span><br /><br />&nbsp; &nbsp; &nbsp; oReport:<span style="color: #000000;">lAutoLand</span> := .F.<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">ENDIF</span><br /><br />&nbsp; &nbsp;COLUMN <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Fila"</span> <span style="color: #00C800;">DATA</span> AllTrim<span style="color: #000000;">&#40;</span> Str<span style="color: #000000;">&#40;</span> nFila += <span style="color: #000000;">0.5</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;COLUMN <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"ST"</span> &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">DATA</span> Test->STATE &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">FONT</span> <span style="color: #000000;">2</span><br /><br />&nbsp; &nbsp;COLUMN <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"City"</span> ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">DATA</span> Test->City<br /><br />&nbsp; &nbsp;COLUMN <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"First Name"</span>, <span style="color: #ff0000;">"Last Name"</span> ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">DATA</span> Test->First, Test->Last<br /><br />&nbsp; &nbsp;COLUMN <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">" &nbsp; Salary"</span> &nbsp; ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">DATA</span> Test->Salary &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">PICTURE</span> <span style="color: #ff0000;">"9,999,999"</span> &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">9</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; TOTAL &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; SHADOW &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; GRID <span style="color: #000000;">2</span><br /><br />&nbsp; &nbsp;END REPORT<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">IF</span> .NOT. oReport:<span style="color: #000000;">lCreated</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">ELSE</span><br /><br />&nbsp; &nbsp; &nbsp; oReport:<span style="color: #000000;">SetTxtColor</span><span style="color: #000000;">&#40;</span> CLR_HBLUE, <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; oReport:<span style="color: #000000;">SetTxtColor</span><span style="color: #000000;">&#40;</span> CLR_HRED, <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; oReport:<span style="color: #000000;">SetTxtColor</span><span style="color: #000000;">&#40;</span> CLR_HBLUE, <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; oReport:<span style="color: #000000;">SetPenColor</span><span style="color: #000000;">&#40;</span> CLR_CYAN &nbsp; <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; oReport:<span style="color: #000000;">SetShdColor</span><span style="color: #000000;">&#40;</span> CLR_HCYAN &nbsp;<span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">ENDIF</span><br /><br />&nbsp; &nbsp;oReport:<span style="color: #000000;">CellView</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">ACTIVATE</span> REPORT oReport<br /><br />&nbsp; &nbsp;oFont1:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oFont2:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oFont3:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;oPen1:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oPen2:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br />&nbsp;</div>[/code:1qhmkrq3]
set Report Orientation
PERHAPS YOU NOT READ THE QUESTION. I make [b:2fbsxt65]oBrw[/b:2fbsxt65]:Report( 'Stampa elenco ', , , ; { |oRep, oBrw | MySetUp( oRep, oBrw, lLandscape ) } ) I know how make the orientation if i must use the prg you wrote, but I call report() from [b:2fbsxt65]oBrw [/b:2fbsxt65]directly
set Report Orientation
If I make local lLandscape :=.t. ... DEFINE DIALOG oDlgStampa @ 14,70 CHECKBOX oGetland VAR lLandscape PROMPT "Stampa in Orizzontale"; SIZE 120,26 of oDlgStampa ACTIVATE DIALOG oDlgStampa CENTER IF oDlgStampa:nresult == IDOK ?llandscape //[b:2ghcjdq8]here is .t. [/b:2ghcjdq8] bSetUp := {|oRep, oBrw, n, llandscape| MyRepSetup( oRep, oBrw, n,llandscape )} oBrw:Report("Elenco Categorie",.T.,,bSetUp ) Endif function MyRepSetup( oRep, oBrw, n ,llandscape) ?llandscape //[b:2ghcjdq8]here is nil [/b:2ghcjdq8] if llandscape oRep:lAutoLand := .T. else oRep:lAutoLand := .f. Endif oRep:CellView() oRep:oFooter := TrLine():New( {{|| "Page : "+Str(oRep:nPage,3)} }, oRep, 3 ) return nil
set Report Orientation
Silvio, please look here: <!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=3&t=40526&p=242094&hilit=orientation&sid=e2593be1086c9bedebb3a003fb838c89#p242094">viewtopic.php?f=3&t=40526&p=242094&hilit=orientation&sid=e2593be1086c9bedebb3a003fb838c89#p242094</a><!-- l --> Best regards, Otto
set Report Orientation
[quote="Otto":31lfx7ux]Silvio, please look here: <!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=3&t=40526&p=242094&hilit=orientation&sid=e2593be1086c9bedebb3a003fb838c89#p242094">viewtopic.php?f=3&t=40526&p=242094&hilit=orientation&sid=e2593be1086c9bedebb3a003fb838c89#p242094</a><!-- l --> Best regards, Otto[/quote:31lfx7ux] Otto, I use a xbrowse and call report class from it, no prn bSetUp := {|oRep, oBrw, n, llandscape| MyRepSetup( oRep, oBrw, n,llandscape )} oBrw:Report("Elenco Categorie",.T.,,bSetUp )
set Report Orientation
[quote="Otto":12vkyrw7]Silvio, It uses the same source code. It does not work like that. It is very complicated to change. It's an open case. Best regards, Otto[/quote:12vkyrw7] sorry U are usinf printer class instead report class i know how it must be done with the printer class, but in this context i am calling a report from an xbrowse class, maybe you didn't understand the problem
set Report Orientation
Silvio, you use TPrinter. Look into xBrowse class. There you see that xBrowse class uses printer class. xbrowse.prg [code=fw:gn4gcuyh]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">METHOD</span> Report<span style="color: #000000;">&#40;</span> cTitle, lPreview, lModal, bSetUp, aGroupBy, cPDF <span style="color: #000000;">&#41;</span> <span style="color: #00C800;">CLASS</span> TXBrowse<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> oRep, oPrn, oFont, oBold, uRet<br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> aCols, nFor, oCol, uBookMark<br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> oBrw := <span style="color: #00C800;">Self</span><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> lAddCols := .T.<br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> nRows, nSel, n<br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> lEof &nbsp; &nbsp; := .f.<br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> lSetUpTwice := .f.<br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> nLevels<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">DEFAULT</span> cTitle &nbsp; := <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">oWnd</span>:<span style="color: #000000;">ClassName</span> == <span style="color: #ff0000;">'TPANEL'</span>, ::<span style="color: #000000;">oWnd</span>:<span style="color: #000000;">oWnd</span>:<span style="color: #000000;">cTitle</span>, ::<span style="color: #000000;">oWnd</span>:<span style="color: #000000;">cTitle</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">DEFAULT</span> lPreview := .T.<br />&nbsp; &nbsp;<span style="color: #00C800;">DEFAULT</span> lModal &nbsp; := .T.<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> ::<span style="color: #000000;">nLen</span> < <span style="color: #000000;">1</span> .or. Empty<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">GetVisibleCols</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br />&nbsp; &nbsp;<span style="color: #00C800;">endif</span><br /><br />&nbsp; &nbsp;oPrn := &nbsp;PrintBegin<span style="color: #000000;">&#40;</span> cTitle, ; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// document</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; .f., ; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; <span style="color: #B900B9;">// luser</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; lPreview, <span style="color: #00C800;">nil</span>, ; &nbsp;&nbsp; <span style="color: #B900B9;">// xmodel</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; lModal, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; .f., &nbsp; &nbsp;; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// lselect</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cPDF <span style="color: #000000;">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; <span style="color: #B900B9;">// PDF to Save</span><br />&nbsp;</div>[/code:gn4gcuyh] Here you see that function PrintBegin comes from printer.prg. [code=fw:gn4gcuyh]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br /><span style="color: #00C800;">function</span> PrintBegin<span style="color: #000000;">&#40;</span> cDoc, lUser, lPreview, xModel, lModal, lSelection, cFile <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> cText, aPrn, nScan<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> xModel == <span style="color: #00C800;">nil</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">return</span> oPrinter := TPrinter<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> cDoc, lUser, lPreview,, lModal, lSelection, cFile <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">endif</span><br /><br />&nbsp; &nbsp;cText = StrTran<span style="color: #000000;">&#40;</span> GetProfString<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Devices"</span> <span style="color: #000000;">&#41;</span>, Chr<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span>, Chr<span style="color: #000000;">&#40;</span> <span style="color: #000000;">13</span> <span style="color: #000000;">&#41;</span> + Chr<span style="color: #000000;">&#40;</span> <span style="color: #000000;">10</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;aPrn &nbsp;= Array<span style="color: #000000;">&#40;</span> MlCount<span style="color: #000000;">&#40;</span> cText, <span style="color: #000000;">250</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;AEval<span style="color: #000000;">&#40;</span> aPrn, <span style="color: #000000;">&#123;</span> | v, n | aPrn<span style="color: #000000;">&#91;</span> n <span style="color: #000000;">&#93;</span> := Trim<span style="color: #000000;">&#40;</span> MemoLine<span style="color: #000000;">&#40;</span> cText, <span style="color: #000000;">250</span>, n <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 /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> Valtype<span style="color: #000000;">&#40;</span> xModel <span style="color: #000000;">&#41;</span> == <span style="color: #ff0000;">"N"</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> xModel < <span style="color: #000000;">0</span> .or. xModel > Len<span style="color: #000000;">&#40;</span> aPrn <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nScan = <span style="color: #000000;">0</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nScan = xModel<br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">endif</span><br />&nbsp; &nbsp;<span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> nScan := Ascan<span style="color: #000000;">&#40;</span> aPrn, <span style="color: #000000;">&#123;</span> | v | Upper<span style="color: #000000;">&#40;</span> xModel <span style="color: #000000;">&#41;</span> == Upper<span style="color: #000000;">&#40;</span> v <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> == <span style="color: #000000;">0</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nScan = Ascan<span style="color: #000000;">&#40;</span> aPrn, <span style="color: #000000;">&#123;</span> | v | Upper<span style="color: #000000;">&#40;</span> xModel <span style="color: #000000;">&#41;</span> $ Upper<span style="color: #000000;">&#40;</span> v <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">endif</span><br />&nbsp; &nbsp;<span style="color: #00C800;">endif</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> nScan == <span style="color: #000000;">0</span><br />&nbsp; &nbsp; &nbsp; MsgBeep<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">return</span> oPrinter := TPrinter<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> cDoc, .T., lPreview,, lModal, lSelection, cFile <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">endif</span><br /><br /><span style="color: #00C800;">return</span> oPrinter := TPrinter<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> cDoc, .f., lPreview, aPrn<span style="color: #000000;">&#91;</span> nScan <span style="color: #000000;">&#93;</span>, lModal,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;lSelection, cFile <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br />Myworkaround is does the job but you first has <span style="color: #0000ff;">to</span> setup <span style="color: #00C800;">for</span> the <span style="color: #0000ff;">printer</span> model the orientation.<br /><br /><br /><br />&nbsp;</div>[/code:gn4gcuyh] From my notes: Best regards, Otto [img:gn4gcuyh]https&#58;//mybergland&#46;com/fwforum/printing&#46;jpg[/img:gn4gcuyh]
set Report Orientation
Silvio, here you see | i zi pi zi| handling orientation. Best regards, Otto [img:2d8r1p1s]https&#58;//mybergland&#46;com/fwforum/orientation&#46;gif[/img:2d8r1p1s]
set Report Orientation
and wich is the command I not understood oBrw:Report( 'Stampa elenco ', , , ; { |oRep, oBrw | MySetUp( oRep, oBrw, lLandscape ) } ) I not want make report with ziziz zipizizi or another bullshit you did when you saw that I was doing something to print I ask for a specific thing [b:12efqfq1]oBrw:report() [/b:12efqfq1] <<<<<---------------------- and does not care if the xbrowse report method uses Printbegin() I asked how do you do it? Now you are all expert professors, You are all good at doing classes, on the other hand, have remained a donkey and have to suffer your bullying I saw well that the report method uses PrintBegin() did not have to teach me I asked you how to do it, I didn't ask you to show me how you do all on your zizizpizi but every time the same story, every time I ask for something to report or print you answer you put this zizizipizi implying to use your zizizpizi, now enough it bothered me But do you think I'm enjoying myself asking for help on the forum? or is it working to solve my problems? I am tailed by you and someone else just hangs up I insert a topic immediately responding with other topics and with incorrect answers
set Report Orientation
<!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=6&t=40145&p=242740&hilit=orientation&sid=1e156c84b09d5a82f13dda3a84ef6cd1#p242740">viewtopic.php?f=6&t=40145&p=242740&hilit=orientation&sid=1e156c84b09d5a82f13dda3a84ef6cd1#p242740</a><!-- l --> Silvio, sorry, there is no solution available at the moment. I use these workarounds. Best regards, Otto [code=fw:3thstc5i]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br /><br /><span style="color: #00C800;">function</span> hochformat<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; winexec<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">'RUNDLL32.EXE PRINTUI.DLL,PrintUIEntry /Sr /n "Seminar" /a "c:<span style="color: #000000;">\s</span>etprnter<span style="color: #000000;">\S</span>eminarhoch.dat"'</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #00C800;">function</span> landscape<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; winexec<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">'RUNDLL32.EXE PRINTUI.DLL,PrintUIEntry /Sr /n "Seminar" /a "c:<span style="color: #000000;">\s</span>etprnter<span style="color: #000000;">\S</span>eminar.dat"'</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span></div>[/code:3thstc5i]
set Report Orientation
[quote="Otto":ghq5e911]http://forums.fivetechsupport.com/viewtopic.php?f=6&t=40145&p=242740&hilit=orientation&sid=1e156c84b09d5a82f13dda3a84ef6cd1#p242740 Silvio, sorry, there is no solution available at the moment. I use these workarounds. Best regards, Otto [code=fw:ghq5e911]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br /><br /><span style="color: #00C800;">function</span> hochformat<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />    winexec<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">'RUNDLL32.EXE PRINTUI.DLL,PrintUIEntry /Sr /n "Seminar" /a "c:<span style="color: #000000;">\s</span>etprnter<span style="color: #000000;">\S</span>eminarhoch.dat"'</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #00C800;">function</span> landscape<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />    winexec<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">'RUNDLL32.EXE PRINTUI.DLL,PrintUIEntry /Sr /n "Seminar" /a "c:<span style="color: #000000;">\s</span>etprnter<span style="color: #000000;">\S</span>eminar.dat"'</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span></div>[/code:ghq5e911][/quote:ghq5e911] [b:ghq5e911]I'm not interested[/b:ghq5e911] I asked for a specific thing [b:ghq5e911]I don't think it can't be done[/b:ghq5e911] I know that in fwh you can do many things that you don't even imagine, but unfortunately I can't publish them and I keep them to myself because if I publish them they are the end of many things I have published
set Report Orientation
Silvio, currently there is no solution available in Fivewin. If you find a solution, please post it here to help others. Best regards, Otto
set Report Orientation
Very kind, as always. [quote="Silvio.Falconi":2xtk2i62]and wich is the command I not understood oBrw:Report( 'Stampa elenco ', , , ; { |oRep, oBrw | MySetUp( oRep, oBrw, lLandscape ) } ) I not want make report with ziziz zipizizi or another bullshit you did when you saw that I was doing something to print I ask for a specific thing [b:2xtk2i62]oBrw:report() [/b:2xtk2i62] <<<<<---------------------- and does not care if the xbrowse report method uses Printbegin() I asked how do you do it? Now you are all expert professors, You are all good at doing classes, on the other hand, have remained a donkey and have to suffer your bullying I saw well that the report method uses PrintBegin() did not have to teach me I asked you how to do it, I didn't ask you to show me how you do all on your zizizpizi but every time the same story, every time I ask for something to report or print you answer you put this zizizipizi implying to use your zizizpizi, now enough it bothered me But do you think I'm enjoying myself asking for help on the forum? or is it working to solve my problems? I am tailed by you and someone else just hangs up I insert a topic immediately responding with other topics and with incorrect answers[/quote:2xtk2i62]
set Report Orientation
We are going to start the year in peace, right ? <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
set Report Orientation
in fact dear massimo you are one of those who always bother me, where do you come from? where have you been all this time ? Did your jailers set you free or did you run away or are you on probation?
set Report Orientation
[quote="Antonio Linares":30408j1n]We are going to start the year in peace, right ? <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->[/quote:30408j1n] Right for me Antonio
set column
Nages , I ask on this topic How select the column to print [url:2utckt82]http&#58;//forums&#46;fivetechsupport&#46;com/viewtopic&#46;php?f=3&t=40956&sid=487478362ab4a54540a59f1b0e59eb8f&sid=487478362ab4a54540a59f1b0e59eb8f#p245511[/url:2utckt82] the problem is I have a Xbrowse with :SetMultiSelectCol() and on the column acols are not this column of checkbox I explain you I have an xbrowse with some buttons below when I press "print" a small window opens where the user can set the type of printing (horizontal or vertical) and can press a button to select the columns to be printed [img:2utckt82]https&#58;//i&#46;postimg&#46;cc/T1nV8Xmm/er&#46;png[/img:2utckt82] when the user presses to select the columns, a dialog opens [b:2utckt82]OptionPrint(oBrw)[/b:2utckt82] that you see with the list of columns BITMAP "PRINT_CONFIG" LEFT; ACTION ( aColumns:= OptionPrint(oBrw),; cSave := oBrw:SaveState(),; oBrw:ReArrangeCols( aColumns ) ) Note that the first column is the checkbox and the others are the columns that are in the main xbrowse when the user has selected the columns and confirm it I return to the report option dialog and return a content to acolumns ACTION ( aCols := {}, ; AEval( oBrw:aArrayData, { |a| If( a[ 3 ], AAdd( aCols, oBrowse:aCols[ a[ 2 ] ] ), nil ) } ), ; oDlgOptions:end( IDOK ) ) ... IF oDlgOptions:nresult == IDOK return aCols ENDIF return NIL [b:2utckt82]everything works fine[/b:2utckt82] but my concern is that if the user does not click on the first column (checkbox) then he prints the FALSE value for that column [img:2utckt82]https&#58;//i&#46;postimg&#46;cc/pybpHhxX/ff&#46;jpg[/img:2utckt82]
set date format
I used browse class How can I set the date format for ctod() function ?
set date format
From the Clipper 5.3b Norton Guides: SET DATE Set the date format for input and display ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ Syntax SET DATE FORMAT [TO] <cDateFormat> SET DATE [TO] AMERICAN | ansi | British | French | German | Italian | Japan | USA Arguments <cDateFormat> is a character expression that directly specifies the date format when the FORMAT clause is specified. <cDateFormat> must evaluate to a string of 12 or fewer characters. When specified, <cDateFormat> is analyzed to determine the proper placement and number of digits for the day, month, and year. The position of the day, month, and year digits is determined by scanning the string for one or more occurrences of the letters d, m, and y, respectively. Other characters in the string are copied verbatim into displayed date values. When FORMAT is not used, one of several keywords describes the date format. The following table shows the format for each keyword setting: SET DATE Formats ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ SETting Format ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ AMERICAN mm/dd/yy ANSI yy.mm.dd BRITISH dd/mm/yy FRENCH dd/mm/yy GERMAN dd.mm.yy ITALIAN dd-mm-yy JAPAN yy/mm/dd USA mm-dd-yy ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ Description SET DATE is an environment command that sets the display format for date values. SET DATE is a global setting that affects the behavior of dates throughout a program, allowing you to control date formatting in a way that facilitates porting applications to foreign countries. Examples þ In this example the FORMAT clause directly specifies the date format: SET DATE FORMAT "yyyy:mm:dd" þ This example configures the date setting at runtime by passing a DOS environment variable to the program, retrieving its value with GETENV(), and setting DATE with the retrieved value: C>SET CLIP_DATE=dd/mm/yy In the configuration section of the application program, the date format is set like this: FUNCTION AppConfig SET DATE FORMAT TO GETENV("CLIP_DATE") RETURN NIL Files Library is CLIPPER.LIB. EMG
set default printer
Does someone have a function to change the default printer. Thanks in advance, Otto
set default printer
Otto, WriteProfString( "windows", "device", cPrinter )
set filter con xbrowse da error
Quisiera saber si hay solución para este error que sucede cuando se aplica un filtro usando un control xbrowse******************************************Application=========== Path and name: C:\DATASOL\Datasol.Exe (32 bits) Size: 3,490,304 bytes Time from start: 0 hours 0 mins 19 secs Error occurred at: 27/09/2008, 15:12:51 Error description: Error BASE/1004 No exported method: EVAL Args: [ 1] = L .T.Stack Calls=========== Called from: => EVAL(0) Called from: C:\FWH808\source\classes\xbrowse.prg => TXBROWSE:DELREPOS(873) Called from: C:\FWH808\source\classes\xbrowse.prg => TXBROWSE:REFRESH(836) Called from: PROVEEDO.PRG => (b)DEFPROV(254) Called from: .\source\classes\TIMER.PRG => TIMEREVENT(0) Called from: WINDOW.PRG => (b)TWINDOW:TWINDOW(592) Called from: => TWINDOW:TIMER(0) Called from: => TWINDOW:HANDLEEVENT(0) Called from: WINDOW.PRG => _FWH(3299) Called from: => DIALOGBOX(0) Called from: DIALOG.PRG => TDIALOG:ACTIVATE(270) Called from: PROVEEDO.PRG => DEFPROV(723)*********************************************El filtro aplicado es " Set Filter to Sto->activo ", donde es un campo lógico.Con wBrowse funciona perfecto.Agradezco su ayudaRicardo
set filter con xbrowse da error
Ricardo,Prueba a aplicar el filtro asi:SET FILTER TO Sto->activo == .T.y a continuación haz:MsgInfo( DbFilter() )para comprobar que la expresión es la escritaDe paso comprueba que tengas esta línea en el método DelRepos() de la Clase TXBrowse y que no falte la "&": bFilter := ( ::cAlias )->( &cFilter )
set filter con xbrowse da error
Este ejemplo funciona bien aqui:[code:13z6kclj] #include "FiveWin&#46;ch" #include "XBrowse&#46;ch" function Main&#40;&#41; local oWnd, oBrw, oCol, nRecords USE Customer SET FILTER TO Left&#40; Customer->First, 1 &#41; == "S" COUNT TO nRecords GO TOP DEFINE WINDOW oWnd @ 0, 0 XBROWSE oBrw OF oWnd ALIAS "Customer" oCol = oBrw&#58;AddCol&#40;&#41; oCol&#58;bStrData = &#123; || Customer->First &#125; oCol&#58;cHeader = "First" oBrw&#58;CreateFromCode&#40;&#41; oBrw&#58;bKeyCount = &#123; || nRecords &#125; oBrw&#58;VSetRange&#40; 1, nRecords &#41; oBrw&#58;oVScroll&#58;GoTop&#40;&#41; oWnd&#58;oClient = oBrw ACTIVATE WINDOW oWnd return nil [/code:13z6kclj]
set filter con xbrowse da error
Antonio, me funcionó de la forma que tu me sugieres, pero si utilizo macro en la lína de filtro me da el mismo error, pude notar que bfilter puede devolver una cadena de caracteres como valor lógico.A mi browse le hago un filtro luego de creado para filtrar los clientes de una base de datos de acuerdo a lo que se ingrese, detallo mi función.La función DelRePos() está correcta con el &***************************Static Function FiltroCO(oBrw,nCual)*************************** Local nCant:=0 Local cTxt Public cField Default nCual to 1 if nCual=1 cTxt:="Filtrar clientes según detalle de Observación" cfield:="observ" elseif nCual=2 cTxt:="Filtrar clientes según el nombre" cField:="nombre" endif m->cFiltroDbf:=space(20) MsgGet(cTxt,"Filtro...",@m->cfiltroDbf) m->cFiltroDbf := upper(cFiltroDbf) DbSelectArea("CLI") if !empty(m->cFiltroDbf) set filter to at( alltrim( m->cFiltroDbf ) , cli->&( m->cField ) ) > 0 else set filter to release cField endif go top if !empty( m->cFiltroDbf ) count to nCant Msginfo( alltrim( str( nCant ) ) + " COINCIDENCIAS" , "...") endif DbGoTop() oBrw:Refresh()////////////////// Return//////////////////
set filter con xbrowse da error
> pero si utilizo macro en la lína de filtro me da el mismo errorSi, pues al aplicarle macro a una expresión que empieza por & dará error.Me alegro que esté solucionado <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
set filter con xbrowse da error
Antonio, no entendí tu comentario anterior cuanto dices que dará error si le aplico macro a la expresión que comienza por &, pero mi filtro es:at( alltrim( m->cFiltroDbf ) , cli->&( m->cField ) ) > 0, no comienza por macro, o solamente por tenér macro en algún lugar me dará siempre error ?Qué me sugieres tu para poder realizar el filtro en este caso, he probado realizar un índice adicional con un for, pero el tiempo que demora en realizarlo es muy superior que el filtrado.Agradezco mucho tu sugerencia y explicación sobre el error del filtro en este caso.Ricardo
set filter con xbrowse da error
Ricardo,Da error pues la expresión contiene &.Puedes cambiar:at( alltrim( m->cFiltroDbf ) , cli->&( m->cField ) ) > 0por:at( alltrim( m->cFiltroDbf ) , cli->( FieldGet( FieldPos( m->cField ) ) ) ) > 0