topic
stringlengths
1
63
text
stringlengths
1
577k
extractor de texto de un PDF
si ya lo pare de pronto inicio a escucharse el audio del texto del PDf que me mandaste pero no creo el TXT <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: --> Saluditos <!-- s:wink: --><img src="{SMILIES_PATH}/icon_wink.gif" alt=":wink:" title="Wink" /><!-- s:wink: -->
extractor de texto de un PDF
El fichero debe estar en el directorio raiz de C: Puedes cambiar el lugar en donde quieras que se cree modificando mi programa, busca por CurDrive()
extractor de texto de un PDF
si el archivito pdf esta en c: <!-- s:? --><img src="{SMILIES_PATH}/icon_confused.gif" alt=":?" title="Confused" /><!-- s:? --> pero sigo escuchándolo y si uso otro pdf se atora <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: --> Saluditos <!-- s:wink: --><img src="{SMILIES_PATH}/icon_wink.gif" alt=":wink:" title="Wink" /><!-- s:wink: -->
extractor de texto de un PDF
El que lo lea es algo que no es necesario, lo hice solo por probarlo, con llamar a la funcion GetText() consigues que se cree el fichero de texto
extractor de texto de un PDF
Super <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> en este momento lo copio y haré pruebas <!-- s:mrgreen: --><img src="{SMILIES_PATH}/icon_mrgreen.gif" alt=":mrgreen:" title="Mr. Green" /><!-- s:mrgreen: --> y te comento <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> eres mi SUPERMAN [img:joldglxs]https&#58;//encrypted-tbn3&#46;gstatic&#46;com/images?q=tbn&#58;ANd9GcSZAmR1Mdrn4K9y42t8bzh1mACu_niEjT-lr1S9YYL4smIA_pGU[/img:joldglxs] Saluditos <!-- s:wink: --><img src="{SMILIES_PATH}/icon_wink.gif" alt=":wink:" title="Wink" /><!-- s:wink: -->
extractor de texto de un PDF
Me sale esto [code=fw:f1ssm23o]<div class="fw" id="{CB}" style="font-family: monospace;">Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HB_FUN_HB_CURDRIVE'</span> referenced</div>[/code:f1ssm23o] [code=fw:f1ssm23o]<div class="fw" id="{CB}" style="font-family: monospace;">Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_HB_FUN_HB_HEXTONUM'</span> referenced</div>[/code:f1ssm23o] les quite el HB_ ya no marca error pero el curl.txt sale en blanco sin nada <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: --> sera por quitar el HB_ o me faltara alguna lib del xharbour Saluditos <!-- s:wink: --><img src="{SMILIES_PATH}/icon_wink.gif" alt=":wink:" title="Wink" /><!-- s:wink: -->
extractor de texto de un PDF
Aida, Prueba con el pdf que te envio por email
extractor de texto de un PDF
Huyyyyyyyyyy el programita lee tu pdf pero lo estoy escuchando <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: --> esta largo escucho el contenido del PDF <!-- s:? --><img src="{SMILIES_PATH}/icon_confused.gif" alt=":?" title="Confused" /><!-- s:? --> por que pasas eso <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: --> Saluditos <!-- s:wink: --><img src="{SMILIES_PATH}/icon_wink.gif" alt=":wink:" title="Wink" /><!-- s:wink: -->
extractor de texto de un PDF
Paralo desde el administrador de tareas. Se puede parar por programación, pondré un ejemplo <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
extractor de texto de un PDF
Hola Me imagino que lo que se escucha es el curl.txt pero no lo encuentro en C: y por ningún lado como si estuviera invisible Saluditos <!-- s:wink: --><img src="{SMILIES_PATH}/icon_wink.gif" alt=":wink:" title="Wink" /><!-- s:wink: -->
extractor de texto de un PDF
Tienes permisos de escritura en C:\ ? Quita la llamada a hb_CurDrive() en el código y asi se creará en donde estes ejecutando el EXE, o ponle el path que desees
extractor de texto de un PDF
okis ya por fin lo puedo ver <!-- s:mrgreen: --><img src="{SMILIES_PATH}/icon_mrgreen.gif" alt=":mrgreen:" title="Mr. Green" /><!-- s:mrgreen: --> ahora probare con un documento de los que tengo que sacar datos y te comento ya use un pdf que me dieron de ejemplo y el txt sale con pura basura <!-- s:( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":(" title="Sad" /><!-- s:( --> Saluditos <!-- s:wink: --><img src="{SMILIES_PATH}/icon_wink.gif" alt=":wink:" title="Wink" /><!-- s:wink: -->
extractor de texto de un PDF
Aida, Algo que descubrí hace unos dias es que el contenido de un PDF es semi ascii, asi que puedes abrirlo con tu editor de código fuente (yo uso el visor del Total Commander) y busca por "/Filter /FlateDecode". Si no aparece, busca por "/Filter" y mira cual es la siguiente palabra. De un PDF a otro el "filtro" que se use puede cambiar. El código que yo he publicado es para analizar el filtro /FlateDecode solamente y aun asi en ese pdf que te envié, descubri que habia que hacer una conversion posterior. Igual en tus PDFs no hace falta. Junto al fichero TXT que se crea, se crea un archivo ".out" qu contiene el texto tal cual, sin ninguna interpretación. Igual ahi se ve bien.
extractor de texto de un PDF
a si esta "/Filter /FlateDecode/length 7146/type/xobject no me sale ningun achivito ".out" <!-- s:? --><img src="{SMILIES_PATH}/icon_confused.gif" alt=":?" title="Confused" /><!-- s:? --> Saluditos <!-- s:wink: --><img src="{SMILIES_PATH}/icon_wink.gif" alt=":wink:" title="Wink" /><!-- s:wink: -->
extractor de texto de un PDF
Aida, entre las librerías del maestro William Morales, tenemos una forma, de convertir pdf a txt una vez en texto se puede extraer los datos yo lo he hecho con archivos de hasta de 1500 paginas si te interesa estamos en el skype o envianos un correo. Saludos..
extractor de texto de un PDF
Aida, Si me envias por email uno de tus pdfs le echo un vistazo a ver si hay algo diferente <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
extractor de texto de un PDF
Hola Antonio <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> ya te mande el PDF a tu box privado de facebook <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) --> cuidate mucho <!-- s:mrgreen: --><img src="{SMILIES_PATH}/icon_mrgreen.gif" alt=":mrgreen:" title="Mr. Green" /><!-- s:mrgreen: --> Saluditos <!-- s:wink: --><img src="{SMILIES_PATH}/icon_wink.gif" alt=":wink:" title="Wink" /><!-- s:wink: -->
extractor de texto de un PDF
Aida, Prueba con esta versión. A mi me genera un fichero c:\curl.out en donde esta el texto <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> No copio el resultado aqui por confidencialidad de los datos, si quieres te lo envio por email o facebook [code=fw:2hztsll5]<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: #00C800;">local</span> oVoice := TOleAuto<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Sapi.SPVoice"</span> <span style="color: #000000;">&#41;</span> <br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> cText := GetText<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"c:<span style="color: #000000;">\c</span>url.pdf"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<br />&nbsp; &nbsp;oVoice:<span style="color: #000000;">Speak</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"c:<span style="color: #000000;">\c</span>url.txt"</span>, <span style="color: #000000;">4</span> <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #00C800;">function</span> GetText<span style="color: #000000;">&#40;</span> cPdfFile <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> cPDF := MemoRead<span style="color: #000000;">&#40;</span> cPdfFile <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> nStart := <span style="color: #00C800;">At</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"stream"</span>, cPDF <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> nEnd := <span style="color: #00C800;">At</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"endstream"</span>, cPDF <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> cBuf := Replicate<span style="color: #000000;">&#40;</span> Chr<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span>, <span style="color: #000000;">&#40;</span> nEnd - nStart <span style="color: #000000;">&#41;</span> * <span style="color: #000000;">10</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> cText, nResult, cTemp<br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> hFile, cResult := <span style="color: #ff0000;">""</span><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> n := <span style="color: #000000;">1</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> ! File<span style="color: #000000;">&#40;</span> hb_CurDrive<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">":<span style="color: #000000;">\"</span> + cFileNoExt( cPdfFile ) + "</span>.out<span style="color: #ff0000;">" )<br />&nbsp; &nbsp; &nbsp; hFile = fcreate( hb_CurDrive() + "</span>:\<span style="color: #ff0000;">" + cFileNoExt( cPdfFile ) + "</span>.out<span style="color: #ff0000;">", "</span>wb<span style="color: #ff0000;">" )<br />&nbsp; &nbsp;else<br />&nbsp; &nbsp; &nbsp; hFile = fopen( hb_CurDrive() + "</span>:\<span style="color: #ff0000;">" + cFileNoExt( cPdfFile ) + "</span>.out<span style="color: #ff0000;">", "</span>wb<span style="color: #ff0000;">" )<br />&nbsp; &nbsp;endif &nbsp; <br /><br />&nbsp; &nbsp;while "</span>stream<span style="color: #ff0000;">" $ cPDF<br />&nbsp; &nbsp; &nbsp; nStart = At( "</span>stream<span style="color: #ff0000;">", cPDF )<br />&nbsp; &nbsp; &nbsp; nEnd = At( "</span>endstream<span style="color: #ff0000;">", cPDF )<br />&nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; if nStart == 0<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cPDF = "</span><span style="color: #ff0000;">"<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;exit<br />&nbsp; &nbsp; &nbsp; endif<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; cBuf = Replicate( Chr( 0 ), ( nEnd - nStart ) * 10 )<br />&nbsp; &nbsp; &nbsp; cText = SubStr( cPDF, nStart + 6, nEnd - nStart )<br /><br />&nbsp; &nbsp; &nbsp; if Left( cText, 1 ) == Chr( 0x0d ) .and. ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;SubStr( cText, 2, 1 ) == Chr( 0x0a )<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nStart += 2<br />&nbsp; &nbsp; &nbsp; elseif Left( cText, 1 ) == Chr( 0x0a )<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nStart++<br />&nbsp; &nbsp; &nbsp; endif<br /><br />&nbsp; &nbsp; &nbsp; if SubStr( cText, nEnd - 2, 1 ) == Chr( 0x0d ) .and. ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;SubStr( cText, nEnd - 1, 1 ) == Chr( 0x0a )<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nEnd -= 2<br />&nbsp; &nbsp; &nbsp; elseif SubStr( cText, nEnd - 1, 1 ) == Chr( 0x0a )<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nEnd--<br />&nbsp; &nbsp; &nbsp; endif<br /><br />&nbsp; &nbsp; &nbsp; HB_ZUNCOMPRESS( SubStr( cPDF, nStart + 6, nEnd - nStart ), @cBuf, @nResult )<br />&nbsp; &nbsp; &nbsp; cTemp = cBuf<br />&nbsp; &nbsp; &nbsp; /*<br />&nbsp; &nbsp; &nbsp; while "</span><span style="color: #000000;">&#91;</span><span style="color: #ff0000;">" $ cTemp <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;// OutputDebugString( "</span>dentro del bucle Translate<span style="color: #ff0000;">" + CRLF )<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if ! "</span><span style="color: #000000;">&#93;</span><span style="color: #ff0000;">" $ cTemp<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; exit<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;endif &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cResult += Translate( SubStr( cTemp, At( "</span><span style="color: #000000;">&#91;</span><span style="color: #ff0000;">", cTemp ), At( "</span><span style="color: #000000;">&#93;</span><span style="color: #ff0000;">", cTemp ) - At( "</span><span style="color: #000000;">&#91;</span><span style="color: #ff0000;">", cTemp ) + 1 ) )<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cTemp = SubStr( cTemp, At( "</span><span style="color: #000000;">&#93;</span><span style="color: #ff0000;">", cTemp ) + 1 )<br />&nbsp; &nbsp; &nbsp; end &nbsp; <br />&nbsp; &nbsp; &nbsp; */<br /><br />&nbsp; &nbsp; &nbsp; // OutputDebugString( Str( Len( cPDF ) ) ) <br />&nbsp; &nbsp; &nbsp; // OutputDebugString( If( Empty( cPDF ), "</span> * Empty<span style="color: #ff0000;">", "</span> * not empty<span style="color: #ff0000;">" ) + CRLF )<br />&nbsp; &nbsp; &nbsp; ProcessOutput( hFile, cBuf )<br />&nbsp; &nbsp; &nbsp; cPDF = SubStr( cPDF, nEnd + Len( "</span>endstream<span style="color: #ff0000;">" ) + 1 )<br />&nbsp; &nbsp;end<br /><br />&nbsp; &nbsp;// OutputDebugString( "</span>done<span style="color: #ff0000;">" )<br />&nbsp; &nbsp;FClose( hFile )<br />&nbsp; &nbsp;MemoWrit( hb_CurDrive() + "</span>:\<span style="color: #ff0000;">" + cFileNoExt( cPdfFile ) + "</span>.txt<span style="color: #ff0000;">", cResult )<br /><br />return cResult<br /><br />function Translate( cText )<br /><br />&nbsp; &nbsp;local cCode, cResult := "</span><span style="color: #ff0000;">" <br />&nbsp; &nbsp;local nStart, nEnd, n<br />&nbsp; &nbsp;<br />&nbsp; &nbsp;cText = SubStr( cText, 2, Len( cText ) - 2 )<br />&nbsp; &nbsp;<br />&nbsp; &nbsp;while "</span><<span style="color: #ff0000;">" $ cText<br />&nbsp; &nbsp; &nbsp; nStart = At( "</span><<span style="color: #ff0000;">", cText )<br />&nbsp; &nbsp; &nbsp; nEnd = At( "</span>><span style="color: #ff0000;">", cText )<br />&nbsp; &nbsp; &nbsp; cCode = SubStr( cText, nStart + 1, nEnd - nStart - 1 )<br />&nbsp; &nbsp; &nbsp; for n = 1 to Len( cCode ) step 4<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cResult += Chr( hb_HextoNum( SubStr( cCode, n, 4 ) ) )<br />&nbsp; &nbsp; &nbsp; next &nbsp; <br />&nbsp; &nbsp; &nbsp; if nEnd != 0<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cText = SubStr( cText, nEnd + 1 )<br />&nbsp; &nbsp; &nbsp; else <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cText = "</span><span style="color: #ff0000;">"<br />&nbsp; &nbsp; &nbsp; endif &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp;end &nbsp; <br />&nbsp; &nbsp;<br />return cResult + "</span> <span style="color: #ff0000;">" &nbsp; &nbsp; <br /><br />#pragma BEGINDUMP<br /><br />#include <hbapi.h><br />#include <wtypes.h><br /><br />#define oldchar 15<br /><br />float ExtractNumber(const char* search, int lastcharoffset)<br />{<br />&nbsp; &nbsp; &nbsp; &nbsp; float flt=-1.0;<br />&nbsp; &nbsp; &nbsp; &nbsp; int i = lastcharoffset;<br />&nbsp; &nbsp; &nbsp; &nbsp; char buffer[oldchar+5];<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; while (i>0 && search[i]==' ') i--;<br />&nbsp; &nbsp; &nbsp; &nbsp; while (i>0 && (isdigit(search[i]) || search[i]=='.')) i--;<br />&nbsp; &nbsp; &nbsp; &nbsp; ZeroMemory(buffer,sizeof(buffer));<br />&nbsp; &nbsp; &nbsp; &nbsp; strncpy(buffer, search+i+1, lastcharoffset-i);<br />&nbsp; &nbsp; &nbsp; &nbsp; if (buffer[0] && sscanf(buffer, "</span>%f<span style="color: #ff0000;">", &flt))<br />&nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return flt;<br />&nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; &nbsp; return -1.0;<br />}<br />BOOL seen2(const char* search, char* recent)<br />{<br />if ( &nbsp; &nbsp;recent[oldchar-3]==search[0]<br />&nbsp; &nbsp; &nbsp;&& recent[oldchar-2]==search[1]<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&& (recent[oldchar-1]==' ' || recent[oldchar-1]==0x0d ||<br />recent[oldchar-1]==0x0a)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&& (recent[oldchar-4]==' ' || recent[oldchar-4]==0x0d ||<br />recent[oldchar-4]==0x0a)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;)<br />&nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return TRUE;<br />&nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; &nbsp; return FALSE;<br />}<br /><br />#include <hbapifs.h><br /><br />int iPos = 0;<br /><br />static int xputc( unsigned char c, FILE * fo )<br />{<br />&nbsp; &nbsp;return hb_fsWriteAt( ( HB_FHANDLE ) fo, &c, 1, iPos++ );<br />}<br /><br />void ProcessOutput(FILE* file, char* output, size_t len)<br />{<br />&nbsp; &nbsp; &nbsp; &nbsp; //Are we currently inside a text object?<br />&nbsp; &nbsp; &nbsp; &nbsp; BOOL intextobject = FALSE;<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; //Is the next character literal (e.g. <span style="color: #000000;">\\</span> to get a <span style="color: #000000;">\ </span>character or <span style="color: #000000;">\(</span> to get ( ):<br />&nbsp; &nbsp; &nbsp; &nbsp; BOOL nextliteral = FALSE;<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; //() Bracket nesting level. Text appears inside ()<br />&nbsp; &nbsp; &nbsp; &nbsp; int rbdepth = 0;<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; //Keep previous chars to get extract numbers etc.:<br />&nbsp; &nbsp; &nbsp; &nbsp; char oc[oldchar];<br />&nbsp; &nbsp; &nbsp; &nbsp; int j;<br />&nbsp; &nbsp; &nbsp; &nbsp; size_t i;<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; for (j=0; j<oldchar; j++) <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oc[j]=' ';<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; for( i=0; i<len; i++)<br />&nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; unsigned char c = output[i];<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (intextobject)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (rbdepth==0 && seen2("</span>TD<span style="color: #ff0000;">", oc))<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //Positioning.<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //See if a new line has to start or just a tab:<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; float num = ExtractNumber(oc,oldchar-5);<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (num>1.0)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; xputc(0x0d, file);<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; xputc(0x0a, file);<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (num<1.0)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; xputc('<span style="color: #000000;">\t</span>', file);<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (rbdepth==0 && seen2("</span>ET<span style="color: #ff0000;">", oc))<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //End of a text object, also go to a new line.<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; intextobject = FALSE;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; xputc(0x0d, file);<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; xputc(0x0a, file);<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; else if (c=='(' && rbdepth==0 && !nextliteral)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; int num;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //Start outputting text!<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; rbdepth=1;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //See if a space or tab (>1000) is called for by looking<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //at the number in front of (<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; num = ExtractNumber(oc,oldchar-1);<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (num>0)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (num>1000.0)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; xputc('<span style="color: #000000;">\t</span>', file);<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; else if (num>100.0)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; xputc(' ', file);<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; else if (c==')' && rbdepth==1 && !nextliteral)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //Stop outputting text<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; rbdepth=0;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; else if (rbdepth==1)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //Just a normal text character:<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (c=='<span style="color: #000000;">\\</span>' && !nextliteral)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //Only print out next character no matter what. Do not interpret.<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nextliteral = TRUE;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; else<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nextliteral = FALSE;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if ( ((c>=' ') && (c<='~')) || ((c>=128) && (c<255)) )<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; xputc(c, file);<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //Store the recent characters for when we have to go back for a number:<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; for (j=0; j<oldchar-1; j++) oc[j]=oc[j+1];<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oc[oldchar-1]=c;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (!intextobject)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (seen2("</span>BT<span style="color: #ff0000;">", oc))<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //Start of a text object:<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; intextobject = TRUE;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; &nbsp; }<br />}<br /><br />HB_FUNC( PROCESSOUTPUT )<br />{<br />&nbsp; &nbsp;ProcessOutput( ( FILE * ) hb_parnl( 1 ), ( char * ) hb_parc( 2 ), hb_parclen( 2 ) );<br />}<br /><br />#pragma ENDDUMP</span></div>[/code:2hztsll5]
extractor de texto de un PDF
Gracias Antonio mañana lo checo <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) --> Feliz día del Padre desde México para ti <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> Saluditos <!-- s:wink: --><img src="{SMILIES_PATH}/icon_wink.gif" alt=":wink:" title="Wink" /><!-- s:wink: -->
extractor de texto de un PDF
gracias <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
extractor de texto de un PDF
Hola, estoy intentando usar esta función para obtener el texto de ficheros PDF y me da estos errores al compilar con bcc 5.5. ?????????????????????????????????????????????????????????????????????????????? ? FiveWin for Harbour 7.11 - Nov. 2007 Harbour development power ?? ? (c) FiveTech, 1993-2007 for Microsoft Windows 95/98/NT/2000/ME/XP/Vista ?? ???????????????????????????????????????????????????????????????????????????????   ????????????????????????????????????????????????????????????????????????????? Compiling... Harbour devel build 1.1-1 Intl. Copyright (c) 1999-2007, <!-- m --><a class="postlink" href="http://www.harbour-project.org/">http://www.harbour-project.org/</a><!-- m --> Compiling 'pdftotxt.prg' and generating preprocessed output to 'pdftotxt.ppo'.. Lines 3760, Functions/Procedures 3 Generating C source output to 'pdftotxt.c'... Done. Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland pdftotxt.c: Error E2139 \FWH70\BCC55\INCLUDE\objidl.h 560: Declaration missing ; Error E2303 \FWH70\BCC55\INCLUDE\objidl.h 2352: Type name expected Error E2303 \FWH70\BCC55\INCLUDE\objidl.h 2357: Type name expected Error E2303 \FWH70\BCC55\INCLUDE\objidl.h 2366: Type name expected Error E2303 \FWH70\BCC55\INCLUDE\objidl.h 2501: Type name expected Error E2303 \FWH70\BCC55\INCLUDE\objidl.h 2514: Type name expected Error E2303 \FWH70\BCC55\INCLUDE\objidl.h 2539: Type name expected Error E2303 \FWH70\BCC55\INCLUDE\objidl.h 3610: Type name expected Error E2303 \FWH70\BCC55\INCLUDE\objidl.h 3616: Type name expected Error E2303 \FWH70\BCC55\INCLUDE\objidl.h 3882: Type name expected Error E2303 \FWH70\BCC55\INCLUDE\objidl.h 3896: Type name expected Error E2303 \FWH70\BCC55\INCLUDE\objidl.h 4072: Type name expected Error E2303 \FWH70\BCC55\INCLUDE\objidl.h 4131: Type name expected Error E2139 \FWH70\BCC55\INCLUDE\objidl.h 4333: Declaration missing ; Error E2139 \FWH70\BCC55\INCLUDE\objidl.h 4848: Declaration missing ; Error E2257 \FWH70\BCC55\INCLUDE\objidl.h 4853: , expected Error E2303 \FWH70\BCC55\INCLUDE\objidl.h 4988: Type name expected Error E2303 \FWH70\BCC55\INCLUDE\objidl.h 4996: Type name expected Error E2303 \FWH70\BCC55\INCLUDE\objidl.h 5179: Type name expected Error E2303 \FWH70\BCC55\INCLUDE\objidl.h 5195: Type name expected Error E2303 \FWH70\BCC55\INCLUDE\objidl.h 5403: Type name expected Error E2303 \FWH70\BCC55\INCLUDE\objidl.h 5408: Type name expected Error E2303 \FWH70\BCC55\INCLUDE\objidl.h 5413: Type name expected Error E2303 \FWH70\BCC55\INCLUDE\objidl.h 5417: Type name expected Error E2303 \FWH70\BCC55\INCLUDE\objidl.h 5481: Type name expected Error E2228 \FWH70\BCC55\INCLUDE\objidl.h 5481: Too many error or warning messages *** 26 errors in Compile ***
extraer cadena de campo timestamp
hola, como puedo extraer una cadena de campo timestamp, especificamente la parte de la fecha, con ADO se puede? gracias alejandro
extraer cadena de campo timestamp
hace poco dejaron esta funcion en el foro. [code=fw:1czj4hh0]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">FUNCTION</span> ttodate<span style="color: #000000;">&#40;</span> tDate <span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">RETURN</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><br /> </div>[/code:1czj4hh0]
extraer cadenas
Hola Amigos, Tengo un fichero como sigue: [code=fw:2mp5mglx]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #000000;">&#123;</span><br />&nbsp;<span style="color: #ff0000;">"kind"</span>: <span style="color: #ff0000;">"books#volumes"</span>,<br />&nbsp;<span style="color: #ff0000;">"totalItems"</span>: <span style="color: #000000;">1</span>,<br />&nbsp;<span style="color: #ff0000;">"items"</span>: <span style="color: #000000;">&#91;</span><br />&nbsp; <span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp;<span style="color: #ff0000;">"kind"</span>: <span style="color: #ff0000;">"books#volume"</span>,<br />&nbsp; &nbsp;<span style="color: #ff0000;">"id"</span>: <span style="color: #ff0000;">"Vm85LgEACAAJ"</span>,<br />&nbsp; &nbsp;<span style="color: #ff0000;">"etag"</span>: <span style="color: #ff0000;">"dQePHGu5guw"</span>,<br />&nbsp; &nbsp;<span style="color: #ff0000;">"selfLink"</span>: <span style="color: #ff0000;">"https://www.googleapis.com/books/v1/volumes/Vm85LgEACAAJ"</span>,<br />&nbsp; &nbsp;<span style="color: #ff0000;">"volumeInfo"</span>: <span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; <span style="color: #ff0000;">"title"</span>: <span style="color: #ff0000;">"La cura"</span>,<br />&nbsp; &nbsp; <span style="color: #ff0000;">"industryIdentifiers"</span>: <span style="color: #000000;">&#91;</span><br />&nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"type"</span>: <span style="color: #ff0000;">"ISBN_10"</span>,<br />&nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"identifier"</span>: <span style="color: #ff0000;">"8499895328"</span><br />&nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#125;</span>,<br />&nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"type"</span>: <span style="color: #ff0000;">"ISBN_13"</span>,<br />&nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"identifier"</span>: <span style="color: #ff0000;">"9788499895321"</span><br />&nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; <span style="color: #000000;">&#93;</span>,<br />&nbsp; &nbsp; <span style="color: #ff0000;">"pageCount"</span>: <span style="color: #000000;">432</span>,<br />&nbsp; &nbsp; <span style="color: #ff0000;">"printType"</span>: <span style="color: #ff0000;">"BOOK"</span>,<br />&nbsp; &nbsp; <span style="color: #ff0000;">"contentVersion"</span>: <span style="color: #ff0000;">"preview-1.0.0"</span>,<br />&nbsp; &nbsp; <span style="color: #ff0000;">"language"</span>: <span style="color: #ff0000;">"en"</span>,<br />&nbsp; &nbsp; <span style="color: #ff0000;">"previewLink"</span>: <span style="color: #ff0000;">"http://books.google.es/books?id=Vm85LgEACAAJ&dq=isbn:9788499895321&hl=&cd=1&source=gbs_api"</span>,<br />&nbsp; &nbsp; <span style="color: #ff0000;">"infoLink"</span>: <span style="color: #ff0000;">"http://books.google.es/books?id=Vm85LgEACAAJ&dq=isbn:9788499895321&hl=&source=gbs_api"</span>,<br />&nbsp; &nbsp; <span style="color: #ff0000;">"canonicalVolumeLink"</span>: <span style="color: #ff0000;">"http://books.google.es/books/about/La_cura.html?hl=&id=Vm85LgEACAAJ"</span><br />&nbsp; &nbsp;<span style="color: #000000;">&#125;</span>,<br />&nbsp; &nbsp;<span style="color: #ff0000;">"saleInfo"</span>: <span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; <span style="color: #ff0000;">"country"</span>: <span style="color: #ff0000;">"ES"</span>,<br />&nbsp; &nbsp; <span style="color: #ff0000;">"saleability"</span>: <span style="color: #ff0000;">"NOT_FOR_SALE"</span>,<br />&nbsp; &nbsp; <span style="color: #ff0000;">"isEbook"</span>: <span style="color: #00C800;">false</span><br />&nbsp; &nbsp;<span style="color: #000000;">&#125;</span>,<br />&nbsp; &nbsp;<span style="color: #ff0000;">"accessInfo"</span>: <span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; <span style="color: #ff0000;">"country"</span>: <span style="color: #ff0000;">"ES"</span>,<br />&nbsp; &nbsp; <span style="color: #ff0000;">"viewability"</span>: <span style="color: #ff0000;">"NO_PAGES"</span>,<br />&nbsp; &nbsp; <span style="color: #ff0000;">"embeddable"</span>: <span style="color: #00C800;">false</span>,<br />&nbsp; &nbsp; <span style="color: #ff0000;">"publicDomain"</span>: <span style="color: #00C800;">false</span>,<br />&nbsp; &nbsp; <span style="color: #ff0000;">"textToSpeechPermission"</span>: <span style="color: #ff0000;">"ALLOWED"</span>,<br />&nbsp; &nbsp; <span style="color: #ff0000;">"epub"</span>: <span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp;<span style="color: #ff0000;">"isAvailable"</span>: <span style="color: #00C800;">false</span><br />&nbsp; &nbsp; <span style="color: #000000;">&#125;</span>,<br />&nbsp; &nbsp; <span style="color: #ff0000;">"pdf"</span>: <span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp;<span style="color: #ff0000;">"isAvailable"</span>: <span style="color: #00C800;">false</span><br />&nbsp; &nbsp; <span style="color: #000000;">&#125;</span>,<br />&nbsp; &nbsp; <span style="color: #ff0000;">"webReaderLink"</span>: <span style="color: #ff0000;">"http://books.google.es/books/reader?id=Vm85LgEACAAJ&hl=&printsec=frontcover&output=reader&source=gbs_api"</span>,<br />&nbsp; &nbsp; <span style="color: #ff0000;">"accessViewStatus"</span>: <span style="color: #ff0000;">"NONE"</span><br />&nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br />&nbsp; <span style="color: #000000;">&#125;</span><br />&nbsp;<span style="color: #000000;">&#93;</span><br /><span style="color: #000000;">&#125;</span><br />&nbsp;</div>[/code:2mp5mglx] Necesito por ejemplo obtener el contenido de title, pageCount, etc que tienen una longitud variable. ¿Hay alguna función en Harbour que permita eso?. Muchas gracias.
extraer cadenas
elvira, Podrias hacerle un recorrido con el ttxtfile. Ejemplo oTxt := ttxtfile( "miarchivo.txt" ) WHILE !oTxt:eof() if '"title":' $ oTxt:cLine cTitle := substr(oTxt:cLine, at(":", oTxt:cLine)) elseif '"pageCount":' $ oTxt:cLine nPagCount := val(substr(oTxt:cLine, at(":", oTxt:cLine))) endif oTxt:skip() ENDDO Es al vuelo, esperemos te de una idea
extraer cadenas
Hola harbour cuenta con soporte nativo para Json aqui tienes un ejemplo el json que tienes lo inclui en un archivo llamado json.txt, la idea es tenerlo accesible como texto esta compilado con harbour directo sin usar ninguna lib de fivewin hbmk2 demo.prg [code=fw:22klp2tk]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">function</span> main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; <span style="color: #00C800;">local</span> cJson := memoread<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"json.txt"</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; <span style="color: #00C800;">local</span> hJson<br />&nbsp; &nbsp; <span style="color: #00C800;">local</span> item<br />&nbsp; &nbsp; hb_jsondecode<span style="color: #000000;">&#40;</span> cJson, @hJson <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; <span style="color: #00C800;">for</span> each item in hJson<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"items"</span><span style="color: #000000;">&#93;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; ? <span style="color: #ff0000;">"title: "</span>, item<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"volumeInfo"</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"title"</span><span style="color: #000000;">&#93;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; ? <span style="color: #ff0000;">"pageCount: "</span>, item<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"volumeInfo"</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"pageCount"</span><span style="color: #000000;">&#93;</span><br />&nbsp; &nbsp; end<br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span></div>[/code:22klp2tk]
extraer cadenas
Daniel Garcia-Gil, De maestros sin duda..
extraer cadenas
Queridos Amigos, Muchas gracias a ambos!!. No sabía lo del soporte JSON. No obstante, en este archivo no tengo items como en el anterior, ¿cómo entones puedo por favor hacer el bucle FOR IN EACH?. [code=fw:turfsuil]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #000000;">&#123;</span><br />&nbsp;<span style="color: #ff0000;">"kind"</span>: <span style="color: #ff0000;">"books#volume"</span>,<br />&nbsp;<span style="color: #ff0000;">"id"</span>: <span style="color: #ff0000;">"SFO2lwEACAAJ"</span>,<br />&nbsp;<span style="color: #ff0000;">"etag"</span>: <span style="color: #ff0000;">"a9baKSHSK9o"</span>,<br />&nbsp;<span style="color: #ff0000;">"selfLink"</span>: <span style="color: #ff0000;">"https://www.googleapis.com/books/v1/volumes/SFO2lwEACAAJ"</span>,<br />&nbsp;<span style="color: #ff0000;">"volumeInfo"</span>: <span style="color: #000000;">&#123;</span><br />&nbsp; <span style="color: #ff0000;">"title"</span>: <span style="color: #ff0000;">"CODIGO PENAL CON JURISPRUDENCIA"</span>,<br />&nbsp; <span style="color: #ff0000;">"authors"</span>: <span style="color: #000000;">&#91;</span><br />&nbsp; &nbsp;<span style="color: #ff0000;">"Morales García"</span><br />&nbsp; <span style="color: #000000;">&#93;</span>,<br />&nbsp; <span style="color: #ff0000;">"publisher"</span>: <span style="color: #ff0000;">"Aranzadi"</span>,<br />&nbsp; <span style="color: #ff0000;">"publishedDate"</span>: <span style="color: #ff0000;">"2012"</span>,<br />&nbsp; <span style="color: #ff0000;">"industryIdentifiers"</span>: <span style="color: #000000;">&#91;</span><br />&nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; <span style="color: #ff0000;">"type"</span>: <span style="color: #ff0000;">"ISBN_10"</span>,<br />&nbsp; &nbsp; <span style="color: #ff0000;">"identifier"</span>: <span style="color: #ff0000;">"8490142475"</span><br />&nbsp; &nbsp;<span style="color: #000000;">&#125;</span>,<br />&nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; <span style="color: #ff0000;">"type"</span>: <span style="color: #ff0000;">"ISBN_13"</span>,<br />&nbsp; &nbsp; <span style="color: #ff0000;">"identifier"</span>: <span style="color: #ff0000;">"9788490142479"</span><br />&nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br />&nbsp; <span style="color: #000000;">&#93;</span>,<br />&nbsp; <span style="color: #ff0000;">"pageCount"</span>: <span style="color: #000000;">2500</span>,<br />&nbsp; <span style="color: #ff0000;">"printType"</span>: <span style="color: #ff0000;">"BOOK"</span>,<br />&nbsp; <span style="color: #ff0000;">"categories"</span>: <span style="color: #000000;">&#91;</span><br />&nbsp; &nbsp;<span style="color: #ff0000;">"Education / General"</span><br />&nbsp; <span style="color: #000000;">&#93;</span>,<br />&nbsp; <span style="color: #ff0000;">"contentVersion"</span>: <span style="color: #ff0000;">"preview-1.0.0"</span>,<br />&nbsp; <span style="color: #ff0000;">"language"</span>: <span style="color: #ff0000;">"es"</span>,<br />&nbsp; <span style="color: #ff0000;">"previewLink"</span>: <span style="color: #ff0000;">"http://books.google.es/books?id=SFO2lwEACAAJ&hl=&source=gbs_api"</span>,<br />&nbsp; <span style="color: #ff0000;">"infoLink"</span>: <span style="color: #ff0000;">"http://books.google.es/books?id=SFO2lwEACAAJ&hl=&source=gbs_api"</span>,<br />&nbsp; <span style="color: #ff0000;">"canonicalVolumeLink"</span>: <span style="color: #ff0000;">"http://books.google.es/books/about/CODIGO_PENAL_CON_JURISPRUDENCIA.html?hl=&id=SFO2lwEACAAJ"</span><br />&nbsp;<span style="color: #000000;">&#125;</span>,<br />&nbsp;<span style="color: #ff0000;">"saleInfo"</span>: <span style="color: #000000;">&#123;</span><br />&nbsp; <span style="color: #ff0000;">"country"</span>: <span style="color: #ff0000;">"ES"</span>,<br />&nbsp; <span style="color: #ff0000;">"saleability"</span>: <span style="color: #ff0000;">"NOT_FOR_SALE"</span>,<br />&nbsp; <span style="color: #ff0000;">"isEbook"</span>: <span style="color: #00C800;">false</span><br />&nbsp;<span style="color: #000000;">&#125;</span>,<br />&nbsp;<span style="color: #ff0000;">"accessInfo"</span>: <span style="color: #000000;">&#123;</span><br />&nbsp; <span style="color: #ff0000;">"country"</span>: <span style="color: #ff0000;">"ES"</span>,<br />&nbsp; <span style="color: #ff0000;">"viewability"</span>: <span style="color: #ff0000;">"NO_PAGES"</span>,<br />&nbsp; <span style="color: #ff0000;">"embeddable"</span>: <span style="color: #00C800;">false</span>,<br />&nbsp; <span style="color: #ff0000;">"publicDomain"</span>: <span style="color: #00C800;">false</span>,<br />&nbsp; <span style="color: #ff0000;">"textToSpeechPermission"</span>: <span style="color: #ff0000;">"ALLOWED"</span>,<br />&nbsp; <span style="color: #ff0000;">"epub"</span>: <span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp;<span style="color: #ff0000;">"isAvailable"</span>: <span style="color: #00C800;">false</span><br />&nbsp; <span style="color: #000000;">&#125;</span>,<br />&nbsp; <span style="color: #ff0000;">"pdf"</span>: <span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp;<span style="color: #ff0000;">"isAvailable"</span>: <span style="color: #00C800;">false</span><br />&nbsp; <span style="color: #000000;">&#125;</span>,<br />&nbsp; <span style="color: #ff0000;">"webReaderLink"</span>: <span style="color: #ff0000;">"http://books.google.es/books/reader?id=SFO2lwEACAAJ&hl=&printsec=frontcover&output=reader&source=gbs_api"</span>,<br />&nbsp; <span style="color: #ff0000;">"accessViewStatus"</span>: <span style="color: #ff0000;">"NONE"</span><br />&nbsp;<span style="color: #000000;">&#125;</span><br /><span style="color: #000000;">&#125;</span><br />&nbsp;</div>[/code:turfsuil] Saludos muy cordiales.
extraer cadenas
Hola... entonces no necesitas hacerlo... en el ejemplo anterior lo que quise fue generalizar el proceso con FOR EACH, por si podrian venir mas datos en "items" en futuros JSON que pudieses leer Json simplemente es un hash, podemos ver en el primer ejemplo que el contenido de "items" es un arreglo, cuyo primer elemento tambien es un hash [code=fw:34arhi58]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #ff0000;">"items"</span>: <span style="color: #000000;">&#91;</span><br />  <span style="color: #000000;">&#123;</span><br />   <span style="color: #ff0000;">"kind"</span>: <span style="color: #ff0000;">"books#volume"</span>,<br />   <span style="color: #ff0000;">"id"</span>: <span style="color: #ff0000;">"Vm85LgEACAAJ"</span>,<br />   <span style="color: #ff0000;">"etag"</span>: <span style="color: #ff0000;">"dQePHGu5guw"</span>,<br />   <span style="color: #ff0000;">"selfLink"</span>: <span style="color: #ff0000;">"https://www.googleapis.com/books/v1/volumes/Vm85LgEACAAJ"</span>,<br />   <span style="color: #ff0000;">"volumeInfo"</span>: <span style="color: #000000;">&#123;</span><br />    <span style="color: #ff0000;">"title"</span>: <span style="color: #ff0000;">"La cura"</span>,<br />...</div>[/code:34arhi58] en una sola linea seria, sin el FOR EACH [code=fw:34arhi58]<div class="fw" id="{CB}" style="font-family: monospace;">hJson<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"items"</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"volumeInfo"</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"title"</span><span style="color: #000000;">&#93;</span></div>[/code:34arhi58] como ahora no existe ese arreglo asumo quedaria asi [code=fw:34arhi58]<div class="fw" id="{CB}" style="font-family: monospace;">hJson<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"volumeInfo"</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"title"</span><span style="color: #000000;">&#93;</span></div>[/code:34arhi58]
extraer cadenas
Daniel, Un millón de gracias, funciona fenomenal. Una última cosa, los acentos se ven así: [img:k3mgn6r0]http&#58;//i45&#46;tinypic&#46;com/1192m4g&#46;png[/img:k3mgn6r0] ¿Sabes por qué puede ser?. He probado con AnsiToOEm y OemToAnsi y nada, se ven mal. Salu2
extraer cadenas
Prueba con esto [code=fw:28mfef19]<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 HB_Lang_ES<br />REQUEST HB_CODEPAGE_ESWIN<br /><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> cJson := memoread<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"json.txt"</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; <span style="color: #00C800;">local</span> hJson<br />&nbsp; &nbsp; <span style="color: #00C800;">local</span> item<br />&nbsp; &nbsp; HB_LangSelect<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"ES"</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; HB_CDPSELECT<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"ESWIN"</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; hb_jsondecode<span style="color: #000000;">&#40;</span> cJson, @hJson <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; ? <span style="color: #ff0000;">"autor: "</span>, hJson<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"volumeInfo"</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"authors"</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span></div>[/code:28mfef19]
extraer cadenas
Muchas gracias. Hay que usar la función HB_UTF8TOSTR( cJson ) Has sido Daniel de una ayuda tremenda. Saludos
extraño comportamiento de GDIP
Hola a todos amigos de fivewin. Leyendo el foro mientras consultaba otra cosa, me apareció un post donde hablan de GDIP , no sabia de su existencia pero me pareció genial para mejorar la apariencia de los controles mientras se encuentran desactivados. Inmediatamente quise aplicarlo y lo hice, pero noto un extraño comportamiento. Cuando uso el gdip, la imagen del boton (formato PNG) se muestra borrosa, no tiene la misma nitidez que cuando no uso el gdip. Aca les dejo una imagen donde espero se pueda apreciar la diferencia de nitidez: [img:2athxu29]http&#58;//datanet&#46;space/fw/fotogdip&#46;jpg[/img:2athxu29] alguien sabe que puede estar ocurriendo? sera que la imagen debe tener cierto grado de resolucion? es lo unico que se me ocurre. Gracias de antemano.
extraño comportamiento de GDIP
Estimado, esto? [code=fw:1c0quniv]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #B900B9;">// C:\FWH..\SAMPLES\GERMANO.PRG</span><br /><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><br /><span style="color: #00C800;">STATIC</span> lChangeBtn := .T.<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> oDlg, oBtn, oBtn2, oBtn3, oBtn4, oFont, cTile := <span style="color: #ff0000;">"WHEN IN BTNBMP"</span><br /><br />&nbsp; &nbsp;SKinButtons<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFont &nbsp;<span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"Ms Sans Serif"</span> &nbsp;<span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">00</span>, <span style="color: #000000;">-14</span> BOLD<br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">TITLE</span> cTile <span style="color: #0000ff;">FONT</span> oFont <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">600</span>, <span style="color: #000000;">200</span><br /><br />&nbsp; &nbsp;oDlg:<span style="color: #000000;">lHelpIcon</span> := .F.<br />&nbsp; &nbsp;<br />&nbsp; &nbsp;@ <span style="color: #000000;">10</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">BTNBMP</span> oBtn FILE <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\b</span>tntouch.bmp"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">65</span>, <span style="color: #000000;">50</span> NOBORDER &nbsp;;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Change"</span> FLAT <span style="color: #000000;">2007</span> GDIPLUS <span style="color: #0000ff;">LEFT</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ACTION</span> CHANGE_BTN<span style="color: #000000;">&#40;</span> oBtn2, oBtn3 <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;oBtn:<span style="color: #000000;">LoadBitmaps</span><span style="color: #000000;">&#40;</span> ,,,,,,, <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\b</span>tntouch2.bmp"</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">10</span>, <span style="color: #000000;">80</span> <span style="color: #0000ff;">BTNBMP</span> oBtn2 FILE <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\P</span>NGS<span style="color: #000000;">\i</span>mage2.png"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">65</span>, <span style="color: #000000;">50</span> <span style="color: #0000ff;">LEFT</span> &nbsp;;<br />&nbsp; &nbsp; &nbsp; FLAT <span style="color: #000000;">2007</span> GDIPLUS NOROUND <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Con GDIP"</span> <span style="color: #0000ff;">WHEN</span><span style="color: #000000;">&#40;</span> lChangeBtn <span style="color: #000000;">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ACTION</span><span style="color: #000000;">&#40;</span> oDlg:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;oBtn2:<span style="color: #000000;">bClrGrad</span> = <span style="color: #000000;">&#123;</span>| lInvert | <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> ! lInvert, ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span> <span style="color: #000000;">&#123;</span> <span style="color: #000000;">0.25</span>, RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">245</span>, <span style="color: #000000;">245</span>, <span style="color: #000000;">235</span> <span style="color: #000000;">&#41;</span>, RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">250</span>, <span style="color: #000000;">250</span>, <span style="color: #000000;">245</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span>, ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span> <span style="color: #000000;">0.75</span>, RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">250</span>, <span style="color: #000000;">250</span>, <span style="color: #000000;">245</span> <span style="color: #000000;">&#41;</span>, RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">245</span>, <span style="color: #000000;">245</span>, <span style="color: #000000;">235</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span>, ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span> <span style="color: #000000;">&#123;</span> <span style="color: #000000;">0.25</span>, RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">250</span>, <span style="color: #000000;">250</span>, <span style="color: #000000;">245</span> <span style="color: #000000;">&#41;</span>, RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">245</span>, <span style="color: #000000;">245</span>, <span style="color: #000000;">235</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span>, ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span> <span style="color: #000000;">0.75</span>, RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">245</span>, <span style="color: #000000;">245</span>, <span style="color: #000000;">235</span> <span style="color: #000000;">&#41;</span>, RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">250</span>, <span style="color: #000000;">250</span>, <span style="color: #000000;">245</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp;oBtn2:<span style="color: #000000;">nClrBorder</span> := iif<span style="color: #000000;">&#40;</span> oBtn:<span style="color: #000000;">lMOver</span>, RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">219</span>, <span style="color: #000000;">230</span>, <span style="color: #000000;">244</span> <span style="color: #000000;">&#41;</span>, RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">219</span>, <span style="color: #000000;">230</span>, <span style="color: #000000;">244</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;oBtn2:<span style="color: #000000;">lCancel</span> := .T.<br /><br />&nbsp; &nbsp;oBtn2:<span style="color: #000000;">LoadBitmaps</span><span style="color: #000000;">&#40;</span> ,,,,,,, <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\P</span>NGS<span style="color: #000000;">\i</span>mage6.png"</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">// SIN GDIPLUS</span><br />&nbsp; &nbsp;@ <span style="color: #000000;">10</span>, <span style="color: #000000;">150</span> <span style="color: #0000ff;">BTNBMP</span> oBtn3 FILE <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\P</span>NGS<span style="color: #000000;">\i</span>mage3.png"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">65</span>, <span style="color: #000000;">50</span> <span style="color: #0000ff;">LEFT</span> &nbsp;;<br />&nbsp; &nbsp; &nbsp; FLAT &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;NOROUND <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Sin GDIP"</span> <span style="color: #0000ff;">WHEN</span><span style="color: #000000;">&#40;</span> lChangeBtn <span style="color: #000000;">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ACTION</span><span style="color: #000000;">&#40;</span> oDlg:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;oBtn3:<span style="color: #000000;">LoadBitmaps</span><span style="color: #000000;">&#40;</span> ,,,,,,, <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\P</span>NGS<span style="color: #000000;">\i</span>mage4.png"</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">10</span>, <span style="color: #000000;">220</span> <span style="color: #0000ff;">BTNBMP</span> oBtn4 FILE <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\P</span>NGS<span style="color: #000000;">\i</span>mage2.png"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">65</span>, <span style="color: #000000;">50</span> <span style="color: #0000ff;">LEFT</span> &nbsp;;<br />&nbsp; &nbsp; &nbsp; FLAT <span style="color: #000000;">2007</span> GDIPLUS NOROUND <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Show GDIP"</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ACTION</span> REFRESH_BTN<span style="color: #000000;">&#40;</span> oBtn2, oBtn3 <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;oBtn4:<span style="color: #000000;">LoadBitmaps</span><span style="color: #000000;">&#40;</span> ,,,,,,, <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\P</span>NGS<span style="color: #000000;">\i</span>mage1.png"</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span><br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><br /><span style="color: #00C800;">FUNCTION</span> CHANGE_BTN<span style="color: #000000;">&#40;</span> oBtn2, oBtn3 <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;lChangeBtn := .F.<br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">//oBtn2:Disable() // Hide()</span><br />&nbsp; &nbsp;oBtn2:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">//oBtn3:Disable() // Hide()</span><br />&nbsp; &nbsp;oBtn3:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">RETURN</span><span style="color: #000000;">&#40;</span> .T. <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">FUNCTION</span> REFRESH_BTN<span style="color: #000000;">&#40;</span> oBtn2, oBtn3 <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;lChangeBtn := .T.<br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">//oBtn2:Enable() // Hide()</span><br />&nbsp; &nbsp;oBtn2:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">//oBtn3:Enable() // Hide()</span><br />&nbsp; &nbsp;oBtn3:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">RETURN</span><span style="color: #000000;">&#40;</span> .T. <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #B900B9;">// FIN / END - <!-- e --><a href="mailto:kapiabafwh@gmail.com">kapiabafwh@gmail.com</a><!-- e --></span><br />&nbsp;</div>[/code:1c0quniv] Regards, saludos.
extraño comportamiento de GDIP
Estimado amigo Joao, Gracias por la ayuda, Las imagenes, las tomo desde un archivo de recursos (rc) no desde el dico duro. ¿Será ese el problema?
extraño comportamiento de GDIP
creo que no. envia-me el archivo.rc para pruebas. Saludos.
extraño comportamiento de GDIP
Joao, Ya probé con .JPG y .BMP El comportamiento es el mismo, la imagen se ve borrosa. Gracias igualmente, seguire buscando.
extraño comportamiento de GDIP
[quote="JoseAlvarez":3858djr1]Joao, Ya probé con .JPG y .BMP El comportamiento es el mismo, la imagen se ve borrosa. Gracias igualmente, seguire buscando.[/quote:3858djr1] Voy probar. Saludos.
extraño comportamiento de GDIP
José, hazlo así, según el ejemplo en el enlace de descarga, es sencillo hacerlo directamente en el archivo .rc. Modifique la CLASE BITMAP.PRG de su versión, según el modelo que le envié en el ejemplo. Download completo en mi Mega Upload: [url:13iky2o2]https&#58;//mega&#46;nz/file/0JdikKhb#xyLex9_521pWMAvTJs3fDi-2l31-nn2g7qDhow53Vy8[/url:13iky2o2] Regards, saludos.
extraño comportamiento de GDIP
Estimado, use una .BMP ó .JPG: [url:13s0pt5a]https&#58;//forums&#46;fivetechsupport&#46;com/viewtopic&#46;php?f=6&t=20005&p=105549&hilit=jpg+en+fichero+rc#p105549[/url:13s0pt5a] No me gusta RCDATA. Más gusto és gusto. Saludos.
extraño comportamiento de GDIP
Estimado joao. Muchas gracias nuevamente por tu amabilidad y ayuda. Ok, voy a probar con JPG. Use PNG porque en los post referentes a Gdip recomiendan usar PNG
fWH 12.11 broken compatibility
Antonio I have 3 compatibility problems (so far) moving from fwh 11.4 to fwh 12.11 1. Combobox hanging the program when using an array..... i will put a sample later today 2. Get with readonly , colours not drawn correct Ex : REDEFINE GET XCOEFFR ID 206 OF ODLG PICTURE "@Z 99.9999" READONLY COLOR CLR_GREEN,CLR_WHITE will never draw the colours unless you click in the cell.... dialogs are transparent 3. Btnbmp colours again try OBTN:SETCOLOR(clr_white,clr_green) it will never work only displaying black for background whatever colour we chose I have restored my fwh tget prg from 11.4 (i have hundreds of gets not working properly anymore), combobox reset from 11.4 also and still i have the btnbmp problem Waiting to hear from you Richard
fWH 12.11 broken compatibility
Richard, In order to use colors on a READONLY Get this code is required: REDEFINE GET oGet VAR nVal ID 101 OF oDlg READONLY COLOR CLR_GREEN, CLR_BLUE oGet:lDisColors = .F. Unless lDisColors value is changed, colors will not be shown richard.prg [code=fw:jix93ne4]<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: #00C800;">local</span> oDlg, oGet, nVal := <span style="color: #000000;">123</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">RESOURCE</span> <span style="color: #ff0000;">"Test"</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">GET</span> oGet <span style="color: #0000ff;">VAR</span> nVal <span style="color: #0000ff;">ID</span> <span style="color: #000000;">101</span> <span style="color: #0000ff;">OF</span> oDlg READONLY <span style="color: #0000ff;">COLOR</span> CLR_GREEN, CLR_BLUE<br /><br />&nbsp; &nbsp;oGet:<span style="color: #000000;">lDisColors</span> = .F.<br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span></div>[/code:jix93ne4] richard.rc [code=fw:jix93ne4]<div class="fw" id="{CB}" style="font-family: monospace;">TEST <span style="color: #0000ff;">DIALOG</span> <span style="color: #000000;">61</span>, <span style="color: #000000;">39</span>, <span style="color: #000000;">194</span>, <span style="color: #000000;">119</span><br /><span style="color: #0000ff;">STYLE</span> DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU<br />CAPTION <span style="color: #ff0000;">"Test"</span><br /><span style="color: #0000ff;">FONT</span> <span style="color: #000000;">8</span>, <span style="color: #ff0000;">"MS Sans Serif"</span><br /><span style="color: #000000;">&#123;</span><br />&nbsp;EDITTEXT <span style="color: #000000;">101</span>, <span style="color: #000000;">44</span>, <span style="color: #000000;">25</span>, <span style="color: #000000;">106</span>, <span style="color: #000000;">15</span>, WS_BORDER | WS_VSCROLL | WS_TABSTOP<br />&nbsp;DEFPUSHBUTTON <span style="color: #ff0000;">"OK"</span>, IDOK, <span style="color: #000000;">12</span>, <span style="color: #000000;">96</span>, <span style="color: #000000;">50</span>, <span style="color: #000000;">14</span><br />&nbsp;PUSHBUTTON <span style="color: #ff0000;">"Cancel"</span>, IDCANCEL, <span style="color: #000000;">72</span>, <span style="color: #000000;">96</span>, <span style="color: #000000;">50</span>, <span style="color: #000000;">14</span><br />&nbsp;PUSHBUTTON <span style="color: #ff0000;">"Help"</span>, IDHELP, <span style="color: #000000;">132</span>, <span style="color: #000000;">96</span>, <span style="color: #000000;">50</span>, <span style="color: #000000;">14</span><br /><span style="color: #000000;">&#125;</span></div>[/code:jix93ne4]
fWH 12.11 broken compatibility
This example uses a combobox with an array and it is working fine: richard2.prg [code=fw:2szm1pwi]<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: #00C800;">local</span> oDlg, oCbx, nValue<br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">1</span>, <span style="color: #000000;">1</span> <span style="color: #0000ff;">COMBOBOX</span> oCbx <span style="color: #0000ff;">VAR</span> nValue <span style="color: #0000ff;">ITEMS</span> <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"One"</span>, <span style="color: #ff0000;">"Two"</span>, <span style="color: #ff0000;">"Three"</span> <span style="color: #000000;">&#125;</span> <span style="color: #0000ff;">OF</span> oDlg<br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">3</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"Ok"</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">ACTION</span> oDlg:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span></div>[/code:2szm1pwi]
fWH 12.11 broken compatibility
Richard, And this example uses a BTNBMP with defined colors: richard3.prg [code=fw:271shu4s]<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: #00C800;">local</span> oDlg, oCbx, nValue, oBtn<br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">1</span>, <span style="color: #000000;">1</span> <span style="color: #0000ff;">COMBOBOX</span> oCbx <span style="color: #0000ff;">VAR</span> nValue <span style="color: #0000ff;">ITEMS</span> <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"One"</span>, <span style="color: #ff0000;">"Two"</span>, <span style="color: #ff0000;">"Three"</span> <span style="color: #000000;">&#125;</span> <span style="color: #0000ff;">OF</span> oDlg<br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">12</span>, <span style="color: #000000;">50</span> <span style="color: #0000ff;">BTNBMP</span> oBtn <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">15</span>, <span style="color: #000000;">15</span> <span style="color: #0000ff;">OF</span> oDlg NOBORDER<br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">3</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"Ok"</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">ACTION</span> oDlg:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span> ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">INIT</span> oBtn:<span style="color: #000000;">SetColor</span><span style="color: #000000;">&#40;</span> CLR_WHITE, CLR_GREEN <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span></div>[/code:271shu4s]
fWH 12.11 broken compatibility
Antonio Ok for discolors , it would have been nice to initiate it in tget as .f. , compatibility would have been kept, I have done so Richard
fWH 12.11 broken compatibility
Antonio Can you try this sample ? If you comment the combobox it will be ok , the combobox makes it hang [code=fw:3qrgkgdo]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br /><span style="color: #00D7D7;">#INCLUDE</span> <span style="color: #ff0000;">"FIVEWIN.CH"</span><br /><br />REQUEST DBFCDX,DBFFPT<br />REQUEST DESCEND<br />REQUEST ORDKeyno, ORDKeycount,ORDKEYGOTO<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> LSAVE &nbsp; &nbsp; := .F. , ;<br />&nbsp; &nbsp; &nbsp; ODSKT &nbsp; &nbsp; := .F., ;<br />&nbsp; &nbsp; &nbsp; OCTA &nbsp; &nbsp; &nbsp;:= .F., ;<br />&nbsp; &nbsp; &nbsp; ICTA &nbsp; &nbsp; &nbsp;:= <span style="color: #000000;">1</span>, ;<br />&nbsp; &nbsp; &nbsp; ALIB &nbsp; &nbsp; &nbsp;:= <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span>, ;<br />&nbsp; &nbsp; &nbsp; TOBJ &nbsp; &nbsp; &nbsp;:= <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span>, ;<br />&nbsp; &nbsp; &nbsp; OFIC &nbsp; &nbsp; &nbsp;:= <span style="color: #000000;">1</span>, ;<br />&nbsp; &nbsp; &nbsp; OLECT &nbsp; &nbsp; := <span style="color: #ff0000;">" "</span>, ;<br />&nbsp; &nbsp; &nbsp; ODLG,ORAD<br /><br />RDDSETDEFAULT<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"DBFCDX"</span><span style="color: #000000;">&#41;</span><br /><br />SET DATE FRENCH<br />SET CENTURY <span style="color: #0000ff;">ON</span><br />SET FIXED <span style="color: #0000ff;">ON</span><br />SET DBFLOCKSCHEME <span style="color: #0000ff;">TO</span> <span style="color: #000000;">2</span> &nbsp; <span style="color: #B900B9;">// clp53</span><br />SET AUTOPEN <span style="color: #0000ff;">ON</span><br />SET STRICTREAD OFF &nbsp;<span style="color: #B900B9;">// pour accélérer la réorg dbfcdx</span><br /><br />set<span style="color: #000000;">&#40;</span>_SET_INSERT, .T.<span style="color: #000000;">&#41;</span><br /><br />SET EPOCH <span style="color: #0000ff;">TO</span> <span style="color: #0000ff;">YEAR</span><span style="color: #000000;">&#40;</span>DATE<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span> - <span style="color: #000000;">80</span><br /><br />AADD<span style="color: #000000;">&#40;</span>ALIB,<span style="color: #ff0000;">"1 SAGE COALA ® Format Excel"</span><span style="color: #000000;">&#41;</span><br />AADD<span style="color: #000000;">&#40;</span>ALIB,<span style="color: #ff0000;">"2 CEGID ® Format ASCII"</span><span style="color: #000000;">&#41;</span><br />AADD<span style="color: #000000;">&#40;</span>ALIB,<span style="color: #ff0000;">"3 QUADRA ® Format ASCII"</span><span style="color: #000000;">&#41;</span><br />AADD<span style="color: #000000;">&#40;</span>ALIB,<span style="color: #ff0000;">"4 CCMX ® Format ASCII"</span><span style="color: #000000;">&#41;</span><br />AADD<span style="color: #000000;">&#40;</span>ALIB,<span style="color: #ff0000;">"5 CIEL ® Format ASCII"</span><span style="color: #000000;">&#41;</span><br />AADD<span style="color: #000000;">&#40;</span>ALIB,<span style="color: #ff0000;">"6 CEGID ® Format Excel"</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">FOR</span> ICTA = <span style="color: #000000;">1</span> <span style="color: #0000ff;">TO</span> <span style="color: #000000;">7</span><br />&nbsp; &nbsp;AADD<span style="color: #000000;">&#40;</span>TOBJ,<span style="color: #00C800;">NIL</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">NEXT</span><br />ICTA := <span style="color: #000000;">1</span><br /><br /><span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> ODLG <span style="color: #0000ff;">RESOURCE</span> <span style="color: #ff0000;">"BALANCEXP"</span> <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"this is a test"</span> TRANSPARENT<br /><br /><span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">RADIO</span> ORAD <span style="color: #0000ff;">VAR</span> OFIC <span style="color: #0000ff;">ID</span> <span style="color: #000000;">201</span>,<span style="color: #000000;">202</span>,<span style="color: #000000;">205</span> <span style="color: #0000ff;">OF</span> ODLG<br /><span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">CHECKBOX</span> ODSKT &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">ID</span> <span style="color: #000000;">203</span> &nbsp; &nbsp; <span style="color: #0000ff;">OF</span> ODLG <span style="color: #0000ff;">COLOR</span> CLR_GREEN <span style="color: #0000ff;">WHEN</span> OFIC = <span style="color: #000000;">2</span><br /><span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">GET</span> &nbsp; &nbsp; &nbsp;OLECT &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">ID</span> <span style="color: #000000;">204</span> &nbsp; &nbsp; <span style="color: #0000ff;">OF</span> ODLG <span style="color: #0000ff;">PICTURE</span> <span style="color: #ff0000;">"!"</span> <span style="color: #0000ff;">WHEN</span> ODSKT .AND. OFIC = <span style="color: #000000;">2</span><br /><br /><span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">CHECKBOX</span> TOBJ<span style="color: #000000;">&#91;</span><span style="color: #000000;">01</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">VAR</span> OCTA &nbsp;<span style="color: #0000ff;">ID</span> <span style="color: #000000;">206</span> &nbsp;<span style="color: #0000ff;">OF</span> ODLG <span style="color: #0000ff;">COLOR</span> CLR_GREEN &nbsp;<span style="color: #B900B9;">// INTERFACE EXTERNE</span><br /><br /><span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">COMBOBOX</span> TOBJ<span style="color: #000000;">&#91;</span><span style="color: #000000;">02</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">VAR</span> ICTA <span style="color: #0000ff;">ITEMS</span> ALIB <span style="color: #0000ff;">ID</span> <span style="color: #000000;">207</span> <span style="color: #0000ff;">OF</span> ODLG ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">WHEN</span> OCTA <span style="color: #0000ff;">UPDATE</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">CHANGE</span> ODLG:<span style="color: #0000ff;">UPDATE</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">CHECKBOX</span> TOBJ<span style="color: #000000;">&#91;</span><span style="color: #000000;">04</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">VAR</span> TOBJ<span style="color: #000000;">&#91;</span><span style="color: #000000;">05</span><span style="color: #000000;">&#93;</span> &nbsp;<span style="color: #0000ff;">ID</span> <span style="color: #000000;">208</span> &nbsp; &nbsp; <span style="color: #0000ff;">OF</span> ODLG <span style="color: #0000ff;">COLOR</span> CLR_GREEN &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// EXPORTER UN SEUL JOURNAL</span><br /><span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">GET</span> &nbsp; &nbsp; &nbsp;TOBJ<span style="color: #000000;">&#91;</span><span style="color: #000000;">06</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">VAR</span> TOBJ<span style="color: #000000;">&#91;</span><span style="color: #000000;">07</span><span style="color: #000000;">&#93;</span> &nbsp;<span style="color: #0000ff;">ID</span> <span style="color: #000000;">209</span> &nbsp; &nbsp; <span style="color: #0000ff;">OF</span> ODLG <span style="color: #0000ff;">PICTURE</span> <span style="color: #ff0000;">"!!"</span> <span style="color: #0000ff;">WHEN</span> TOBJ<span style="color: #000000;">&#91;</span><span style="color: #000000;">05</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">UPDATE</span> &nbsp;<span style="color: #B900B9;">// CODE JOURNAL</span><br /><br /><span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">BUTTON</span> TOBJ<span style="color: #000000;">&#91;</span><span style="color: #000000;">03</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">ID</span> <span style="color: #000000;">03</span> <span style="color: #0000ff;">OF</span> ODLG <span style="color: #0000ff;">ACTION</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><br /><br /><span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #0000ff;">ID</span> <span style="color: #000000;">01</span> <span style="color: #0000ff;">OF</span> ODLG <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">&#40;</span>LSAVE := .T., ODLG:<span style="color: #000000;">END</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #0000ff;">ID</span> <span style="color: #000000;">02</span> <span style="color: #0000ff;">OF</span> ODLG <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">&#40;</span>LSAVE := .F., ODLG:<span style="color: #000000;">END</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> ODLG <span style="color: #0000ff;">CENTERED</span><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br />&nbsp;</div>[/code:3qrgkgdo] [code=fw:3qrgkgdo]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #B900B9;">// RESOURCE SCRIPT generated by "Pelles C for Windows, version 5.00".</span><br /><br /><span style="color: #00D7D7;">#include</span> <windows.h><br /><span style="color: #00D7D7;">#include</span> <commctrl.h><br /><span style="color: #00D7D7;">#include</span> <richedit.h><br /><br />LANGUAGE LANG_FRENCH,SUBLANG_FRENCH<br /><br />BALANCEXP <span style="color: #0000ff;">DIALOG</span> DISCARDABLE <span style="color: #000000;">9</span>, <span style="color: #000000;">15</span>, <span style="color: #000000;">281</span>, <span style="color: #000000;">189</span><br /><span style="color: #0000ff;">STYLE</span> WS_POPUP|WS_CAPTION|WS_SYSMENU<br />CAPTION <span style="color: #ff0000;">"Balance comptable exportée "</span><br /><span style="color: #0000ff;">FONT</span> <span style="color: #000000;">10</span>, <span style="color: #ff0000;">"Tahoma"</span><br /><span style="color: #000000;">&#123;</span><br />&nbsp; CONTROL <span style="color: #ff0000;">"Format du fichier exporté"</span>, <span style="color: #000000;">401</span>, <span style="color: #ff0000;">"Static"</span>, SS_CENTER|WS_BORDER|WS_GROUP, <span style="color: #000000;">89</span>, <span style="color: #000000;">1</span>, <span style="color: #000000;">102</span>, <span style="color: #000000;">12</span><br />&nbsp; CONTROL <span style="color: #ff0000;">"Excel"</span>, <span style="color: #000000;">201</span>, <span style="color: #ff0000;">"Button"</span>, BS_RADIOBUTTON|BS_LEFTTEXT, <span style="color: #000000;">1</span>, <span style="color: #000000;">19</span>, <span style="color: #000000;">38</span>, <span style="color: #000000;">11</span><br />&nbsp; CONTROL <span style="color: #ff0000;">"ASCII (TXT)"</span>, <span style="color: #000000;">202</span>, <span style="color: #ff0000;">"Button"</span>, BS_RADIOBUTTON|BS_LEFTTEXT, <span style="color: #000000;">45</span>, <span style="color: #000000;">19</span>, <span style="color: #000000;">51</span>, <span style="color: #000000;">11</span><br />&nbsp; CONTROL <span style="color: #ff0000;">"Copier sur support externe (Ascii Uniquement)"</span>, <span style="color: #000000;">203</span>, <span style="color: #ff0000;">"Button"</span>, BS_AUTOCHECKBOX|WS_TABSTOP, <span style="color: #000000;">1</span>, <span style="color: #000000;">58</span>, <span style="color: #000000;">166</span>, <span style="color: #000000;">12</span><br />&nbsp; CONTROL <span style="color: #ff0000;">"Identification du lecteur (Poste de travail)"</span>, <span style="color: #000000;">402</span>, <span style="color: #ff0000;">"Static"</span>, SS_CENTER|WS_BORDER|WS_GROUP, <span style="color: #000000;">170</span>, <span style="color: #000000;">49</span>, <span style="color: #000000;">79</span>, <span style="color: #000000;">30</span><br />&nbsp; CONTROL <span style="color: #ff0000;">""</span>, <span style="color: #000000;">204</span>, <span style="color: #ff0000;">"Edit"</span>, WS_BORDER|WS_TABSTOP, <span style="color: #000000;">256</span>, <span style="color: #000000;">56</span>, <span style="color: #000000;">16</span>, <span style="color: #000000;">12</span><br />&nbsp; CONTROL <span style="color: #ff0000;">"OK"</span>, IDOK, <span style="color: #ff0000;">"Button"</span>, BS_DEFPUSHBUTTON|WS_TABSTOP, <span style="color: #000000;">2</span>, <span style="color: #000000;">170</span>, <span style="color: #000000;">35</span>, <span style="color: #000000;">18</span><br />&nbsp; CONTROL <span style="color: #ff0000;">"Annuler"</span>, IDCANCEL, <span style="color: #ff0000;">"Button"</span>, WS_TABSTOP, <span style="color: #000000;">244</span>, <span style="color: #000000;">170</span>, <span style="color: #000000;">35</span>, <span style="color: #000000;">18</span><br />&nbsp; CONTROL <span style="color: #ff0000;">"Format Fichier Export"</span>, <span style="color: #000000;">3</span>, <span style="color: #ff0000;">"Button"</span>, WS_TABSTOP, <span style="color: #000000;">176</span>, <span style="color: #000000;">18</span>, <span style="color: #000000;">99</span>, <span style="color: #000000;">18</span><br />&nbsp; CONTROL <span style="color: #ff0000;">"Interface vers Logiciel de Comptabilité Agréé"</span>, <span style="color: #000000;">206</span>, <span style="color: #ff0000;">"Button"</span>, BS_AUTOCHECKBOX|WS_TABSTOP, <span style="color: #000000;">1</span>, <span style="color: #000000;">83</span>, <span style="color: #000000;">161</span>, <span style="color: #000000;">15</span><br />&nbsp; CONTROL <span style="color: #ff0000;">"DBF"</span>, <span style="color: #000000;">205</span>, <span style="color: #ff0000;">"Button"</span>, BS_RADIOBUTTON|BS_LEFTTEXT, <span style="color: #000000;">105</span>, <span style="color: #000000;">19</span>, <span style="color: #000000;">51</span>, <span style="color: #000000;">11</span><br />&nbsp; <span style="color: #0000ff;">COMBOBOX</span> <span style="color: #000000;">207</span>, <span style="color: #000000;">48</span>, <span style="color: #000000;">99</span>, <span style="color: #000000;">185</span>, <span style="color: #000000;">81</span>, CBS_DROPDOWN | WS_TABSTOP&nbsp; <br />&nbsp; CONTROL <span style="color: #ff0000;">"Exporter Seulement ce Journal"</span>, <span style="color: #000000;">208</span>, <span style="color: #ff0000;">"Button"</span>, BS_AUTOCHECKBOX|WS_TABSTOP, <span style="color: #000000;">0</span>, <span style="color: #000000;">152</span>, <span style="color: #000000;">128</span>, <span style="color: #000000;">12</span><br />&nbsp; CONTROL <span style="color: #ff0000;">""</span>, <span style="color: #000000;">209</span>, <span style="color: #ff0000;">"Edit"</span>, WS_BORDER|WS_TABSTOP, <span style="color: #000000;">136</span>, <span style="color: #000000;">152</span>, <span style="color: #000000;">32</span>, <span style="color: #000000;">11</span><br /><span style="color: #000000;">&#125;</span><br />&nbsp;</div>[/code:3qrgkgdo]
fWH 12.11 broken compatibility
I have problems with combobox FWH12.11 related to nAt data, restored to combobox 12.09 Works fine.
fWH 12.11 broken compatibility
Richard, Please remove the UPDATE clause from the COMBOBOX or remove the ON CHANGE, as it generates an endless loop: [code=fw:1oj3mfaw]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">COMBOBOX</span> TOBJ<span style="color: #000000;">&#91;</span><span style="color: #000000;">02</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">VAR</span> ICTA <span style="color: #0000ff;">ITEMS</span> ALIB <span style="color: #0000ff;">ID</span> <span style="color: #000000;">207</span> <span style="color: #0000ff;">OF</span> ODLG ;<br />         <span style="color: #0000ff;">WHEN</span> OCTA <span style="color: #B900B9;">/* UPDATE */</span> ;<br />         <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">CHANGE</span> ODLG:<span style="color: #0000ff;">UPDATE</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /> </div>[/code:1oj3mfaw] or [code=fw:1oj3mfaw]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">COMBOBOX</span> TOBJ<span style="color: #000000;">&#91;</span><span style="color: #000000;">02</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">VAR</span> ICTA <span style="color: #0000ff;">ITEMS</span> ALIB <span style="color: #0000ff;">ID</span> <span style="color: #000000;">207</span> <span style="color: #0000ff;">OF</span> ODLG ;<br />         <span style="color: #0000ff;">WHEN</span> OCTA <span style="color: #0000ff;">UPDATE</span> <br />         <span style="color: #B900B9;">// ON CHANGE ODLG:UPDATE()</span><br /> </div>[/code:1oj3mfaw] Surely this is due to recent change proposed by Günther: <!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=3&t=25125&start=0">viewtopic.php?f=3&t=25125&start=0</a><!-- l --> Class TComboBox Method Set() evaluates bChange
fWH 12.11 broken compatibility
Antonio, this solution dont work for me... and I dont use update clause in combobox, class combobox dont have NAT var anymore? Work fine with fwh12.09. CODE: @ 0.25,len(oBtnbar:aControls)*4.1 COMBOBOX oComb VAR nComb ITEMS aOrders[1] OF oBtnBar FONT oFont; SIZE 80, 100 ON CHANGE (oDbf:setorder(aOrders[2,[u:3ubl5qvp][i:3ubl5qvp][b:3ubl5qvp]oComb:nat[/b:3ubl5qvp][/i:3ubl5qvp][/u:3ubl5qvp]]), oLbx:gotop(),oLbx:refresh(),oLbx:setfocus()) oComb:ctooltip := [Altera Ordenação Arquivo - Pesquisa] ERROR : Error Description: Error BASE/1004 Class: 'NIL' has no exported method: NAT [ 1] = U called by NAT(0) called by (b)P_CVENDEDORES(752) called by TCOMBOBOX:SET(475) called by TCOMBOBOX:DEFAULT(724) called by TCOMBOBOX:NEW(231)
fWH 12.11 broken compatibility
Norberto, Please try this: ::nAt instead of oComb:nat
fWH 12.11 broken compatibility
im out of class combobox , so :: dont work. Function test() include ... local oComb @ x,y COMBOBOX oComb ... in this point i can use only oComb:nat, because ::nat dont work. ... Return nil
fWH 12.11 broken compatibility
Norberto, "Self" is provided as a parameter of the ON CHANGE codeblock, so you could use ::nAt [{|Self|<uChange>}] oComb is not defined yet (you are using it before it has been assigned, thats why you get NIL: Error BASE/1004 Class: 'NIL' has no exported method: NAT
fWH 12.11 broken compatibility
Antonio, right, but after using your suggestion: Error Description: Error BASE/1004 Class: 'NIL' has no exported method: GOTOP [ 1] = U called by GOTOP(0) called by (b)P_CVENDEDORES(752) called by TCOMBOBOX:SET(475) this change in fwh12.11 broken compatility with thousand of lines... my system Works fine in 12.09.
fWH 12.11 broken compatibility
Is it related to oLbx ? Where and how is it defined ?
fWH 12.11 broken compatibility
Norberto, Please try to provide a small and self contained example to reproduce it here, thanks
fWH811 and ads error adsskipunique (urgente please)
Hi, i change my fwh to fwh811 and after this receive the error : Turbo Incremental Link 5.00 Copyright (c) 1997, 2000 BorlandError: Unresolved external 'AdsSkipUnique' referenced from RDDADS.LIB|ads1i use xharbour provided from fivetech and ads 80026, can someone help me?i already try antonio´s sugestion with #pragma, but dont work.thanks
fWH811 and ads error adsskipunique (urgente please)
NorburtoYou have to download the ADS 9 sdk from Sybase .. use the ace32.dll from the SDK and create your ace32.lib.Let me know if you have any problems.Rick Lipkin<!-- e --><a href="mailto:lipkinrm29063@yahoo.com">lipkinrm29063@yahoo.com</a><!-- e -->
fWH811 and ads error adsskipunique (urgente please)
Ola Noburto, vc tb pode pegar o rddads.lib de versoes anterior do xharbour que não tinha este problema e colocar em seu projeto no lugar da rddads.lib atual do xharbour, fiz isto aqui e não tive problema nenhum...AbraçosLuiz Fernando
fWH811 and ads error adsskipunique (urgente please)
norberto,ubicame en el MSN:<!-- e --><a href="mailto:wmormar@hotmail.com">wmormar@hotmail.com</a><!-- e -->y te envio lo que tengo, y funciona sin problemas.
fWH811 and ads error adsskipunique (urgente please)
Hi, thanks for all, i solve this problem download the xharbour cvs from 25/08/08, and compile all (xharbour, fwh, appl) with clause :SET ADS_LIB_VERSION=810SET HB_DIR_ADS=\_Lib\Ace\81026norberto
facebook error at top ?
Do you get a red "Error" at top of this pages ? It seems as Facebook has changed something and now it does not work.
facebook interface
I would like to know if it´s possible to program an interface directly from a fivewin-programm to facebook. It would be great to write a facebook „news feed“ („What´s on your mind?“-message) in a programm and this programm would automatically log into facebook an write the status-news feed there. The tool would help saving time because you could update facebook without having to go online and log in. Does anybody know something about that? Thanks in advance. Best regards, Otto
facebook interface
I made a website ( <!-- m --><a class="postlink" href="http://www.cartolinefree.it">http://www.cartolinefree.it</a><!-- m -->) and I made his page into facebook <!-- m --><a class="postlink" href="http://www.facebook.com/apps/application.php?id=155387364502151">http://www.facebook.com/apps/applicatio ... 7364502151</a><!-- m --> to have contacts with peoples - when you insert your subiscription the app save your data into mine archive all with php, mysql no fwh if you want info you must go here : <!-- m --><a class="postlink" href="http://www.facebook.com/?ref=logo#!/developers/">http://www.facebook.com/?ref=logo#!/developers/</a><!-- m --> <!-- m --><a class="postlink" href="http://developers.facebook.com/blog/post/429">http://developers.facebook.com/blog/post/429</a><!-- m -->
facebook.com/groups/modharbour.club
Dear friends, Since there is no modharbour Facebook group yet, I opened one today. I invite you all to join the group and contribute to enliven the group. Please report on your mod harbour projects, share your experiences, ask questions and help with your knowledge. I thank you in advance for your participation and look forward to a successful group. This is the link to the new group: <!-- m --><a class="postlink" href="https://www.facebook.com/groups/modharbour.club">https://www.facebook.com/groups/modharbour.club</a><!-- m --> Best regards, Otto
facebook.com/groups/modharbour.club
Dear friends, Since there is no modharbour Facebook group yet, I opened one today. I invite you all to join the group and contribute to enliven the group. Please report on your mod harbour projects, share your experiences, ask questions and help with your knowledge. I thank you in advance for your participation and look forward to a successful group. This is the link to the new group: <!-- m --><a class="postlink" href="https://www.facebook.com/groups/modharbour.club">https://www.facebook.com/groups/modharbour.club</a><!-- m --> Best regards, Otto
factura electronica
Saludos como obtengo la llave electrónica, en uno ejemplos que tengo viene una cadena en donde se llama llave electronica, pero estoy interesando quien contruye esta cadena.
factura electronica
Si se trata de la facturación electrónica en México, el SAT proporciona una firma electrónica o llave privada, archivo.Key y un certificado o llave pública archivo .Cer, estos archivos son necesarios para realizar cualquier trámite fiscal. Por tanto la facturación electrónica requiere de esos archivos para firmar los comprobantes fiscales. El SAT indica que con los datos del documento se debe generar un archivo XML codificado en UTF-8 y extraer una cadena delimitada por pipes '|', la cadena debe digerirse con el algoritmo MD5 y unirse con la llave pública pública, al resultado se le aplica el algoritmo de encriptado RSA y finalmente se codifica en Base 64 para obtener la firma o sello digital. Imagino que algo similar debe aplicarse en otros países toda vez que los documentos firmados (se supone) son válidos en cualquier lugar.
factura electronica
Saludos Colegas, alomejor este tema ya esta mas que visto, pero mi siguiente duda es esta, no se como planterlo, pero lo tengo que hacer, espero me entiendan, si quiero generan una factura electronica pero con el concepto de recibo por honorarios, tiene que ser difierente mi plantilla XML, a la de una factura Normal, en donde esta el emisor, receptor, conceptos, etc, espero que me puedan despejar despejar de esta duda Saludos Atte. Antonio D.
factura electronica
Antonio, Antes de poder responderte algo, 2 preguntas : ¿ Facturacion Electronica para que pais ? , es muy diferente facturar electronicamente para Chile, Brasil, España, Mexico, etc. ¿ Que clase de documento electronico quieres emitir ?, los los modelos de facturacion electronico hacen diferencia entre los tipos de documentos que controlan, por ejemplo aca en Chile tienes : Factura de ventas, Factura de Compras , Nota de Debito, Nota de Credito, Factura de Exportacion, Boleta de Ventas, Factura de Ventas Exentas, Boleta de Ventas Exentas, Guias de Despacho, Etc. Atte., Lautaro Moreira
factura electronica
Ok la factura electronica del pais de mexico. la otra es presisamente eso, por cada documento que se emite es diferente la captura de los documentos, por ejemplo un recibo de honorarios, que una factura o una nota de cargo, y tengo que tener un XML por cada uno o es uno en general, algo asi, espero me entiendas. Atte. Antonio
factura electronica
Buenas tardes. En la facturacion electronica ya no existen los conceptos de factura, remision, recibo de honorarios o de arrendamiento. de echo la denominacion oficial de estos documentos electronicos es Comprobante Fiscal Digital o CFD. Existen en mexico tres tipos de comprobantes fiscales digitales: de ingreso, de egreso y de transporte. En CFD de ingreso se usan para lo que antes eran facturas, recibos de renta y honorarios, remisiones, etc. Los CFD de ingresos utilizan practicamente el mismo formato pero en los recibos de honorarios se pueden manejar dos campos extras para la retencion de IVA y del ISR y en los recibos de Arrendamiento, ademas de las retenciones mencionadas, se anexa un campo para el numero del predial. Los CFD de egresos son para las notas de credito, etc. y el formato es el mismo que el de los ingresos, solo se indica que el documento es de egreso. Los CFD de traslado es para las companias que se dedican al traslado de mercancia es el equivalente a las carta porte. No tengo plantilla para este tipo de documentos, si alguien la tiene y la quiere compartir se lo agradeceria. <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> Saludos
factura electronica
Antonio, Deberias darte una vuelta por la pagina del Servicio de Impuestos en Mexico ( no se como se llama especificamente, yo estoy en Chile ), alli deben tener los esquemas y las instrucciones para generar los documentos electronicos. Lamento no poder ayudarte mas. Atte., Lautaro Moreira
factura electronica
¿Ya vieron las nuevas reglas que estan por publicarse en Mexico sobre la facturacion electronica?. Aparentemente se elimina del esquema de la facturacion electronica la modalidad de generar la factura por medios propios a partir del 2011. Esto es debido a que a cada factura se le asignara el folio (ahora se llamara "timbre digital") al monento de ser emitida, el cual sera asignado en linea solo por el sat o por un proveedor autorizado por el SAT. De echo en las reglas que seran publicadas en los proximos dias ya ni se menciona la posibilidad de que el contribuyente genere sus facturas electronicas con un programa adquirido o desarrollado por sus programadores. Les mando el link de un articulo que habla estas nuevas reglas. <!-- m --><a class="postlink" href="http://www.gs1mexico.org/site/wp-content/uploads/2010/06/Com-Modificaciones-RMF-2010-VF-2.pdf">http://www.gs1mexico.org/site/wp-conten ... 0-VF-2.pdf</a><!-- m -->. O sea que nos eliminan del negocio de la facturacion electronica a los programadores independientes y a las compañias desarrolladoras de software. Esta noticia la senti como un balde de agua fria. He invertido tiempo en desarrollo de mi sistema y dinero tambien comprando las herramientas para la encriptacion y la codificacion en base 64. Y ahora el sat me sale que mi programa no se va a poder usar. Oh my god!.
factura electronica
Amigos: Pues parece que es realidad, solo nos queda rogar que el SAT (Sistema de Administración Tributaria, para nuestros amigos en otros paises) no lo haga oficial. Ya lo dice el viejo y conocido refran "No por mucho madrugar amanece más temprano". <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: --> Saludos
factura electronica
Esto es lo típico en las democracias muy menores que vivimos: desconfiar del ciudadano, pero en cambio, la administraciones, ahítas de corrupción, con gasto corriente inútil que las lleva a la bancarrota y a nueva exigencia de captar más tributos, hasta escurrir al contribuyente como agua liofilizada. Saludos
factura electronica
Amigos: Cómo alguien decia "Para rizar el rizo" <!-- m --><a class="postlink" href="http://www.indiciumsolutions.com.mx/newsletter5/a5_nespecial/n1.html">http://www.indiciumsolutions.com.mx/new ... al/n1.html</a><!-- m --> Saludos
factura electronica
Leyendo sus comentarios, entonces que el SAT no actualizado su pagina, se va aplicar lo de la Factura Electronica o ya no. Atte. Antonio Saludos
factura electronica
En el sitio del SAT puedes consultar el comunicado de prensa publicado el día 03 de Septiembre, asi como los anteproyectos. La facturación electrónica sigue siendo obligatoria a partir del 01/01/2011.
factura electronica
Que tal José tendrás algunos plantillas de recibios de honorarios y arrendamientos, que pudieras publicar o bien enviarme de antemano gracias [quote="José Ríos":2hrrsluc]Buenas tardes. En la facturacion electronica ya no existen los conceptos de factura, remision, recibo de honorarios o de arrendamiento. de echo la denominacion oficial de estos documentos electronicos es Comprobante Fiscal Digital o CFD. Existen en mexico tres tipos de comprobantes fiscales digitales: de ingreso, de egreso y de transporte. En CFD de ingreso se usan para lo que antes eran facturas, recibos de renta y honorarios, remisiones, etc. Los CFD de ingresos utilizan practicamente el mismo formato pero en los recibos de honorarios se pueden manejar dos campos extras para la retencion de IVA y del ISR y en los recibos de Arrendamiento, ademas de las retenciones mencionadas, se anexa un campo para el numero del predial. Los CFD de egresos son para las notas de credito, etc. y el formato es el mismo que el de los ingresos, solo se indica que el documento es de egreso. Los CFD de traslado es para las companias que se dedican al traslado de mercancia es el equivalente a las carta porte. No tengo plantilla para este tipo de documentos, si alguien la tiene y la quiere compartir se lo agradeceria. <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> Saludos[/quote:2hrrsluc]
factura electronica
Ups!! y todo eso como se hace?? algun ejemplo???
factura electronica
Hola, Solo para complementar lo que mencionaba Alfredo, la facturacion electronica usada en México, usa una manera de firmar propia, que no sigue el estándar xml-dsig o xades o ningún otro que yo conozca, y los documento son validos legalmente, pero no compatibles, por ejemplo, con la factura electronica en Chile que se apega, casi 100% al estándar xml-dsig, ( tiene pequeñas restricciones ) o al de España. Para EBM, antes que todo te recomiendo que te interiorices en el formato xml, ya que si no, todo lo que encuentres te parecerá chino y no es tan difícil, solo exige algunos conocimientos previos, sobre la forma de hacer el digest ( que es el procedimiento que menciona Alfredo ), pues tienes el api criptográfico del windows, el que puedes usar como si se tratara de otro objeto com, desde tu aplicación. En el sdk del windows esta bastante bien documentado. Ahora sobre el detalle de como hacerlo para la facturación electrónica en México, allí te puedo ayudar poco, ya que estoy en Chile y recién termine la fase de investigación para desarrollar según las normas de mi país, pero por lo que vi, solo es necesario generar un archivo xml en utf-8 y generar el digest de un par de datos usando la firma que te entrega el SAT y en realidad en el papel se ve muuuucho mas simple que el modelo Chileno. Espero haber aportado algo con esto. Saludos, Lautaro Moreira Osorno Chile
factura electronica
Hola Lautaro Soy de Iquique, y me gustaria hacerte algunas consultas sobre la factura electronica, como por ejemplo como extraes la informacion de la llave digital, ya que tengo que hacer un programa y esta basado en firma digital por una llave que se coloca en el puerto usb, y quiero extraer esa informacion. Aca le llaman FIRMA ELECTRONICA AVANZADA
factura electronica
elmoiquique, Para poder extraer la informacion de un dispositivo criptografico, debes usar el api de es dispositivo, normalmente traen unos drivers y la documentacion del api, si no puedes buscar en internet con el modelo del dispositivo. Saludos, Lautaro Moreira Osorno Chile
factura electronica
Hola Lautaro, gracias por la respuesta, bueno eso de la api lo sabia, pero la empresa donde se estan comprando las firmas digitales, no entrega la API, al menos que uno la compre y es un valor muy alto, es de ACEPTA
factura electronica
Hola, Averiguate el fabricante y modelo del dispositivo y te apuesto que en su pagina esta todo el api y sin costo <!-- s;) --><img src="{SMILIES_PATH}/icon_wink.gif" alt=";)" title="Wink" /><!-- s;) --> . Tambien en la pagina de acepta, anda a Servicios on line-> descargas, alli estan los drivers y otros datos de los dispositivos, es probable que tambien alli este la descripcion del api. Saludos, Lautaro Moreira
factura electronica
Hola Lautaro Pudiste llegar a terminar lo que es firma electronica avanzada, ya que yo estoy recien empezando con este tema y necesito una ayudita agradeceria tu ayuda saludos
factura electronica
Elmo, La firma electronica avanzada no tiene nada que ver con la facturación electronica. Ya que la firma electronica avanzada es un tipo de firma que tiene validez legal como si fuera fisica. Para la facturacion electronica, necesitas una firma electronica valida ante el SII, es decir o la firma electronica clase 3 que es la firma electronica simple o la firma electronica avanzada, que es la que usan p.ej. los notarios para los documentos electronicos. Saludos, Lautaro Moreira Osorno,Chile
factura electronica
ahh , ok estoy un poco enredado con este tema, se que es un dispositivo criptografico que uno debe comprar a algun proveedor autorizado... este me entrega ese dispositivo usb, lo que tengo que hacer es capturar la firma, ahora yo no se si lo que yo capturo del dispositov es siempre lo mismo, o cada vez que extraigo la informacion es diferente como el de los banco que hay que ingresar un numero aleatorio que te da el dispositivo.. No se si tu tienes claro este tema de dispositovo o si lo has usado Saludos y gracias por tu ayuda
factura electronica
Elmo, El dispositivo cripografico del que hablas es solo el almacen de la firma, que reemplaza al almacen de certificados que tiene p.ej. el windows. En el está almacenada la firma electronica, a la cual puedes acceder mediante el api del S.O. en el que estes trabajando o con alguna libreria que te de un api para esto. P.Ej. open-ssl. La firma es la misma, ahora, el digest y otros datos cambian con cada documento que firmas, recuerda que la firma se usa para hacer una especie de resumen que valide que el documento original no ha sido cambiado desde el momento de la firma y esta basado en claves asimetricas. Te recomiendo que empieces buscando lo básico sobre firma electronica en google y luego vayas paso a paso. ¿ Para que necesitas esto ?, si estas pensando en implementar la facturación electronica, necesitas como minimo entender la idea de los archivos xml y la firma de estos con xml-dsig, y tener claro ademas lo que es la firma electronica, y el firmado electronico de documentos, al menos en forma teorica, si no todo te parecerá chino. Lamento no poder ayudarte mas pero el tema es bastante extenso. Saludos, Lautaro Moreira
factura electronica
Gracias Lautaro, por tu expplicacion Lo que es XML si lo entiendo, ya que los documentos que debo firmar estan en xml, los cual envio a traves de WEBSERVICE, este sistema esta siendo implementado para la ZONA FRANCA DE IQUIQUE... Lo que es la implementacion de los docuemtnso en XML, lo tengo listo lo que me falta es firmar estos documentos, si bien tu dice que con open-ssl, pero este es para harbour, yo estoy trabajando en xharbour, bueno igual necesito averiguar mas de lo de la firma electronica avanzada para saber que es y como funciona, para empezar a programar y ver como puedo obtener esta firma del dispositovo con fivewin Saludos
factura electronica
Elmo, No lo he usado pero puedes usar el capi de windows para acceder a los dispositivos criptograficos, tiene un api ole que se puede usar. Lamento no poder ayudarte mas pero yo programo con harbour, deje el xharbour hace mucho tiempo. Saludos, Lautaro Moreira
factura electronica
Hola Lautaro Bueno definitivamente tuve que meterme en lo que es firmar un xml, ya lo tengo claro que es lo que hace y que contiene la cadena de caracteres que va inserto en la firma... Ahora viene lo complicado programarlo tu me hablas de una api de windows y cual seria esa api,,, haber si me puedes ayudar .. gracias
factura electronica (Argentina)
paa me equivoque de foro, ahí va ... Hola, alguno tiene algo sobre emisión de factura electronica? conexiion con el server, petición del cae etc. hasta ahora implementé con rutinas externas pero quisiera hacer algo propio ... también para consultar CUIT y DNI de los padrones. harbour o xharbour, me arreglo agradecería un montón... Sldos Silvina silvinamazzaro Mensajes: 22Registrado: Mar Nov 19, 2013 2:13 pm
factura electronica (Argentina)
[quote="silvinamazzaro":x87p7lad]paa me equivoque de foro, ahí va ... Hola, alguno tiene algo sobre emisión de factura electronica? conexiion con el server, petición del cae etc. hasta ahora implementé con rutinas externas pero quisiera hacer algo propio ... también para consultar CUIT y DNI de los padrones. harbour o xharbour, me arreglo agradecería un montón... Sldos Silvina silvinamazzaro Mensajes: 22Registrado: Mar Nov 19, 2013 2:13 pm[/quote:x87p7lad] Hola Silvina, pudiste avanzar algo con lo que comentaste? Diego.-
factura electronica (Argentina)
Fijate si te sirve <!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=6&t=30989&p=178733&hilit=+factura#p178733">viewtopic.php?f=6&t=30989&p=178733&hilit=+factura#p178733</a><!-- l --> Saludos
facturacion
Hola como estan todos ustedes, soy nueva en este foro necesito ayuda urgente y pasando mis aplicaciones de clipper a fivewin, y me quede atorada en un detalle, alguien me propociona un ejemplo de codigo fuente como capturar en una pantalla de facturacion, que me pida num factura, num cliente, y agregar detalles de articulos y cantidad y precio. estoy tratando de usar listbox para captura de detalles Su amiga Susy saludos a todos los colegas
facturacion
[b:801ix3a2]Hola Susy, bienvenida.[/b:801ix3a2] Pasame una cuenta de correo que te mando algo, contame antes que browser estas usando. salu2. carlosortiz
facturacion
[quote="carlosortiz":23w0shj3][b:23w0shj3]Hola Susy, bienvenida.[/b:23w0shj3] Pasame una cuenta de correo que te mando algo, contame antes que browser estas usando. salu2. carlosortiz[/quote:23w0shj3] Hola Carlitos como esta corazon, estoy usando Listbox Saludos y te lo agradecere mucho cuidate corazon <!-- e --><a href="mailto:susan_mx@hotmail.com">susan_mx@hotmail.com</a><!-- e --> este es mi correo
facturacion
Susy En el foro para Clipper te indico que puedes visitar el siguiente site para verr un ejemplo de lo que buscas: <!-- w --><a class="postlink" href="http://www.geocities.com/sisgemeirl">www.geocities.com/sisgemeirl</a><!-- w --> Saludos Armando