topic
stringlengths
1
63
text
stringlengths
1
577k
Comunidad FON/FON Community
Interesante/Interesting FON es la mayor Comunidad WiFi del mundo, abierta a todo el que quiera unirse a nosotros y conectarse gratis a Internet sin cables en cualquier rincón del mundo. Todo comenzó con una idea simple: disfrutar de tecnología WiFi en todas partes a través de la infraestructura WiFi generada por los propios usuarios miembros de la Comunidad FON. Unirte a nosotros es igual de simple: sólo necesitas registrarte gratis, tener conexión de banda ancha y descargar en tu router nuestro software para convertirlo en un Router Social FON. Si no tienes un router compatible con el software de FON, puedes comprar un Router Social FON subvencionado en nuestra tienda. ------------------------------------------------------------------------------------- FON is the largest WiFi community in the world, open to anyone who wishes to unite and connect to the Internet for free from any corner of the world without cables. It all started as a simple idea: enjoy WiFi technology everywhere across a WiFi infrastructure built by same members of the FON Community. Joining us is just as easy. All you need is to register for free, have broadband connection and to download our software onto your router. This converts your router into a FON Social Router. If you do not have a router that is compatible with FON’s software, you can purchase one of our subsidized FON Social Routers at our online store. <!-- m --><a class="postlink" href="http://es.fon.com">http://es.fon.com</a><!-- m --> <!-- m --><a class="postlink" href="http://en.fon.com">http://en.fon.com</a><!-- m --> Saludos/Regards Baxajaun
Comvertir LIB de formato OMF a COFF
Pues eso, alguna herramienta para convertir LIBs de formato OMF a COFF. Y ya puestos a la viceversa, tambien. Gracias.
Comvertir LIB de formato OMF a COFF
JM, Borland C 5.5 proporciona coff2omf.exe Al reves no existe ya que el modelo COFF contiene más información que el OMF.
Comvertir LIB de formato OMF a COFF
[quote="Antonio Linares":v49lhint]Al reves no existe...[/quote:v49lhint] Entonces NUNCA podre usar la LIB que quiero usar (es de MS) [img:v49lhint]http&#58;//www&#46;foroscenic2&#46;com/modules/Forums/images/smiles/lloron&#46;gif[/img:v49lhint][img:v49lhint]http&#58;//www&#46;foroscenic2&#46;com/modules/Forums/images/smiles/lloron&#46;gif[/img:v49lhint][img:v49lhint]http&#58;//www&#46;foroscenic2&#46;com/modules/Forums/images/smiles/lloron&#46;gif[/img:v49lhint] [code:v49lhint]Error&#58; 'E&#58;\PROGRAMA\DNIE\LTC2X&#46;LIB' contains invalid OMF record, type 0x21 &#40;possibly COFF&#41;[/code:v49lhint]
Comvertir LIB de formato OMF a COFF
Puedes construir una DLL con esa librería y usarla
Comvertir LIB de formato OMF a COFF
[quote="Antonio Linares":31rbf25q]Puedes construir una DLL con esa librería y usarla[/quote:31rbf25q] Y como...
Comó Compilar Wbrwline.c con bcc55?
Amigos ListerosLa respuesta parece ovia, pero me pierdo con los flags del compilador de Borland (cuales debo utilizar), es claro que necesito el .OBJ del archivo para convertirlo en libreria o enlazarlo en mi programa. Les agradesco desde ya su ayuda y disculpen lo trivial de la pregunta.Saludos WaldemarSantiago Chile
Comó Compilar Wbrwline.c con bcc55?
Waldemar,Que browse usas, el de Hernan ?
Comó Compilar Wbrwline.c con bcc55?
Hola AntonioAunque mayoritariamente ocupo SBrowse en algunos modulos utilizo la de Hernan, pero también es por el hecho de compilar cualquier programa .CSaludo, WaldemarSantiago Chile
Comó Compilar Wbrwline.c con bcc55?
Waldemar,Para compilar un fichero C en 32 bits sólo tienes que hacer:c:\bcc55\bin\bcc32.exe -c -I(path_a_ficheros_includes;...) fichero.c
Comó Compilar Wbrwline.c con bcc55?
Muchas Gracias AntonioSaludos,WaldemarSantiago Chile
Con ""InternetExplorer.Application"" y iE7 se abren ventanas
No se que cambios se habran efectuado en el [b:11ssnklw]IExplorer 7[/b:11ssnklw] de mi oficina que cada vez que ejecuto un codigo fuente como el expuesto se me abre una ventana del explorador con la URL pedida. [code=fw:11ssnklw]<div class="fw" id="{CB}" style="font-family: monospace;">oIE:=Createobject<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"InternetExplorer.Application"</span><span style="color: #000000;">&#41;</span><br />oIE:<span style="color: #000000;">Navigate2</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"http://www.google.es"</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">do</span> <span style="color: #00C800;">While</span> oIE:<span style="color: #000000;">busy</span> <br />   SysRefresh<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">enddo</span><br />cTextoTXT:=oIE:<span style="color: #000000;">Document</span>:<span style="color: #000000;">body</span>:<span style="color: #000000;">innerText</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />cTextoHTML:=oIE:<span style="color: #000000;">Document</span>:<span style="color: #000000;">body</span>:<span style="color: #000000;">innerHTML</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span></div>[/code:11ssnklw] Antes no se me abría ninguna ventana. Yo solo quiero cargar en contenido de la URL pedida en las variables [i:11ssnklw]cTextoTXT[/i:11ssnklw] y [i:11ssnklw]cTextoHTML[/i:11ssnklw] ¿ Porque se me habren ventanas ahora ? ¿ Como hago para que NO se me abran ventanas con cada URL pedida ? P.D.: Necesito usar el objeto [b:11ssnklw]InternetExplorer.Application[/b:11ssnklw] ya que me mantiene las cookies y demas.
Con ""InternetExplorer.Application"" y iE7 se abren ventanas
¡¡¡ Socorro !!! <!-- s:oops: --><img src="{SMILIES_PATH}/icon_redface.gif" alt=":oops:" title="Embarassed" /><!-- s:oops: --> ¡¡¡ Help !!! <!-- s:cry: --><img src="{SMILIES_PATH}/icon_cry.gif" alt=":cry:" title="Crying or Very sad" /><!-- s:cry: -->
Con ""InternetExplorer.Application"" y iE7 se abren ventanas
Tu ejemplo no me abre ninguna ventana, debe ser algo de tu explorador. Compilado con una version 10.02 de fivewin. Ademas he añadido dos msginfo() mostrando el txt y el HTML y funciona correcto. Por cierto alguien sabe si existe alguna función del tipo msginfo() que te muestre el contenido con scroll para poder mirar todo el texto. Ahora con msginfo cuando supera la pantalla ya no veo mas.
Con ""InternetExplorer.Application"" y iE7 se abren ventanas
[quote:1t2n6ugi]By the way anyone know if there is any type MsgInfo function () to show you the content to scroll to see all the text. Now MsgInfo when it exceeds the screen and I see no more.[/quote:1t2n6ugi] MemoEdit( cText )
Con ""InternetExplorer.Application"" y iE7 se abren ventanas
Pues no se que sera pero sigue lo mismo... me abre una ventana/solapa con cada llamada [i:16i89rqh]Navigate2[/i:16i89rqh]. ¿ Alguna idea mas ? En el MSDN de Microsoft hay esta información: [size=85:16i89rqh][i:16i89rqh]Navigate2 Method Navigates the browser to a location that might not be expressed as a URL, such as a pointer to an item identifier list (PIDL) for an entity in the Windows Shell namespace. Syntax [/i:16i89rqh][color=#FF0000:16i89rqh][b:16i89rqh] object.Navigate2( URL As Variant, [Flags As Variant,] [TargetFrameName As Variant,] [PostData As Variant,] [Headers As Variant])[/b:16i89rqh][/color:16i89rqh] [i:16i89rqh]Parameters URL Required. A variable or expression that evaluates to the URL of the resource to display, the full path to the file location, or a PIDL that represents a folder in the Shell namespace. Flags Optional. A constant or value that specifies a combination of the values defined by the BrowserNavConstants enumeration. TargetFrameName Optional. Case-sensitive string expression that evaluates to the name of the frame in which to display the resource. The possible values for this parameter are. _blank Load the link into a new unnamed window. _parent Load the link into the immediate parent of the document the link is in. _self Load the link into the same window the link was clicked in. _top Load the link into the full body of the current window. WindowName A named HTML frame. If no frame or window exists that matches the specified target name, a new window is opened for the specified link. PostData Optional. Data that is sent to the server as part of a HTTP POST transaction. A POST transaction typically is used to send data collected by an HTML form. If this parameter does not specify any POST data, this method issues an HTTP GET transaction. This parameter is ignored if URL is not an HTTP (or HTTPS) URL. Headers Optional. A String that contains additional HTTP headers to send to the server. These headers are added to the default Windows Internet Explorer headers. For example, headers can specify the action required of the server, the type of data being passed to the server, or a status code. This parameter is ignored if the URL is not an HTTP (or HTTPS) URL. Remarks See Navigate for additional usage notes. This method extends the Navigate method to allow for Shell integration; however, this method does not make Navigate obsolete. The original method can still be used for URL navigations. [/i:16i89rqh][/size:16i89rqh] ENLACE: [url:16i89rqh]http&#58;//msdn&#46;microsoft&#46;com/en-us/library/aa752094(v=vs&#46;85)&#46;aspx[/url:16i89rqh]
Con ""InternetExplorer.Application"" y iE7 se abren ventanas
Hola no tienes una foto para ver lo que sale <!-- 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: -->
Con FW se podrá controlar si estan usando la PC
Buenas amigos Deseo activar un programita en FW que controle si el usuario esta usando la PC en general, no solo saber si estan usando mi aplicacion de FW de la PC sino de cualquier otro programa, quizás tal ves detectar que esten usando el teclado (digtando) o Mouse (moviendolo) . ( interesante seria saber de que aplicacion mueve ) Que opinan?? se puede Gracias por sus comentarios Lubn
Con FW se podrá controlar si estan usando la PC
No lo se y no creo que esto tenga una base legal. ¿No sería lo mismo que un programa de espionaje ilegal? Cual es el proposito? Saludos.
Con FW se podrá controlar si estan usando la PC
Los cuchillos matan... y tienen base legal. La teoría es que uno con su ordenador puede hacer el programa que quiera... luego está el uso que haga malintencionado o no. Si se puede detectar el uso o no del teclado y el ratón. En este foro hay varios ejemplos de cómo detectar inactividad (idle) del sistema. Yo mismo lo uso para cerrar la aplicacion pasados 50 minutos de inactividad. Sugiero también detectar el uso de ejecucion del programa comprobando si alguna de las .dbfs abiertas ha cambiado de posicion, para evitar cerrar nuestro programa durante un proceso largo.
Con FW se podrá controlar si estan usando la PC
Antonio Mart Buen dia Oye tendras un ejemplo de como controlas la inactividad Gracias.
Con FW se podrá controlar si estan usando la PC
Javier, Este es el codigo de la funcion que devuelve los _segundos_ transcurridos desde la inactividad de entrada de teclado y/o raton. Yo lo tengo implementado con un timer... que transcurrido los nnnn cierra el programa de la manera más soft posible, teniendo en cuenta que no haya procesos ejecutandose, lo que se puede saber tomando una foto de las areas y sus recnos y comparando despues.... Los créditos de SysIdleSecs() a quien correspondan... una lástima no saberlo... Me suena que me pillé la función del foro brasileiro de fw. [code=fw:2gfo7qbf]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#pragma</span> BEGINDUMP<br /><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"windows.h"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"hbapi.h"</span><br /><br /><span style="color: #B900B9;">// &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; typedef struct tagLASTINPUTINFO {</span><br /><span style="color: #B900B9;">// &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; UINT cbSize;</span><br /><span style="color: #B900B9;">// &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; DWORD dwTime;</span><br /><span style="color: #B900B9;">// &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; } LASTINPUTINFO, *PLASTINPUTINFO;</span><br /><br />WINUSERAPI BOOL WINAPI GetLastInputInfo<span style="color: #000000;">&#40;</span>PLASTINPUTINFO<span style="color: #000000;">&#41;</span>;<br />typedef &nbsp;BOOL <span style="color: #000000;">&#40;</span>WINAPI *GETLASTINPUTINFO_<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#40;</span>PLASTINPUTINFO<span style="color: #000000;">&#41;</span>;<br /><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> SYSIDLESECS <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp;HINSTANCE handle= LoadLibrary<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"user32.dll"</span><span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> handle<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; GETLASTINPUTINFO_ pFunc;<br />&nbsp; &nbsp; &nbsp; pFunc = GetProcAddress<span style="color: #000000;">&#40;</span> handle,<span style="color: #ff0000;">"GetLastInputInfo"</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span>pFunc<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;LASTINPUTINFO lpi;<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;lpi.cbSize = sizeof<span style="color: #000000;">&#40;</span>LASTINPUTINFO<span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span>!pFunc<span style="color: #000000;">&#40;</span>&lpi<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; hb_retni<span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; hb_retnd<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> DOUBLE <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#40;</span> GetTickCount<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> - lpi.dwTime <span style="color: #000000;">&#41;</span> * <span style="color: #000000;">0.001</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;hb_retni<span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span>handle<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;FreeLibrary<span style="color: #000000;">&#40;</span> handle<span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br /><span style="color: #000000;">&#125;</span><br /><span style="color: #00D7D7;">#pragma</span> ENDDUMP<br />&nbsp;</div>[/code:2gfo7qbf]
Con FW se podrá controlar si estan usando la PC
[quote="karinha":3lpbgq68]No lo se y no creo que esto tenga una base legal. ¿No sería lo mismo que un programa de espionaje ilegal? Cual es el proposito? Saludos.[/quote:3lpbgq68] No entiendo que tiene de ilegal saber si se esta usando la PC,, es decir saber si estan moviendo el mouse o teclado, nadie esta pidendo saber que estan digitando ¡¡¡ Aunque es primera vez que leeo en este foro el pedir explicaciones y/o motivaciones al pedir un consejo, lo dare por respeto al foro. El concepto es simple... Hoy en dia muchas empresas quieren saber cuanto tiempo estimado sus empleados están haciendo uso Maquina (es decir si realizando una Labor) ahora que tienen TRABAJO VIRTUAL por la pandemia, y mejor aun saber si estan usando nuestro sistema, para esto los Usuarios se activaran al Modulo de control cuando comienzan sus Labores y se desconectaran cuando terminan, y esto permitira el registro de su actividad,, Eso no es espionaje como de la TV , esos programas . hay miles en internet... y no estoy para perder el tiempo. Les agradesco a los que respondieron positivamente Lubin
Con FW se podrá controlar si estan usando la PC
Antonio Mart Gracias por tu ayuda lo probare.
Con FWH 2.7 DbUnLock() se pega cuando ejecuto en red
Tambien pasa con DbCommit(). Cuando aplicacion y basedatos estan locales no hay problemas. Lo raro es que con la version Oct. 2002 de FWH no pasa esto. Si alguien me puede ayudar, le agradezco de antemano. Saludos Gonzalo
Con FWH 2.7 DbUnLock() se pega cuando ejecuto en red
Gonzalo, Que build de FWH 2.7 estás usando ? De qué mes ? Que RDD estás usando ?
Con FWH 2.7 DbUnLock() se pega cuando ejecuto en red
Antonio : Lo baje de fivetechsoft.com/software/fwh el 6 de Junio de 2006. Uso CDX
Con FWH 2.7 DbUnLock() se pega cuando ejecuto en red
Gonzalo, Puedes descargar Harbour/xharbour de estos foros. Hay un build más reciente: <!-- m --><a class="postlink" href="http://fivetechsoft.com/forums/viewtopic.php?t=2486&start=0&postdays=0&postorder=asc&highlight=">http://fivetechsoft.com/forums/viewtopi ... highlight=</a><!-- m -->
Con FWH 2.7 DbUnLock() se pega cuando ejecuto en red
Antonio: Trato de bajar el build de June 28 2006 : Harbour for Borland: <!-- m --><a class="postlink" href="http://hyperupload.com/download/026ece0f78/harbour.EXE.html">http://hyperupload.com/download/026ece0 ... r.EXE.html</a><!-- m --> pero, no esta disponible la pagina. Se puede bajar de otro sitio? Gracias Gonzalo
Con FWH 2.7 DbUnLock() se pega cuando ejecuto en red
Gonzalo, Vuelve a intentarlo por favor. Aquí aparece como disponible.
Con FWH 2.7 DbUnLock() se pega cuando ejecuto en red
Antonio : Ya encontre el problema. Es que uso esta funcion en vez de RLock(). Pero sigo sin saber porque con esta version de FWH se pega. Saludos Gonzalo [code:1gwkl64x] Function RecLock&#40;nSeconds&#41; *-------------------------- /* Attempt to RLOCK&#40;&#41; with optional retry RecLock&#40; <nSeconds> &#41; --> lSuccess */ local lforever DEFAULT nSeconds TO 0 if rlock&#40;&#41; return &#46;t&#46; // LOCKED endif nSeconds *= 1&#46;00 lForever &#58;= &#40;nSeconds == 0&#41; DO WHILE &#40;lforever &#46;OR&#46; nSeconds > 0&#41; &#46;AND&#46; LASTKEY&#40;&#41; # VK_ESCAPE MsgAlert&#40;PADC&#40; &#91;Registro tomado por otro usuario &#58; Esperando &#93; +; LTRIM&#40;STR&#40;nSeconds,5,1&#41;&#41;+&#91; segundos&#93;,81&#41;+CRLF+PADC&#40;&#91;<Esc> Termina &#40;No actualiza reg&#41; &#93;, 85&#41; &#41; IF RLOCK&#40;&#41; RETURN &#46;T&#46; // LOCKED ENDIF INKEY&#40;&#46;5&#41; // wait 1/2 SECOND nSeconds -= &#46;5 enddo RETURN &#46;F&#46; // NOT LOCKED // end Function reclock&#40;&#41; [/code:1gwkl64x]
Con FWH 2.7 DbUnLock() se pega cuando ejecuto en red
Noo, me equivoque, sigo con el problema. Baje el ultimo build de harbour y sigue el error. Cuando acceso al programa en un disco remoto sucede el error, sin embargo el mismo ejecutable en forma local funciona perfecto. La basedato la tengo en un PC con Win98 y acceso desde otro PC con XP Saludos, Gonzalo
Con FWH 2.7 DbUnLock() se pega cuando ejecuto en red
Gonzalo, Las funciones de "terminal" de Harbour han sido modificadas ultimamente, de ahí que un determinado build de Harbour/xHarbour pueda estar dándote esos problemas. En principio en una aplicación Windows no debes usar ni LastKey() ni Inkey() (ambas funciones pertenecen a los módulos "terminal" de Harbour/xHarbour). Nuestro consejo es que modifiques esa función para que no use esas dos funciones. En vez de Inkey() puedes usar SysWait( nSecs ) y LastKey() podrias eliminarla completamente.
Con FWH 2.7 DbUnLock() se pega cuando ejecuto en red
Antonio: Ahora estoy usando directamente RLock() sin pasar por la funcion RECLOCK(). Definitivamente el problema se da cuando la base esta en Win98 y se accesa desde XP. Probe con 2 PC's con XP y no se da el error. Tambien probe teniendo la base en XP y accese desde Win 98 y tampoco se da el error. Y para estar seguro accese desde un segundo PC c/XP a una base en Win98 y tambien se dio el error. Saludos Gonzalo
Con FWH 2.7 DbUnLock() se pega cuando ejecuto en red
Sera la unica solucion cambiar los datos a PC con WinXP ??
Con FWH 2.7 DbUnLock() se pega cuando ejecuto en red
Gonzalo, Nosotros podemos facilitarte un build de Harbour más actualizado, pero necesitarás recompilar todos los PRGs tanto de FWH como de tu aplicación. Envíanos un email y te lo proporcionamos.
Con FWH 2.7 DbUnLock() se pega cuando ejecuto en red
[quote="Antonio Linares":3fp28qyz]Gonzalo, Nosotros podemos facilitarte un build de Harbour más actualizado, pero necesitarás recompilar todos los PRGs tanto de FWH como de tu aplicación. Envíanos un email y te lo proporcionamos.[/quote:3fp28qyz] Antonio.. Esa recompilación de FWH lo haces con un Batch?. Podrías enviarme a mi email: <!-- e --><a href="mailto:apic1002002@yahoo.es">apic1002002@yahoo.es</a><!-- e --> lo que enviarás a Gonzalo? Te agradecería muchiiisimo. Saludos Armando
Con FWH 2.7 DbUnLock() se pega cuando ejecuto en red
Armando, No, no usamos un batch. Usamos un make bastante complejo ya que construye FW para cinco compiladores distintos. En unos dias publicaremos el build de Agosto con todos los nuevos cambios y los builds más recientes de Harbour y xHarbour, que no quisimos publicarlos en Julio porque no estaban totalmente estables.
Con FWH 2.7 DbUnLock() se pega cuando ejecuto en red
Ok Quedo a la espera!!! Armando [quote="Antonio Linares":1bw0owfp]Armando, No, no usamos un batch. Usamos un make bastante complejo ya que construye FW para cinco compiladores distintos. En unos dias publicaremos el build de Agosto con todos los nuevos cambios y los builds más recientes de Harbour y xHarbour, que no quisimos publicarlos en Julio porque no estaban totalmente estables.[/quote:1bw0owfp]
Con FW_SetTruePixel( .T. ) los errores...
Hola amigos: Con la clausula FW_SetTruePixel( .T. ), los mensajes de error se muestran en un dialogo muy chico. Gracias. Saludos Ruben Dario Fernandez
Con Xbrowse si es Campo Null No me genere Error (Solucionado
Cuando hago una consulta a una base de datos Mysql Usando Sentencias Select, cuando Utilizo Xbrowse o Reporte cuando una de las columnas es Null , me genera un error y me saca del programa. [code=fw:c4gu7bk0]<div class="fw" id="{CB}" style="font-family: monospace;"><br />cQte3 := <span style="color: #ff0000;">"SELECT A1.codcia,A1.tipdoc,A1.codprov,A1.codprod,A1.consec,A1.simbolo,A1.referencia,A1.largo,"</span>+;<br />   <span style="color: #ff0000;">"A1.ancho,A1.ancho_m,A1.fuel_l,A1.fuel_f,A1.kilmil,A1.metros,A1.solapa,A1.calibre,A1.tara,A1.dis_fot,"</span>+;<br />   <span style="color: #ff0000;">"A1.selle,A1.ccortcam,A1.cort_cam,A1.mman_iny,A1.man etc....."</span><br /><br />    EjeQueri<span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span>,@oDatos,cQue1<span style="color: #000000;">&#41;</span><br />     <span style="color: #00C800;">if</span> oDatos:<span style="color: #000000;">RecordCount</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> =<span style="color: #000000;">0</span> <span style="color: #B900B9;">//ADORecCount()</span><br />        <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"No Hay Datos "</span>,<span style="color: #ff0000;">"Informacion"</span><span style="color: #000000;">&#41;</span>  <span style="color: #B900B9;">//  MsgAlert( "No Hay Datos ","Informacion" )</span><br />        oDatos:<span style="color: #000000;">Close</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />        <span style="color: #00C800;">Return</span> <span style="color: #000000;">&#40;</span>.t.<span style="color: #000000;">&#41;</span><br />     <span style="color: #00C800;">endif</span><br />     nLinea := <span style="color: #000000;">1</span> ; nHasta := oDatos:<span style="color: #000000;">RecordCount</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />     oDatos:<span style="color: #000000;">MoveFirst</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>  <br /><br /> </div>[/code:c4gu7bk0] Para Report En es te caso la cuolumna Nombre_estilo esta Null [code=fw:c4gu7bk0]<div class="fw" id="{CB}" style="font-family: monospace;"><br />         COLUMN <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Sta"</span>,<span style="color: #ff0000;">"Item"</span> <span style="color: #00C800;">DATA</span> <span style="color: #000000;">&#123;</span>||iif<span style="color: #000000;">&#40;</span>oDatos:<span style="color: #000000;">Fields</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"status"</span><span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span>=<span style="color: #000000;">1</span>,<span style="color: #ff0000;">"Si"</span>,<span style="color: #ff0000;">"No"</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#125;</span>, oDatos:<span style="color: #000000;">Fields</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"consec"</span><span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span> ;<br />                <span style="color: #0000ff;">FONT</span> <span style="color: #000000;">1</span>  <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">6</span> <span style="color: #B900B9;">//SHADOW GRID 1 hace la raya vertical</span><br />         COLUMN <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Item"</span>,<span style="color: #ff0000;">"Codprod"</span> <span style="color: #00C800;">DATA</span> oDatos:<span style="color: #000000;">Fields</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"consec"</span><span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span>,oDatos:<span style="color: #000000;">Fields</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"codprod"</span><span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span>;<br />                <span style="color: #0000ff;">FONT</span> <span style="color: #000000;">1</span>  <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">12</span> <span style="color: #B900B9;">//SHADOW GRID 1 hace la raya vertical</span><br />         COLUMN <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Referencia"</span>,<span style="color: #ff0000;">"Simbolo"</span> <span style="color: #00C800;">DATA</span> oDatos:<span style="color: #000000;">Fields</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"simbolo"</span><span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span>,oDatos:<span style="color: #000000;">Fields</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"referencia"</span><span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span>;<br />                <span style="color: #0000ff;">FONT</span> <span style="color: #000000;">1</span>  <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">20</span> <span style="color: #B900B9;">//SHADOW GRID 1 hace la raya vertical</span><br />         COLUMN <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Largo/Alt"</span>,<span style="color: #ff0000;">"Ancho.B.Menor"</span> <span style="color: #00C800;">DATA</span> oDatos:<span style="color: #000000;">Fields</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"largo"</span><span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span>, ;<br />                oDatos:<span style="color: #000000;">Fields</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"ancho"</span><span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span>  <span style="color: #0000ff;">FONT</span> <span style="color: #000000;">1</span>  <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">8</span> <br />         COLUMN <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Ancho/B.Menor"</span>,<span style="color: #ff0000;">"Solapa"</span> <span style="color: #00C800;">DATA</span> TRANSFORM<span style="color: #000000;">&#40;</span>oDatos:<span style="color: #000000;">Fields</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"ancho_m"</span><span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span>,<span style="color: #ff0000;">"999.99"</span><span style="color: #000000;">&#41;</span> ,;<br />                TRANSFORM<span style="color: #000000;">&#40;</span>oDatos:<span style="color: #000000;">Fields</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"solapa"</span><span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span>,<span style="color: #ff0000;">"999.99"</span><span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">FONT</span> <span style="color: #000000;">1</span>  <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">10</span> <br />         COLUMN <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Fuelle.F"</span>,<span style="color: #ff0000;">"Fuelle.L"</span> <span style="color: #00C800;">DATA</span> TRANSFORM<span style="color: #000000;">&#40;</span>oDatos:<span style="color: #000000;">Fields</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"fuel_f"</span><span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span>,<span style="color: #ff0000;">"999.99"</span><span style="color: #000000;">&#41;</span>, ;<br />                TRANSFORM<span style="color: #000000;">&#40;</span>oDatos:<span style="color: #000000;">Fields</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"fuel_l"</span><span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span>,<span style="color: #ff0000;">"999.99"</span><span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">FONT</span> <span style="color: #000000;">1</span>  <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">6</span>  <br />         COLUMN <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Metros"</span>,<span style="color: #ff0000;">"Peso/Mil"</span> <span style="color: #00C800;">DATA</span> TRANSFORM<span style="color: #000000;">&#40;</span>oDatos:<span style="color: #000000;">Fields</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"metros"</span><span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span>,<span style="color: #ff0000;">"999.99"</span><span style="color: #000000;">&#41;</span>, ;<br />                TRANSFORM<span style="color: #000000;">&#40;</span>oDatos:<span style="color: #000000;">Fields</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"kilmil"</span><span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span>,<span style="color: #ff0000;">"99.9999"</span><span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">FONT</span> <span style="color: #000000;">1</span>  <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">6</span>  <br />         COLUMN <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Tipo.Selle"</span>, <span style="color: #ff0000;">"Tipo.Estilo"</span> <span style="color: #00C800;">DATA</span> oDatos:<span style="color: #000000;">Fields</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"nombre_selle"</span><span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span> ,;<br />                oDatos:<span style="color: #000000;">Fields</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"nombre_estilo"</span><span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span> <span style="color: #0000ff;">FONT</span> <span style="color: #000000;">1</span>  <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">15</span><br /> </div>[/code:c4gu7bk0] Para Xbrowse En es te caso la cuolumna Nombre_estilo esta Null [code=fw:c4gu7bk0]<div class="fw" id="{CB}" style="font-family: monospace;"><br />      <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">XBROWSE</span> oLbx ; <br />        COLUMNS <span style="color: #ff0000;">"planta"</span>,<span style="color: #ff0000;">"codprov"</span>,<span style="color: #ff0000;">"consec"</span>,<span style="color: #ff0000;">"nombre_clie"</span>,<span style="color: #ff0000;">"codprod"</span>,<span style="color: #ff0000;">"simbolo"</span>,<span style="color: #ff0000;">"referencia"</span>,<span style="color: #ff0000;">"largo"</span>,<span style="color: #ff0000;">"ancho"</span>;<br />                ,<span style="color: #ff0000;">"ancho_m"</span>,<span style="color: #ff0000;">"fuel_l"</span>,<span style="color: #ff0000;">"fuel_f"</span>, <span style="color: #ff0000;">"calibre"</span>,<span style="color: #ff0000;">"solapa"</span>,<span style="color: #ff0000;">"metros"</span>,<span style="color: #ff0000;">"kilmil"</span>,<span style="color: #ff0000;">"nombre_estilo"</span>,<span style="color: #ff0000;">"nombre_mat"</span>;<br />                ,<span style="color: #ff0000;">"nombre_selle"</span>,<span style="color: #ff0000;">"Ruta"</span>,<span style="color: #ff0000;">"status"</span> ; <br />        HEADERS <span style="color: #ff0000;">"planta"</span>,<span style="color: #ff0000;">"Codigo"</span>,<span style="color: #ff0000;">"Item"</span>, <span style="color: #ff0000;">"Nombre Tercero"</span>,<span style="color: #ff0000;">"Producto"</span>,<span style="color: #ff0000;">"Simbolo"</span>,<span style="color: #ff0000;">"Referencia"</span>,<span style="color: #ff0000;">"Largo"</span>,<span style="color: #ff0000;">"Ancho"</span>,<span style="color: #ff0000;">"Ancho.May"</span>;<br />               ,<span style="color: #ff0000;">"Fuelle Lat"</span>,<span style="color: #ff0000;">"Fuelle_Fon"</span>,<span style="color: #ff0000;">"Calibre"</span>,<span style="color: #ff0000;">"Solapa"</span>,<span style="color: #ff0000;">"Metros"</span>,<span style="color: #ff0000;">"Peso.Mil"</span>,<span style="color: #ff0000;">"Tipo.Estilo"</span>,<span style="color: #ff0000;">"Tipo.Material"</span>;<br />               ,<span style="color: #ff0000;">"Tipo.Selle"</span>,<span style="color: #ff0000;">"Nombre_ruta"</span>,<span style="color: #ff0000;">"Activo"</span> ; <br />        PICTURES <span style="color: #00C800;">nil</span>,<span style="color: #00C800;">nil</span>,<span style="color: #00C800;">nil</span>,<span style="color: #00C800;">nil</span>,<span style="color: #00C800;">nil</span>,<span style="color: #00C800;">nil</span>,<span style="color: #00C800;">nil</span>,<span style="color: #ff0000;">"999.9"</span>,<span style="color: #ff0000;">"999.9"</span>,<span style="color: #ff0000;">"999.9"</span>,<span style="color: #ff0000;">"999.9"</span>,<span style="color: #ff0000;">"999.9"</span>,<span style="color: #ff0000;">"999.9"</span>,<span style="color: #ff0000;">"9999.99"</span>,<span style="color: #ff0000;">"9999.9999"</span>;<br />                 ,<span style="color: #00C800;">nil</span>,<span style="color: #00C800;">nil</span>,<span style="color: #00C800;">nil</span>,<span style="color: #00C800;">nil</span>,<span style="color: #00C800;">nil</span>,<span style="color: #00C800;">nil</span>,<span style="color: #00C800;">nil</span>;<br />        COLSIZES <span style="color: #000000;">20</span>,<span style="color: #000000;">60</span>,<span style="color: #000000;">20</span>,<span style="color: #000000;">250</span>,<span style="color: #000000;">60</span>,<span style="color: #000000;">220</span>,<span style="color: #000000;">120</span>,<span style="color: #000000;">60</span>,<span style="color: #000000;">60</span>,<span style="color: #000000;">90</span>,<span style="color: #000000;">60</span>,<span style="color: #000000;">60</span>,<span style="color: #000000;">60</span>,<span style="color: #000000;">60</span>,<span style="color: #000000;">60</span>,<span style="color: #000000;">60</span>,<span style="color: #000000;">180</span>,<span style="color: #000000;">180</span>,<span style="color: #000000;">120</span>,<span style="color: #000000;">60</span> ; <br />        JUSTIFY .F.,.F.,.F.,.F.,.F.,.F.,.F.,.T.,.T.,.T.,.T.,.T.,.T.,.T.,.T.,.T.,.F.,.F.,.F.,.F.;<br />        <span style="color: #0000ff;">OF</span> oDlgbrow <span style="color: #0000ff;">ID</span> <span style="color: #000000;">4001</span> ; <br />        RECORDSET  oDat15 <br />      par_browse<span style="color: #000000;">&#40;</span>X_TIPBROW,oLbx,aContl<span style="color: #000000;">&#91;</span><span style="color: #000000;">20</span><span style="color: #000000;">&#93;</span>,<span style="color: #000000;">0</span>,oDat15 <span style="color: #000000;">&#41;</span><br /> </div>[/code:c4gu7bk0] Como puedo controlar el Campo Null
Con Xbrowse si es Campo Null No me genere Error (Solucionado
If you are using ADO, NULL values are returned as NIL. XBrowse shows NIL values properly. For reports, instead of using Transform(...), please use DATA oRs:Fields("..."):Value PICTURE "999.99"
Con Xbrowse si es Campo Null No me genere Error (Solucionado
Self contained sample showing handling of NULL values by XBrowse and XBrowse's Report method: [code=fw:2flglzsp]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">'fivewin.ch'</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">'adodef.ch'</span>    <span style="color: #B900B9;">// \fwh\include folder</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">'xbrowse.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 />   <span style="color: #00C800;">local</span> oCn, oRs<br />   <span style="color: #00C800;">local</span> oDlg, oBrw<br /><br />   oCn      := ConnectMySql<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   CreateTable<span style="color: #000000;">&#40;</span> oCn <span style="color: #000000;">&#41;</span>  <span style="color: #B900B9;">// Create Table with NULLs</span><br />   oRs      := OpenTable<span style="color: #000000;">&#40;</span> oCn <span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">200</span>,<span style="color: #000000;">250</span> <span style="color: #0000ff;">PIXEL</span><br />   @ <span style="color: #000000;">5</span>,<span style="color: #000000;">5</span> <span style="color: #0000ff;">XBROWSE</span> oBrw <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">-5</span>,<span style="color: #000000;">-5</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg ;<br />      COLUMNS <span style="color: #ff0000;">'ID'</span>,<span style="color: #ff0000;">'Amount'</span> ;<br />      PICTURES <span style="color: #ff0000;">'99'</span>,<span style="color: #ff0000;">'9,999,999'</span> ;<br />      RECORDSET oRs ;<br />      FOOTERS CELL LINES NOBORDER<br /><br />   WITH OBJECT oBrw:<span style="color: #000000;">Amount</span><br />      :<span style="color: #000000;">lTotal</span>   := .t.<br />      :<span style="color: #000000;">nTotal</span>   := <span style="color: #000000;">0</span><br />   END<br /><br />   WITH OBJECT oBrw<br />      :<span style="color: #000000;">MakeTotals</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />      :<span style="color: #000000;">nStretchCol</span> := STRETCHCOL_LAST<br />      :<span style="color: #000000;">bRClicked</span>   := <span style="color: #000000;">&#123;</span> || oBrw:<span style="color: #000000;">Report</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />      :<span style="color: #000000;">CreateFromCode</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   END<br />   <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span><br />   oRs:<span style="color: #000000;">Close</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   oCn:<span style="color: #000000;">Close</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #00C800;">static</span> <span style="color: #00C800;">function</span> ConnectMySql<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">local</span> oCn<br />   <span style="color: #00C800;">local</span> cStr := <span style="color: #ff0000;">"Driver={MySQL ODBC 5.1 Driver};"</span> + ;<br />                 <span style="color: #ff0000;">"Server=localhost;"</span> + ;<br />                 <span style="color: #ff0000;">"Database=<yourdatabase>;"</span> + ;<br />                 <span style="color: #ff0000;">"User=root;Password=<yourpassword>;Option=3;"</span><br /><br />   oCn   := 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;">'ADODB.Connection'</span> <span style="color: #000000;">&#41;</span><br />   oCn:<span style="color: #000000;">Open</span><span style="color: #000000;">&#40;</span> cStr <span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">if</span> oCn:<span style="color: #000000;">State</span> < <span style="color: #000000;">1</span><br />      <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">'Connect Fail'</span> <span style="color: #000000;">&#41;</span><br />      Quit<br />   <span style="color: #00C800;">endif</span><br /><br /><span style="color: #00C800;">return</span> oCn<br /><br /><span style="color: #00C800;">static</span> <span style="color: #00C800;">function</span> CreateTable<span style="color: #000000;">&#40;</span> oCn <span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">local</span> cSql<br />   <span style="color: #00C800;">local</span> n<br /><br />   <span style="color: #00C800;">TRY</span><br />      oCn:<span style="color: #000000;">Execute</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">'DROP TABLE TESTNULLS'</span> <span style="color: #000000;">&#41;</span><br />   CATCH<br />   END<br /><br />   <span style="color: #0000ff;">TEXT</span> INTO cSql<br />   CREATE TABLE TESTNULLS <span style="color: #000000;">&#40;</span><br />   <span style="color: #0000ff;">ID</span> INT PRIMARY KEY,<br />   AMOUNT INT<br />   <span style="color: #000000;">&#41;</span><br />   ENDTEXT<br /><br />   oCn:<span style="color: #000000;">Execute</span><span style="color: #000000;">&#40;</span> cSql <span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">for</span> n := <span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> <span style="color: #000000;">9</span><br />      cSql  := <span style="color: #ff0000;">"INSERT INTO TESTNULLS VALUES ( "</span> + ;<br />               LTrim<span style="color: #000000;">&#40;</span> Str<span style="color: #000000;">&#40;</span> n <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">","</span><br /><br />      cSql  += <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> n % <span style="color: #000000;">3</span> == <span style="color: #000000;">0</span>, <span style="color: #ff0000;">"NULL"</span>, LTrim<span style="color: #000000;">&#40;</span> Str<span style="color: #000000;">&#40;</span> HB_RandomInt<span style="color: #000000;">&#40;</span> <span style="color: #000000;">10000</span>, <span style="color: #000000;">999900</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />      cSql  += <span style="color: #ff0000;">" )"</span><br /><br />      oCn:<span style="color: #000000;">Execute</span><span style="color: #000000;">&#40;</span> cSql <span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">next</span> n<br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #00C800;">static</span> <span style="color: #00C800;">function</span> OpenTable<span style="color: #000000;">&#40;</span> oCn <span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">local</span> oRs<br /><br />   oRs   := 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;">'ADODB.RecordSet'</span> <span style="color: #000000;">&#41;</span><br /><br />   WITH OBJECT oRs<br />      :<span style="color: #000000;">ActiveConnection</span> := oCn<br />      :<span style="color: #000000;">Source</span>           := <span style="color: #ff0000;">'TESTNULLS'</span><br />      :<span style="color: #000000;">CursorLocation</span>   := adUseClient<br /><br />      :<span style="color: #000000;">Open</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   END<br /><br /><span style="color: #00C800;">return</span> oRs<br /> </div>[/code:2flglzsp] Browse: [url=http&#58;//img502&#46;imageshack&#46;us/my&#46;php?image=xbrnull&#46;jpg:2flglzsp][img:2flglzsp]http&#58;//img502&#46;imageshack&#46;us/img502/7559/xbrnull&#46;jpg[/img:2flglzsp][/url:2flglzsp] oBrw:Report() [url=http&#58;//img299&#46;imageshack&#46;us/my&#46;php?image=xbrnullrep&#46;jpg:2flglzsp][img:2flglzsp]http&#58;//img299&#46;imageshack&#46;us/img299/1584/xbrnullrep&#46;jpg[/img:2flglzsp][/url:2flglzsp]
Con Xbrowse si es Campo Null No me genere Error (Solucionado
[quote="nageswaragunupudi":3j6nmp0n]If you are using ADO, NULL values are returned as NIL. XBrowse shows NIL values properly. For reports, instead of using Transform(...), please use DATA oRs:Fields("..."):Value PICTURE "999.99"[/quote:3j6nmp0n] El Problema que Tengo no es en la captura de los datos, si no cuando hago una consulta , con varias tablas. Posiblemente Unos de los datos es Nulo, como hago que me muestre datos Nulos en Xbrowse y Report
Con la TReport se puede imprimir sin columnas_?
hola. necesito hacer el estilo de una receta medica donde hay datos arriba y abajo descripciones, se lo puede hacer con la TReport? o tengo que usar otra clase? gracias.
Con la TReport se puede imprimir sin columnas_?
Todo se puede jeje Pero si no quieres renegar o estás atareado de tiempo te recomiendo TPrint que te deja imprimir libremente en cualquier posición. Saludos,
Con la TReport se puede imprimir sin columnas_?
[quote="jrestojeda":3movlurg]Todo se puede jeje Pero si no quieres renegar o estás atareado de tiempo te recomiendo TPrint que te deja imprimir libremente en cualquier posición. Saludos,[/quote:3movlurg] gracias!
Con la duda aun Harbour 3.0.0 ó 3.2.0?
Saludos No he podido enlazar mi app, he recibido sugerencias de que incluya ace32,lib, porque me marca muchos errores de adsXXXX. la lib ace32,lib solo biene en la Harbour 3.2 al inicio de mi app incluyo: function ActivaRDD() *RDDREGISTER("ADS",1) *RDDSETDEFAULT("ADS") *ADSSETSERVERTYPE(2) *ADSLOCKING(.T.) *ADSRIGHTSCHECK(.F.) RDDREGISTER( "ADS",1 ) HB_LangSelect( "ESWIN" ) HB_SetCodePage( "ESWIN" ) RddSetDefault( "ADS" ) AdsSetCharType( 1 ) AdsSetFileType( 3 ) AdsRightsCheck( FALSE ) AdsLocking( FALSE ) return NIL No se que tenga mal. Mi pregunta: debo usa Harbour 3.0 ó 3.2, para fwh 20.06 y bcc 7.4 Compilando REFACCIO.prg... Compilando RCATALMA.PRG... Compilando RCATPARA.PRG... Compilando RCATRUTA.PRG... Compilando RCATVEND.PRG... Compilando RCIEDIAR.PRG... Compilando RCIEMENS.PRG... Compilando RCOMFACT.PRG... Compilando RDEPBACK.PRG... Compilando RENLBOLE.PRG... Compilando RINVALMA.PRG... Compilando RKARMOVI.PRG... Compilando RREFFUNC.PRG... Compilando RREFINIC.PRG... Compilando RREPANAL.PRG... Compilando RREPDIAR.PRG... Compilando RREPESPE.PRG... Compilando RREPMENS.PRG... Compilando RREPREFA.PRG... Compilando RREQTALL.PRG... Compilando RTRAALMA.PRG... Compilando RVENFACT.PRG... Compilando refaccio.rc... Compilando calc.rc... Compilando RPREPEDI.PRG... Compilando sicom.rc... Compilando RTIKMOVI.prg... Compilando CXCCLIE.PRG... Compilando RCATARTI.PRG... Compilando RCATMOVI.PRG... Compilando RAJUALMA.PRG... Compilando RREFPOLI.PRG... Compilando BANCATA.PRG... Compilando CONCATA.PRG... Enlazando REFACCIO.exe... Error: Unresolved external '_HB_FUN_OCCURS' referenced from I:\FWH\LIB\FIVEH.LIB|VALTOSTR Error: Unresolved external '_hb_strAtI' referenced from I:\FWH\LIB\FIVEH.LIB|VSTRFUN1 Error: Unresolved external '_HB_FUN_HB_BLEN' referenced from I:\FWH\LIB\FIVEH.LIB|OLEFUNCS Error: Unresolved external '_HB_FUN___OLEVARIANTNEW' referenced from I:\FWH\LIB\FIVEH.LIB|ADOFUNCS Error: Unresolved external '_HB_FUN_HB_TSTOUTC' referenced from I:\FWH\LIB\FIVEH.LIB|VALTOSTR Error: Unresolved external '_hb_extIsNil' referenced from I:\FWH\LIB\FIVEHC.LIB|RICHEDIT Error: Unresolved external 'AdsSetServerType' referenced from I:\HARBOUR\LIB\RDDADS.LIB|adsfunc Error: Unresolved external 'AdsGetDateFormat' referenced from I:\HARBOUR\LIB\RDDADS.LIB|adsfunc Error: Unresolved external 'AdsSetDateFormat' referenced from I:\HARBOUR\LIB\RDDADS.LIB|adsfunc Error: Unresolved external 'AdsGetEpoch' referenced from I:\HARBOUR\LIB\RDDADS.LIB|adsfunc Error: Unresolved external 'AdsSetEpoch' referenced from I:\HARBOUR\LIB\RDDADS.LIB|adsfunc Error: Unresolved external 'AdsApplicationExit' referenced from I:\HARBOUR\LIB\RDDADS.LIB|adsfunc Error: Unresolved external 'AdsIsServerLoaded' referenced from I:\HARBOUR\LIB\RDDADS.LIB|adsfunc Error: Unresolved external 'AdsUnlockRecord' referenced from I:\HARBOUR\LIB\RDDADS.LIB|adsfunc Error: Unresolved external 'AdsGetMemoDataType' referenced from I:\HARBOUR\LIB\RDDADS.LIB|adsfunc Error: Unresolved external 'AdsGetTableConnection' referenced from I:\HARBOUR\LIB\RDDADS.LIB|adsfunc Error: Unresolved external 'AdsGetConnectionType' referenced from I:\HARBOUR\LIB\RDDADS.LIB|adsfunc Error: Unresolved external 'AdsGetServerTime' referenced from I:\HARBOUR\LIB\RDDADS.LIB|adsfunc Error: Unresolved external 'AdsIsTableLocked' referenced from I:\HARBOUR\LIB\RDDADS.LIB|adsfunc Error: Unresolved external 'AdsIsRecordLocked' referenced from I:\HARBOUR\LIB\RDDADS.LIB|adsfunc Error: Unresolved external 'AdsGetTableCharType' referenced from I:\HARBOUR\LIB\RDDADS.LIB|adsfunc Error: Unresolved external 'AdsGetDefault' referenced from I:\HARBOUR\LIB\RDDADS.LIB|adsfunc Error: Unresolved external 'AdsSetDefault' referenced from I:\HARBOUR\LIB\RDDADS.LIB|adsfunc Error: Unresolved external 'AdsGetSearchPath' referenced from I:\HARBOUR\LIB\RDDADS.LIB|adsfunc Error: Unresolved external 'AdsSetSearchPath' referenced from I:\HARBOUR\LIB\RDDADS.LIB|adsfunc Error: Unresolved external 'AdsGetDeleted' referenced from I:\HARBOUR\LIB\RDDADS.LIB|adsfunc Error: Unresolved external 'AdsShowDeleted' referenced from I:\HARBOUR\LIB\RDDADS.LIB|adsfunc Error: Unresolved external 'AdsGetExact' referenced from I:\HARBOUR\LIB\RDDADS.LIB|adsfunc Error: Unresolved external 'AdsSetExact' referenced from I:\HARBOUR\LIB\RDDADS.LIB|adsfunc Error: Unresolved external 'AdsBinaryToFile' referenced from I:\HARBOUR\LIB\RDDADS.LIB|adsfunc Error: Unresolved external 'AdsFileToBinary' referenced from I:\HARBOUR\LIB\RDDADS.LIB|adsfunc Error: Unresolved external 'AdsGetRecordNum' referenced from I:\HARBOUR\LIB\RDDADS.LIB|adsfunc Error: Unresolved external 'AdsGetKeyNum' referenced from I:\HARBOUR\LIB\RDDADS.LIB|adsfunc Error: Unresolved external 'AdsGetScope' referenced from I:\HARBOUR\LIB\RDDADS.LIB|adsfunc Error: Unresolved external 'AdsGotoTop' referenced from I:\HARBOUR\LIB\RDDADS.LIB|adsfunc Error: Unresolved external 'AdsAtEOF' referenced from I:\HARBOUR\LIB\RDDADS.LIB|adsfunc Error: Unresolved external 'AdsSkip' referenced from I:\HARBOUR\LIB\RDDADS.LIB|adsfunc Error: Unresolved external 'AdsGetRecordCount' referenced from I:\HARBOUR\LIB\RDDADS.LIB|adsfunc Error: Unresolved external 'AdsAddCustomKey' referenced from I:\HARBOUR\LIB\RDDADS.LIB|adsfunc Error: Unresolved external 'AdsGetIndexHandleByOrder' referenced from I:\HARBOUR\LIB\RDDADS.LIB|adsfunc Error: Unresolved external 'AdsGetIndexHandle' referenced from I:\HARBOUR\LIB\RDDADS.LIB|adsfunc Error: Unresolved external 'AdsDeleteCustomKey' referenced from I:\HARBOUR\LIB\RDDADS.LIB|adsfunc Error: Unresolved external 'AdsClearAOF' referenced from I:\HARBOUR\LIB\RDDADS.LIB|adsfunc Error: Unresolved external 'AdsEvalAOF' referenced from I:\HARBOUR\LIB\RDDADS.LIB|adsfunc Error: Unresolved external 'AdsGetTableAlias' referenced from I:\HARBOUR\LIB\RDDADS.LIB|adsfunc Error: Unresolved external 'AdsGetAOF' referenced from I:\HARBOUR\LIB\RDDADS.LIB|adsfunc Error: Unresolved external 'AdsGetAOFOptLevel' referenced from I:\HARBOUR\LIB\RDDADS.LIB|adsfunc Error: Unresolved external 'AdsIsRecordInAOF' referenced from I:\HARBOUR\LIB\RDDADS.LIB|adsfunc Error: Unresolved external 'AdsRefreshAOF' referenced from I:\HARBOUR\LIB\RDDADS.LIB|adsfunc Error: Unresolved external 'AdsSetAOF' referenced from I:\HARBOUR\LIB\RDDADS.LIB|adsfunc Error: Unresolved external 'AdsGetFilter' referenced from I:\HARBOUR\LIB\RDDADS.LIB|adsfunc Error: Unresolved external 'AdsEnableEncryption' referenced from I:\HARBOUR\LIB\RDDADS.LIB|adsfunc Error: Unresolved external 'AdsDisableEncryption' referenced from I:\HARBOUR\LIB\RDDADS.LIB|adsfunc Error: Unresolved external 'AdsEncryptTable' referenced from I:\HARBOUR\LIB\RDDADS.LIB|adsfunc Error: Unresolved external 'AdsDecryptTable' referenced from I:\HARBOUR\LIB\RDDADS.LIB|adsfunc Error: Unresolved external 'AdsEncryptRecord' referenced from I:\HARBOUR\LIB\RDDADS.LIB|adsfunc Error: Unresolved external 'AdsDecryptRecord' referenced from I:\HARBOUR\LIB\RDDADS.LIB|adsfunc Error: Unresolved external 'AdsIsEncryptionEnabled' referenced from I:\HARBOUR\LIB\RDDADS.LIB|adsfunc Error: Unresolved external 'AdsIsRecordEncrypted' referenced from I:\HARBOUR\LIB\RDDADS.LIB|adsfunc Error: Unresolved external 'AdsIsTableEncrypted' referenced from I:\HARBOUR\LIB\RDDADS.LIB|adsfunc Error: Unresolved external 'AdsConnect' referenced from I:\HARBOUR\LIB\RDDADS.LIB|adsfunc Error: Unresolved external 'AdsStmtSetTableLockType' referenced from I:\HARBOUR\LIB\RDDADS.LIB|adsfunc Error: Unresolved external 'AdsCreateSQLStatement' referenced from I:\HARBOUR\LIB\RDDADS.LIB|adsfunc Error: Unresolved external 'AdsStmtSetTableType' referenced from I:\HARBOUR\LIB\RDDADS.LIB|adsfunc Error: Unresolved external 'AdsCloseSQLStatement' referenced from I:\HARBOUR\LIB\RDDADS.LIB|adsfunc Error: Unresolved external 'AdsExecuteSQLDirect' referenced from I:\HARBOUR\LIB\RDDADS.LIB|adsfunc Error: Unresolved external 'AdsPrepareSQL' referenced from I:\HARBOUR\LIB\RDDADS.LIB|adsfunc Error: Unresolved external 'AdsExecuteSQL' referenced from I:\HARBOUR\LIB\RDDADS.LIB|adsfunc Error: Unresolved external 'AdsSetDecimals' referenced from I:\HARBOUR\LIB\RDDADS.LIB|ads1 Error: Unresolved external 'AdsGetErrorString' referenced from I:\HARBOUR\LIB\RDDADS.LIB|ads1 Error: Unresolved external 'AdsAtBOF' referenced from I:\HARBOUR\LIB\RDDADS.LIB|ads1 Error: Unresolved external 'AdsIsFound' referenced from I:\HARBOUR\LIB\RDDADS.LIB|ads1 Error: Unresolved external 'AdsSetScope' referenced from I:\HARBOUR\LIB\RDDADS.LIB|ads1 Error: Unresolved external 'AdsGetRelKeyPos' referenced from I:\HARBOUR\LIB\RDDADS.LIB|ads1 Error: Unresolved external 'AdsSetRelKeyPos' referenced from I:\HARBOUR\LIB\RDDADS.LIB|ads1 Error: Unresolved external 'AdsCloseTable' referenced from I:\HARBOUR\LIB\RDDADS.LIB|ads1 Error: Unresolved external 'AdsGotoBottom' referenced from I:\HARBOUR\LIB\RDDADS.LIB|ads1 Error: Unresolved external 'AdsGotoRecord' referenced from I:\HARBOUR\LIB\RDDADS.LIB|ads1 Error: Unresolved external 'AdsSeekLast' referenced from I:\HARBOUR\LIB\RDDADS.LIB|ads1 Error: Unresolved external 'AdsSeek' referenced from I:\HARBOUR\LIB\RDDADS.LIB|ads1 Error: Unresolved external 'AdsRefreshRecord' referenced from I:\HARBOUR\LIB\RDDADS.LIB|ads1 Error: Unresolved external 'AdsAppendRecord' referenced from I:\HARBOUR\LIB\RDDADS.LIB|ads1 Error: Unresolved external 'AdsDeleteRecord' referenced from I:\HARBOUR\LIB\RDDADS.LIB|ads1 Error: Unresolved external 'AdsIsRecordDeleted' referenced from I:\HARBOUR\LIB\RDDADS.LIB|ads1 Error: Unresolved external 'AdsGetNumFields' referenced from I:\HARBOUR\LIB\RDDADS.LIB|ads1 Error: Unresolved external 'AdsIsEmpty' referenced from I:\HARBOUR\LIB\RDDADS.LIB|ads1 Error: Unresolved external 'AdsGetRecord' referenced from I:\HARBOUR\LIB\RDDADS.LIB|ads1 Error: Unresolved external 'AdsGetFieldW' referenced from I:\HARBOUR\LIB\RDDADS.LIB|ads1 Error: Unresolved external 'AdsGetFieldRaw' referenced from I:\HARBOUR\LIB\RDDADS.LIB|ads1 Error: Unresolved external 'AdsGetField' referenced from I:\HARBOUR\LIB\RDDADS.LIB|ads1 Error: Unresolved external 'AdsGetMilliseconds' referenced from I:\HARBOUR\LIB\RDDADS.LIB|ads1 Error: Unresolved external 'AdsGetLong' referenced from I:\HARBOUR\LIB\RDDADS.LIB|ads1 Error: Unresolved external 'AdsGetLongLong' referenced from I:\HARBOUR\LIB\RDDADS.LIB|ads1 Error: Unresolved external 'AdsGetDouble' referenced from I:\HARBOUR\LIB\RDDADS.LIB|ads1 Error: Unresolved external 'AdsGetJulian' referenced from I:\HARBOUR\LIB\RDDADS.LIB|ads1 Error: Unresolved external 'AdsGetLogical' referenced from I:\HARBOUR\LIB\RDDADS.LIB|ads1 Error: Unresolved external 'AdsGetBinaryLength' referenced from I:\HARBOUR\LIB\RDDADS.LIB|ads1 Error: Unresolved external 'AdsGetBinary' referenced from I:\HARBOUR\LIB\RDDADS.LIB|ads1 Error: Unresolved external 'AdsGetStringW' referenced from I:\HARBOUR\LIB\RDDADS.LIB|ads1 Error: Unresolved external 'AdsGetString' referenced from I:\HARBOUR\LIB\RDDADS.LIB|ads1 Error: Unresolved external 'AdsGetMemoLength' referenced from I:\HARBOUR\LIB\RDDADS.LIB|ads1 Error: Unresolved external 'AdsWriteRecord' referenced from I:\HARBOUR\LIB\RDDADS.LIB|ads1 Error: Unresolved external 'AdsSetRecord' referenced from I:\HARBOUR\LIB\RDDADS.LIB|ads1 Error: Unresolved external 'AdsSetFieldRaw' referenced from I:\HARBOUR\LIB\RDDADS.LIB|ads1 Error: Unresolved external 'AdsSetDouble' referenced from I:\HARBOUR\LIB\RDDADS.LIB|ads1 Error: Unresolved external 'AdsSetMilliseconds' referenced from I:\HARBOUR\LIB\RDDADS.LIB|ads1 Error: Unresolved external 'AdsSetJulian' referenced from I:\HARBOUR\LIB\RDDADS.LIB|ads1 Error: Unresolved external 'AdsSetLogical' referenced from I:\HARBOUR\LIB\RDDADS.LIB|ads1 Error: Unresolved external 'AdsSetBinary' referenced from I:\HARBOUR\LIB\RDDADS.LIB|ads1 Error: Unresolved external 'AdsSetStringW' referenced from I:\HARBOUR\LIB\RDDADS.LIB|ads1 Error: Unresolved external 'AdsSetString' referenced from I:\HARBOUR\LIB\RDDADS.LIB|ads1 Error: Unresolved external 'AdsRecallRecord' referenced from I:\HARBOUR\LIB\RDDADS.LIB|ads1 Error: Unresolved external 'AdsCreateTable' referenced from I:\HARBOUR\LIB\RDDADS.LIB|ads1 Error: Unresolved external 'AdsGetLastTableUpdate' referenced from I:\HARBOUR\LIB\RDDADS.LIB|ads1 Error: Unresolved external 'AdsGetAllLocks' referenced from I:\HARBOUR\LIB\RDDADS.LIB|ads1 Error: Unresolved external 'AdsGetTableFilename' referenced from I:\HARBOUR\LIB\RDDADS.LIB|ads1 Error: Unresolved external 'AdsGetNumLocks' referenced from I:\HARBOUR\LIB\RDDADS.LIB|ads1 Error: Unresolved external 'AdsGetVersion' referenced from I:\HARBOUR\LIB\RDDADS.LIB|ads1 Error: Unresolved external 'AdsGetHandleType' referenced from I:\HARBOUR\LIB\RDDADS.LIB|ads1 Error: Unresolved external 'AdsOpenTable' referenced from I:\HARBOUR\LIB\RDDADS.LIB|ads1 Error: Unresolved external 'AdsGetFieldName' referenced from I:\HARBOUR\LIB\RDDADS.LIB|ads1 Error: Unresolved external 'AdsGetFieldType' referenced from I:\HARBOUR\LIB\RDDADS.LIB|ads1 Error: Unresolved external 'AdsGetFieldLength' referenced from I:\HARBOUR\LIB\RDDADS.LIB|ads1 Error: Unresolved external 'AdsGetFieldDecimals' referenced from I:\HARBOUR\LIB\RDDADS.LIB|ads1 Error: Unresolved external 'AdsGetRecordLength' referenced from I:\HARBOUR\LIB\RDDADS.LIB|ads1 Error: Unresolved external 'AdsGetTableType' referenced from I:\HARBOUR\LIB\RDDADS.LIB|ads1 Error: Unresolved external 'AdsPackTable' referenced from I:\HARBOUR\LIB\RDDADS.LIB|ads1 Error: Unresolved external 'AdsZapTable' referenced from I:\HARBOUR\LIB\RDDADS.LIB|ads1 Error: Unresolved external 'AdsClearRelation' referenced from I:\HARBOUR\LIB\RDDADS.LIB|ads1 Error: Unresolved external 'AdsSetScopedRelation' referenced from I:\HARBOUR\LIB\RDDADS.LIB|ads1 Error: Unresolved external 'AdsSetRelation' referenced from I:\HARBOUR\LIB\RDDADS.LIB|ads1 Error: Unresolved external 'AdsFlushFileBuffers' referenced from I:\HARBOUR\LIB\RDDADS.LIB|ads1 Error: Unresolved external 'AdsCloseAllIndexes' referenced from I:\HARBOUR\LIB\RDDADS.LIB|ads1 Error: Unresolved external 'AdsReindex' referenced from I:\HARBOUR\LIB\RDDADS.LIB|ads1 Error: Unresolved external 'AdsCreateIndex61' referenced from I:\HARBOUR\LIB\RDDADS.LIB|ads1 Error: Unresolved external 'AdsDeleteIndex' referenced from I:\HARBOUR\LIB\RDDADS.LIB|ads1 Error: Unresolved external 'AdsGetIndexExpr' referenced from I:\HARBOUR\LIB\RDDADS.LIB|ads1 Error: Unresolved external 'AdsGetIndexCondition' referenced from I:\HARBOUR\LIB\RDDADS.LIB|ads1 Error: Unresolved external 'AdsIsIndexDescending' referenced from I:\HARBOUR\LIB\RDDADS.LIB|ads1 Error: Unresolved external 'AdsSetIndexDirection' referenced from I:\HARBOUR\LIB\RDDADS.LIB|ads1 Error: Unresolved external 'AdsIsIndexUnique' referenced from I:\HARBOUR\LIB\RDDADS.LIB|ads1 Error: Unresolved external 'AdsGetKeyLength' referenced from I:\HARBOUR\LIB\RDDADS.LIB|ads1 Error: Unresolved external 'AdsExtractKey' referenced from I:\HARBOUR\LIB\RDDADS.LIB|ads1 Error: Unresolved external 'AdsGetKeyType' referenced from I:\HARBOUR\LIB\RDDADS.LIB|ads1 Error: Unresolved external 'AdsGetIndexName' referenced from I:\HARBOUR\LIB\RDDADS.LIB|ads1 Error: Unresolved external 'AdsGetIndexOrderByHandle' referenced from I:\HARBOUR\LIB\RDDADS.LIB|ads1 Error: Unresolved external 'AdsGetIndexFilename' referenced from I:\HARBOUR\LIB\RDDADS.LIB|ads1 Error: Unresolved external 'AdsOpenIndex' referenced from I:\HARBOUR\LIB\RDDADS.LIB|ads1 Error: Unresolved external 'AdsCloseIndex' referenced from I:\HARBOUR\LIB\RDDADS.LIB|ads1 Error: Unresolved external 'AdsGetNumIndexes' referenced from I:\HARBOUR\LIB\RDDADS.LIB|ads1 Error: Unresolved external 'AdsClearScope' referenced from I:\HARBOUR\LIB\RDDADS.LIB|ads1 Error: Unresolved external 'AdsIsIndexCustom' referenced from I:\HARBOUR\LIB\RDDADS.LIB|ads1 Error: Unresolved external 'AdsSkipUnique' referenced from I:\HARBOUR\LIB\RDDADS.LIB|ads1 Error: Unresolved external 'AdsClearFilter' referenced from I:\HARBOUR\LIB\RDDADS.LIB|ads1 Error: Unresolved external 'AdsIsExprValid' referenced from I:\HARBOUR\LIB\RDDADS.LIB|ads1 Error: Unresolved external 'AdsSetFilter' referenced from I:\HARBOUR\LIB\RDDADS.LIB|ads1 Error: Unresolved external 'AdsLockRecord' referenced from I:\HARBOUR\LIB\RDDADS.LIB|ads1 Error: Unresolved external 'AdsLockTable' referenced from I:\HARBOUR\LIB\RDDADS.LIB|ads1 Error: Unresolved external 'AdsUnlockTable' referenced from I:\HARBOUR\LIB\RDDADS.LIB|ads1 Error: Unresolved external 'AdsCustomizeAOF' referenced from I:\HARBOUR\LIB\RDDADS.LIB|ads1 Error: Unresolved external 'AdsVerifySQL' referenced from I:\HARBOUR\LIB\RDDADS.LIB|adsfunc Error: Unresolved external 'AdsCloseAllTables' referenced from I:\HARBOUR\LIB\RDDADS.LIB|adsfunc Error: Unresolved external 'AdsWriteAllRecords' referenced from I:\HARBOUR\LIB\RDDADS.LIB|adsfunc Error: Unresolved external 'AdsCopyTable' referenced from I:\HARBOUR\LIB\RDDADS.LIB|adsfunc Error: Unresolved external 'AdsConvertTable' referenced from I:\HARBOUR\LIB\RDDADS.LIB|adsfunc Error: Unresolved external 'AdsRegisterProgressCallback' referenced from I:\HARBOUR\LIB\RDDADS.LIB|adsfunc Error: Unresolved external 'AdsClearProgressCallback' referenced from I:\HARBOUR\LIB\RDDADS.LIB|adsfunc Error: Unresolved external 'AdsIsConnectionAlive' referenced from I:\HARBOUR\LIB\RDDADS.LIB|adsfunc Error: Unresolved external 'AdsGetLastError' referenced from I:\HARBOUR\LIB\RDDADS.LIB|adsfunc Error: Unresolved external 'AdsGetNumOpenTables' referenced from I:\HARBOUR\LIB\RDDADS.LIB|adsfunc Error: Unresolved external 'AdsShowError' referenced from I:\HARBOUR\LIB\RDDADS.LIB|adsfunc Error: Unresolved external 'AdsBeginTransaction' referenced from I:\HARBOUR\LIB\RDDADS.LIB|adsfunc Error: Unresolved external 'AdsCommitTransaction' referenced from I:\HARBOUR\LIB\RDDADS.LIB|adsfunc Error: Unresolved external 'AdsFailedTransactionRecovery' referenced from I:\HARBOUR\LIB\RDDADS.LIB|adsfunc Error: Unresolved external 'AdsInTransaction' referenced from I:\HARBOUR\LIB\RDDADS.LIB|adsfunc Error: Unresolved external 'AdsRollbackTransaction' referenced from I:\HARBOUR\LIB\RDDADS.LIB|adsfunc Error: Unresolved external 'AdsCacheRecords' referenced from I:\HARBOUR\LIB\RDDADS.LIB|adsfunc Error: Unresolved external 'AdsCacheOpenTables' referenced from I:\HARBOUR\LIB\RDDADS.LIB|adsfunc Error: Unresolved external 'AdsCacheOpenCursors' referenced from I:\HARBOUR\LIB\RDDADS.LIB|adsfunc Error: Unresolved external 'AdsGetNumActiveLinks' referenced from I:\HARBOUR\LIB\RDDADS.LIB|adsfunc Error: Unresolved external 'AdsDDAddTable' referenced from I:\HARBOUR\LIB\RDDADS.LIB|adsfunc Error: Unresolved external 'AdsDDRemoveTable' referenced from I:\HARBOUR\LIB\RDDADS.LIB|adsfunc Error: Unresolved external 'AdsDDRemoveIndexFile' referenced from I:\HARBOUR\LIB\RDDADS.LIB|adsfunc Error: Unresolved external 'AdsDDAddUserToGroup' referenced from I:\HARBOUR\LIB\RDDADS.LIB|adsfunc Error: Unresolved external 'AdsDDRemoveUserFromGroup' referenced from I:\HARBOUR\LIB\RDDADS.LIB|adsfunc Error: Unresolved external 'AdsDDCreate' referenced from I:\HARBOUR\LIB\RDDADS.LIB|adsfunc Error: Unresolved external 'AdsDDCreateUser' referenced from I:\HARBOUR\LIB\RDDADS.LIB|adsfunc Error: Unresolved external 'AdsDDDeleteUser' referenced from I:\HARBOUR\LIB\RDDADS.LIB|adsfunc Error: Unresolved external 'AdsDDGetDatabaseProperty' referenced from I:\HARBOUR\LIB\RDDADS.LIB|adsfunc Error: Unresolved external 'AdsDDSetDatabaseProperty' referenced from I:\HARBOUR\LIB\RDDADS.LIB|adsfunc Error: Unresolved external 'AdsConnect60' referenced from I:\HARBOUR\LIB\RDDADS.LIB|adsfunc Error: Unresolved external 'AdsDDGetUserProperty' referenced from I:\HARBOUR\LIB\RDDADS.LIB|adsfunc Error: Unresolved external 'AdsDisconnect' referenced from I:\HARBOUR\LIB\RDDADS.LIB|adsfunc Error: Unresolved external 'AdsRestructureTable' referenced from I:\HARBOUR\LIB\RDDADS.LIB|adsfunc Error: Unresolved external 'AdsCopyTableContents' referenced from I:\HARBOUR\LIB\RDDADS.LIB|adsfunc Error: Unresolved external 'AdsFindFirstTable' referenced from I:\HARBOUR\LIB\RDDADS.LIB|adsfunc Error: Unresolved external 'AdsFindNextTable' referenced from I:\HARBOUR\LIB\RDDADS.LIB|adsfunc Error: Unresolved external 'AdsFindClose' referenced from I:\HARBOUR\LIB\RDDADS.LIB|adsfunc Error: Unresolved external 'AdsCheckExistence' referenced from I:\HARBOUR\LIB\RDDADS.LIB|adsfunc Error: Unresolved external 'AdsDeleteFile' referenced from I:\HARBOUR\LIB\RDDADS.LIB|adsfunc Error: Unresolved external 'AdsStmtSetTablePassword' referenced from I:\HARBOUR\LIB\RDDADS.LIB|adsfunc Error: Unresolved external 'AdsGetServerName' referenced from I:\HARBOUR\LIB\RDDADS.LIB|adsfunc Error: Unresolved external 'AdsCloseCachedTables' referenced from I:\HARBOUR\LIB\RDDADS.LIB|adsfunc Error: Unresolved external 'AdsCreateFTSIndex' referenced from I:\HARBOUR\LIB\RDDADS.LIB|adsfunc Error: Unresolved external 'AdsCreateSavepoint' referenced from I:\HARBOUR\LIB\RDDADS.LIB|adsfunc Error: Unresolved external 'AdsRollbackTransaction80' referenced from I:\HARBOUR\LIB\RDDADS.LIB|adsfunc Error: Unresolved external 'AdsDDCreateLink' referenced from I:\HARBOUR\LIB\RDDADS.LIB|adsfunc Error: Unresolved external 'AdsDDModifyLink' referenced from I:\HARBOUR\LIB\RDDADS.LIB|adsfunc Error: Unresolved external 'AdsDDDropLink' referenced from I:\HARBOUR\LIB\RDDADS.LIB|adsfunc Error: Unable to perform link 34 Files, 10 Warnings, 210 Errors Tiempo de compilación: 10.64s Tiempo de enlazado: 2.68s Tiempo total: 13.36s
Con la duda aun Harbour 3.0.0 ó 3.2.0?
La versión de Harbour yo utilizo la última con FWH 19.06. También con Bcc7..4 y sin ningún tipo de problema de todas formas mira el fichero buildh.bat, esta en samples. y enlaza todo lo que hay allí. Yo creo que los errores de compilación son del driver. Seguramente algún experto te podrá ayudar. Enviado desde mi POCOPHONE F1 mediante Tapatalk
Con la duda aun Harbour 3.0.0 ó 3.2.0?
Noe necesitas linkar además la libreria rddads.lib que seguramente podrás encontrar en la carpeta lib de tu distribución de Fivewin, compruébalo
Con le cambio el tipo de letra a TtreeView o Font
Con le cambio el tipo de letra a TtreeView o Font , tambien alguien sabe como colocar el fondo transparente. Segun veo no de puede colocar degradados. [code=fw:236ozprw]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br />    oTree := TTreeView<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #0000ff;">ReDefine</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">100</span>,oDlg,<span style="color: #000000;">0</span>,RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">255</span>, <span style="color: #000000;">255</span>, <span style="color: #000000;">255</span><span style="color: #000000;">&#41;</span> , .T. ,<span style="color: #ff0000;">"ll"</span> <span style="color: #000000;">&#41;</span>  <br />    oTree:<span style="color: #000000;">SetColor</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">16724787</span>,<span style="color: #000000;">12632256</span><span style="color: #000000;">&#41;</span>  <br /><br /> </div>[/code:236ozprw] <!-- m --><a class="postlink" href="http://img153.imageshack.us/img153/9135/tipomenu.png">http://img153.imageshack.us/img153/9135/tipomenu.png</a><!-- m -->
Con le cambio el tipo de letra a TtreeView o Font
Hola Ruben: DEFINE FONT oFontB NAME "Arial" SIZE 0,-12 /* Declaramos el Tree */ oTree := TTreeView():ReDefine( 100, oDlg, 0, GetSysColor( 15 ), .T. ,"" ) /* Asignamos el Font al Tree */ oTree:oFont := oFontB Un Saludo JLL
Con que atacar MySql?
Hola Amigos del foro: Tengo una base de datos MySQL en una red local, ahora el cliente me pide poder acceder a ella desde un dispositivo móvil, (Teléfono, Tablet, etc) Que software, lenguaje, etc. me recomiendan para desarrollar la aplicación para un móvil?. Saludos
Con que atacar MySql?
una web app desarrollada con mod_harbour, sin dudarlo <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> Demo: [url:24e96frm]https&#58;//www&#46;modharbour&#46;org/modharbour_samples/mysql&#46;prg[/url:24e96frm] Código fuente: [url:24e96frm]https&#58;//github&#46;com/FiveTechSoft/mod_harbour/blob/master/samples/mysql&#46;prg[/url:24e96frm]
Con que atacar MySql?
Antonio: Muchas gracias. voy a intentarlo, a ver si no muero en el intento. ojala pudieras orientarme un poco más, que necesito, de donde lo descargo, tiene costo, etc?, ayuda para este ñoño en el tema. Por cierto, feliz día de tu santo, no abuses de las cervezas. Saludos
Con que atacar MySql?
Armando, Es muy sencillo y verás que rápido te "enamoras" de mod_harbour y te conviertes en un programador profesional de web apps usando Harbour <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> Primero tienes que decidir si vas a usar Apache para Windows ó Apache para Linux (puedes usar el Windows 10 WSL linux). También puedes usar Microsoft IIS. Descargas Apache 64 bits para Windows, lo instalas (es super fácil) y tienes que copiar dos ficheros de mod_harbour (está explicado en la web de mod_harbour en github). Y añadir unas líneas de configuración en httpd.conf. mod_harbour es gratuito y libre (todo su código fuente está en github). Por que es asi ? Porque queremos promocionar que Harbour migre a la web y que muchos programadores de Harbour se animen a usarlo y se cree una comunidad grande y fuerte <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> En un solo dia comenzarás a crear tus web apps y poco a poco verás que te haces un experto con muy poco esfuerzo, porque conoces muy bien a Harbour y te sientes muy cómodo usándolo en la web
Con que atacar MySql?
Antonio: Muchas gracias. Necesariamente debe ser Apache de 64 bits?, o puede ser el de 32? Saludos
Con que atacar MySql?
Es mejor el de 64 bits Actualizamos mucho más para 64 bits que para 32.
Con que atacar MySql?
Gracias Antonio Saludos
Con que compilar y lincar FWH 22.10
Acabo de actualizarme a la versión FWH 22.12 y no soy capaz de compilar una prueba. He descargado el harbour y el xharbour de la página de FiveTech a traves del enlace que he recibido por correo. Intento compilar con el buildh.bat incluido en FWH\Samples y me da "El sistema no puede encontrar la ruta especificada.". Yo tengo otras versiones anteriores que utilizo y funcionan perfectamente. Esta nueva la tengo instalada en C:\Fwh_2212\FWH, C:\Fwh_2212\harbour, C:\Fwh_2212\xharbour. No se si el compilador sirve el Borlad bcc7 Que está en C:\bcc7. Si alguien me puede indicar alguna ayuda estaré muy agradecido. Gracias
Con que compilar y lincar FWH 22.10
Hola a todos, He adquirido la última versión de FWH 32b, 22.10 Con que .BAT debo compilar y lincar una aplicación 'normal'? Con Build.bat? Utilizo Harbour y BCC 7.0 32b Muchas gracias,
Con que compilar y lincar FWH 22.10
Carlos, Para un solo PRG usa FWH\samples\buildh.bat con Borland 7 Para más de un PRG usa FWH\makes\hbmk2.zip
Con que compilar y lincar FWH 22.10
[quote="Antonio Linares":uyda4uum]Carlos, Para un solo PRG usa FWH\samples\buildh.bat con Borland 7 Para más de un PRG usa FWH\makes\hbmk2.zip[/quote:uyda4uum] Perfecto, Muchas gracias.
Con que compilar y lincar FWH 22.10
[quote="Antonio Linares":3256nbmk]Carlos, Para un solo PRG usa FWH\samples\buildh.bat con Borland 7 Para más de un PRG usa FWH\makes\hbmk2.zip[/quote:3256nbmk] FWH\makes\hbmk2.zip.... Seguro? De todas maneras comprobaré que LIB se están utilizando en FWH\samples\buildh.bat y las meteré mi .BAT
Con que compilar y lincar FWH 22.10
Carlos, Te he enviado hbmk2.zip por wasap
Con que compilar y lincar FWH 22.10
[quote="Antonio Linares":2zdxphmv]Carlos, Te he enviado hbmk2.zip por wasap[/quote:2zdxphmv] Voy por él. Gracias,
Con que compilar y lincar FWH 22.10
Buenas tardes Julio ! Por favor, actualiza los caminos de los ficheros .bat para compilar, comprueba que los actualiza con los caminos a dónde tienes Harbour y FWH. Muchas gracias. Saludos,
Con que compilar y lincar FWH 22.10
Estimado Julio, Instala Harbour en c:\harbour y FWH en c:\FWH asi debería funcionarte correctamente. Si tienes algún problema, por favor dínoslo gracias y disculpa las molestias
Con que compilar y lincar FWH 22.10
Gracias Antonio. Probaré en otro equipo porque en este tengo diversas aplicaciones antiguas con diferentes versiones de FiveWin y el directorio C:\FWH ya lo tengo ocupado, lo renombraré temporalmente e intentaré compilar. Muchas gracias.
Con que compilar y lincar FWH 22.10
Por cierto el Borland bcc7 sirve ? Embarcadero C++ 7.00 for Win32 Copyright (c) 1993-2015 Embarcadero Technologies, Inc. Try 'bcc32 -h' for a list of core options, or 'bcc32 -h <OPT>' for help on a specific option (e.g. '-h -A'), or 'bcc32 -h -' to see all options. Error E2266: No file names given Gracias
Con que compilar y lincar FWH 22.10
Si, es el que nosotros usamos al usar bcc
Con que compilar y lincar FWH 22.10
Esta línea es la que no encuentra path: %hdir%\bin\win\bcc\harbour xpp /n /i%fwh%\include;%hdir%\include /w /p %2 %3 > comp.log 2> warnings.log y es que verdaderamente dentro del directorio harbour solo hay 8 ejecutables pero no hay ningún directorio "win" No se si eso tiene que ser así y el harbour que yo tengo, (descargado del enlace del correo de FiveTech), no es el correcto. Gracias
Con que compilar y lincar FWH 22.10
Estimado Julio, Descarga por favor este fichero, que incluye todas las versiones de Harbour y tiene la estructura de carpetas correcta: [url:3cplfg16]http&#58;//www&#46;fivetechsoft&#46;com/files/harbour/harbour_all&#46;zip[/url:3cplfg16] Descomprímelo en c:\harbour ( harbour all todo ) para encontrarlo al buscar en estos foros
Con que compilar y lincar FWH 22.10
Ya funciona, cambie los directorios en esa línea por los correctos de mi equipo y ya conseguí un ejecutable. Antonio como siempre al pie del cañón para echarnos una mano. Muchísimas gracias y un saludo.
Con que compilar y lincar FWH 22.10
Julio Cepeda: Para compilar varios PRGs, yo he utilizado durante años el xmate, creo mis ejecutables así como mis librerías. también esta el editor de cristobal
Con respecto a librerias
Una consulta para el que lo ha logrado o conozca la respuesta je je <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) -->. Es posible utilizar un encabezado .h o .ch de borland c++. O hacer una envoltura para utilizarlas. En caso de que no, es posible convertirlas. Esta consulta rara se debe a que quiero implementar una api. logro utilizar las dll relacionadas pero los encabezados estan hechos para borland c++. Y en ella hay definidos unos tipos TYPEDEF que requiere y como son muchos <!-- s:P --><img src="{SMILIES_PATH}/icon_razz.gif" alt=":P" title="Razz" /><!-- s:P --> no se si hay un metodo simple, si es que lo hay. Ya que si cambia de version debo realizar la actualizacion. Gracias y saludos
Con respecto a librerias
Usa #pragma BEGINDUMP y #pragma ENDDUMP para incluir código C en tu PRG y desde dentro de esas dos sentencias, puedes incluir el #include de C directamente <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Con un EXE buscar otro EXE
compañeros, buenos días: Necesito que un EXE mio busque automáticamente a otro EXE mio localizado en otra ruta distinta en PC (independientemente este 2º EXE se esté ejecutando en ese momento o NO) La idea es que el EXE #1 haga un barrido por todo el PC buscando el EXE #2. ¿ Cómo se podría hacer ? Mil gracias. Un saludo. LORENZO.
Con un EXE buscar otro EXE
Utiliza la function HB_dirScan( "C:\", "*.exe" ), y analiza después el array que devuelve XBRowse( HB_dirScan( "C:\", "*.exe" ) ) También seguramente necesites la function aDrives()
Con un EXE buscar otro EXE
Mira se ayuda: [url:iynwbrft]http&#58;//www&#46;pctoledo&#46;com&#46;br/forum/viewtopic&#46;php?f=4&t=18419[/url:iynwbrft] Saludos.
Concantonate two fields in xBrowse
To All Consider this code .. I want to concantonate the fname+", "+mname on one column .. here is the code : [code=fw:1ixnd0u0]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">RESOURCE</span> <span style="color: #ff0000;">"DRVRSLCT"</span>               ;<br />       <span style="color: #0000ff;">COLOR</span> <span style="color: #ff0000;">"W+/W"</span>                                  ;<br />       <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"DRIVER Select for Agency "</span>+xAGENCY     ;<br /><br />        <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">xBROWSE</span> oLBX               ;<br />        RECORDSET oRsDrvr                   ;<br />        COLUMNS                             ;<br />        <span style="color: #ff0000;">'LNAME'</span>,                            ;<br />        <span style="color: #0000ff;">SUBSTR</span><span style="color: #000000;">&#40;</span> ALLTRIM<span style="color: #000000;">&#40;</span>oRsDrvr:<span style="color: #000000;">Fields</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"FNAME"</span><span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span><span style="color: #000000;">&#41;</span>+<span style="color: #ff0000;">", "</span>+ALLTRIM<span style="color: #000000;">&#40;</span>oRsDrvr:<span style="color: #000000;">Fields</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"MNAME"</span><span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span><span style="color: #000000;">&#41;</span>+SPACE<span style="color: #000000;">&#40;</span><span style="color: #000000;">30</span><span style="color: #000000;">&#41;</span>,<span style="color: #000000;">1</span>,<span style="color: #000000;">30</span><span style="color: #000000;">&#41;</span>,   ;  <br />       <span style="color: #ff0000;">'ACTIVE'</span>                            ;<br />       COLSIZES <span style="color: #000000;">95</span>,<span style="color: #000000;">80</span>, <span style="color: #000000;">40</span>                  ;<br />       HEADERS <span style="color: #ff0000;">"Lname"</span>,                    ;<br />             <span style="color: #ff0000;">"Fname"</span>,                    ;<br />             <span style="color: #ff0000;">"Act"</span>                       ;<br />       <span style="color: #0000ff;">ID</span> <span style="color: #000000;">111</span> <span style="color: #0000ff;">of</span> oDlg                      ;<br />      AUTOSORT <span style="color: #0000ff;">AUTOCOLS</span> LINES CELL<br /> </div>[/code:1ixnd0u0] The code breaks on the concantonation of fname+mname .. is there a way to combine both fields in one column ? Thanks Rick Lipkin
Concantonate two fields in xBrowse
[code=fw:1bph3sye]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">XBROWSE</span> oLbx RECORDSET oRsDrvr ;<br />&nbsp; &nbsp;COLUMNS <span style="color: #ff0000;">'Lname'</span>, <span style="color: #ff0000;">'Active'</span> ;<br />&nbsp; &nbsp;FIELDS &nbsp;PADR<span style="color: #000000;">&#40;</span> ALLTRIM<span style="color: #000000;">&#40;</span>oRsDrvr:<span style="color: #000000;">Fields</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"FNAME"</span><span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span><span style="color: #000000;">&#41;</span>+<span style="color: #ff0000;">", "</span>+ALLTRIM<span style="color: #000000;">&#40;</span>oRsDrvr:<span style="color: #000000;">Fields</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"MNAME"</span><span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span><span style="color: #000000;">&#41;</span>, <span style="color: #000000;">30</span> <span style="color: #000000;">&#41;</span> ;<br />&nbsp; &nbsp;HEADERS <span style="color: #00C800;">nil</span>, <span style="color: #ff0000;">'Act'</span>, <span style="color: #ff0000;">'Fname'</span> ;<br />&nbsp; &nbsp;ORDERS <span style="color: #00C800;">nil</span>, <span style="color: #00C800;">nil</span>, <span style="color: #ff0000;">'FNAME'</span> ;<br />&nbsp; &nbsp;COLSIZES <span style="color: #000000;">95</span>, <span style="color: #000000;">40</span>, <span style="color: #000000;">80</span> ;<br />&nbsp; &nbsp;<span style="color: #0000ff;">ID</span> <span style="color: #000000;">111</span> <span style="color: #0000ff;">OF</span> oDlg AUTOSORT LINES CELL<br />&nbsp; &nbsp;<br /><span style="color: #B900B9;">/*<br />Notes:<br />&nbsp; &nbsp;Because we wrote 'Lname' in COLUMNS clause the header will be 'Lname' not 'LNAME'<br />&nbsp; &nbsp;We may not use AUTOCOLS when we are specifying COLUMNS / FIELDS clause<br /><br />&nbsp; &nbsp;COLUMNS clause for independent columns only<br />&nbsp; &nbsp;FIELDS clause for expressions.<br />&nbsp; &nbsp;XBrowse automatically knows the sort order for columns.<br />&nbsp; &nbsp;For expressions, we have to indicate the sort order.<br />&nbsp; &nbsp;<br />&nbsp; &nbsp;Now, we have columns in the order LNAME, ACT, FNAME.<br />&nbsp; &nbsp;We need to rearrange them in the order LNAME, FNAME, ACT<br />&nbsp; &nbsp;<br />&nbsp; &nbsp;We can rearrange in two ways<br /><br />*/</span><br /><br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">// rearrange by moving columns</span><br />&nbsp; &nbsp;oBrw:<span style="color: #000000;">MoveCol</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">3</span>, <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// let us move column 'Fname' to second position.</span><br />&nbsp; &nbsp;<span style="color: #B900B9;">// OR tell the xbrowse what order we want</span><br />&nbsp; &nbsp;oBrw:<span style="color: #000000;">ReArrangeCols</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"LNAME"</span>, <span style="color: #ff0000;">"FNAME"</span>, <span style="color: #ff0000;">"ACT"</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br />&nbsp;</div>[/code:1bph3sye]
Concantonate two fields in xBrowse
Rao Your second suggestion worked GREAT .. here is the code that worked : [code=fw:1kt4ff8d]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">xBROWSE</span> oLbx     ;<br />       RECORDSET oRsDrvr         ;<br />       COLUMNS <span style="color: #ff0000;">'Lname'</span>, <span style="color: #ff0000;">'Active'</span> ;<br />       FIELDS  PADR<span style="color: #000000;">&#40;</span> ALLTRIM<span style="color: #000000;">&#40;</span>oRsDrvr:<span style="color: #000000;">Fields</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"FNAME"</span><span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span><span style="color: #000000;">&#41;</span>+<span style="color: #ff0000;">", "</span>+ALLTRIM<span style="color: #000000;">&#40;</span>oRsDrvr:<span style="color: #000000;">Fields</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"MNAME"</span><span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span><span style="color: #000000;">&#41;</span>, <span style="color: #000000;">30</span> <span style="color: #000000;">&#41;</span> ;<br />       HEADERS <span style="color: #00C800;">nil</span>, <span style="color: #ff0000;">'Active'</span>, <span style="color: #ff0000;">'Fname'</span>;<br />       ORDERS <span style="color: #00C800;">nil</span>, <span style="color: #00C800;">nil</span>, <span style="color: #ff0000;">'FNAME'</span>   ;<br />       COLSIZES <span style="color: #000000;">105</span>, <span style="color: #000000;">60</span>, <span style="color: #000000;">105</span>      ;<br />       <span style="color: #0000ff;">ID</span> <span style="color: #000000;">111</span> <span style="color: #0000ff;">OF</span> oDlg             ;<br />       AUTOSORT LINES CELL<br /><br />     oLbx:<span style="color: #000000;">MoveCol</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">3</span>, <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span><br />     *  oLbx:<span style="color: #000000;">ReArrangeCols</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"LNAME"</span>, <span style="color: #ff0000;">"FNAME"</span>, <span style="color: #ff0000;">"ACT"</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br /> </div>[/code:1kt4ff8d] The oLbx:ReArrangeCols .. errored out with but I am using FWH 910 as well : [code=fw:1kt4ff8d]<div class="fw" id="{CB}" style="font-family: monospace;"><br />Application<br />===========<br />   Path and <span style="color: #0000ff;">name</span>: <span style="color: #000000;">C</span>:\FOX\DHEC\VEHSQL-<span style="color: #00C800;">NEW</span>\Veh32.Exe <span style="color: #000000;">&#40;</span><span style="color: #000000;">32</span> bits<span style="color: #000000;">&#41;</span><br />   <span style="color: #0000ff;">Size</span>: <span style="color: #000000;">3</span>,<span style="color: #000000;">510</span>,<span style="color: #000000;">272</span> bytes<br />   Time <span style="color: #0000ff;">from</span> start: <span style="color: #000000;">0</span> hours <span style="color: #000000;">0</span> mins <span style="color: #000000;">15</span> secs <br />   Error occurred <span style="color: #00C800;">at</span>: <span style="color: #000000;">07</span>/<span style="color: #000000;">07</span>/<span style="color: #000000;">2010</span>, <span style="color: #000000;">13</span>:<span style="color: #000000;">55</span>:<span style="color: #000000;">17</span><br />   Error description: <span style="color: #000000;">Warning</span> BASE/<span style="color: #000000;">1005</span>  <span style="color: #0000ff;">Message</span> not found: <span style="color: #000000;">TXBRWCOLUMN</span>:_CREATIONORDER<br />   Args:<br /><br /><span style="color: #000000;">Stack</span> Calls<br />===========<br />   Called <span style="color: #0000ff;">from</span>: <span style="color: #000000;">source</span>\rtl\tobject.prg => TXBRWCOLUMN:<span style="color: #000000;">ERROR</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">172</span><span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: <span style="color: #000000;">source</span>\rtl\tobject.prg => TXBRWCOLUMN:<span style="color: #000000;">MSGNOTFOUND</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">205</span><span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: <span style="color: #000000;">source</span>\rtl\tobject.prg => TXBRWCOLUMN:_CREATIONORDER<span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: .\source\classes\<span style="color: #0000ff;">XBROWSE</span>.PRG => <span style="color: #000000;">&#40;</span>b<span style="color: #000000;">&#41;</span>TXBROWSE:<span style="color: #000000;">REARRANGECOLS</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">4967</span><span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>:  => AEVAL<span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: .\source\classes\<span style="color: #0000ff;">XBROWSE</span>.PRG => TXBROWSE:<span style="color: #000000;">REARRANGECOLS</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">4967</span><span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: <span style="color: #000000;">DRVRSLCT</span>.PRG => DRVRGET<span style="color: #000000;">&#40;</span><span style="color: #000000;">88</span><span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: <span style="color: #000000;">PTRPVIEW</span>.PRG => <span style="color: #000000;">&#40;</span>b<span style="color: #000000;">&#41;</span>_PTRPVIEW<span style="color: #000000;">&#40;</span><span style="color: #000000;">144</span><span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: .\source\classes\TGET.PRG => TGET:<span style="color: #000000;">LVALID</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">1197</span><span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: .\source\classes\CONTROL.PRG => TGET:<span style="color: #000000;">FWLOSTFOCUS</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">923</span><span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: .\source\classes\CONTROL.PRG => TCONTROL:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">1448</span><span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: .\source\classes\TGET.PRG => TGET:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">586</span><span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: .\source\classes\<span style="color: #0000ff;">WINDOW</span>.PRG => _FWH<span style="color: #000000;">&#40;</span><span style="color: #000000;">3347</span><span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>:  => SYSREFRESH<span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: .\source\classes\CONTROL.PRG => TCONTROL:<span style="color: #000000;">KEYCHAR</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">730</span><span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: .\source\classes\TGET.PRG => TGET:<span style="color: #000000;">KEYCHAR</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">1105</span><span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>:  => TWINDOW:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: .\source\classes\CONTROL.PRG => TCONTROL:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">1469</span><span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: .\source\classes\TGET.PRG => TGET:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">586</span><span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: .\source\classes\<span style="color: #0000ff;">WINDOW</span>.PRG => _FWH<span style="color: #000000;">&#40;</span><span style="color: #000000;">3347</span><span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>:  => DIALOGBOX<span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: .\source\classes\<span style="color: #0000ff;">DIALOG</span>.PRG => TDIALOG:<span style="color: #0000ff;">ACTIVATE</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">273</span><span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: <span style="color: #000000;">PTRPVIEW</span>.PRG => _PTRPVIEW<span style="color: #000000;">&#40;</span><span style="color: #000000;">205</span><span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: <span style="color: #000000;">PTRPBROW</span>.PRG => <span style="color: #000000;">&#40;</span>b<span style="color: #000000;">&#41;</span>_PTRPBROW<span style="color: #000000;">&#40;</span><span style="color: #000000;">106</span><span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: .\source\classes\<span style="color: #0000ff;">BUTTON</span>.PRG => TBUTTON:<span style="color: #0000ff;">CLICK</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">176</span><span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: .\source\classes\CONTROL.PRG => TBUTTON:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">1427</span><span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: .\source\classes\<span style="color: #0000ff;">WINDOW</span>.PRG => _FWH<span style="color: #000000;">&#40;</span><span style="color: #000000;">3347</span><span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>:  => SENDMESSAGE<span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: .\source\classes\<span style="color: #0000ff;">DIALOG</span>.PRG => TDIALOG:<span style="color: #000000;">COMMAND</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">407</span><span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>:  => TWINDOW:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: .\source\classes\<span style="color: #0000ff;">DIALOG</span>.PRG => TDIALOG:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">928</span><span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>:  => DIALOGBOX<span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: .\source\classes\<span style="color: #0000ff;">DIALOG</span>.PRG => TDIALOG:<span style="color: #0000ff;">ACTIVATE</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">273</span><span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: <span style="color: #000000;">PTRPBROW</span>.PRG => _PTRPBROW<span style="color: #000000;">&#40;</span><span style="color: #000000;">149</span><span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: <span style="color: #000000;">RESBROW</span>.PRG => <span style="color: #000000;">&#40;</span>b<span style="color: #000000;">&#41;</span>_RBROW<span style="color: #000000;">&#40;</span><span style="color: #000000;">297</span><span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: .\source\classes\<span style="color: #0000ff;">WINDOW</span>.PRG => TWINDOW:<span style="color: #000000;">LDBLCLICK</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">1860</span><span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: .\source\classes\CONTROL.PRG => TCONTROL:<span style="color: #000000;">LDBLCLICK</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">1484</span><span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: .\source\classes\<span style="color: #0000ff;">XBROWSE</span>.PRG => TXBROWSE:<span style="color: #000000;">LDBLCLICK</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">3363</span><span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>:  => TWINDOW:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: .\source\classes\CONTROL.PRG => TCONTROL:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">1469</span><span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: .\source\classes\<span style="color: #0000ff;">XBROWSE</span>.PRG => TXBROWSE:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">10158</span><span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: .\source\classes\<span style="color: #0000ff;">WINDOW</span>.PRG => _FWH<span style="color: #000000;">&#40;</span><span style="color: #000000;">3347</span><span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>:  => WINRUN<span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: .\source\classes\<span style="color: #0000ff;">WINDOW</span>.PRG => TMDIFRAME:<span style="color: #0000ff;">ACTIVATE</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">966</span><span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: <span style="color: #000000;">MAIN</span>.PRG => MAIN<span style="color: #000000;">&#40;</span><span style="color: #000000;">411</span><span style="color: #000000;">&#41;</span><br /> </div>[/code:1kt4ff8d] Thanks for your help ONCE again! Rick
Concatenar 2 o mas campos en xbrowse
Hola. Estoy tratando de mostrar 2 o mas campos de una dbf en una misma columna de xbrowse. para que aparezca asi : "99/15-baldes" Estos son 3 campos distintos. 99 15 Baldes. Gracias
Concatenar 2 o mas campos en xbrowse
Hola, yo lo hago así.... Es un ejemplo funcionando, con mis datos. oCol:=xbr:AddCol() oCol:cHeader := "Nombre y Apellido" oCol:cFooter := "Nombre y Apellido" oCol:bStrData:= {|| rtrim(lTrim(oClientes:NOM)) + "/"+rtrim(lTrim( oClientes:APE)) +"-"+ oClientes:recipiente } campo donde esta el 99 + "/" agregas la barra + campo donde esta el 16 + "-" + campo baldes oCol:nDataStrAlign:= AL_LEFT oCol:oDataFont:= oFont3 oCol:oHeaderFont := oFont4 oCol:oFooterFont := oFont4 oCol:nWidth:= 240 Saludos Ruben Dario Fernandez
Concatenar 2 o mas campos en xbrowse
[code=fw:tmqp2gz7]<div class="fw" id="{CB}" style="font-family: monospace;"> &nbsp; USE CUSTOMER<br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">400</span>,<span style="color: #000000;">400</span> <span style="color: #0000ff;">PIXEL</span> TRUEPIXEL<br />&nbsp; &nbsp;@ <span style="color: #000000;">20</span>,<span style="color: #000000;">20</span> <span style="color: #0000ff;">XBROWSE</span> oBrw <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">-20</span>,<span style="color: #000000;">-20</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg ;<br />&nbsp; &nbsp; &nbsp; DATASOURCE <span style="color: #ff0000;">"CUSTOMER"</span> ;<br />&nbsp; &nbsp; &nbsp; COLUMNS <span style="color: #ff0000;">"First"</span>, <span style="color: #ff0000;">"LTRIM(STR(AGE)) + ' / ' + DTOC(HIREDATE)"</span> ;<br />&nbsp; &nbsp; &nbsp; HEADERS &nbsp;<span style="color: #00C800;">nil</span>, <span style="color: #ff0000;">"AGE/DATE"</span> ;<br />&nbsp; &nbsp; &nbsp; LINES NOBORDER<br /><br />&nbsp; &nbsp;oBrw:<span style="color: #000000;">CreateFromCode</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<br />&nbsp;</div>[/code:tmqp2gz7] [url=https&#58;//imageshack&#46;com/i/poEvQnamp:tmqp2gz7][img:tmqp2gz7]https&#58;//imagizer&#46;imageshack&#46;com/v2/xq90/924/EvQnam&#46;png[/img:tmqp2gz7][/url:tmqp2gz7]
Concatenar 2 o mas campos en xbrowse
[quote="D.Fernandez":1bhtvafb]Hola, yo lo hago así.... Es un ejemplo funcionando, con mis datos. oCol:=xbr:AddCol() oCol:cHeader := "Nombre y Apellido" oCol:cFooter := "Nombre y Apellido" oCol:bStrData:= {|| rtrim(lTrim(oClientes:NOM)) + "/"+rtrim(lTrim( oClientes:APE)) +"-"+ oClientes:recipiente } campo donde esta el 99 + "/" agregas la barra + campo donde esta el 16 + "-" + campo baldes oCol:nDataStrAlign:= AL_LEFT oCol:oDataFont:= oFont3 oCol:oHeaderFont := oFont4 oCol:oFooterFont := oFont4 oCol:nWidth:= 240 Saludos Ruben Dario Fernandez[/quote:1bhtvafb] Unless you are using a very very old version of FWH, please do not use the approach "oBrw:AddCol().oBrw:bStrDate". Please use COLUMNS clause in the XBROWSE command to get the best of XBrowse.
Concatenar 2 o mas campos en xbrowse
Muchas Gracias Ruben Dario y Mr. Rao.
Concatenar 2 string en MSVC
Hola, Necesito concatenar 2 nombres de variables pero estoy teniendo problemas al usar strcat. [code=fw:3d6fys4j]<div class="fw" id="{CB}" style="font-family: monospace;">strcat<span style="color: #000000;">&#40;</span> query, dbname <span style="color: #000000;">&#41;</span>;</div>[/code:3d6fys4j] Como lo hago cuando utilizo con MSVC Gracias de antemano.
Concatenar 2 string en MSVC
Entiendo que los estás haciendo en lenguaje C. 1. Asegúrate de que la primera variable tiene espacio suficiente para que le puedas concatenar la segunda 2. Aseguraté de que ambas variables terminan en cero (end of string) Si copias aqui tu código, te lo revisamos y te funcionará de 10 <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Concatenar 2 string en MSVC
Hola amigo. Sobre todo como dice el Master Antonio, publica tu codigo pero esta funcion no te deberia dar problemas si las cadenas a concatenar estan inicializadas y tambien ten en cuenta lo que haces despues ya que la funcion creo recordar que retorna un puntero a la cadena ampliada, esto es interesante ya que te permite pasarla a la funcion printf directamente. Ah supongo que incluyes la cabecera string.h [code=fw:2flc47wb]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br />    char destino<span style="color: #000000;">&#91;</span><span style="color: #000000;">&#93;</span> = <span style="color: #ff0000;">"Saludos "</span>;<br />    char origen<span style="color: #000000;">&#91;</span><span style="color: #000000;">&#93;</span> = <span style="color: #ff0000;">"amigos de FWH"</span>;<br />    printf<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Cadena final : %s<span style="color: #000000;">\n</span>"</span>,  strcat<span style="color: #000000;">&#40;</span>destino,origen<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>;<br /> </div>[/code:2flc47wb] El C es muy potente pero muy "puñetero", las luchas que he tenido yo y creo que todos con ese lenguaje. <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> Saludos Jose.
Concatenar 2 string en MSVC
Estimado Jose, con todo el cariño del mundo, ese código que has puesto generaría un GPF La razón es simple, el compilador de C ha reservado memoria para los bytes que le has indicado en la primera cadena: char destino[] = "Saludos "; es decir tiene un total de 9 bytes (8 bytes más el byte cero de terminación de cadena). Además de eso, esa memoria no es "dinámica" por lo que solo debe ser de lectura, pero bueno, eso puede aceptarse. El problema es que cuando tu hagas strcat() vas a intentar meterle un total de "amigos de FWH" 14 bytes (13 más el byte para el cero) y obviamente eso no cabe en los 9 bytes de "destino", lo cual va a provocar un GPF porque te sales de lo que mide esa memoria. Como se resuelve esto ? 1. Tienes que darle espacio suficiente a la primera cadena para que acepte una concatenación de la segunda. Asi como la primera mide 9 y vamos a meterle 14 bytes más, pues al menos deberiamos declarar: char destino[ 23 ]; ahora incializariamos esa cadena con su contenido inicial: strcpy( destino, "Saludos " ); asi ya tenemos "Saludos " dentro de esa variable y además tenemos espacio para lo que le vamos a añadir ahora, haciendo: strcat( destino, origen ); y efectivamente como dices, strcat() devuelve el puntero (que apunta al comienzo de "destino") y puedes imprimirlo directamente, etc El C es una maravilla, prueba de ello es Harbour que está programado integramente en C, pero conocer bien estos detalles es lo que hace que nuestro codigo sea sólido y estable como una roca <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> un abrazo
Concatenar una variable.
Buen día amigos: Acudo a ustedes para su colaboración trataré de explicarme, poniendo el código. Local Var1:= "CARTERA" Local Var2:= "VENCIDA" Local num_Var := "0" [color=#FF0040:f5jqh2q3]Antes yo podía concatenar de la siguiente manera:[/color:f5jqh2q3] num_Var := Alltrim(Str( val(num_Var)+1 )) // Incremento ahora num_Var es 1 ? Var&num_Var // Resultado CARTERA, esto es como decir: muestra lo que tiene la variable Var1. num_Var := Alltrim(Str( val(num_Var)+1 )) // Incremento ahora num_Var es 2 ? Var&num_Var // Resultado VENCIDA Actualmente estoy usando Sistema Operativo Windows 8.1, FWH 14.12, Harbour 3.2 y al compilar me muestra el siguiente error: Error E00042 Macro of declared symbol 'Var&num_var' Podrían ayudarme en como hacerlo ahora, para poder concatenar ?, muchas gracias esto me és muy urgente. Atte. Yessica
Concatenar una variable.
Yessica, No es mucho más sencillo que hagas esto ? ? { "CARTERA", "VENCIDA" }[ Val( num_var ) ] Cuanto menos uses las macros mejor <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Concatenar una variable.
[quote="Antonio Linares":32hc9brz]Yessica, No es mucho más sencillo que hagas esto ? ? { "CARTERA", "VENCIDA" }[ Val( num_var ) ] Cuanto menos uses las macros mejor <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->[/quote:32hc9brz] Ok si es buena la idea, pero resulta que actualmente el sistema tiene un sin fin de variables publicas (mal hecho no debió haber sido así), entonces tengo que ajustarme a la programación que se tiene en el sistema, para ponerte un ejemplo usaron lo siguiente: Public E1,E2,E3,E4,E5.......etc, hasta llegar a E200 Ahora cada variable le asignan diferente información. Se valida desde la variable E17 de la siguiente manera: num_Var := "17" [b:32hc9brz]While m->E&num_Var != "FIN" [/b:32hc9brz] Aquí van haciendo el recorrido de las variables desde la E17, hasta que encuentre una que tenga el contenido "FIN" y a la vez van validando el contenido de las variables, ejemplo: If m->E&num_Var == "CONTRATO" Realiza ciertos calculos EndIf Asi sucesivamente dependiendo del contenido de la variable. num_Var := Alltrim(Str( val(num_Var)+1 )) [b:32hc9brz]EndDo [/b:32hc9brz] Cómo te digo, no puedo cambiar la forma en que lo hacen, puesto que sería pegarle a todo el código, donde usan asi las variables. Por ello me es necesario saber ahora de que manera puedo concatenar. Gracias Master ojalá y pueda ayudarme.
Concatenar una variable.
Jessica Quizas esto te ayude. El & sólo funciona al comienzo de la variable [code=fw:3owpfx79]<div class="fw" id="{CB}" style="font-family: monospace;"><br /> Var1:= <span style="color: #ff0000;">"CARTERA"</span><br />   Var2:= <span style="color: #ff0000;">"VENCIDA"</span><br />   num_Var := <span style="color: #ff0000;">"0"</span><br /><br /><br />num_Var := Alltrim<span style="color: #000000;">&#40;</span>Str<span style="color: #000000;">&#40;</span> val<span style="color: #000000;">&#40;</span>num_Var<span style="color: #000000;">&#41;</span><span style="color: #000000;">+1</span> <span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span> <br />cCad:=<span style="color: #ff0000;">"Var"</span>+num_Var<br />?&cCad<br />num_Var := Alltrim<span style="color: #000000;">&#40;</span>Str<span style="color: #000000;">&#40;</span> val<span style="color: #000000;">&#40;</span>num_Var<span style="color: #000000;">&#41;</span><span style="color: #000000;">+1</span> <span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span> <br />cCad:=<span style="color: #ff0000;">"Var"</span>+num_Var<br />?&cCad <br /> </div>[/code:3owpfx79] Saludos, Adhemar
Concatenar una variable.
También se puede [code=fw:mkwho1tc]<div class="fw" id="{CB}" style="font-family: monospace;"><br />&nbsp;?&<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Var"</span>+num_Var<span style="color: #000000;">&#41;</span><br />&nbsp;</div>[/code:mkwho1tc] Saludos, Adhemar
Concatenar una variable.
[quote="acuellar":ak87crkx]Jessica Quizas esto te ayude. El & sólo funciona al comienzo de la variable [code=fw:ak87crkx]<div class="fw" id="{CB}" style="font-family: monospace;"><br /> Var1:= <span style="color: #ff0000;">"CARTERA"</span><br />   Var2:= <span style="color: #ff0000;">"VENCIDA"</span><br />   num_Var := <span style="color: #ff0000;">"0"</span><br /><br /><br />num_Var := Alltrim<span style="color: #000000;">&#40;</span>Str<span style="color: #000000;">&#40;</span> val<span style="color: #000000;">&#40;</span>num_Var<span style="color: #000000;">&#41;</span><span style="color: #000000;">+1</span> <span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span> <br />cCad:=<span style="color: #ff0000;">"Var"</span>+num_Var<br />?&cCad<br />num_Var := Alltrim<span style="color: #000000;">&#40;</span>Str<span style="color: #000000;">&#40;</span> val<span style="color: #000000;">&#40;</span>num_Var<span style="color: #000000;">&#41;</span><span style="color: #000000;">+1</span> <span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span> <br />cCad:=<span style="color: #ff0000;">"Var"</span>+num_Var<br />?&cCad <br /> </div>[/code:ak87crkx] Saludos, Adhemar[/quote:ak87crkx] Gracias por tu pronta contestación Adhemar: Mira probé de las dos formas que me dijiste y aun no logro concatenar el nombre de la variable. Me marca que no Existe la Variable Var1.
Concatenar una variable.
Jessica Quítale el Local ó declararla como Private Saludos, Adhemar
Concatenar una variable.
[quote="acuellar":3r6ymjph]Jessica Quítale el Local ó declararla como Private Saludos, Adhemar[/quote:3r6ymjph] Pues nada sigue igual el problema