topic
stringlengths
1
63
text
stringlengths
1
577k
fastreport para xharbour
hola a todos Eso, alguien lo usa en sus sistemas de fwh. revisen este enlace <!-- m --><a class="postlink" href="http://www.paritetsoft.ru/frh.htm">http://www.paritetsoft.ru/frh.htm</a><!-- m --> salu2 francis
fastreport para xharbour
Hola Si es bastante buena, estoy recien comenzando y estoy super sorprendido por tal herramienta si que bajen el demo funcional, solo imprime 5 paginas maximo y un membrete "fastreport.."
fastreport samples special with tmysql ?
Hi, 1.Pass/call harbour/fwh varibles include private,public ,for example qty1*t1.qty 2.two or more table called in the xml forms ,for example : t1.qty*t2.unitpri Thanks ! Shuming Wang
fastreport samples special with tmysql ?
demo version can't create new report forms , the new create one print all data as blank. This wasted me one day time to debug was my mistake ? OH,'fastreport', how I can love you . Thanks ! Shuming Wang
fastreport samples special with tmysql ?
The new create my.fr3 ,all masterdataset data texts print out as space, print out nothing. title ,column titles can print out texts. FrPrn:SetUserDataSet("my","Stockid;Stock",; {|| odb2:GoTop()} ,; {|| odb2:SKIP(1)},; {|| odb2:SKIP(-1) },; {|| odb2:EOF() },; {|aField|odb2:FIELDGET(afield)}) FrPrn:LoadFromFile("99.fr3") 99.fr3 : memo2 [my."stockid"] memo3 [my."stock"] Best regards! Shuming Wang
fastreport samples special with tmysql ?
I find some other software use fastreport in .fr3 title, foot area as: date.[date] , [sn] who use fastreport for harbour /fwh ? pls send some samples. A visual app client defined report driver is a must, include add fields, texts... Vrd (visual report designer ),can't done this,it must rewrite prg to add ids . Tks ! Shuming Wang
fastreport samples special with tmysql ?
[quote:34d4dzhz]OH,'fastreport', how I can love you .[/quote:34d4dzhz] Shuming, Thanks for that. It really gave me a laugh! James
fastreport samples special with tmysql ?
James Bott, If you could past print an full functional invoice sample, create a xx.fr3 form files, a prg inlcude print out private/public variables ,class datas ,titles ,codeblock, macro calling, 2-3 tables ,and some total/sub stotal express. Thanks ! Shuming Wang
fastreport samples special with tmysql ?
Shuming, Sorry, I have never used FastReport. Otto seems to be the expert. Oh, and I never use PUBLICs or PRIVATEs either. James
fastreport samples special with tmysql ?
Mr. ShumingWang [quote="ShumingWang":1e8eaf4c] Vrd (visual report designer ),can't done this,it must rewrite prg to add ids . [/quote:1e8eaf4c] Yes, VRD can do that, using Alias. Regards
fastreport y Variables
Saludos al Forum 1 Pregunta Con el PRG para esta variablaes [code=fw:3skm2u18]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">Static</span> <span style="color: #00C800;">Function</span> def_Varfastr<span style="color: #000000;">&#40;</span>oFrP,DGRUPO,LMOD<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;with object oFrP &nbsp;<br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">AddVariable</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"EMPRESA"</span>, <span style="color: #ff0000;">"NOMBRE"</span>, <span style="color: #ff0000;">"'"</span>+oApp:<span style="color: #000000;">M_NOMEMP</span>+<span style="color: #ff0000;">"'"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">AddVariable</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"EMPRESA"</span>, <span style="color: #ff0000;">"SINONIMO"</span>, <span style="color: #ff0000;">"'"</span>+oApp:<span style="color: #000000;">MTITU2</span>+<span style="color: #ff0000;">"'"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">AddVariable</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"EMPRESA"</span>, <span style="color: #ff0000;">"DIRECCION"</span>, <span style="color: #ff0000;">"'"</span>+oApp:<span style="color: #000000;">M_DIREMP</span>+<span style="color: #ff0000;">"'"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">AddVariable</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"EMPRESA"</span>, <span style="color: #ff0000;">"CIUDAD"</span>, <span style="color: #ff0000;">"'"</span>+oApp:<span style="color: #000000;">M_CIUEMP</span>+<span style="color: #ff0000;">"'"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">AddVariable</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"EMPRESA"</span>, <span style="color: #ff0000;">"DEPTO"</span>, <span style="color: #ff0000;">"'"</span>+oApp:<span style="color: #000000;">M_DEPEMP</span>+<span style="color: #ff0000;">"'"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">AddVariable</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"EMPRESA"</span>, <span style="color: #ff0000;">"NIT"</span>, <span style="color: #ff0000;">"'"</span> +oApp:<span style="color: #000000;">M_NITEMP</span>+oApp:<span style="color: #000000;">M_NITEMP</span>+<span style="color: #ff0000;">"'"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">AddVariable</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"EMPRESA"</span>, <span style="color: #ff0000;">"TELEFONOS"</span>, <span style="color: #ff0000;">"'"</span> + oApp:<span style="color: #000000;">M_TELEMP</span> + <span style="color: #ff0000;">"'"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">AddVariable</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"EMPRESA"</span>, <span style="color: #ff0000;">"FAX"</span>, <span style="color: #ff0000;">"'"</span> + oApp:<span style="color: #000000;">M_FAXEMP</span> + <span style="color: #ff0000;">"'"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">AddVariable</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"EMPRESA"</span>, <span style="color: #ff0000;">"CUENEMP"</span>, <span style="color: #ff0000;">"'"</span> + oApp:<span style="color: #000000;">m_cueemp</span> + <span style="color: #ff0000;">"'"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">AddVariable</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"EMPRESA"</span>, <span style="color: #ff0000;">"CTIPFAC"</span>, <span style="color: #ff0000;">"'"</span> + oApp:<span style="color: #000000;">m_cueemp</span> + <span style="color: #ff0000;">"'"</span> <span style="color: #000000;">&#41;</span> &nbsp;<span style="color: #B900B9;">//para efectos de facturacion</span><br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">AddVariable</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"EMPRESA"</span>, <span style="color: #ff0000;">"WEBSITE"</span>, <span style="color: #ff0000;">"'"</span> + <span style="color: #ff0000;">"www.por definir"</span>+ <span style="color: #ff0000;">"'"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">AddVariable</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"EMPRESA"</span>, <span style="color: #ff0000;">"MAIL"</span>, <span style="color: #ff0000;">"'"</span> + <span style="color: #ff0000;">"www.por definir"</span>+ <span style="color: #ff0000;">"'"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">AddVariable</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"EMPRESA"</span>, <span style="color: #ff0000;">"PIEDEPAGINA"</span>, <span style="color: #ff0000;">"Calle Busquela"</span> + CRTLF + <span style="color: #ff0000;">"www.por definir"</span> &nbsp;<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">AddVariable</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"EMPRESA"</span>, <span style="color: #ff0000;">"NOM_PAQ"</span>,<span style="color: #ff0000;">"'"</span> +oApp:<span style="color: #000000;">MTITU1</span>+<span style="color: #ff0000;">"'"</span> &nbsp;<span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">//x_TPAQU</span><br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">AddVariable</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"EMPRESA"</span>, <span style="color: #ff0000;">"COD_ROMP"</span>, DGRUPO &nbsp;<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">AddVariable</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"EMPRESA"</span>, <span style="color: #ff0000;">"COD_VAC"</span>, &nbsp;<span style="color: #ff0000;">"'"</span> + <span style="color: #ff0000;">" "</span>+ <span style="color: #ff0000;">"'"</span> &nbsp;<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">AddVariable</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"EMPRESA"</span>, <span style="color: #ff0000;">"MODUL"</span>, <span style="color: #ff0000;">"'"</span> +LMOD+<span style="color: #ff0000;">"'"</span> &nbsp;<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">AddVariable</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"EMPRESA"</span>, <span style="color: #ff0000;">"PAR_COND_1"</span>, <span style="color: #ff0000;">"'"</span> + oApp:<span style="color: #000000;">M_NOTA_1</span> + <span style="color: #ff0000;">"'"</span> &nbsp;<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">AddVariable</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"EMPRESA"</span>, <span style="color: #ff0000;">"PAR_COND_2"</span>, <span style="color: #ff0000;">"'"</span> + oApp:<span style="color: #000000;">M_NOTA_2</span> + <span style="color: #ff0000;">"'"</span> &nbsp;<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">AddVariable</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"EMPRESA"</span>, <span style="color: #ff0000;">"PAR_COND_3"</span>, <span style="color: #ff0000;">"'"</span> + oApp:<span style="color: #000000;">M_NOTA_3</span> + <span style="color: #ff0000;">"'"</span> &nbsp;<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">AddVariable</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"EMPRESA"</span>, <span style="color: #ff0000;">"PAR_COND_4"</span>, <span style="color: #ff0000;">"'"</span> + oApp:<span style="color: #000000;">M_NOTA_4</span> + <span style="color: #ff0000;">"'"</span> &nbsp;<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">AddVariable</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"EMPRESA"</span>, <span style="color: #ff0000;">"PAR_COND_5"</span>, <span style="color: #ff0000;">"'"</span> + oApp:<span style="color: #000000;">M_NOTA_5</span> + <span style="color: #ff0000;">"'"</span> &nbsp;<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">AddVariable</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"EMPRESA"</span>, <span style="color: #ff0000;">"PIE_DOC_1"</span>, <span style="color: #ff0000;">"'"</span> + oApp:<span style="color: #000000;">m_npiep_1</span> + <span style="color: #ff0000;">"'"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">AddVariable</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"EMPRESA"</span>, <span style="color: #ff0000;">"PIE_DOC_2"</span>, <span style="color: #ff0000;">"'"</span> + oApp:<span style="color: #000000;">m_npiep_2</span> + <span style="color: #ff0000;">"'"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">AddVariable</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"EMPRESA"</span>, <span style="color: #ff0000;">"PIE_DOC_3"</span>, <span style="color: #ff0000;">"'"</span> + oApp:<span style="color: #000000;">m_npiep_3</span> + <span style="color: #ff0000;">"'"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">AddVariable</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"EMPRESA"</span>, <span style="color: #ff0000;">"PIE_DOC_4"</span>, <span style="color: #ff0000;">"'"</span> + oApp:<span style="color: #000000;">m_npiep_4</span> + <span style="color: #ff0000;">"'"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">AddVariable</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"EMPRESA"</span>, <span style="color: #ff0000;">"PIE_DOC_5"</span>, <span style="color: #ff0000;">"'"</span> + oApp:<span style="color: #000000;">m_npiep_5</span> + <span style="color: #ff0000;">"'"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">AddVariable</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"EMPRESA"</span>, <span style="color: #ff0000;">"PIE_DOC_6"</span>, <span style="color: #ff0000;">"'"</span> + oApp:<span style="color: #000000;">m_npiep_6</span> + <span style="color: #ff0000;">"'"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">AddVariable</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"EMPRESA"</span>, <span style="color: #ff0000;">"CAR_IMAGEN"</span>, <span style="color: #00C800;">IF</span><span style="color: #000000;">&#40;</span>oApp:<span style="color: #000000;">MLOGO</span>,<span style="color: #000000;">1</span>,<span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span> &nbsp;<span style="color: #000000;">&#41;</span> &nbsp;<span style="color: #B900B9;">//oApp:CAR_IMAG</span><br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">AddVariable</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"EMPRESA"</span>, <span style="color: #ff0000;">"Imagen"</span>, <span style="color: #ff0000;">"'"</span>+img+<span style="color: #ff0000;">"'"</span> <span style="color: #000000;">&#41;</span><br />&nbsp;</div>[/code:3skm2u18] cuando estoy con el designer. nesecito cambiar el valor de una variable CTIPFAC --> esta es la variable necesito que tome el valor deacuerdo a una condicion IIF(<oDatos."TIPFAC">="DR","FACTURA DE VENTA NO:","NOTA CREDITO NO") como lo haria. 2 Pregunta cuando la factura es mas de una pagina requiero que la banda ColumnFooter1 solamente se imprima cuand hacga el romopimiento y no cada vez que salte pagina en este caso cuando la factura consta de varias paginas debe colocar al final el total de la factura, si es de una sola pagina funciona bien . Lo mismo la pagina Pagefooter solamente cuando haga el rompimiento por numero de factura se debe imprimir y no cada salto de pagina y inicializar el contador de pagina en 1 La Banda GrupHeader se imprima al saltar pagina cuando la factura tiene mas de una pagina No se si estoy manejando bien las bandas. Anexo Ejemplo de las patallas y el formato [url:3skm2u18]http&#58;//www&#46;4shared&#46;com/file/m45yz1NJ/PXP407_1&#46;html[/url:3skm2u18] [url:3skm2u18]http&#58;//www&#46;4shared&#46;com/photo/MDVRjNS_/Factura_2&#46;html[/url:3skm2u18] [url:3skm2u18]http&#58;//www&#46;4shared&#46;com/photo/wVze9XIS/Factura_1&#46;html[/url:3skm2u18] [url:3skm2u18]http&#58;//www&#46;4shared&#46;com/photo/R7JNhGlp/FORMATO&#46;html[/url:3skm2u18] [url:3skm2u18]http&#58;//www&#46;4shared&#46;com/photo/cKq6mpqa/FORMATO_1&#46;html[/url:3skm2u18]
fastreport y Variables
Hola... Respecto al punto 1 sería así: [code=fw:3qmr4tz6]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #000000;">&#91;</span>IIF<span style="color: #000000;">&#40;</span><oDatos.<span style="color: #ff0000;">"TIPFAC"</span>>=<span style="color: #ff0000;">'DR'</span>,<span style="color: #ff0000;">'FACTURA DE VENTA NO:'</span>,<span style="color: #ff0000;">'NOTA CREDITO NO'</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#93;</span></div>[/code:3qmr4tz6] Para lo segundo. Es más complicado de darte el ejemplo pero sería algo así: Primero el "GroupHeader" con los datos de la cabecera del comprobante. Luego el "MasterData" con los items de la factura. Luego el "GroupFooter" con los totales. Al final el PageFooter con el totalizador de los números de hoja. Con el siguiente código: [code=fw:3qmr4tz6]<div class="fw" id="{CB}" style="font-family: monospace;">Página <span style="color: #000000;">&#91;</span><span style="color: #0000ff;">Page</span><span style="color: #000000;">&#93;</span> / <span style="color: #000000;">&#91;</span>TotalPages<span style="color: #000000;">&#93;</span></div>[/code:3qmr4tz6] Espero te sirva. Saludos, Esteban.
fastreport y Variables
Ruben, para el punto 1 como te explica Esteban es lo correcto. Punto 2. Yo en vez de usar pagefooter uso ReportSummary, eso te lo muestra solo al final del reporte. Espero te sirva, cualquier duda a tus ordenes. Salu2, Ariel.
fastreport y Variables
Esteban Me funciono Lo demas me funciona, era el Orden y estaba usando una banda diferente. LO hice como lo indico Primero el "GroupHeader" con los datos de la cabecera del comprobante. Luego el "MasterData" con los items de la factura. Luego el "GroupFooter" con los totales. Como Puedo controlar que "GroupHeader" se vuelva a imprimir al saltar pagina (Caso cuando no ha hecho el rompimiento es una factura que tiene varias paginas). Tambien Tengo Definido adicional a tu lista un "PageFooter" Que solamente se imprima en la ultima pagina no en todas. Te pregunto cuando hago rompimiento, salto de pagina , como puedo inicializar el contador de paginas en 1 Gracias Por todo, como se usa esta funciona tengo la fecha de la factura y necesito sumarle un valor y me reporta la fecha de vencimiento AddDays([oDatos."FECHAF"] , [oDatos."DIA_FAC"] ) me da error. como se usa Por ultimo esta :AddVariable( "EMPRESA", "CTIPFAC", "'" + oApp:m_cueemp + "'" ) Como cambio desde el Designar volver asignar otro valor a "CTIPFAC"
fastreport y Variables
Hola Rubén... Que bueno que te haya funcionado lo primero. Ahora bien... Todo aquello que quieres que se repita en todas las páginas debes ponerlo en una banda tipo "PageHeader" De modo que tu fr3 debería quedar más o menos así: "PageHeader" con los datos de la cabecera del comprobante. (Estos se repetirán en todas las páginas) "GroupHeader" Sólo con el campo que usas para agrupar. (No es necesario que lo imprimas ya que lo puedes imprimir en el pageheader, pero si tienes que crear la relación de agrupación) "MasterData" con los items de la factura. "GroupFooter" con los totales. "PageFooter" con el totalizador de los números de hoja. Espero te sirva. Saludos, Esteban.
fastreport y Variables
Esteban Gracias Por todo ya me funciono todo. tengo la fecha de la factura y necesito sumarle un valor y me reporta la fecha de vencimiento 12-05-2012 + 30 Me denbe retornar la nueva fecha asi 01-05-2013 tengo entendido hay esta funcion para esto pero no me funciona no se si la has utilizado AddDays([oDatos."FECHAF"] , [oDatos."DIA_FAC"] ) me da error. como se usa Variables with object oFrP .. :AddVariable( "EMPRESA", "CTIPFAC", "'" + oApp:m_cueemp + "'" ) Enf En el Reporteador como se le cambia el valor a esta variable "CTIPFAC" quiero asignar otro valor Esteban Tu eres musico
fastreport y Variables
Ruben... Eso de las fechas no lo hago nunca. Siempre prefiero tener el contro de lo que se imprime. Yo lo que haría es sumar antes y enviar al fr3 un campo nuevo con la fecha de vencimiento. Es sólo una sugerencia. Saludos, Esteban.
fastreport y Variables
Gracias Por todo esteban Si lo que tu sugieres es lo que hago, solamente era curiosidad que como funciona dicha funcion Gracias Por todo
fatal error LNK1106: invalid file or disk full: cannot seek
Dear Antonio, I've got this error while [u:1iew75rf]link[/u:1iew75rf] the program as following. %vcdir%\bin\link @msvc.tmp /nologo /SUBSYSTEM:WINDOWSCE,4.20 /MACHINE:ARM /ARMPADCODE:NO [code=fw:1iew75rf]<div class="fw" id="{CB}" style="font-family: monospace;">Lines <span style="color: #000000;">4255</span>, Functions/Procedures <span style="color: #000000;">43</span><br />Generating C source output <span style="color: #0000ff;">to</span> <span style="color: #ff0000;">'EZPDA.c'</span>... Done.<br />Microsoft <span style="color: #000000;">&#40;</span>R<span style="color: #000000;">&#41;</span> C/C++ Optimizing Compiler Version <span style="color: #000000;">12.20</span><span style="color: #000000;">.9615</span> <span style="color: #00C800;">for</span> ARM<br />Copyright <span style="color: #000000;">&#40;</span>C<span style="color: #000000;">&#41;</span> Microsoft Corp <span style="color: #000000;">1984</span><span style="color: #000000;">-2002</span>. All rights reserved.<br /><br />EZPDA.c<br />EZPDA.exe : <span style="color: #000000;">fatal</span> error LNK1106: <span style="color: #000000;">invalid</span> file or disk full: <span style="color: #000000;">cannot</span> seek <span style="color: #0000ff;">to</span> 0x176260<br />* Linking errors *<br /><br />> Terminated with exit code <span style="color: #000000;">1106</span>.</div>[/code:1iew75rf]
fatal error LNK1106: invalid file or disk full: cannot seek
Dear All, I don't know what happen. I delete it before compile and it has no problem. Regards, Dutch
fatal error LNK1106: invalid file or disk full: cannot seek
Dutch, This may help: [quote:1gxwv2w5]To work around this problem, add the /IGNOREIDL linker option[/quote:1gxwv2w5] <!-- m --><a class="postlink" href="http://support.microsoft.com/kb/834332">http://support.microsoft.com/kb/834332</a><!-- m --> Also this: [quote:1gxwv2w5]I suggest you try the /expectedoutputsize link option: /expectedoutputsize:50000000 You can start at a value of 50000000, and increase the value to 75000000 in increments until your link is stable. [/quote:1gxwv2w5] <!-- m --><a class="postlink" href="http://www.eggheadcafe.com/aspnet_answers/vcide_general/Aug2006/post27639362.asp">http://www.eggheadcafe.com/aspnet_answe ... 639362.asp</a><!-- m -->
fatal error LNK1106: invalid file or disk full: cannot seek
Dear Antonio, [code=fw:1el20620]<div class="fw" id="{CB}" style="font-family: monospace;">LINK : <span style="color: #000000;">warning</span> LNK4044: <span style="color: #000000;">unrecognized</span> option <span style="color: #ff0000;">'/IGNOREIDL'</span>; ignored<br />EZPDA.exe : <span style="color: #000000;">fatal</span> error LNK1106: <span style="color: #000000;">invalid</span> file or disk full: <span style="color: #000000;">cannot</span> seek <span style="color: #0000ff;">to</span> 0x176260<br />* Linking errors *</div>[/code:1el20620] It still show the same error. It will be show this error if the EXE is exist, if not the linker is work fine. Regards, Dutch
fatal error LNK1106: invalid file or disk full: cannot seek
Dutch, Have you tried /expectedoutputsize:50000000 option ?
fatal error LNK1106: invalid file or disk full: cannot seek
Dear Antonio, [quote="Antonio Linares":10xkm086]Dutch, Have you tried /expectedoutputsize:50000000 option ?[/quote:10xkm086] [code=fw:10xkm086]<div class="fw" id="{CB}" style="font-family: monospace;">LINK : <span style="color: #000000;">fatal</span> error LNK1105: <span style="color: #000000;">cannot</span> close file <span style="color: #ff0000;">'EZPDA.exe'</span><br />* Linking errors *<br />&nbsp;</div>[/code:10xkm086] This parameter made EXE file size upto parameter (50000000=50Mb) and still error. Now I linker without error by delete existing EXE file before compile and link. Regards, Dutch
fattura elettronica
Qualcuno mi puo' aiutare per favore a creare la fattura elettronica, sono davvero in panne...
feof()???
Hola a todos... Alguien sabe si se puede usar la función feof()??. Si es así que cabecera hay que incluir, porque a mi no me lo está cogiendo.... Saludos.. Elías Torres.
feof()???
Elías, Es una función de FoxPro ? Que indica final de un fichero binario ó de texto ? Como necesitas usarlo ? Pon un ejemplo, gracias
feof()???
Hola Antonio. Si, se trata de una funcion que identifica el final del fichero binario. Lo que pretendo es poder quitar la cabecera de una tabla que esté enganchada a una *.dbc Lo que pretendo es algo parecido a esto: *** Abre fichero *** local a,b,c,n a= fopen('articulo.dbf',1) *** Si no logra abrirlo *** if a < 0 return endif *** Inicializa variables c= 'datos.dbc' && se trata del enlace q tiene la tabla al *.dbc n= 0 do while !feof(a) b= lower(fread(a,1)) n= n + 1 c= right(c+b,9) if c= 'datos.dbc' fseek(a,0,0) && se posiciona al principio del fichero fseek(a,n-9) && se posiciona al principio cadena encontrada fwrite(a,replicate(chr(0),9)) && sustituye endif enddo fclose(a) Pero claro no me funciona. El problema lo tengo cuando he localizado la ristra 'datos.dbc'. Es decir, que en el if el valor de c es el que tiene que ser, es decir, que c='datos.dbc', pero luego a la hora de sustituir con el fwrite() parece que no remplaza lo que deberia. Supongo que el problema es debido al fseek(). Esto lo he probado en Fox puesto que en fwppc no me reconoce la función FEOF().... Gracias y saludos. Elías Torres.
feof()???
[code:jidrava5] FUNCTION fEof&#40; nHandle &#41; LOCAL nCurPos, nEOF nCurPos &#58;= fSeek&#40; nHandle, 0, 1 &#41; nEOF &#58;= fSeek&#40; nHandle, 0, 2 &#41; fSeek&#40; nHandle, nCurPos, 0 &#41; RETURN nEOF <= nCurPos [/code:jidrava5]
feof()???
Elías, Otra forma de cambiar la cabecera sería: MemoWrit( cDbfName, StrTran( MemoRead( cDbfName ), "datos.dbc", Replicate( Chr( 0 ), 9 ) ) )
feof()???
Hola Biel, gracias por la respuesta. Entiendo que debo poner esa función en mi código, no es asi?.... Una pregunta, ¿sabes porque el código que he puesto (un poco más arriba) no funciona?..... Saludos. Elías Torres.
feof()???
Antonio, gracias por la respuesta. Funciona perfectamente. Lo único es que con una de las tablas parece que me la libera pero luego al hacer un use sobre ella me dice que está corrupta. Con las otras dos todo va perfecto.... Te he enviado a tu correo las tablas para ver si el problema lo tengo por la versión de la que dispongo o es otra cosa. Te agradecería que le echaras un vistazo y me indicaras cual es el problema... Gracias... Elías Torres. Por cierto, el uso de la memoria para este tema se libera de alguna forma? o tengo que liberarla yo....
feof()???
Hola Elias, si, debes añadir la funcion pues no existe fEof en Harbour. Referente a porque no te funciona, pues a primera vista y sin probarlo, estas utilizando fRead, y esta funciona retorna los bytes leidos, y no la cadena leida. O bien usas fReadStr, o a fRead le pasas como parametro una variable por referencia donde te colocara lo leido. Cambia esto, y vuelve a probar. FREAD(<nHandle>, @<cBufferVar>, <nBytes>) --> nBytes FREADSTR(<nHandle>, <nBytes>) --> cString
feof()???
Elias, La memoria se libera automaticamente, no tienes que preocuparte por eso. En cuanto a el uso de MemoWrit() funciona bien, lo que ocurre es que si más tarde quieres restaurar datos.dbc dentro de la DBF, hay que anotar la posición en donde estaba: local cDBF := MemoRead( cDbfName ) local nAt := At( "datos.dbc", cDBF ) MemoWrit( ... ... tu código cDbf = MemoRead( cDbfName ) cDbf = SubStr( cDbf, 1, nAt - 1 ) + "datos.dbc" + SubStr( cDbf, nAt + Len( "datos.dbc" ) ) MemoWrit( cDbfName, cDbf )
feof()???
Gracias a los dos.... En cuanto a lo que me comentas Biel, no había caido en eso, lo probaré, gracias. Por otro lado Antonio, no se si me expliqué bien pero lo que me ocurre es que efectivamente la tabla me la libera (aparentemente) pero no puedo hacer uso de ella. Lo de restaurar datos.dbc no hace falta puesto que lo que hago es una copia a nivel local para poder trabajar con ellas y luego las elimino. Lo que pasa es que como te digo me funciona perfectamente para otras dos tablas pero para la tabla de articulos no me la abre, me vuelve a decir que está corrupta. Según me comentas ahí funciona por lo que me da que hay algo que yo no tengo en mi versión... Estaba ya casi a punto de conseguir lo que quiero pero una vez más me he topado con otra pared, jejeje. Seguiré mirando.. Saludos. Elías Torres.
feof()???
Hola... Tengo una cosilla que comentar a ver que me podeis decir... El problema que tenía al abrir la tabla articulo.dbf después de quitarle la cabecera 'datos.dbc' era debido al uso de unos campos monetarios. Los he quitado de la tabla haciendo pruebas y he comprobado que si los pongo no funciona y en cambio si los quito entonces funciona perfectamente. Entonces mi pregunta es la siguiente, ¿este lenguaje soporta el uso de estos campos?... Yo supongo que si puesto que Antonio me comentó que le funcionaba correctamente. Entonces una vez más creo que voy a tener que actualizar la versión que tengo... Saludos.. Elías Torres.
feof()???
Elías, Que son los campos monetarios ? Pon un ejemplo, por favor. Puede ser que ese tipo de campos no esten soportados en harbour todavía.
feof()???
Antonio, me refiero a campos que se utilizan para monedas. En fox se declara como campos monetarios de longitud 8. En la tabla de articulos que te he pasado para la prueba están los campos que te menciono... Por lo que me comentabas alli funciona pero a mi no. Los quito y si... Es algo muy raro.. Saludos. Elías Torres.
fget en FW21
Antonio, Para quienes tenemos la version fw21 no esta la clase fget? Gracias.
fichero .lnk Blinker 5
Hola amigos: Os adjunto el fichero de linkado que usaba para la aplicacion que estoy intentando migrar a FWH Observo que linko un obj llamado Mpar que no tengo ni idea de que es. ¿Algun viejo rockero me puede hechar una mano?, supongo que seria porque lo requeria Blinker ya que este archivo no forma parte del fichero rmk. Bueno es este. [code=fw:2lnc8aqz]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #B900B9;">// BLINKER INCREMENTAL OFF</span><br /><span style="color: #B900B9;">// BLINKER CLIPPER SYMBOLS OFF</span><br /><span style="color: #B900B9;">// BLINKER PROCEDURE DEPTH 80 &nbsp;// Parece que con esto no da error STACK</span><br /><span style="color: #B900B9;">// BLINKER EXECUTABLE COMPRESS</span><br /><span style="color: #B900B9;">// MAP A,S</span><br /><br />PACKCODE<br />PACKDATA<br /><br />FI Obraw<br />FI Empresas<br />FI Obras<br />FI Proveedo<br />FI Trabajad<br />FI Articulo<br />FI Apuprov<br />FI Aputrab<br />FI Apuart<br />FI Mpar<br /><br />DEFBEGIN<br />&nbsp; &nbsp;<span style="color: #0000ff;">name</span> &nbsp; &nbsp; &nbsp; &nbsp;JVCHSOFT<br />&nbsp; &nbsp;description <span style="color: #ff0000;">'Control de Obras 4.0'</span><br />&nbsp; &nbsp;exetype &nbsp; &nbsp; Windows <span style="color: #000000;">3.1</span><br />&nbsp; &nbsp;code &nbsp; &nbsp; &nbsp; &nbsp;moveable discardable preload<br />&nbsp; &nbsp;<span style="color: #00C800;">data</span> &nbsp; &nbsp; &nbsp; &nbsp;preload moveable<br />&nbsp; &nbsp;stacksize &nbsp; <span style="color: #000000;">9500</span><br />&nbsp; &nbsp;heapsize &nbsp; &nbsp;<span style="color: #000000;">2048</span><br />&nbsp; &nbsp;segment &nbsp; &nbsp; <span style="color: #ff0000;">'PLANKTON_TEXT'</span> nondiscardable<br />&nbsp; &nbsp;segment &nbsp; &nbsp; <span style="color: #ff0000;">'EXTEND_TEXT'</span> &nbsp; nondiscardable<br />&nbsp; &nbsp;segment &nbsp; &nbsp; <span style="color: #ff0000;">'OM_TEXT'</span> &nbsp; &nbsp; &nbsp; nondiscardable<br />&nbsp; &nbsp;segment &nbsp; &nbsp; <span style="color: #ff0000;">'OSMEM_TEXT'</span> &nbsp; &nbsp;nondiscardable<br />&nbsp; &nbsp;segment &nbsp; &nbsp; <span style="color: #ff0000;">'SORTOF_TEXT'</span> &nbsp; nondiscardable<br />&nbsp; &nbsp;segment &nbsp; &nbsp; <span style="color: #ff0000;">'STACK_TEXT'</span> &nbsp; &nbsp;nondiscardable<br />&nbsp; &nbsp;<span style="color: #B900B9;">// rc &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;obraw.res</span><br />DEFEND<br /><br /><br />NOBELL<br /><br />SEARCH \fw21c\lib\fwmods, \fw21c\lib\c5meter, \fw21c\lib\mpreview<br /><br />LIB &nbsp;\fw21c\lib\Five, \fw21c\lib\Fivec, \fw21c\lib\Objects<br />LIB &nbsp;\Fw21c\lib\WinApi, Clipper, Extend, DbfCdx, _DbfCdx, Terminal<br />LIB &nbsp;\Fw21c\lib\jvchwin<br />&nbsp;</div>[/code:2lnc8aqz] En las libs solo hay una de cosecha propia jvchwin que esta tengo los fuentes y puedo suprimirla , de las otras cuales tengo que añadir en FWH para que compile. Observo que no tengo mpreview, ni Fwmods, la c5Meter es de Paco Garcia no he visto en ningun sitio que se haya adaptado a Fivewin, yo tengo los fuentes, pero sin el permiso de Paco no se puede, alguien le podria dar un toque, o la convierto al meter de Fivewin eso no es problema. Otra cosa que he visto en el subdirectorio de la aplicacion he visto una dll. x16.dll , alguien le suena esto? Bueno ya son demasiadas cosas, corto. Espero vuestra inestimable ayuda. Ya queda menos. Saludos. Jose.
ficheros excel (SOLUCIONADO)
Hola, estoy reprogramando el modulo de exportación a excel que tengo en una aplicación y me encuentro que al generar el fichero las letras con acento no ven correctamente en la hoja de calculo. ¿Alguien me podría indicar que hago mal? gracias [code=fw:1knyc7pm]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">function</span> pruebaxls<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">local</span> oExcel, oBook, oSheet, oRange<br /><br /><br />oExcel := CreateObject<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"excel.application"</span> <span style="color: #000000;">&#41;</span><br />oBook  := oExcel:<span style="color: #000000;">Workbooks</span>:<span style="color: #000000;">Add</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />oSheet := oBook:<span style="color: #000000;">Worksheets</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span><br />oSheet:<span style="color: #000000;">Cells</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>,<span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span> = <span style="color: #ff0000;">"Listado General de Articulos (España)"</span><br />oRange:=oSheet:<span style="color: #000000;">Range</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"A1:E1"</span><span style="color: #000000;">&#41;</span><br />oRange:<span style="color: #000000;">MergeCells</span>:= .T.<br />oRange:<span style="color: #000000;">HorizontalAlignment</span>:= xlCenter<br /><br />oSheet:<span style="color: #000000;">Range</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"A3"</span> <span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span> = <span style="color: #ff0000;">"Código"</span><br />oSheet:<span style="color: #000000;">Range</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"B3"</span> <span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span> = <span style="color: #ff0000;">"Descripción"</span><br />oSheet:<span style="color: #000000;">Range</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"C3"</span> <span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span> = <span style="color: #ff0000;">"Fecha U.C."</span><br />oSheet:<span style="color: #000000;">Range</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"D3"</span> <span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span> = <span style="color: #ff0000;">"P.U.C."</span><br />oSheet:<span style="color: #000000;">Range</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"E3"</span> <span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span> = <span style="color: #ff0000;">"Importe"</span><br /><br />oSheet:<span style="color: #000000;">Columns</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#41;</span>:<span style="color: #000000;">ColumnWidth</span> := <span style="color: #000000;">20</span><br />oExcel:<span style="color: #000000;">Visible</span> := .T.<br />oExcel := <span style="color: #00C800;">NIL</span><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /> </div>[/code:1knyc7pm] En la salida que obtengo Las eñes las las pone como +- Listado General de Articulos (Espa±a) etc.
ficheros excel (SOLUCIONADO)
Alguna sugerencia????
ficheros excel (SOLUCIONADO)
Perdón por la insistencia, es que llevo todo el día buscando información sobre el tema y no consigo encontrar nada. [b:20a693zp]El caso es que he probado el metodo ToExcell de la clase xbrowse con los mismos resultados. [/b:20a693zp] Ahora ya no se si es algún problema de configuración mio [size=120:20a693zp]¿Alguien me podría confirmar si al exportar a exel le pasa lo mismo?[/size:20a693zp] No consigo obtener ni las eñes ni las letras acentudas, mayusculas y minusculas He probado tanto excel 2003 como excel 2013 con los mismos resultados
ficheros excel (SOLUCIONADO)
Tiene que ser algún problema de tu configuración regional. Acabo de probar a exportar desde el ejemplo testxbr3 con acentos, eñe, ç y sin problemas.
ficheros excel (SOLUCIONADO)
Miarcod buenas tardes Prueba con OemToAnsi() Translates a OEM MsDos string into a Windows string Syntax: OemToAnsi( <cOemText> ) --> cWindowText Parameters: <cOemText> A OEM MsDOs string to be converted into a Windows string. Returns: <cWindowText> The result Windows string. Observations: Normally all the data that you capture from MsDos into a DBF is stored as OEM text. In this situation you may call OemToAnsi() to properly review it from inside Windows. Text that is captured from Windows is in Ansi format. To use it from MsDos later, store it as the result of AnsiToOem(). Source Code: SOURCE\\WINAPI\\OemAnsi.c Saludos Pedro Lerda
ficheros excel (SOLUCIONADO)
Por si te sirve de algo, con ToExcell de xBrowse exporta perfectamente tanto acentos como ñ,Ñ. (FWH 12.4 y winXP)
ficheros excel (SOLUCIONADO)
gracias por responder Pues a mi testxbr3 no me funciona correctamente Si exporto desde la opción array del ejemplo es cuando se produce el problema. ¿Alguna idea? un saludo
ficheros excel (SOLUCIONADO)
a cuestión, que editor usas para crear tu código? puedes abrir tu TEST.PRG en el NOTEPAD eliminar la línea y volver a escribir , guardas y compilas, yo me voy mas por la configuración de tu editor de prgs. saludos.
ficheros excel (SOLUCIONADO)
Bueno, después de mucho investigar he conseguido solucionarlo pasando los datos por el portapapeles. ¿¿¿¿¿¿¿¿¿¿????????????? [code=fw:2qfjwjon]<div class="fw" id="{CB}" style="font-family: monospace;">oExcel := CreateObject<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"excel.application"</span> <span style="color: #000000;">&#41;</span><br />oBook  := oExcel:<span style="color: #000000;">Workbooks</span>:<span style="color: #000000;">Add</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />oSheet := oBook:<span style="color: #000000;">Worksheets</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span><br /><br />nVersion := oExcel:<span style="color: #000000;">Version</span><br /><span style="color: #00D7D7;">#define</span>  xlCenter               <span style="color: #000000;">-4108</span><br /><span style="color: #00D7D7;">#define</span>  xlRight                <span style="color: #000000;">-4152</span><br /><span style="color: #00D7D7;">#define</span>  xlHAlignCenterAcrossSelection  <span style="color: #000000;">7</span><br /><br /><br />    oExcel:<span style="color: #000000;">Visible</span> = .T.<br />    oSheet:<span style="color: #000000;">Cells</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">1</span>, <span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span> = <span style="color: #ff0000;">"Listado General de Artículos (España)"</span><br /><br />    oClip := TClipBoard<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#41;</span><br />    cText := <span style="color: #ff0000;">"Listado General de Artículos (España)"</span><br />    oClip:<span style="color: #000000;">SetText</span><span style="color: #000000;">&#40;</span> cText <span style="color: #000000;">&#41;</span><br />    oSheet:<span style="color: #000000;">Cells</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>:<span style="color: #0000ff;">Select</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />    oSheet:<span style="color: #000000;">Paste</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />    oClip:<span style="color: #000000;">Clear</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />    oClip:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span></div>[/code:2qfjwjon] y esto es lo que obtengo en la hoja de cálculo A1 Listado General de Art?culos (Espa±a) B1 Listado General de Artículos (España)
ficheros excel (SOLUCIONADO)
Por si a alguien le puede interesar.. Al final se solucionó con la selección de la página de códigos con la que funciona harbour [code=fw:2101g8k2]<div class="fw" id="{CB}" style="font-family: monospace;"><br />REQUEST HB_CODEPAGE_ESWIN<br /><br /><span style="color: #00C800;">FUNCTION</span> main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />HB_SetCodePage<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"ESWIN"</span><span style="color: #000000;">&#41;</span><br />....<br /> </div>[/code:2101g8k2] Gracias a todos
field data in database access
hallo, in a database "mydb.MDB", I have a table MYTBL, in this table there are: field MYDATA field MYTIME I read MYTBL in my source.prg oDbf := CREATEOBJECT( "ADODB.Recordset" ) oDbf:CursorLocation := 3 // cQuery := "Select * from MYTBL" oDbf:Open( cQuery , "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=c:\mydb.mdb, 1, 3 ) ... ... then... oPrn:Say(nRow,nColStep*80,dtoc(odbf:Fields("MYDATA"):value),oFont,,,,1) // value is 25/04/2016 oPrn:Say(nRow,nColStep*110,odbf:Fields("MYTIME"):value,oFont) // value is 18:45 ... and print the right value for MYDATA: 25/04/2016 (OK) but for MYTIME value print blank value I hope that you can help me thank you
field data in database access
I presume the datatype for MyTime is Char ? .. I would place a msginfo() on your value to see if you are looking at a nil value or just " " Just to debug and test : cTime := odbf:Fields("MYTIME"):value Msginfo( cTime ) Msginfo( valtype( cTime)) Msginfo( len(cTime)) Rick Lipkin
field flags in dbCreate()/dbStruct()
[quote:3dngnpac]// 2015-02-08 13:19 UTC+0100 Przemyslaw Czerpak (druzus/at/poczta.onet.pl) // * src/rdd/workarea.c // + added support for field flags in dbCreate()/dbStruct(). // Flags can be passed in string with field type after ":", i.e. // "C:U" // means Unicode character field. // The following flags are recognized: // "N" - column can store null values // "B" - binary column // "+" - column is autoincrementing // "Z" - column is compressed // "E" - column is encrypted // "U" - column stores Unicode strings[/quote:3dngnpac]
field length and space in MySql *Fixed*
Dear All, I declare cVariable for a field (VARCHAR(50) in MySql) but the field is empty. The problem is it will return space(0) to cVariable, then I cannot type in TGET because space(0), in "DBFCDX" it will return space(50). How do I do as "DBFCDX" RDD? Thanks in advance. [code=fw:24prq1i4]<div class="fw" id="{CB}" style="font-family: monospace;"><br />cVar := oDb:<span style="color: #000000;">TBL_NAME</span><br />@ <span style="color: #000000;">10</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">GET</span> oGet <span style="color: #0000ff;">VAR</span> cVar ....  => it has no space <span style="color: #00C800;">for</span> input <span style="color: #00C800;">data</span></div>[/code:24prq1i4]
field length and space in MySql *Fixed*
This is a perfect example of because we need the [url=http&#58;//forums&#46;fivetechsupport&#46;com/viewtopic&#46;php?f=22&p=179110#p179110:7cahfp0w]tEdit class fixed[/url:7cahfp0w]!
field length and space in MySql *Fixed*
Dutch Many times a Sql field will return nil so when you initialize a variable .. the variable will be nil as you have discovered there is no Get value when you assign it to a field on a form. This is what I do every time when I define variables from a Sql table .. I know it is not pretty, but it is just the way I have dealt with nil Sql fields. Rick Lipkin [code=fw:1iuy1x9w]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #B900B9;">// Bin is defined as char50</span><br /><span style="color: #B900B9;">// DateRcvd is defined as date\Time</span><br /><br /><span style="color: #00C800;">Local</span> cBin,dDateRcvd<br /><br />cBin := <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span>empty<span style="color: #000000;">&#40;</span>oRs:<span style="color: #000000;">Fields</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Bin"</span><span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span><span style="color: #000000;">&#41;</span>,space<span style="color: #000000;">&#40;</span><span style="color: #000000;">50</span><span style="color: #000000;">&#41;</span>,;<br />              <span style="color: #0000ff;">substr</span><span style="color: #000000;">&#40;</span>oRs:<span style="color: #000000;">Fields</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Bin"</span><span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span>+space<span style="color: #000000;">&#40;</span><span style="color: #000000;">50</span><span style="color: #000000;">&#41;</span>,<span style="color: #000000;">1</span>,<span style="color: #000000;">50</span><span style="color: #000000;">&#41;</span><br /><br />dDateRcvd := <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span>empty<span style="color: #000000;">&#40;</span>oRs:<span style="color: #000000;">Fields</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"DateRcvd"</span><span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span><span style="color: #000000;">&#41;</span>, ctod<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">""</span><span style="color: #000000;">&#41;</span>,;<br />                           TtoDate<span style="color: #000000;">&#40;</span>oRs:<span style="color: #000000;">Fields</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"DateRcvd"</span><span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #B900B9;">//--------------------------</span><br /><span style="color: #00C800;">Function</span> TtoDate<span style="color: #000000;">&#40;</span> tDate <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">If</span> empty<span style="color: #000000;">&#40;</span> tDate<span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">Return</span><span style="color: #000000;">&#40;</span> ctod<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"00/00/00"</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">Endif</span><br /><br /><span style="color: #00C800;">If</span> ValType<span style="color: #000000;">&#40;</span> tDate <span style="color: #000000;">&#41;</span> = <span style="color: #ff0000;">"D"</span><br />   <span style="color: #00C800;">Return</span><span style="color: #000000;">&#40;</span>tDate <span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">Endif</span><br /><br /><span style="color: #00C800;">Return</span><span style="color: #000000;">&#40;</span> stod<span style="color: #000000;">&#40;</span> <span style="color: #0000ff;">substr</span><span style="color: #000000;">&#40;</span> ttos<span style="color: #000000;">&#40;</span> tDate <span style="color: #000000;">&#41;</span>, <span style="color: #000000;">1</span>, <span style="color: #000000;">8</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br /> </div>[/code:1iuy1x9w]
field length and space in MySql *Fixed*
dutch, cambia varchar por char, varchar si no contiene texto aunque su longitud sea de 50 de devolvera 0. si tu campo varchar contiene "MI NOMBRE" te devolvera una len de 9. Realmente te devuelve la longitud de lo que contiene, y char te devuelve la longitud completa del campo. Saludos Paco
field length and space in MySql *Fixed*
eh?
field length and space in MySql *Fixed*
Dear Rick, Thank you for your kind help but the hard code will face the problem when field length is changed. I just try to use this function but I don't think it is correct way to go. [code=fw:3dt3oih3]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">Function</span> ...<br />cVar := GetVar<span style="color: #000000;">&#40;</span>oDb,<span style="color: #ff0000;">"TBL_NAME"</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">return</span><br />*----------------------------*<br /><span style="color: #00C800;">Function</span> GetVar<span style="color: #000000;">&#40;</span> oDb, cField <span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">local</span> uRetVar <br /><span style="color: #00C800;">if</span> oDb:<span style="color: #000000;">FieldType</span><span style="color: #000000;">&#40;</span> cField <span style="color: #000000;">&#41;</span> = <span style="color: #ff0000;">'C'</span><br />    uRetVar := <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> len<span style="color: #000000;">&#40;</span>oDb:<span style="color: #000000;">FieldGet</span><span style="color: #000000;">&#40;</span> cField <span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><><span style="color: #000000;">0</span>,  <span style="color: #0000ff;">left</span><span style="color: #000000;">&#40;</span>oDb:<span style="color: #000000;">FieldGet</span><span style="color: #000000;">&#40;</span> cField <span style="color: #000000;">&#41;</span>+space<span style="color: #000000;">&#40;</span>oDb:<span style="color: #000000;">FieldLen</span><span style="color: #000000;">&#40;</span> cField <span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>, oDb:<span style="color: #000000;">FieldLen</span><span style="color: #000000;">&#40;</span> cField <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>, space<span style="color: #000000;">&#40;</span>oDb:<span style="color: #000000;">FieldLen</span><span style="color: #000000;">&#40;</span> cField <span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">else</span><br />    uRetVar := oDb:<span style="color: #000000;">FieldGet</span><span style="color: #000000;">&#40;</span> cField <span style="color: #000000;">&#41;</span><br />end<br /><span style="color: #00C800;">return</span> uRetVar</div>[/code:3dt3oih3] [quote="Rick Lipkin":3dt3oih3]Dutch Many times a Sql field will return nil so when you initialize a variable .. the variable will be nil as you have discovered there is no Get value when you assign it to a field on a form. This is what I do every time when I define variables from a Sql table .. I know it is not pretty, but it is just the way I have dealt with nil Sql fields. Rick Lipkin [code=fw:3dt3oih3]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #B900B9;">// Bin is defined as char50</span><br /><span style="color: #B900B9;">// DateRcvd is defined as date\Time</span><br /><br /><span style="color: #00C800;">Local</span> cBin,dDateRcvd<br /><br />cBin := <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span>empty<span style="color: #000000;">&#40;</span>oRs:<span style="color: #000000;">Fields</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Bin"</span><span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span><span style="color: #000000;">&#41;</span>,space<span style="color: #000000;">&#40;</span><span style="color: #000000;">50</span><span style="color: #000000;">&#41;</span>,;<br />              <span style="color: #0000ff;">substr</span><span style="color: #000000;">&#40;</span>oRs:<span style="color: #000000;">Fields</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Bin"</span><span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span>+space<span style="color: #000000;">&#40;</span><span style="color: #000000;">50</span><span style="color: #000000;">&#41;</span>,<span style="color: #000000;">1</span>,<span style="color: #000000;">50</span><span style="color: #000000;">&#41;</span><br /><br />dDateRcvd := <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span>empty<span style="color: #000000;">&#40;</span>oRs:<span style="color: #000000;">Fields</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"DateRcvd"</span><span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span><span style="color: #000000;">&#41;</span>, ctod<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">""</span><span style="color: #000000;">&#41;</span>,;<br />                           TtoDate<span style="color: #000000;">&#40;</span>oRs:<span style="color: #000000;">Fields</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"DateRcvd"</span><span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #B900B9;">//--------------------------</span><br /><span style="color: #00C800;">Function</span> TtoDate<span style="color: #000000;">&#40;</span> tDate <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">If</span> empty<span style="color: #000000;">&#40;</span> tDate<span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">Return</span><span style="color: #000000;">&#40;</span> ctod<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"00/00/00"</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">Endif</span><br /><br /><span style="color: #00C800;">If</span> ValType<span style="color: #000000;">&#40;</span> tDate <span style="color: #000000;">&#41;</span> = <span style="color: #ff0000;">"D"</span><br />   <span style="color: #00C800;">Return</span><span style="color: #000000;">&#40;</span>tDate <span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">Endif</span><br /><br /><span style="color: #00C800;">Return</span><span style="color: #000000;">&#40;</span> stod<span style="color: #000000;">&#40;</span> <span style="color: #0000ff;">substr</span><span style="color: #000000;">&#40;</span> ttos<span style="color: #000000;">&#40;</span> tDate <span style="color: #000000;">&#41;</span>, <span style="color: #000000;">1</span>, <span style="color: #000000;">8</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br /> </div>[/code:3dt3oih3][/quote:3dt3oih3] Dear Paco, I will test it again but the limitation of CHAR() length is 50 (I read from the web). Is it correct? Thanks for kind help. [quote="Francisco Horta":3dt3oih3]dutch, cambia varchar por char, varchar si no contiene texto aunque su longitud sea de 50 de devolvera 0. si tu campo varchar contiene "MI NOMBRE" te devolvera una len de 9. Realmente te devuelve la longitud de lo que contiene, y char te devuelve la longitud completa del campo. Saludos Paco[/quote:3dt3oih3]
field length and space in MySql *Fixed*
Dear Antonio, Thank you for your kind suggestion. [quote="AntoninoP":266yo71l]This is a perfect example of because we need the [url=http&#58;//forums&#46;fivetechsupport&#46;com/viewtopic&#46;php?f=22&p=179110#p179110:266yo71l]tEdit class fixed[/url:266yo71l]![/quote:266yo71l]
field length and space in MySql *Fixed*
[quote="dutch":1xrzlok3]Dear Antonio, Thank you for your kind suggestion. [quote="AntoninoP":1xrzlok3]This is a perfect example of because we need the [url=http&#58;//forums&#46;fivetechsupport&#46;com/viewtopic&#46;php?f=22&p=179110#p179110:1xrzlok3]tEdit class fixed[/url:1xrzlok3]![/quote:1xrzlok3][/quote:1xrzlok3] Dutch, I use a function I wrote myself to read with GET's. First I test for the type. I use oQry:fields("naam'):type = 129 for charachters Then I use oQry:Fields('naam'):DefinedSize to get the field length I use this for all datatypes
field length and space in MySql *Fixed*
Dear All, I got the problem now, it is the DEFAULT for CHAR or VARCHAR. If we don't define the default, it will define as NULL and then got this problem. The DEFAULT of CHAR or VARCHAR must be '.' (dot). It will return space as field length, if it is empty. That's it. Thanks for all.
field length and space in MySql *Fixed*
My advice, after decades of experience, is not to continue xbase habits with sql databases. Standard and good practice is to store trimmed values. Programmer needs to pad for editing. Anyway the Edit control will remove this need too. Please note that if you are using ADO, XBrowse, TDataRow, TRecSet automatically PAD spaces while reading so that we can edit padded value and while saving, they are automatically trimmed and saved. This behavior is provided so that programmers can program like xbase for Gets and yet observe the best industry practices for maintaining the tables.
fieldWBlock
I not understood how work fieldWBlock before run ok and now not run I wish print a field using fieldWBlock [code=fw:17dqh9s4]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"fivewin.ch"</span><br /><br />REQUEST DBFCDX<br /><br /><br /><span style="color: #00C800;">Function</span> test<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /> <span style="color: #00C800;">local</span> acampi :=   <span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"FIRST"</span>   ,;<br />                      <span style="color: #ff0000;">"LAST"</span>    ,;<br />                      <span style="color: #ff0000;">"STREET"</span>  ,;<br />                      <span style="color: #ff0000;">"CITY"</span>    ,;<br />                      <span style="color: #ff0000;">"STATE"</span>   ,;<br />                      <span style="color: #ff0000;">"ZIP"</span>     ,;<br />                      <span style="color: #ff0000;">"HIREDATE"</span>,;<br />                      <span style="color: #ff0000;">"MARRIED"</span> ,;<br />                      <span style="color: #ff0000;">"AGE"</span>     ,;<br />                      <span style="color: #ff0000;">"SALARY"</span>  ,;<br />                      <span style="color: #ff0000;">"NOTES"</span>    <span style="color: #000000;">&#125;</span><br /><br /><span style="color: #00C800;">local</span> nFor:=<span style="color: #000000;">1</span><span style="color: #B900B9;">// first</span><br /> <span style="color: #00C800;">local</span> oPrn<br /><span style="color: #00C800;">local</span> oFont<br /><span style="color: #00C800;">local</span> oBold<br /><br /> USE CUSTOMER <span style="color: #00C800;">NEW</span> <span style="color: #0000ff;">alias</span> cust SHARED VIA <span style="color: #ff0000;">"DBFCDX"</span><br /><br /><br /><span style="color: #00C800;">PRINT</span> oPrn PREVIEW<br /><br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFont <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"TAHOMA"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>,<span style="color: #000000;">-14</span> <span style="color: #0000ff;">OF</span> oPrn<br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oBold <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"VERDANA"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>,<span style="color: #000000;">-25</span> BOLD <span style="color: #0000ff;">OF</span> oPrn<br /><br />   <span style="color: #0000ff;">PAGE</span><br /><br />    @ <span style="color: #000000;">10</span>, <span style="color: #000000;">10</span> <span style="color: #00C800;">PRINT</span> <span style="color: #0000ff;">TO</span> oPrn <span style="color: #0000ff;">TEXT</span> bCampo<span style="color: #000000;">&#40;</span> aCampi, nFor,<span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> ;<br />                <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">100</span>, <span style="color: #000000;">100</span> CM ALIGN <span style="color: #ff0000;">"T"</span> <span style="color: #0000ff;">FONT</span> oFont<br /><br />      <span style="color: #0000ff;">ENDPAGE</span><br />       <span style="color: #0000ff;">ENDPRINT</span><br /><br />   <span style="color: #0000ff;">RELEASE</span> <span style="color: #0000ff;">FONT</span> oFont, oBold<br /><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #00C800;">function</span> bCampo<span style="color: #000000;">&#40;</span> aCampi, nFor,nArea <span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">return</span> <span style="color: #000000;">&#40;</span>fieldWBlock<span style="color: #000000;">&#40;</span>aCampi<span style="color: #000000;">&#91;</span>nFor<span style="color: #000000;">&#93;</span>,nArea <span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br /><br /> </div>[/code:17dqh9s4] I tried also with fieldWBlock( "FIRST",1 )
fieldWBlock
Try eval(fieldWBlock(aCampi[nFor],nArea ))
fieldWBlock
perhaps fieldget(n) but I need to have the naArea
fieldWBlock
[url:2menzkp5]http&#58;//computer-programming-forum&#46;com/19-clipper/334184917aa7f776&#46;htm[/url:2menzkp5]
fieldWBlock
[quote="karinha":1ufa30ui][url:1ufa30ui]http&#58;//computer-programming-forum&#46;com/19-clipper/334184917aa7f776&#46;htm[/url:1ufa30ui][/quote:1ufa30ui] nCampo:= 2 aFields := {"FIRST" ,; "LAST" ,; "STREET" ,; "CITY" ,; "STATE" ,; "ZIP" ,; "HIREDATE",; "MARRIED" ,; "AGE" ,; "SALARY" ,; "NOTES" } this Run ok if I wish print a barcode [code=fw:1ufa30ui]<div class="fw" id="{CB}" style="font-family: monospace;">nCampo:= <span style="color: #000000;">2</span><br />FIELDWBLOCK<span style="color: #000000;">&#40;</span> ncampo, <span style="color: #0000ff;">SELECT</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"CUST"</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span></div>[/code:1ufa30ui] sample : @ nRiga, nColonna PRINT TO oPrn TEXT FIELDWBLOCK( ncampo, SELECT( "CUST" ) ) ; AS BARCODE TYPE "EAN8" ; SIZE nWid-nCo, nHei CM BARSIZE nWid If I wish print a text run with [code=fw:1ufa30ui]<div class="fw" id="{CB}" style="font-family: monospace;"><br /> FIELDWBLOCK<span style="color: #000000;">&#40;</span> aFields<span style="color: #000000;">&#91;</span>nCampo<span style="color: #000000;">&#93;</span>, <span style="color: #0000ff;">SELECT</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"CUST"</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span></div>[/code:1ufa30ui] sample : @ nRiga, nColonna PRINT TO oPrn TEXT FIELDWBLOCK( aFields[ncampo], SELECT( "CUST" ) ); SIZE nWid, nHei CM ALIGN "T" FONT oFnt [b:1ufa30ui]it's very strange[/b:1ufa30ui] because I call allways the field number 2 ( Last)
fieldWBlock
FIELDWBLOCK("FName", 1) is the same as &( "{ |setVal| IF( setVal == NIL, 1->FName, 1->FName := setVal ) }" ) If you don't eval the block you'll not retrieve the content of the field. @ nRiga, nColonna PRINT TO oPrn TEXT eval( FIELDWBLOCK( aFields[ncampo], SELECT( "CUST" ) ) ); SIZE nWid, nHei CM ALIGN "T" FONT oFnt
fieldWBlock
[quote="ADutheil":8n3ywmsg]FIELDWBLOCK("FName", 1) is the same as &( "{ |setVal| IF( setVal == NIL, 1->FName, 1->FName := setVal ) }" ) If you don't eval the block you'll not retrieve the content of the field. @ nRiga, nColonna PRINT TO oPrn TEXT eval( FIELDWBLOCK( aFields[ncampo], SELECT( "CUST" ) ) ); SIZE nWid, nHei CM ALIGN "T" FONT oFnt[/quote:8n3ywmsg] I tried with eval make error
fieldWBlock
I took your initial example and rewrote a little: [code=fw:1exsrevh]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"fivewin.ch"</span><br /><br />REQUEST DBFCDX<br /><br /><br /><span style="color: #00C800;">Function</span> main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp;<span style="color: #00C800;">local</span> acampi := &nbsp; <span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"FIRST"</span> &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"LAST"</span> &nbsp; &nbsp;,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"STREET"</span> &nbsp;,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"CITY"</span> &nbsp; &nbsp;,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"STATE"</span> &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"ZIP"</span> &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"HIREDATE"</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"MARRIED"</span> ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"AGE"</span> &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"SALARY"</span> &nbsp;,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"NOTES"</span> &nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br /><br /><span style="color: #00C800;">local</span> nFor:=<span style="color: #000000;">2</span><br /><br />USE CUSTOMER <span style="color: #00C800;">NEW</span> <span style="color: #0000ff;">alias</span> cust SHARED VIA <span style="color: #ff0000;">"DBFCDX"</span><br /><br /><br />alert<span style="color: #000000;">&#40;</span> &nbsp;bCampo<span style="color: #000000;">&#40;</span> aCampi, nFor,<span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #00C800;">function</span> bCampo<span style="color: #000000;">&#40;</span> aCampi, nFor,nArea <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">return</span> eval<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#40;</span>fieldWBlock<span style="color: #000000;">&#40;</span>aCampi<span style="color: #000000;">&#91;</span>nFor<span style="color: #000000;">&#93;</span>,nArea <span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />&nbsp;</div>[/code:1exsrevh] I works OK for me. The alert box shows Simpson
fieldWBlock
This works perfectly for me. [code=fw:2pdjvas1]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"fivewin.ch"</span><br /><br />REQUEST DBFCDX<br /><br /><br /><span style="color: #00C800;">Function</span> main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp;<span style="color: #00C800;">local</span> acampi := &nbsp; <span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"FIRST"</span> &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"LAST"</span> &nbsp; &nbsp;,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"STREET"</span> &nbsp;,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"CITY"</span> &nbsp; &nbsp;,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"STATE"</span> &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"ZIP"</span> &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"HIREDATE"</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"MARRIED"</span> ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"AGE"</span> &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"SALARY"</span> &nbsp;,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"NOTES"</span> &nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br /><br /><span style="color: #00C800;">local</span> nFor:=<span style="color: #000000;">2</span><br /><br />&nbsp;<span style="color: #00C800;">local</span> oPrn<br /><span style="color: #00C800;">local</span> oFont<br /><span style="color: #00C800;">local</span> oBold<br /><br />&nbsp;USE CUSTOMER <span style="color: #00C800;">NEW</span> <span style="color: #0000ff;">alias</span> cust SHARED VIA <span style="color: #ff0000;">"DBFCDX"</span><br /><br /><br /><span style="color: #00C800;">PRINT</span> oPrn PREVIEW<br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFont <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"TAHOMA"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>,<span style="color: #000000;">-14</span> <span style="color: #0000ff;">OF</span> oPrn<br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oBold <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"VERDANA"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>,<span style="color: #000000;">-25</span> BOLD <span style="color: #0000ff;">OF</span> oPrn<br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">PAGE</span><br /><br />&nbsp; &nbsp; @ <span style="color: #000000;">10</span>, <span style="color: #000000;">10</span> <span style="color: #00C800;">PRINT</span> <span style="color: #0000ff;">TO</span> oPrn <span style="color: #0000ff;">TEXT</span> bCampo<span style="color: #000000;">&#40;</span> aCampi, nFor,<span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">FONT</span> oFont<br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ENDPAGE</span><br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">ENDPRINT</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">RELEASE</span> <span style="color: #0000ff;">FONT</span> oFont, oBold<br /><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #00C800;">function</span> bCampo<span style="color: #000000;">&#40;</span> aCampi, nFor,nArea <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">return</span> eval<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#40;</span>fieldWBlock<span style="color: #000000;">&#40;</span>aCampi<span style="color: #000000;">&#91;</span>nFor<span style="color: #000000;">&#93;</span>,nArea <span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp;</div>[/code:2pdjvas1]
fieldWBlock
[quote="ADutheil":w49oz2pa]This works perfectly for me. [code=fw:w49oz2pa]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"fivewin.ch"</span><br /><br />REQUEST DBFCDX<br /><br /><br /><span style="color: #00C800;">Function</span> main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /> <span style="color: #00C800;">local</span> acampi :=   <span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"FIRST"</span>   ,;<br />                      <span style="color: #ff0000;">"LAST"</span>    ,;<br />                      <span style="color: #ff0000;">"STREET"</span>  ,;<br />                      <span style="color: #ff0000;">"CITY"</span>    ,;<br />                      <span style="color: #ff0000;">"STATE"</span>   ,;<br />                      <span style="color: #ff0000;">"ZIP"</span>     ,;<br />                      <span style="color: #ff0000;">"HIREDATE"</span>,;<br />                      <span style="color: #ff0000;">"MARRIED"</span> ,;<br />                      <span style="color: #ff0000;">"AGE"</span>     ,;<br />                      <span style="color: #ff0000;">"SALARY"</span>  ,;<br />                      <span style="color: #ff0000;">"NOTES"</span>    <span style="color: #000000;">&#125;</span><br /><br /><span style="color: #00C800;">local</span> nFor:=<span style="color: #000000;">2</span><br /><br /> <span style="color: #00C800;">local</span> oPrn<br /><span style="color: #00C800;">local</span> oFont<br /><span style="color: #00C800;">local</span> oBold<br /><br /> USE CUSTOMER <span style="color: #00C800;">NEW</span> <span style="color: #0000ff;">alias</span> cust SHARED VIA <span style="color: #ff0000;">"DBFCDX"</span><br /><br /><br /><span style="color: #00C800;">PRINT</span> oPrn PREVIEW<br /><br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFont <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"TAHOMA"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>,<span style="color: #000000;">-14</span> <span style="color: #0000ff;">OF</span> oPrn<br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oBold <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"VERDANA"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>,<span style="color: #000000;">-25</span> BOLD <span style="color: #0000ff;">OF</span> oPrn<br /><br />   <span style="color: #0000ff;">PAGE</span><br /><br />    @ <span style="color: #000000;">10</span>, <span style="color: #000000;">10</span> <span style="color: #00C800;">PRINT</span> <span style="color: #0000ff;">TO</span> oPrn <span style="color: #0000ff;">TEXT</span> bCampo<span style="color: #000000;">&#40;</span> aCampi, nFor,<span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">FONT</span> oFont<br /><br />      <span style="color: #0000ff;">ENDPAGE</span><br />       <span style="color: #0000ff;">ENDPRINT</span><br /><br />   <span style="color: #0000ff;">RELEASE</span> <span style="color: #0000ff;">FONT</span> oFont, oBold<br /><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #00C800;">function</span> bCampo<span style="color: #000000;">&#40;</span> aCampi, nFor,nArea <span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">return</span> eval<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#40;</span>fieldWBlock<span style="color: #000000;">&#40;</span>aCampi<span style="color: #000000;">&#91;</span>nFor<span style="color: #000000;">&#93;</span>,nArea <span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br /><br /> </div>[/code:w49oz2pa][/quote:w49oz2pa] Also for me !! When I tried to Print a BARCODE it make error IT's very STRANGE because Barcode want code as text sample [code=fw:w49oz2pa]<div class="fw" id="{CB}" style="font-family: monospace;">nWid:=<span style="color: #000000;">0.2</span><br />@ <span style="color: #000000;">10</span>, <span style="color: #000000;">10</span> <span style="color: #00C800;">PRINT</span> <span style="color: #0000ff;">TO</span> oPrn <span style="color: #0000ff;">TEXT</span> &nbsp;bCampo<span style="color: #000000;">&#40;</span> aCampi, nFor,<span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>;<br />AS BARCODE TYPE <span style="color: #ff0000;">"EAN8"</span> ;<br /><span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">3.6</span>, <span style="color: #000000;">0.8</span> &nbsp;CM BARSIZE nWid</div>[/code:w49oz2pa]
fieldWBlock
My FWH version is old and I'm not aware of the AS BARCODE command so I can't help you further.
fieldWBlock
THERE IS SOMEONE CAN HELP ME PLS ?
fieldWBlock
As you want to print a barcode the function may be expecting a string of numbers not letters.
fieldWBlock
[quote="ADutheil":3j1bml2v]As you want to print a barcode the function may be expecting a string of numbers not letters.[/quote:3j1bml2v] I allready tried
filas subtotalizadas en excel desde xbrowse
Mr. Rao y Gente: Con este codigo genero este browse [code=fw:czkejqyb]<div class="fw" id="{CB}" style="font-family: monospace;"><br />  <span style="color: #00C800;">local</span> oBrw, oRs<br />  <span style="color: #0000ff;">TEXT</span> INTO cSql<br />    <span style="color: #0000ff;">SELECT</span> Nivel1, Nivel2,TotMes01,TotMes02, TotMes03, TotMes04, TotMes05 <span style="color: #0000ff;">FROM</span><br />    <span style="color: #000000;">&#40;</span><br />    <span style="color: #0000ff;">SELECT</span> nivel1, nivel2,  <span style="color: #0000ff;">SUM</span><span style="color: #000000;">&#40;</span> in01 <span style="color: #000000;">&#41;</span> AS TotMes01, <span style="color: #0000ff;">sum</span><span style="color: #000000;">&#40;</span>in02<span style="color: #000000;">&#41;</span> as TotMes02, <span style="color: #0000ff;">sum</span><span style="color: #000000;">&#40;</span>in03<span style="color: #000000;">&#41;</span> as TotMes03, <span style="color: #0000ff;">sum</span><span style="color: #000000;">&#40;</span>in04<span style="color: #000000;">&#41;</span> as TotMes04, <span style="color: #0000ff;">sum</span><span style="color: #000000;">&#40;</span>in05<span style="color: #000000;">&#41;</span> as TotMes05<br />    <span style="color: #0000ff;">FROM</span> #ping<br />    <span style="color: #0000ff;">GROUP BY</span> Nivel1, nivel2<br />    WITH ROLLUP<br />    <span style="color: #000000;">&#41;</span> C<br />    <span style="color: #0000ff;">ORDER BY</span> Nivel1, Nivel2<br />  ENDTEXT<br />  <span style="color: #00C800;">TRY</span><br />    oRs := FW_OpenRecordSet<span style="color: #000000;">&#40;</span> oConnect, cSql, adLockOptimistic <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// adLockBatchOptimistic</span><br />  CATCH oError<br />    MsgStop<span style="color: #000000;">&#40;</span> oError:<span style="color: #000000;">Description</span> <span style="color: #000000;">&#41;</span><br />  END<br /><br /><br />   aSum  := <span style="color: #000000;">&#123;</span> oRs:<span style="color: #000000;">Fields</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"TotMes01"</span> <span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span>, oRs:<span style="color: #000000;">Fields</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"TotMes02"</span> <span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span>, oRs:<span style="color: #000000;">Fields</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"TotMes03"</span> <span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span>, oRs:<span style="color: #000000;">Fields</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"TotMes04"</span> <span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span>, oRs:<span style="color: #000000;">Fields</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"TotMes05"</span> <span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span> <span style="color: #000000;">&#125;</span><br /><br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFont <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"TAHOMA"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>,<span style="color: #000000;">-13</span><br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">700</span>,<span style="color: #000000;">500</span> <span style="color: #0000ff;">PIXEL</span> TRUEPIXEL <span style="color: #0000ff;">FONT</span> oFont<br /><br />   @ <span style="color: #000000;">20</span>,<span style="color: #000000;">20</span> <span style="color: #0000ff;">XBROWSE</span> oBrw <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">-20</span>,<span style="color: #000000;">-20</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg ;<br />      DATASOURCE oRs <span style="color: #0000ff;">AUTOCOLS</span> ;<br />      CELL LINES NOBORDER FOOTERS<br /><br />   WITH OBJECT oBrw<br />      :<span style="color: #000000;">TotMes01</span>:<span style="color: #000000;">cFooter</span>      := aSum<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span><br />      :<span style="color: #000000;">TotMes02</span>:<span style="color: #000000;">cFooter</span>      := aSum<span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span><br />      :<span style="color: #000000;">TotMes03</span>:<span style="color: #000000;">cFooter</span>      := aSum<span style="color: #000000;">&#91;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#93;</span><br />      :<span style="color: #000000;">TotMes04</span>:<span style="color: #000000;">cFooter</span>      := aSum<span style="color: #000000;">&#91;</span> <span style="color: #000000;">4</span> <span style="color: #000000;">&#93;</span><br />      :<span style="color: #000000;">TotMes05</span>:<span style="color: #000000;">cFooter</span>      := aSum<span style="color: #000000;">&#91;</span> <span style="color: #000000;">5</span> <span style="color: #000000;">&#93;</span><br />      :<span style="color: #000000;">AutoFit</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />      :<span style="color: #000000;">CreateFromCode</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   END<br />   @ <span style="color: #000000;">480</span>,<span style="color: #000000;">10</span> <span style="color: #0000ff;">BTNBMP</span> <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Go to Excel "</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">80</span>,<span style="color: #000000;">20</span> FLAT <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">ACTION</span> oBrw:<span style="color: #000000;">ToExcel</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span>  ;<br />      <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">INIT</span> <span style="color: #000000;">&#40;</span> ;<br />      oBrw:<span style="color: #000000;">SetTree</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span>, <span style="color: #000000;">&#123;</span> FWDArrow<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, FWRArrow<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 />      oBrw:<span style="color: #000000;">bClrStds</span> := <span style="color: #000000;">&#123;</span> || <span style="color: #000000;">&#123;</span> CLR_BLACK, <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> oBrw:<span style="color: #000000;">oTreeItem</span>:<span style="color: #000000;">nLevel</span> == <span style="color: #000000;">1</span>, 0x68DDFB, CLR_WHITE <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span> ;<br />      <span style="color: #000000;">&#41;</span><br />   <span style="color: #0000ff;">RELEASE</span> <span style="color: #0000ff;">FONT</span> oFont<br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /> </div>[/code:czkejqyb] [url=https&#58;//postimg&#46;cc/N9CzdZGK:czkejqyb][img:czkejqyb]https&#58;//i&#46;postimg&#46;cc/N9CzdZGK/xbrow&#46;jpg[/img:czkejqyb][/url:czkejqyb] Pero quisiera llevarlo a excel y se vea subtotalizado, asi: [url=https&#58;//postimg&#46;cc/xNH3LZXD:czkejqyb][img:czkejqyb]https&#58;//i&#46;postimg&#46;cc/xNH3LZXD/excel&#46;jpg[/img:czkejqyb][/url:czkejqyb] No logro hacerlo, existe el parametro nGroupby del metodo toExcel pero no se como usarlo, uso fwh 17.12 Otra opcion seria usar el metodo subtotal de la clase TexcelScript, alguien tiene algun ejemplo? Gracias
file ID in the Windows file system
Dear Antonio, I didn't know there was a file ID in the Windows file system. This opens up many new possibilities. I always wanted a system where I could use the file system instead of a database. Can we get these IDs from Fivewin or Harbour Mod? Best regards, Otto In Windows operating systems, files indeed have unique identifiers beyond just their names, which are used by the system to manage and reference files. Here are a couple of concepts related to this: **File Handle:** A file handle is a reference or an identifier used by the operating system to access a file or other input/output resource, such as a pipe or network connection. File handles are used in system programming to manage file operations. When a program opens a file, the operating system creates a file handle to keep track of the file and operations performed on it. This handle is unique for the duration of the file's opening by that process. **File ID:** In addition to file handles, modern Windows file systems like NTFS use a unique identifier called a File ID, which is a more permanent reference to a file. The File ID is unique on the volume on which the file resides. This means even if the file is moved or renamed on the same volume, it will retain the same File ID. This is particularly useful for tracking files in more complex operations and is used by features like the Volume Shadow Copy Service. **Path:** While not a unique identifier in the strictest sense, the full path of a file (combining the drive letter, folders, and filename) is typically unique and used by humans and programs to uniquely identify files in many contexts. However, two different files in separate directories can have the same name, so the name itself isn't unique, but the full path usually is. These identifiers are used by the operating system and are typically abstracted away from users, who mostly interact with files through their paths and names. However, for system and network administrators, programmers, and other IT professionals, understanding and sometimes working directly with file handles and IDs is an important part of managing files and ensuring smooth operations. **User: How can I get the file ID?** In Windows, to retrieve the unique file identifier (File ID) for a file, you typically need to use specific tools or write a program that interacts with the Windows API. Here's a general outline of how you can retrieve the File ID: **Using Command Line:** - **fsutil**: Windows includes a command-line utility called fsutil that can display the File ID among other file and volume information. To use it, you'll need to open Command Prompt as an administrator and then use the following syntax: ```css fsutil file queryfileid <Path to file> ``` **Using Programming:** - **Windows API**: In programming, particularly in languages like C or C++, you can use the Windows API to get a file's identifier. Functions like GetFileInformationByHandle() can be used after opening the file to get its handle. The returned data includes the File ID as part of the file's information. - **Powershell**: Similar to command-line utilities, you can script this in PowerShell to retrieve the File ID for a file. Here's a simple example of how you might retrieve a file's ID using the fsutil command: 1. Open Command Prompt as Administrator. 2. Execute the command: ```cmd fsutil file queryfileid C:\path\to\your\file.txt ``` Replace `C:\path\to\your\file.txt` with the actual path to your file. This will return the File ID in a hexadecimal format. **Considerations:** - **Permissions**: Make sure you have the necessary permissions to access the file and run these commands, especially if you are in a restricted or multi-user environment. - **File System**: The concept of a File ID is specific to certain file systems like NTFS. Ensure that the file system of the volume on which your file resides supports these features. By using these methods, you can retrieve the unique identifier for files in Windows, which is particularly useful for scripting, programming, or tracking files in complex systems. **User: What happens if I rename a file to the ID or if I copy a file to another folder?** When you interact with a file by renaming it or copying it, the underlying file system handles these actions with specific behaviors related to the file's unique identifier (File ID) and other metadata: 1. **Renaming a File to the ID:** - **Effect on File ID**: If you rename a file to anything, including a name that looks like its File ID, the actual File ID assigned by the file system does not change. The File ID is a unique and stable identifier for the file within the same volume and is managed by the file system, independent of the file's name. - **User Perspective**: To the user, the file just has a new name. The name could be anything, including a string that represents the File ID. However, this is just cosmetic from the file system's perspective. 2. **Copying a File to Another Folder:** - **Same Volume**: If you copy a file to another folder on the same volume, the file system typically assigns a new File ID to the copy. The original file retains its original File ID. This is because, in most systems, the File ID is unique to each file instance, even if the files are identical in content. - **Different Volume**: If you copy a file to a different volume or disk, the new file will definitely get a new File ID because File IDs are unique within a volume. The new file system will assign an ID based on its own criteria and sequence. **General Considerations:** - **Copying vs. Moving**: Moving a file within the same volume usually retains the file's ID because the file isn't being duplicated, just relocated. However, copying always involves creating a new file, which typically results in a new File ID. - **File System Behavior**: Specific behaviors can vary slightly between different file systems (e.g., NTFS, FAT32, exFAT). NTFS, commonly used in Windows, supports stable File IDs across the same volume. - **No Direct Impact on Functionality**: For most users and applications, these operations don't have a noticeable impact. The operating system and applications continue to access and manage files based on their path, handle, and other metadata. Understanding File IDs is generally more important for developers or for specific administrative or forensic tasks. In summary, renaming a file to its File ID or copying it to another folder doesn't affect the file's actual unique identifier within the file system. These operations are primarily managed by the file system to ensure each file's unique identity is maintained according to its rules and behaviors. **User: And if I move to another folder?** When you move a file to another folder, the behavior in terms of the file's unique identifier (File ID) and other attributes depends on whether you are moving it within the same volume or across different volumes: **Moving Within the Same Volume:** - **File ID Retained**: When you move a file to another folder within the same volume (for example, from "C:\Folder1" to "C:\Folder2" on an NTFS file system), the file retains its File ID. The move operation is essentially changing the file's path in the file system's directory structure, not altering the file itself. - **Metadata Mostly Unchanged**: Most of the file's metadata, including creation time, modified time, and access rights, typically remains unchanged. However, the last modified date might update in some systems due to the change in the directory structure. **Moving Across Different Volumes:** - **New File ID**: If you move a file across different volumes (for example, from "C:\Folder" on one drive to "D:\Folder" on another), it's treated as a copy and then delete operation. The file will be copied to the new volume (where it receives a new File ID assigned by the destination volume's file system) and then deleted from the original location. - **Metadata May Change**: In addition to receiving a new File ID, the file's metadata may be updated to reflect the change, especially the creation time which might reset to the time of the copy on the new volume. **General Considerations:** - **Permissions and Links**: Be aware that moving files can sometimes affect permissions or break links and shortcuts that pointed to the original file, particularly when moving across volumes. Ensure any necessary permissions are reconfigured and links are updated after moving files. - **Behavior Dependent on File System**: While these behaviors are generally consistent across modern file systems like NTFS on Windows, specific behaviors can vary slightly between different file systems. Always consider the specifics of your file system and operating system version. - **User Perspective**: For users, moving a file is often a simple operation, and the underlying changes in File ID or metadata are transparent. However, understanding these details can be important for troubleshooting, system administration, or when using file synchronization or backup software that might rely on these attributes. In most practical scenarios, you can move files as needed without concern for the underlying File ID, as the operating system handles these details. However, knowing that moving within the same volume retains the File ID while moving across volumes does not can be useful for understanding how your files are managed and how to recover or manage them in more technical or specialized situations.
file ID in the Windows file system
[img:38xgeg8j]https&#58;//mybergland&#46;com/fwforum/fsutil&#46;jpg[/img:38xgeg8j]
file ID in the Windows file system
[img:2m0n67s6]https&#58;//mybergland&#46;com/fwforum/fileid&#46;jpg[/img:2m0n67s6]
file ID in the Windows file system
Dear Otto, fileid.prg [code=fw:1kk3fb0b]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> GetFileId<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"customer.dbf"</span> <span style="color: #000000;">&#41;</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: #00D7D7;">#pragma</span> BEGINDUMP<br /><br /><span style="color: #00D7D7;">#include</span> <windows.h><br /><span style="color: #00D7D7;">#include</span> <hbapi.h><br /><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> GETFILEID <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; HANDLE hFile = CreateFile<span style="color: #000000;">&#40;</span> hb_parc<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>, GENERIC_READ, FILE_SHARE_READ, <span style="color: #00C800;">NULL</span>, OPEN_EXISTING, <span style="color: #000000;">0</span>, <span style="color: #00C800;">NULL</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; BY_HANDLE_FILE_INFORMATION fileInfo;<br /><br />&nbsp; &nbsp; <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> GetFileInformationByHandle<span style="color: #000000;">&#40;</span> hFile, &fileInfo<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <br />&nbsp; &nbsp; &nbsp; &nbsp;hb_retnll<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> ULONGLONG <span style="color: #000000;">&#41;</span> fileInfo.nFileIndexHigh << <span style="color: #000000;">32</span> <span style="color: #000000;">&#41;</span> | fileInfo.nFileIndexLow <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; <span style="color: #00C800;">else</span> <br />&nbsp; &nbsp; &nbsp; &nbsp;hb_retnll<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp; CloseHandle<span style="color: #000000;">&#40;</span> hFile <span style="color: #000000;">&#41;</span>; &nbsp; &nbsp; &nbsp;<br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #00D7D7;">#pragma</span> ENDDUMP</div>[/code:1kk3fb0b]
file ID in the Windows file system
Please notice that the above code works for local files. For networked files the code is different: [code=fw:gk54zb7x]<div class="fw" id="{CB}" style="font-family: monospace;">HANDLE hFile = CreateFile<span style="color: #000000;">&#40;</span>L<span style="color: #ff0000;">"<span style="color: #000000;">\\</span>myserver<span style="color: #000000;">\s</span>hare<span style="color: #000000;">\m</span>yfile.txt"</span>, GENERIC_READ, FILE_SHARE_READ, <span style="color: #00C800;">NULL</span>, OPEN_EXISTING, FILE_FLAG_OVERLAPPED, <span style="color: #00C800;">NULL</span><span style="color: #000000;">&#41;</span>;<br /><span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span>hFile != INVALID_HANDLE_VALUE<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span><br />&nbsp; OVERLAPPED ov = <span style="color: #000000;">&#123;</span> <span style="color: #000000;">0</span> <span style="color: #000000;">&#125;</span>;<br />&nbsp; FILE_ID_INFO fi = <span style="color: #000000;">&#123;</span> <span style="color: #000000;">0</span> <span style="color: #000000;">&#125;</span>;<br />&nbsp; BOOL bSuccess = NtQueryInformationFile<span style="color: #000000;">&#40;</span>hFile, &ov, &fi, sizeof<span style="color: #000000;">&#40;</span>fi<span style="color: #000000;">&#41;</span>, FileIdInformation<span style="color: #000000;">&#41;</span>;<br />&nbsp; <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span>bSuccess<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; <span style="color: #B900B9;">// The file ID is stored in the `FileId` member of the `FILE_ID_INFO` structure</span><br />&nbsp; &nbsp; DWORD fileId = fi.FileId;<br />&nbsp; &nbsp; <span style="color: #B900B9;">// Use the file ID here...</span><br />&nbsp; <span style="color: #000000;">&#125;</span><br />&nbsp; CloseHandle<span style="color: #000000;">&#40;</span>hFile<span style="color: #000000;">&#41;</span>;<br /><span style="color: #000000;">&#125;</span></div>[/code:gk54zb7x] Also it is different for File IDs for Files in ReFS Volumes: [code=fw:gk54zb7x]<div class="fw" id="{CB}" style="font-family: monospace;">HANDLE hVolume = CreateFileVolume<span style="color: #000000;">&#40;</span>L<span style="color: #ff0000;">"<span style="color: #000000;">\\</span>myserver<span style="color: #000000;">\v</span>olume1"</span>, GENERIC_READ<span style="color: #000000;">&#41;</span>;<br /><span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span>hVolume != INVALID_HANDLE_VALUE<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span><br />&nbsp; VOLUME_ID_INFO vi = <span style="color: #000000;">&#123;</span> <span style="color: #000000;">0</span> <span style="color: #000000;">&#125;</span>;<br />&nbsp; DWORD dwBytesReturned = <span style="color: #000000;">0</span>;<br />&nbsp; BOOL bSuccess = NtQueryVolumeInformationFile<span style="color: #000000;">&#40;</span>hVolume, &ov, &vi, sizeof<span style="color: #000000;">&#40;</span>vi<span style="color: #000000;">&#41;</span>, FileIdInformationReFS<span style="color: #000000;">&#41;</span>;<br />&nbsp; <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span>bSuccess<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; <span style="color: #B900B9;">// The file ID is stored in the `FileId` member of the `VOLUME_ID_INFO` structure</span><br />&nbsp; &nbsp; DWORD fileId = vi.FileId;<br />&nbsp; &nbsp; <span style="color: #B900B9;">// Use the file ID here...</span><br />&nbsp; <span style="color: #000000;">&#125;</span><br />&nbsp; CloseHandle<span style="color: #000000;">&#40;</span>hVolume<span style="color: #000000;">&#41;</span>;<br /><span style="color: #000000;">&#125;</span></div>[/code:gk54zb7x]
file ID in the Windows file system
Dear Antonio, Thank you, Antonio. I think for my purpose - I have the mod harbour server and one volume only is this an option. One must make a backup table in case one needs to do a restore, so that one can find the ID again. I think of a private file allocation table. I have tested with these command com files and the fsutil. It could work. And in such a DMS - for businesses on the scale of hotels, there are not thousands of files added daily. Thank you for the function. I will go on. Best regards, Otto
file date and time - how to set
Hello, Can someone please help me out with the command for how to set file date and time. Best regards Otto
file date and time - how to set
Master Otto, explain better what you need. Regards, saludos.
file date and time - how to set
Hello João, I want to copy files to a server. The files on the server should have the same date time as the original file. Thank you in advance Otto
file date and time - how to set
Hello, I think I found an example: function setfiledate(cFile, dDate) local hFile := FOpen( cFile, FO_READWRITE ) local aInfo SET DATE FRENCH SET CENTURY ON SetFTime( hFile, "13:00:00", dDate ) // MsgInfo( "D o n e !" ) FClose( hFile ) return nil I will test. Best regards Otto
file date and time - how to set
There is a sample here: C:\fwh\samples\testfdat.prg Best regards Otto
file date and time - how to set
Maybe... Go reporting. [code=fw:343e39v8]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">'common.ch'</span><br /><br /><span style="color: #00D7D7;">#define</span> SW_HIDE <span style="color: #000000;">0</span><br /><span style="color: #00D7D7;">#define</span> SW_NORMAL <span style="color: #000000;">1</span><br /><span style="color: #00D7D7;">#define</span> SW_SHOWMINIMIZED <span style="color: #000000;">2</span><br /><span style="color: #00D7D7;">#define</span> SW_RESTORE <span style="color: #000000;">9</span><br /><br /><span style="color: #B900B9;">//------------------------------------*</span><br /><span style="color: #B900B9;">// Deritrizes de fazer copia ou mover *</span><br /><span style="color: #B900B9;">//------------------------------------*</span><br /><span style="color: #00D7D7;">#define</span> FO_MOVE 0x0001<br /><span style="color: #00D7D7;">#define</span> FO_COPY 0x0002<br /><span style="color: #00D7D7;">#define</span> FO_DELETE 0x0003<br /><span style="color: #00D7D7;">#define</span> FO_RENAME 0x0004<br /><span style="color: #00D7D7;">#define</span> FOF_MULTIDESTFILES 0x0001<br /><span style="color: #00D7D7;">#define</span> FOF_CONFIRMMOUSE 0x0002<br /><span style="color: #00D7D7;">#define</span> FOF_SILENT 0x0004 <span style="color: #B900B9;">// don't create progress/report</span><br /><span style="color: #00D7D7;">#define</span> FOF_RENAMEONCOLLISION 0x0008<br /><br /><span style="color: #00D7D7;">#define</span> FOF_NOCONFIRMATION 0x0010 <span style="color: #B900B9;">// Don't prompt the user.</span><br /><span style="color: #00D7D7;">#define</span> FOF_WANTMAPPINGHANDLE 0x0020 <span style="color: #B900B9;">// Fill in SHFILEOPSTRUCT.hNameMappings</span><br /><br /><span style="color: #B900B9;">// Must be freed using SHFreeNameMappings</span><br /><span style="color: #00D7D7;">#define</span> FOF_ALLOWUNDO 0x0040<br /><span style="color: #00D7D7;">#define</span> FOF_FILESONLY 0x0080 <span style="color: #B900B9;">// on *.*, do only files</span><br /><span style="color: #00D7D7;">#define</span> FOF_SIMPLEPROGRESS 0x0100 <span style="color: #B900B9;">// means don't show names of files</span><br /><span style="color: #00D7D7;">#define</span> FOF_NOCONFIRMMKDIR 0x0200 <span style="color: #B900B9;">// don't confirm making any needed dirs</span><br /><span style="color: #00D7D7;">#define</span> FOF_NOERRORUI 0x0400 <span style="color: #B900B9;">// don't put up error UI</span><br /><span style="color: #00D7D7;">#define</span> FOF_NOCOPYSECURITYATTRIBS 0x0800 <span style="color: #B900B9;">// dont copy NT file Security Attributes</span><br /><span style="color: #00D7D7;">#define</span> FOF_NORECURSION 0x1000 <span style="color: #B900B9;">// don't recurse into directories.</span><br /><br /><span style="color: #B900B9;">//----------------------------> Copia o arquivo</span><br /><br /><span style="color: #00C800;">FUNCTION</span> execopia<span style="color: #000000;">&#40;</span> warq, warq1 <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;warq1 := alltrim<span style="color: #000000;">&#40;</span> warq1 <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">RETURN</span> SHFile<span style="color: #000000;">&#40;</span> , FO_COPY , warq + Chr<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> , warq1 <span style="color: #000000;">&#41;</span><br />&nbsp;</div>[/code:343e39v8] Regards.
file date and time - how to set
Go reporting... [code=fw:34mwl5vt]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><br /><span style="color: #00C800;">FUNCTION</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> cBuffer &nbsp;:= Space<span style="color: #000000;">&#40;</span> <span style="color: #000000;">12800</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> nBufSize := <span style="color: #000000;">12800</span><br /><br />&nbsp; &nbsp;hSource := FOpen<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Arquivo Original"</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;hTarget := FCreate<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Arquivo Copia"</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">While</span> <span style="color: #000000;">&#40;</span> nBytes := FRead<span style="color: #000000;">&#40;</span> hSource, @cBuffer, nBufSize <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> > <span style="color: #000000;">0</span><br /><br />&nbsp; &nbsp; &nbsp; FWrite<span style="color: #000000;">&#40;</span> hTarget, cBuffer, nBytes <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; SysRefresh<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;End<br /><br />&nbsp; &nbsp;FClose<span style="color: #000000;">&#40;</span> hSource <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;FClose<span style="color: #000000;">&#40;</span> hTarget <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">If</span> File<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Arquivo Copia"</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;...<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">Endif</span><br /><br /><span style="color: #00C800;">Return</span> <span style="color: #00C800;">nil</span><br />&nbsp;</div>[/code:34mwl5vt] Regards.
file date and time - how to set
[code=fw:iihsluk2]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><br /><span style="color: #00C800;">FUNCTION</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> cDirServ, cDirLocal, cArquivo<br /><br />&nbsp; &nbsp;cDirServ &nbsp;:= <span style="color: #ff0000;">"<span style="color: #000000;">\x</span>_Archivos<span style="color: #000000;">\"</span><br />&nbsp; &nbsp;cDirLocal := "</span>E:\<span style="color: #ff0000;">"<br />&nbsp; &nbsp;cArquivo &nbsp;:= "</span>teste.txt<span style="color: #ff0000;">"<br />&nbsp;<br />&nbsp; &nbsp;__CopyFile( cDirLocal+cArquivo, cDirServ+cArquivo+"</span><span style="color: #000000;">2</span><span style="color: #ff0000;">" )<br /><br />RETURN NIL<br /></span></div>[/code:iihsluk2]
file date and time - how to set
Hello João, Thank you for your help. I test with your code. I map a drive on a web server with netDrive. To synchronize data between my mod harbour web page and my desktop, I copy files like images, etc. To keep traffic low, I would like to test it the file was changed (size, time, date) before I copy. Best regards, Otto
file date and time - how to set
Mr. Otto. This is the simplest and reliable function from (x)Harbour. [code=fw:2qt6yxqg]<div class="fw" id="{CB}" style="font-family: monospace;"><br />SetFDaTi<span style="color: #000000;">&#40;</span> cFileName, dDate, cTime <span style="color: #000000;">&#41;</span> --> lSuccess<br />&nbsp;</div>[/code:2qt6yxqg]
file date and time - how to set
Master Rao, can you explain these commands please? I didn't find documentation. [code=fw:29jjyw01]<div class="fw" id="{CB}" style="font-family: monospace;"><br />&nbsp; &nbsp;FileAttr<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;FileDate<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;FileTime<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;SetFAttr<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;SetFDaTi<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp;</div>[/code:29jjyw01] Many thanks. Regards.
file date and time - how to set
SetFTime() - very good. [url:1y8aypy3]http&#58;//forums&#46;fivetechsupport&#46;com/viewtopic&#46;php?f=3&t=12924&start=0[/url:1y8aypy3]
file date and time - how to set
Hello, I did some more tests, but it seems as you can't change date/time stamp on these through netDrive3 (<!-- m --><a class="postlink" href="http://www.netdrive.net">http://www.netdrive.net</a><!-- m -->) mapped drives. It is interesting that if I upload a file to my webserver - I have the same time setup as on the local server - I have a time difference of 1 hour. Maybe this has to do with summertime. I do some more tests. Best regards Otto
file di excel protetto da password
(fw7.12 xHarbour 1.0) apro files di excel con queste funzioni di ole2: oExcel := TOleAuto():New( "Excel.Application" ) oExcel:WorkBooks:Open(cFilePath(GetModuleFileName(GetInstance())) + cFileXls) con quale funzione si può passare una password all'apertura del file nel caso di file protetto? così come è ora si apre excel con richiesta di inserimento password poi si blocca, se chiudo excel mi da errore fivewin. grazie in anticipo, marzio
file di excel protetto da password
La password è il quinto parametro del metodo Open(). Non hai la documentazione di Excel per controllare la sintassi? EMG
file di excel protetto da password
avevo provato fino al 3° parametro poi mi ero arreso. mi dava questo errore che mi continua a dare anche al 5° parametro: Error Excel.Application:WORKBOOKS/14 DISP_E_BADPARAMCOUNT: OPEN oExcel:WorkBooks:Open(cFilePath(GetModuleFileName(GetInstance())) + cFileXls, , , , "password") mi sono copiato i file help di visual basic da office ma non ho trovato nulla, non so se intendi questa per documentazione o c'è qualche altro file? ciao, marzio