topic
stringlengths
1
63
text
stringlengths
1
577k
Configurar GMail para poder enviar con CDOSYS
Saludos Recuerdo haber realizado una configuracion en gmail para poder enviar correos con cdosys. Ahora con estas versiones me marca errores que he visto en el foro. Pero no lo resuelvo.... Envoi Message Impossible Errour 1 SubC 1006 OS Code -2147352573 Subsystem WINOLE Message Argument error Sugerencias
Configurar GMail para poder enviar con CDOSYS
codigo principal [code=fw:1zdx4zt2]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">Try</span><br /><br />&nbsp; &nbsp; &nbsp;oCfg := CreateObject<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"CDO.Configuration"</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; With Object oCfg:<span style="color: #000000;">Fields</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:<span style="color: #000000;">Item</span><span style="color: #000000;">&#40;</span> cdoSMTPServer <span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= AllTrim<span style="color: #000000;">&#40;</span> cMailServer <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// <!-- w --><a class="postlink" href="http://www.gmail.com">www.gmail.com</a><!-- w --> &nbsp; </span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:<span style="color: #000000;">Item</span><span style="color: #000000;">&#40;</span> cdoSMTPServerPort <span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span> &nbsp; &nbsp; &nbsp; &nbsp;:= <span style="color: #000000;">465</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:<span style="color: #000000;">Item</span><span style="color: #000000;">&#40;</span> cdoSendUsing <span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; := <span style="color: #000000;">2</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">If</span> lAuth<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; :<span style="color: #000000;">Item</span><span style="color: #000000;">&#40;</span> cdoSMTPAuthenticate <span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span> &nbsp; := .T.<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; :<span style="color: #000000;">Item</span><span style="color: #000000;">&#40;</span> cdoSendUserName <span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span> &nbsp; &nbsp; &nbsp; := naburtos<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; :<span style="color: #000000;">Item</span><span style="color: #000000;">&#40;</span> cdoSendPassword <span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span> &nbsp; &nbsp; &nbsp; := AllTrim<span style="color: #000000;">&#40;</span> cPass <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// mi clave</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; :<span style="color: #000000;">Item</span><span style="color: #000000;">&#40;</span> cdoSMTPUseSSL <span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span> &nbsp; &nbsp; &nbsp; &nbsp; := .T.<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">EndIf</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:<span style="color: #000000;">Item</span><span style="color: #000000;">&#40;</span> cdoSMTPConnectionTimeout <span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span> := <span style="color: #000000;">30</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:<span style="color: #0000ff;">Update</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; End With<br /><br />&nbsp; &nbsp; &nbsp; oMsg := CreateObject<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"CDO.Message"</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; With Object oMsg<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:<span style="color: #000000;">Configuration</span> := oCfg<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:<span style="color: #0000ff;">From</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= AllTrim<span style="color: #000000;">&#40;</span> cFrom <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// <!-- e --><a href="mailto:naburtos@gmail.com">naburtos@gmail.com</a><!-- e --></span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:<span style="color: #0000ff;">To</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= AllTrim<span style="color: #000000;">&#40;</span> cTo <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// <!-- e --><a href="mailto:noeaburto67@hotmail.com">noeaburto67@hotmail.com</a><!-- e --></span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:<span style="color: #0000ff;">Subject</span> &nbsp; &nbsp; &nbsp; := AllTrim<span style="color: #000000;">&#40;</span> cSubject <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:<span style="color: #000000;">TextBody</span> &nbsp; &nbsp; &nbsp;:= AllTrim<span style="color: #000000;">&#40;</span> cBody <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">For</span> nEle := <span style="color: #000000;">1</span> <span style="color: #0000ff;">To</span> Len<span style="color: #000000;">&#40;</span> aAttach <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> File<span style="color: #000000;">&#40;</span> AllTrim<span style="color: #000000;">&#40;</span> aAttach<span style="color: #000000;">&#91;</span> nEle <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; *:<span style="color: #000000;">AddAttachment</span> := AllTrim<span style="color: #000000;">&#40;</span> aAttach<span style="color: #000000;">&#91;</span> nEle <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:<span style="color: #000000;">AddAttachment</span> <span style="color: #000000;">&#40;</span> AllTrim <span style="color: #000000;">&#40;</span> aAttach<span style="color: #000000;">&#91;</span> nEle <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Aviso<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#123;</span><span style="color: #ff0000;">'El archivo adjunto '</span>+Upper<span style="color: #000000;">&#40;</span>AllTrim<span style="color: #000000;">&#40;</span> aAttach<span style="color: #000000;">&#91;</span> nEle <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">'no será enviado, no existe'</span><span style="color: #000000;">&#125;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">endif</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">Next</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">If</span> ! Empty<span style="color: #000000;">&#40;</span> cBCC <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; :<span style="color: #000000;">BCC</span> := AllTrim<span style="color: #000000;">&#40;</span> cBCC <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">EndIf</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:<span style="color: #000000;">Send</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; End With<br />&nbsp;</div>[/code:1zdx4zt2]
Configurar GMail para poder enviar con CDOSYS
perdon: cMailServer := "smtp.gmail.com"
Configurar GMail para poder enviar con CDOSYS
Simples: [code=fw:2tnm17rf]<div class="fw" id="{CB}" style="font-family: monospace;"><br />@pop.gmail.com &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br /><br />smtp.gmail.com &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br /><br /><!-- e --><a href="mailto:kapiabafwh@gmail.com">kapiabafwh@gmail.com</a><!-- e --> &nbsp; &nbsp; <br /><br />Password<br /><br />SSL := .T. &nbsp;<span style="color: #B900B9;">// SI.</span><br />&nbsp;</div>[/code:2tnm17rf] Permitir aplicaciones menos seguras: DESACTIVADO. -> Active para usar. [url:2tnm17rf]https&#58;//myaccount&#46;google&#46;com/lesssecureapps?pli=1[/url:2tnm17rf] Regards, saludos.
Configurar GMail para poder enviar con CDOSYS
Gracias karinha... con esa habilitaci{on quedo listo.
Configurar ODBC automaticamente
Hola, ¿ Alguien sabe como poder configurar automaticamente un ODBC (p.e. una conexion a Acces) desde dentro la aplicación ? (O sea, que lo que haces manualmente desde la pantalla de configuracion de ODBC's hacerlo con alguna funcion interna) Gracias !!! <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Configurar ODBC automaticamente
Carles, creo recordar que existe una funcion que permitia la cracion de una entrada en el odbc. incluso debe estar en un post viejisimo, se usaba el comando dll para crear la funcion wraper. estoy buscandola....
Configurar ODBC automaticamente
[url:plqhz6pv]https&#58;//support&#46;microsoft&#46;com/es-es/help/287668/how-to-use-sqlconfigdatasource-to-create-an-access-system-dsn[/url:plqhz6pv] no es la que recuerdo, pero es una implementacion diferente. [url:plqhz6pv]http&#58;//forums&#46;fivetechsupport&#46;com/viewtopic&#46;php?f=6&t=5185&start=0[/url:plqhz6pv] [code=fw:plqhz6pv]<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: #00C800;">FUNCTION</span> CfgOdbc<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">LOCAL</span> nRet,cDriver,cAttribute<br />   cDriver   :=<span style="color: #ff0000;">"Client Access ODBC Driver (32-bit)"</span><br />   cAttribute:=<span style="color: #ff0000;">"DSN=BIEL"</span>+Chr<span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span>+<span style="color: #ff0000;">"DESCRIPTION=descipcion"</span>+Chr<span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span>+<span style="color: #ff0000;">"SERVER=192.168.101.1"</span><br />   nRet:=CrtDtaSrc<span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span>,<span style="color: #000000;">1</span>,cDriver, cAttribute <span style="color: #000000;">&#41;</span><br />   <span style="color: #B900B9;">//nRet->0 no se ha creado, 1 creado ok</span><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><br />DLL32 <span style="color: #00C800;">FUNCTION</span> CrtDtaSrc<span style="color: #000000;">&#40;</span>hWnd AS LONG, nRequest AS LONG, @cDriver as STRING  , @cAttributes as STRING<span style="color: #000000;">&#41;</span> ;<br />   AS _INT PASCAL <span style="color: #0000ff;">FROM</span> <span style="color: #ff0000;">"SQLConfigDataSource"</span> LIB <span style="color: #ff0000;">"ODBCCP32"</span></div>[/code:plqhz6pv]
Configurar ODBC automaticamente
aca esta [url:203w3bgd]http&#58;//fivetechsupport&#46;com/forums/viewtopic&#46;php?f=6&t=18619[/url:203w3bgd]
Configurar ODBC automaticamente
Carlos gracias <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> Le hecho un vistazo. Saludos. C.
Configurar ODBC automaticamente
Carles Dumb question ... why use ODBC and not ADO ? .. With ODBC you have to configure every workstation your app runs on... ADO uses the built in Ole providers for Sql Server, Ms Access .. for all others, you have to download the Ole Provider for your RDMS. Rick Lipkin
Configurar ODBC automaticamente
The question is clear. He need a function to create automatically the ODBC on the computer (or computers). ODBC has a new version, like this: [i:eru3v3v9]Microsoft ODBC Driver 11 for SQL Server is a single dynamic-link library (DLL) containing run-time support for applications using native-code APIs to connect to Microsoft SQL Server 2005, 2008, 2008 R2, SQL Server 2012, SQL Server 2014 and Windows Azure SQL Database. Microsoft ODBC Driver 11 for SQL Server should be used to create new applications or enhance existing applications that need to take advantage of new SQL Server 2012 features. This redistributable installer for Microsoft ODBC Driver 11 for SQL Server installs the client components needed during run time to take advantage of new SQL Server 2012 features, and optionally installs the header files needed to develop an application that uses the ODBC API.[/i:eru3v3v9] On IT, sometimes is not just click to install an app, it could involve more work than just a installation step. Regards
Configurar ODBC automaticamente
[quote="Rick Lipkin":25qb2ms9]Carles Dumb question ... why use ODBC and not ADO ? .. With ODBC you have to configure every workstation your app runs on... ADO uses the built in Ole providers for Sql Server, Ms Access .. for all others, you have to download the Ole Provider for your RDMS. Rick Lipkin[/quote:25qb2ms9] Algun sample.? por favor, necesito usar ADO con ODBC para leer unos archivos .DAT de delphi, gracias, saludos... <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: -->
Configurar ODBC automaticamente
Hi, [quote="Rick Lipkin":2nllnfbw]Carles Dumb question ... why use ODBC and not ADO ? .. With ODBC you have to configure every workstation your app runs on... ADO uses the built in Ole providers for Sql Server, Ms Access .. for all others, you have to download the Ole Provider for your RDMS.n[/quote:2nllnfbw] I know and I agree with you, but my problem is another, believe me <!-- s:cry: --><img src="{SMILIES_PATH}/icon_cry.gif" alt=":cry:" title="Crying or Very sad" /><!-- s:cry: --> [quote="Compuin":2nllnfbw]... On IT, sometimes is not just click to install an app, it could involve more work than just a installation step.[/quote:2nllnfbw] Cierto, y el problema esta en una mierda de aplicación de una empresa externa que usa todo el mundo desde hace años y que necesita conectarse via ODBC y es necesario configurar el dns. Claro que si solo hay una maquina se configura y listos, pero en mi caso son unas 180 máquinas y cada vez que se instalan en nuevas ocurre lo mismo. Es por eso que quiero hacer un pequeño programa en FWH y que chequee si existe en la entrada del dns y en caso contrario generar la parametrizacion del dns. Esto lo aplicaria en una politica de arranque del sistema que se ejecute en 2 plano al iniciar el sistema y listos...
Configurar ODBC automaticamente
[quote="Carles":38mqbgmw]Hi, [quote="Rick Lipkin":38mqbgmw]Carles Dumb question ... why use ODBC and not ADO ? .. With ODBC you have to configure every workstation your app runs on... ADO uses the built in Ole providers for Sql Server, Ms Access .. for all others, you have to download the Ole Provider for your RDMS.n[/quote:38mqbgmw] I know and I agree with you, but my problem is another, believe me <!-- s:cry: --><img src="{SMILIES_PATH}/icon_cry.gif" alt=":cry:" title="Crying or Very sad" /><!-- s:cry: --> [quote="Compuin":38mqbgmw]... On IT, sometimes is not just click to install an app, it could involve more work than just a installation step.[/quote:38mqbgmw] Cierto, y el problema esta en una mierda de aplicación de una empresa externa que usa todo el mundo desde hace años y que necesita conectarse via ODBC y es necesario configurar el dns. Claro que si solo hay una maquina se configura y listos, pero en mi caso son unas 180 máquinas y cada vez que se instalan en nuevas ocurre lo mismo. Es por eso que quiero hacer un pequeño programa en FWH y que chequee si existe en la entrada del dns y en caso contrario generar la parametrizacion del dns. Esto lo aplicaria en una politica de arranque del sistema que se ejecute en 2 plano al iniciar el sistema y listos...[/quote:38mqbgmw] Asi es amigo, muchas veces venimos por soluciones y nos ofrecen cambiar pero cuando no se puede hay que buscar resolver. Luego veras si cambias de ODBC a ADO. La idea de una funcion que realice la creacion de los ODBC en forma automatica, para esa cantidad de equipos, te ahorrara tiempo.
Configurar ODBC automaticamente
Carles, para ese caso creo seria mejor la alternativa de crear en el registro la entrada del odbc [url:bpqjrys7]https&#58;//kencenerelli&#46;wordpress&#46;com/2012/07/26/export-an-odbc-data-source-from-the-registry/[/url:bpqjrys7] asi solo usas un archivo reg. bueno solo una idea.
Configurar ResEdit para MSVC32
Hola amigos. Estoy usando Borland 32 bits sin problemas, pero como quiero cambiar a 64 bits en el futuro y observo que es la linea dominante he decidido cambiar a MSVC 32 bits. Teniendo el harbour 32 bits y el VS ya instalados puedo compilar sin problemas los ejemplos de fwh\samples que no tengan .rc El problema es obvio ya que tengo configurado el ResEdit (que es el editor de recursos que utilizo para Borland), tengo los ficheros de cabecera a buscar en C:\bcc7\include... etc. y tambien cargo por defecto la siguiente cabecera , la cual hace que no tenga problemas al editar ficheros .rc [code=fw:2bo8fuiu]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00D7D7;">#include</span> <winresrc.h><br /><span style="color: #00D7D7;">#include</span> <windows.h><br /><span style="color: #00D7D7;">#include</span> <commctrl.h><br /><br />#ifndef WC_TABCONTROL<br /><span style="color: #00D7D7;">#define</span> WC_TABCONTROL <span style="color: #ff0000;">"SysTabControl32"</span><br />#endif<br /><br />#ifndef MONTHCAL_CLASS<br /><span style="color: #00D7D7;">#define</span> MONTHCAL_CLASS <span style="color: #ff0000;">"SysMonthCal32"</span><br />#endif<br /><br />#ifndef DATETIMEPICK_CLASS<br /><span style="color: #00D7D7;">#define</span> DATETIMEPICK_CLASS <span style="color: #ff0000;">"SysDateTimePick32"</span><br />#endif<br /><br />#ifndef VOS__WINDOWS32 <br /><span style="color: #00D7D7;">#define</span> VOS__WINDOWS32 0x00000004L<br />#endif<br /><br />#ifndef VFT_APP<br /><span style="color: #00D7D7;">#define</span> VFT_APP 0x00000001L<br />#endif<br /><br />#ifndef VFT2_UNKNOWN<br /><span style="color: #00D7D7;">#define</span> VFT2_UNKNOWN 0x00000000L<br />#endif<br /><br />#ifndef WC_STATIC<br /><span style="color: #00D7D7;">#define</span> WC_STATIC &nbsp;<span style="color: #ff0000;">"Static"</span><br />#endif<br />&nbsp;</div>[/code:2bo8fuiu] Por supusto no me encuentra estos ficheros #include <winresrc.h> #include <windows.h> #include <commctrl.h> la pregunta es quien este usando el ResEdit con MSVC 32 bits o como ajustar el ResEdit para poder compilar los ficheros .rc con MSVC 32 bits. Despues que tenga configurado MSVC 32 bits creo que dar el paso a 64 sera ya mas facil Muchisimas gracias por vuestra ayuda. Jose.
Configurar ResEdit para MSVC32
yo uso esto para msvc 2019 y 2022 sin problemas. [img:lt3beq9l]https&#58;//i&#46;imgur&#46;com/fIk1eEZ&#46;png[/img:lt3beq9l] Deberas incluir en resedit las rutas donde esta el sdk de ms. una forma rapida de saberlo es abrir ejecutar el vcvarsall.bat y luego escribir el comando set > rutas.txt luego revisa el archivo rutas.txt y ahi encontrara las rutas de los include de msvc. la cuales deberas incluirlas en resedit [img:lt3beq9l]https&#58;//i&#46;imgur&#46;com/FNGxaeQ&#46;png[/img:lt3beq9l] yo en lo personal al tenerl bcc tambien, pues uso los includes de borland sin problemas.
Configurar ResEdit para MSVC32
Buenos dias Carlos. Muchas gracias por tu ayuda, eres el guru del ResEdit, mira que funciona bien pero para configurarlo es "puñetero" , como decimos en España. desconocia lo del set > Rutas.txt Al introducir las rutas en el ResEdit ahora funciona como con Borland. Por cierto , ¿No tendras un fichero .mak para el MSVC32 ?, Ya logre compilar con el hbmk2 (maravillosa Herramienta, rapida, facil de usar, lo tiene todo). Pero me gusta tener todas las posibilidades si se puede. Bueno seguimos. Un abrazo amigo. Jose.
Configurar ResEdit para MSVC32
nop, uso xmate o en su defecto hbmk2 la cual es una gran herramienta... no veo necesidad de un make, creo que en la gran mayoria de las ocaciones te resulve sin problemas, no veo necedidad de complicarse con make. salu2 carlos vargas
Configurar Sublime Text?
Hola: Alguien usa Sublime Text?, podría compartir la configuración para usarlo con PRGs? Saludos
Configurar Sublime Text?
Armando Mira en [url:z4hjegt8]https&#58;//github&#46;com/rafathefull/harbour[/url:z4hjegt8] sintaxis para Harbour y en [url:z4hjegt8]https&#58;//github&#46;com/QuimFerrer/fivewin[/url:z4hjegt8] sintaxis parcial para FiveWin
Configurar Sublime Text?
Quim: Gracias! Saludos
Configurar UEStudio 9
Saludos para todos He conseguido el UEStudio, le copie los archivos que vienen en Fivewin a la carpeta Config y Project, modifique la configuracion cambiando el path de application a FWH = D:\COMPILER\FWH CPATH = D:\COMPILER\xHarbour BPATH = D:\COMPILER\BCC55 Cuando compila el proyecto me sale este errror --------------------Configuración: ORDENES - Debug-------------------- xHarbour Compiler build 1.1.0 (SimpLex) (Rev. 6195) Copyright 1999-2008, <!-- m --><a class="postlink" href="http://www.xharbour.org">http://www.xharbour.org</a><!-- m --> <!-- m --><a class="postlink" href="http://www.harbour-project.org/">http://www.harbour-project.org/</a><!-- m --> D:\Sistemas\RRHH\ORDENES\PRG\ORDENES.PRG(5) Error F0029 Can't open #include file: 'FiveWin.ch' Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland Error E2194: Could not find file 'ORDENES.c' xHarbour Compiler build 1.1.0 (SimpLex) (Rev. 6195) Copyright 1999-2008, <!-- m --><a class="postlink" href="http://www.xharbour.org">http://www.xharbour.org</a><!-- m --> <!-- m --><a class="postlink" href="http://www.harbour-project.org/">http://www.harbour-project.org/</a><!-- m --> D:\Sistemas\RRHH\ORDENES\PRG\ORDEN34.PRG(5) Error F0029 Can't open #include file: 'FiveWin.ch' ORDENES.EXE - 3 error(es), 0 advertencia(s) El fivewin.ch se encuentra en: FWH = D:\COMPILER\FWH\INCLUDE quizas debe ir en otro lado Actualmente uso Verce 5.3 y NotePad++ y funciona, lo que quiero es Enlazar y editar en uno solo Gracias sus ayuda Adhemar
Configurar UEStudio 9
Me pueden sugerir que version debo usar, para buscarla. Gracias distinguidos Saludos Adhemar
Configurar UEStudio 9
Amigos Ya logré que compile, pero me salen estos errores: de Private oWnd y otras variables --------------------Configuración: ORDENES - Debug-------------------- xHarbour Compiler build 1.1.0 (SimpLex) (Rev. 6195) Copyright 1999-2008, <!-- m --><a class="postlink" href="http://www.xharbour.org">http://www.xharbour.org</a><!-- m --> <!-- m --><a class="postlink" href="http://www.harbour-project.org/">http://www.harbour-project.org/</a><!-- m --> D:\Sistemas\RRHH\ORDENES\PRG\ORDENES.PRG(236) Warning W0001 Ambiguous reference: 'OWND' y Error: Unresolved external '_HB_FUN_FILETIME' referenced from D:\SISTEMAS\RRHH\ORDENES\OBJ\ORDENES.OBJ Error: Unresolved external '_HB_FUN_FILEDATE' referenced from D:\SISTEMAS\RRHH\ORDENES\OBJ\ORDENES.OBJ En que libreria estan FILETIME Y FILEDATE? Gracias amigos Saludos Adhemar
Configurar UEStudio 9
Adhemar, > En que libreria estan FILETIME Y FILEDATE? En la libreria CT.LIB de xHarbour En Harbour en HBCT.LIB
Configurar UEStudio 9
Gracias Distinguido Antonio Y sobre los errores advertencia [b:2pgoozj1]Ambiguous reference: 'OWND'[/b:2pgoozj1] que hay que hacer. Gracias por su ayuda Saludos Adhemar
Configurar UEStudio 9
Adhemar, Al principio de tu PRG añade: memvar oWnd
Configurar UEStudio e Build para abrir o Emulador ???
Hola..... Como eu configuro o UEStudio para testar o projeto no emulador após a compilaçao ? Como eu configuro o Buld.bat para testar o projeto no emulador após a compilaçao ? Saludos
Configurar UEStudio e Build para abrir o Emulador ???
Ola amigos Tambem gostaria de saber como fazer é possivel configurar o XMARTE para criar a minha APP e ela chamar o EMULADOR ?? Gracias a todos
Configurar UEStudio e Build para abrir o Emulador ???
Hay que tener el emulador funcionando y usar el directorio donde esta el EXE resultante como directorio compartido para el emulador: ..\deviceemulator ppc_2003_se_wwe_armv4.bin /skin Pocketpc_2003_skin.xml /memsize 128 /sharedfolder c:\proyecto c:\proyecto es el directorio en donde estamos construyendo el EXE. Desde el emulador será la tarjeta de memoria y solo tenemos que hacer click sobre el EXE
Configurar compression en ADS
que tal a todos, leyendo la ayuda de ADS me encontre con que la compresion de datos en los diccionarios es por default con la conexiones por internet sin embargo no se si el default aplica tambien del lado del cliente o tengo que especificarlo en el ADS.INI ???? cualquier ayuda se agradece. saludos Alex
Configurar compression en ADS
No no no, a ver, no van por ahi los tiros mi querido Alex: ADS tiene 3 tipos de compresion EN EL SERVIDOR, dependiendo de lo que vayas a hacer, los valores son: Always Never Internet Si lo pones en NEVER, no va a haber compresion de datos, esto cuando trabajar por internet no es recomendable porque la transferencia de datos toma mas tiempo, pero si para las redes de area local, la transferencia se hace mas rapido, si no vas a usar el AIS, entonces el valor recomendable es NEVER Si lo pones en ALWAYS, es ideal para internet, pero en la red local demora mas tiempo transferir la informacion, si solo lo vas a usar para internet y no para red de area local, entonces ponlo en ALWAYS Si lo pones en INTERNET, (valor recomendado) el servidor detecta si la conexion se hace por el AIS, entonces pone la informacion comprimida, de lo contrario, la envia sin comprimir.
Configurar lenguaje en la pocket
Hola, Esto es lo que usamos en FWH para escritorio: REQUEST HB_LANG_ES // Para establecer español para Mensajes, fechas, etc.. REQUEST HB_CODEPAGE_ESWIN // Para establecer código de página a Español (Ordenación, etc..) HB_LangSelect('ES') HB_SetCodePage("ESWIN") // Para ordenación (arrays, cadenas, etc..) ¿Es correcto? Y si es correcto, ¿se usaría igual para la pocket con FWPPC ? Un Saludo, Joaquín
Configurar lenguaje en la pocket
Joaquín, Si, es correcto e igual para el Pocket PC.
Configurar lenguaje en la pocket
Gracias Antonio, Así se guarda la compatibilidad perfectamente de fwppc con fwh. Un Saludo, Joaquín
Configurate xBrowser from dbf data issues
I have some problems with the configuration of the folowing xbrowse settings. I call a Xbrowse Builders that i gonne use for my projects. It works ok for the general settings, but now I also want to set the color actions from the dbf files. In the dbf I have the folowing data : I read the data I need into a multidim. array : aBrwcols [code=fw:vzelakwx]<div class="fw" id="{CB}" style="font-family: monospace;"><br />I call the <span style="color: #00C800;">function</span> :<br />   oBrw<span style="color: #000000;">&#91;</span><span style="color: #000000;">5</span><span style="color: #000000;">&#93;</span> = getXBrowser<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"WEBSHOP"</span>,oFld:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">5</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span><br /><br /><br /><span style="color: #00C800;">function</span> getXbrowser<span style="color: #000000;">&#40;</span>cData,oTarget<span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #B900B9;">// code to get the data from the dbf...</span><br /><br />   @ nTop,nLeft <span style="color: #0000ff;">XBROWSE</span> oBrw <span style="color: #0000ff;">size</span> nBreed,nHoogte <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oTarget <span style="color: #0000ff;">font</span> oFont ;<br />      DATASOURCE cDbf ;<br />      COLUMNS aVeld ;<br />      HEADERS aKop ;<br />      COLSIZES aSizes ;<br />      AUTOSORT CELL LINES NOBORDER FOOTERS<br /><br />   oBrw:<span style="color: #000000;">bToolTips</span>   := ;<br />         <span style="color: #000000;">&#123;</span> | oBrw,r,c,f,oMouseCol,nMouseRow| MyColToolTip<span style="color: #000000;">&#40;</span> oBrw,r,c,f,oMouseCol,nMouseRow <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br /><br />   oBrw:<span style="color: #000000;">bRClicked</span>     := <span style="color: #000000;">&#123;</span> |r,c,f,oStru| msgWait<span style="color: #000000;">&#40;</span>oBrw:<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span>oBrw:<span style="color: #000000;">nColSel</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">VALUE</span>,,<span style="color: #000000;">2</span><span style="color: #000000;">&#41;</span>,oClp:<span style="color: #000000;">SetText</span><span style="color: #000000;">&#40;</span>oBrw:<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span>oBrw:<span style="color: #000000;">nColSel</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">VALUE</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br /><br />   StyleBrowse<span style="color: #000000;">&#40;</span>oBrw, aBrwGet, aBrwEdit ,cData <span style="color: #000000;">&#41;</span>  <span style="color: #B900B9;">// will generate Pijama and several settings</span><br />   XbrSetupBar<span style="color: #000000;">&#40;</span> oBrw , Cdata <span style="color: #000000;">&#41;</span>  <span style="color: #B900B9;">//  generate a Bar</span><br /><br /><br /><span style="color: #B900B9;">// generate a loop with all the actions that are needed to color cels.</span><br /><span style="color: #B900B9;">//  like  :  if(webshop->bruto > 0,.t.,.f.) </span><br /><span style="color: #B900B9;">//  or like    :  if (webshop->prijspromo  <> webshop-> bruto , .t. , .f.)  </span><br /><br />   <span style="color: #00C800;">if</span> len<span style="color: #000000;">&#40;</span>aBrwCols<span style="color: #000000;">&#41;</span> > <span style="color: #000000;">0</span>   <span style="color: #B900B9;">// there are column that we want to color with a condition</span><br />     <span style="color: #00C800;">for</span> i = <span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> len<span style="color: #000000;">&#40;</span>aBrwCols<span style="color: #000000;">&#41;</span><br />        cVeld = aBrwCols<span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>             <span style="color: #B900B9;">//  fieldname/header  to use  :  Bruto</span><br />        cExpres = aBrwCols<span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span>         <span style="color: #B900B9;">// the exprencion to validate : if(webshop->bruto > 0,.t.,.f.)    Will always return a .t. or .f.</span><br />        cFront = val<span style="color: #000000;">&#40;</span>aBrwCols<span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">3</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span>     <span style="color: #B900B9;">//  DEC color value front : 0 </span><br />        cBack = val<span style="color: #000000;">&#40;</span>aBrwCols<span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">4</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span>     <span style="color: #B900B9;">// DEC  color value back : 16777130   //  I was not able to use constant values like : CLR_GREEN</span><br />        cZoek = oBrw:&cVeld:<span style="color: #000000;">value</span>     <span style="color: #B900B9;">// is the the value of the field of the browse to compare with</span><br />        lZoek = &cExpres  <span style="color: #B900B9;">//  .t. of .f.   // Exucute the expression to get a .t. or .f.</span><br /><br />        oBrw:&cVeld:<span style="color: #000000;">bClrStd</span> := <span style="color: #000000;">&#123;</span> || <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> lZoek  , ;<br />        <span style="color: #000000;">&#123;</span>nClrTxtBrw, cBack <span style="color: #000000;">&#125;</span> ,;<br />        <span style="color: #000000;">&#123;</span>nClrTxtBrw, <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> oBrw:<span style="color: #000000;">KeyNo</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> % <span style="color: #000000;">2</span> == <span style="color: #000000;">0</span>, CLR_BROWSE2, CLR_BROWSE1 <span style="color: #000000;">&#41;</span><span style="color: #000000;">&#125;</span>    <span style="color: #000000;">&#41;</span><span style="color: #000000;">&#125;</span><br />     <span style="color: #00C800;">next</span><br />   <span style="color: #00C800;">endif</span><br /><br /><span style="color: #B900B9;">//  Rest code ...  </span><br /><br /> </div>[/code:vzelakwx] This code is working for 1 row, and then keeps the values the same for every folowing row, so the condition is not changing. Second test : When I do this (call the function and code the color after it, it works oBrw[5] = getXBrowser("WEBSHOP",oFld:aDialogs[5]) oBrw[5]:bruto:bClrStd := { || If( oBrw[5]:bruto:value <> oBrw[5]:prijsnew:value,; {nClrTxtBrw, CLR_HGREEN } ,; {nClrTxtBrw, If( oBrw[5]:KeyNo() % 2 == 0, CLR_BROWSE2, CLR_BROWSE1 )} )} BTW : the extra code in the bClrStd:= is for the pijama layout of the browse to work with color setting
Configurate xBrowser from dbf data issues
Do i better try to make a sample to see what can be done ?
Configurate xBrowser from dbf data issues
Marc buenos días como vas? Una idea, a nosotros nos sirve haciendo una llamada a una función, no se si sea lo que buscas, es lo que entendí que necesitas hacer. [code=fw:1puhm259]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br />    @ <span style="color: #000000;">100</span>, <span style="color: #000000;">5</span> <span style="color: #0000ff;">XBROWSE</span> oBrw ;<br />    <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">385</span> ,<span style="color: #000000;">160</span> <span style="color: #0000ff;">OF</span> oSelf:<span style="color: #000000;">oDlgSpt</span> <span style="color: #0000ff;">PIXEL</span> ;<br />    LINES <span style="color: #0000ff;">STYLE</span> FLAT NOBORDER ;<br />    DATASOURCE ::<span style="color: #000000;">aRspNm</span> <span style="color: #0000ff;">AUTOCOLS</span> <br /><br />    ReArrangeCols<span style="color: #000000;">&#40;</span> oBrw, ::<span style="color: #000000;">aCols1</span> <span style="color: #000000;">&#41;</span><br /><br />    WITH OBJECT oBrw<br />        :<span style="color: #000000;">lRecordSelector</span>        := .T.<br />        :<span style="color: #000000;">lHScroll</span>           := .T.<br />        :<span style="color: #000000;">lVScroll</span>           := .T.<br />        :<span style="color: #000000;">l2007</span>              := .F.<br />        :<span style="color: #000000;">lFitGridHeight</span>         := .T.<br />        :<span style="color: #000000;">nHeaderHeight</span>          := <span style="color: #000000;">21</span><br />        :<span style="color: #000000;">nRowHeight</span>         := <span style="color: #000000;">21</span><br />        :<span style="color: #000000;">nMarqueeStyle</span>          := MARQSTYLE_HIGHLROW<br />        :<span style="color: #000000;">lColDividerComplete</span>    := .t.<br />        :<span style="color: #000000;">nColorPen</span>          := CLR_HGRAY<br />        :<span style="color: #000000;">lFullGrid</span>          := .T.<br />        :<span style="color: #000000;">nStretchCol</span>            := STRETCHCOL_LAST<br />        :<span style="color: #000000;">bClrHeader</span>         := <span style="color: #000000;">&#123;</span> || <span style="color: #000000;">&#123;</span> CLR_WHITE, oLamcla:<span style="color: #000000;">nClrBrwCab</span>, CLR_HGRAY <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span><br />        :<span style="color: #000000;">lFooter</span>            := .t.<br />        :<span style="color: #000000;">nFooterLines</span>           := <span style="color: #000000;">1</span><br />        :<span style="color: #000000;">nFooterHeight</span>          := <span style="color: #000000;">25</span><br />        :<span style="color: #000000;">nFreeze</span>                := <span style="color: #000000;">4</span><br />        :<span style="color: #000000;">bRClicked</span>          := <span style="color: #000000;">&#123;</span>|nRow, nCol | <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span>!::<span style="color: #000000;">lNueva</span>,::<span style="color: #000000;">mRegNomi</span><span style="color: #000000;">&#40;</span> nRow,nCol,oBrw, cbModi, cbEnv, cnImpPg, cbElm, cbAgre, cnEDian, cbBrCmp <span style="color: #000000;">&#41;</span>,<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />        :<span style="color: #000000;">bKeyDown</span>           := <span style="color: #000000;">&#123;</span>|nKey,oGet,nCol|::<span style="color: #000000;">TecItemNomi</span><span style="color: #000000;">&#40;</span>nKey,oGet,nCol, cbModi, cbEnv, cnImpPg, cbElm, cbAgre, cnEDian, cbGraba<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#125;</span><br />        :<span style="color: #000000;">nRecSelColor</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><br /><br />        :<span style="color: #000000;">bClrStd</span>            := <span style="color: #000000;">&#123;</span>|| <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span>Len<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">aRspNm</span> <span style="color: #000000;">&#41;</span> > <span style="color: #000000;">0</span> , ;<br />                                <span style="color: #000000;">&#123;</span> CLR_BLACK,clrEstFondo<span style="color: #000000;">&#40;</span>::<span style="color: #000000;">aRspNm</span><span style="color: #000000;">&#91;</span>oBrw:<span style="color: #000000;">nArrayAt</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"estado"</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> ,;<br />                                <span style="color: #000000;">&#123;</span> CLR_BLACK,clrEstFondo<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"S"</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span>  <br />        :<span style="color: #000000;">bClrSelFocus</span>       := <span style="color: #000000;">&#123;</span>|| <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span>Len<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">aRspNm</span> <span style="color: #000000;">&#41;</span> > <span style="color: #000000;">0</span> , ;<br />                                <span style="color: #000000;">&#123;</span> CLR_WHITE,clrEstSelec<span style="color: #000000;">&#40;</span>::<span style="color: #000000;">aRspNm</span><span style="color: #000000;">&#91;</span>oBrw:<span style="color: #000000;">nArrayAt</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"estado"</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> ,;<br />                                <span style="color: #000000;">&#123;</span> CLR_WHITE,clrEstSelec<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"S"</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span>       <br />        :<span style="color: #000000;">SetFont</span><span style="color: #000000;">&#40;</span> oFont1Cja <span style="color: #000000;">&#41;</span><br />        <br />    END<br /><br />    WITH OBJECT oBrw<br /><br />        <span style="color: #B900B9;">//Colocamos los titulos a las columnas</span><br />        <span style="color: #00C800;">FOR</span> j:=<span style="color: #000000;">1</span> <span style="color: #0000ff;">TO</span> len<span style="color: #000000;">&#40;</span>::<span style="color: #000000;">aColTt</span><span style="color: #000000;">&#41;</span><br />            :<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span>j<span style="color: #000000;">&#93;</span>:<span style="color: #000000;">cHeader</span>  := ::<span style="color: #000000;">aColTt</span><span style="color: #000000;">&#91;</span>j<span style="color: #000000;">&#93;</span><br />            :<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span>j<span style="color: #000000;">&#93;</span>:<span style="color: #000000;">oHeaderFont</span> = oFontCja    <br />            :<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span>j<span style="color: #000000;">&#93;</span>:<span style="color: #000000;">nWidth</span> = ::<span style="color: #000000;">aColAn</span><span style="color: #000000;">&#91;</span>j<span style="color: #000000;">&#93;</span>  <br />        <span style="color: #00C800;">NEXT</span> <br /><br />        <span style="color: #B900B9;">//Ahora las especiales</span><br />        :<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">3</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">cFooter</span>      = <span style="color: #ff0000;">"TOTALES »"</span><br />        :<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">3</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">oFooterFont</span> := oFontCja<br /><br />        :<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">4</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">bClrStd</span>           := <span style="color: #000000;">&#123;</span>|| <span style="color: #000000;">&#123;</span> _CLR_GRIS,colorEstado2<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">aRspNm</span><span style="color: #000000;">&#91;</span>oBrw:<span style="color: #000000;">nArrayAt</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"estado"</span><span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span>  <span style="color: #000000;">&#125;</span><br />        :<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">4</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">bClrSelFocus</span>  := <span style="color: #000000;">&#123;</span>|| <span style="color: #000000;">&#123;</span> CLR_WHITE,colorEstado<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">aRspNm</span><span style="color: #000000;">&#91;</span>oBrw:<span style="color: #000000;">nArrayAt</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"estado"</span><span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span>  <span style="color: #000000;">&#125;</span><br />        :<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">4</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">bStrData</span>      := <span style="color: #000000;">&#123;</span> || <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span>Len<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">aRspNm</span> <span style="color: #000000;">&#41;</span> > <span style="color: #000000;">0</span> , nombreEstado<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">aRspNm</span><span style="color: #000000;">&#91;</span>oBrw:<span style="color: #000000;">nArrayAt</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"estado"</span><span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span> , <span style="color: #ff0000;">""</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />    <br />        :<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span>nColDev<span style="color: #000000;">&#93;</span>:<span style="color: #000000;">oFooterFont</span> := oFontCja<br />        :<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span>nColDev<span style="color: #000000;">&#93;</span>:<span style="color: #000000;">bClrStd</span>      = <span style="color: #000000;">&#123;</span>|| <span style="color: #000000;">&#123;</span>Rgb<span style="color: #000000;">&#40;</span><span style="color: #000000;">55</span>,<span style="color: #000000;">55</span>,<span style="color: #000000;">55</span><span style="color: #000000;">&#41;</span>,nRGB<span style="color: #000000;">&#40;</span><span style="color: #000000;">212</span>,<span style="color: #000000;">212</span>,<span style="color: #000000;">212</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span>  <span style="color: #000000;">&#125;</span><br />        :<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span>nColDev<span style="color: #000000;">&#93;</span>:<span style="color: #000000;">bClrSelFocus</span> = <span style="color: #000000;">&#123;</span>|| <span style="color: #000000;">&#123;</span>CLR_WHITE,nRGB<span style="color: #000000;">&#40;</span><span style="color: #000000;">139</span>,<span style="color: #000000;">139</span>,<span style="color: #000000;">139</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span>  <span style="color: #000000;">&#125;</span><br />        <br />        :<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span>nColDed<span style="color: #000000;">&#93;</span>:<span style="color: #000000;">oFooterFont</span> := oFontCja<br />        :<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span>nColDed<span style="color: #000000;">&#93;</span>:<span style="color: #000000;">bClrStd</span>      = <span style="color: #000000;">&#123;</span>|| <span style="color: #000000;">&#123;</span>Rgb<span style="color: #000000;">&#40;</span><span style="color: #000000;">55</span>,<span style="color: #000000;">55</span>,<span style="color: #000000;">55</span><span style="color: #000000;">&#41;</span>,nRGB<span style="color: #000000;">&#40;</span><span style="color: #000000;">255</span>,<span style="color: #000000;">187</span>,<span style="color: #000000;">187</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span>  <span style="color: #000000;">&#125;</span><br />        :<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span>nColDed<span style="color: #000000;">&#93;</span>:<span style="color: #000000;">bClrSelFocus</span> = <span style="color: #000000;">&#123;</span>|| <span style="color: #000000;">&#123;</span>CLR_WHITE,nRGB<span style="color: #000000;">&#40;</span><span style="color: #000000;">255</span>,<span style="color: #000000;">117</span>,<span style="color: #000000;">117</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span>  <span style="color: #000000;">&#125;</span><br /><br />        :<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span>nColPag<span style="color: #000000;">&#93;</span>:<span style="color: #000000;">oFooterFont</span> := oFontCja<br />        :<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span>nColPag<span style="color: #000000;">&#93;</span>:<span style="color: #000000;">bClrStd</span>      = <span style="color: #000000;">&#123;</span>|| <span style="color: #000000;">&#123;</span>Rgb<span style="color: #000000;">&#40;</span><span style="color: #000000;">55</span>,<span style="color: #000000;">55</span>,<span style="color: #000000;">55</span><span style="color: #000000;">&#41;</span>,nRGB<span style="color: #000000;">&#40;</span><span style="color: #000000;">187</span>,<span style="color: #000000;">255</span>,<span style="color: #000000;">187</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span>  <span style="color: #000000;">&#125;</span><br />        :<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span>nColPag<span style="color: #000000;">&#93;</span>:<span style="color: #000000;">bClrSelFocus</span> = <span style="color: #000000;">&#123;</span>|| <span style="color: #000000;">&#123;</span>CLR_WHITE,nRGB<span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span>,<span style="color: #000000;">210</span>,<span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span>  <span style="color: #000000;">&#125;</span><br />        <br />        <span style="color: #B900B9;">//Colocamos los totales en donde sea necesario</span><br />        <span style="color: #00C800;">FOR</span> i:=<span style="color: #000000;">1</span> <span style="color: #0000ff;">TO</span> len<span style="color: #000000;">&#40;</span>::<span style="color: #000000;">aCols1</span><span style="color: #000000;">&#41;</span><br />            <span style="color: #00C800;">if</span> ::<span style="color: #000000;">aColTl</span><span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span> <br />                :<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span>:<span style="color: #000000;">nFooterType</span>  := AGGR_SUM<br />                :<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span>:<span style="color: #000000;">cFooterPicture</span> := oLamcla:<span style="color: #000000;">PIC7</span><br />                :<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span>:<span style="color: #000000;">cEditPicture</span> := oLamcla:<span style="color: #000000;">PIC7</span><br />                :<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span>:<span style="color: #000000;">oFooterFont</span> := oFontCja<br />            <span style="color: #00C800;">endif</span><br />        <span style="color: #00C800;">NEXT</span><br />        :<span style="color: #000000;">MakeTotals</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />    <br />    END<br /><br />    oBrw:<span style="color: #000000;">CreateFromCode</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />  <br /><br />.....<br /><br /><br /><br /><br />****************************<br />*CAMBIA EL <span style="color: #0000ff;">COLOR</span> DE LA CELDA<br />****************************<br /><span style="color: #00C800;">Function</span> colorEstado<span style="color: #000000;">&#40;</span>valor,notas<span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">if</span> notas==<span style="color: #00C800;">nil</span><br />    notas := <span style="color: #000000;">0</span><br /><span style="color: #00C800;">endif</span><br /><br /><span style="color: #00C800;">if</span> notas!=<span style="color: #000000;">0</span><br />    <span style="color: #00C800;">Return</span> nRGB<span style="color: #000000;">&#40;</span><span style="color: #000000;">163</span>,<span style="color: #000000;">73</span>,<span style="color: #000000;">164</span><span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">//morado oscuro</span><br /><span style="color: #00C800;">else</span><br />    <span style="color: #00C800;">IF</span> valor==<span style="color: #ff0000;">"A"</span><br />        <span style="color: #00C800;">Return</span> nRGB<span style="color: #000000;">&#40;</span><span style="color: #000000;">139</span>,<span style="color: #000000;">139</span>,<span style="color: #000000;">139</span><span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">//gris oscuro</span><br />    ELSEIF valor==<span style="color: #ff0000;">"D"</span><br />        <span style="color: #00C800;">Return</span> nRGB<span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span>,<span style="color: #000000;">210</span>,<span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">//verde oscuro</span><br />    ELSEIF valor==<span style="color: #ff0000;">"E"</span><br />        <span style="color: #00C800;">Return</span> nRGB<span style="color: #000000;">&#40;</span><span style="color: #000000;">255</span>,<span style="color: #000000;">117</span>,<span style="color: #000000;">117</span><span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">//rojo oscuro</span><br />    ELSEIF valor==<span style="color: #ff0000;">"V"</span><br />        <span style="color: #00C800;">Return</span> nRGB<span style="color: #000000;">&#40;</span><span style="color: #000000;">255</span>,<span style="color: #000000;">117</span>,<span style="color: #000000;">117</span><span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">//rojo oscuro</span><br />    ELSEIF valor==<span style="color: #ff0000;">"I"</span><br />        <span style="color: #00C800;">Return</span> nRGB<span style="color: #000000;">&#40;</span><span style="color: #000000;">255</span>,<span style="color: #000000;">243</span>,<span style="color: #000000;">21</span><span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">//Amarillo Oscuro</span><br />    ELSEIF valor==<span style="color: #ff0000;">"Z"</span><br />        <span style="color: #00C800;">Return</span> nRGB<span style="color: #000000;">&#40;</span><span style="color: #000000;">255</span>,<span style="color: #000000;">243</span>,<span style="color: #000000;">21</span><span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">//Amarillo Oscuro</span><br />    <span style="color: #00C800;">ELSE</span><br />        <span style="color: #00C800;">Return</span> nRGB<span style="color: #000000;">&#40;</span><span style="color: #000000;">94</span>, <span style="color: #000000;">174</span>, <span style="color: #000000;">255</span><span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">//Azul Defecto</span><br />    <span style="color: #00C800;">ENDIF</span><br /><span style="color: #00C800;">endif</span><br /><br />*****************************************<br />*CAMBIA EL <span style="color: #0000ff;">COLOR</span> DE LA CELDA SELECCIONADO<br />*****************************************<br /><span style="color: #00C800;">Function</span> colorEstado2<span style="color: #000000;">&#40;</span>valor,notas<span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">if</span> notas==<span style="color: #00C800;">nil</span><br />    notas := <span style="color: #000000;">0</span><br /><span style="color: #00C800;">endif</span><br /><span style="color: #00C800;">if</span> notas!=<span style="color: #000000;">0</span><br />    <span style="color: #00C800;">Return</span> nRGB<span style="color: #000000;">&#40;</span><span style="color: #000000;">219</span>,<span style="color: #000000;">183</span>,<span style="color: #000000;">255</span><span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">//morado claro</span><br /><span style="color: #00C800;">else</span><br />    <span style="color: #00C800;">IF</span> valor==<span style="color: #ff0000;">"A"</span><br />        <span style="color: #00C800;">Return</span> nRGB<span style="color: #000000;">&#40;</span><span style="color: #000000;">212</span>,<span style="color: #000000;">212</span>,<span style="color: #000000;">212</span><span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">//gris claro</span><br />    ELSEIF valor==<span style="color: #ff0000;">"D"</span><br />        <span style="color: #00C800;">Return</span> nRGB<span style="color: #000000;">&#40;</span><span style="color: #000000;">187</span>,<span style="color: #000000;">255</span>,<span style="color: #000000;">187</span><span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">//verde claro</span><br />    ELSEIF valor==<span style="color: #ff0000;">"E"</span><br />        <span style="color: #00C800;">Return</span> nRGB<span style="color: #000000;">&#40;</span><span style="color: #000000;">255</span>,<span style="color: #000000;">187</span>,<span style="color: #000000;">187</span><span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">//rojo claro</span><br />    ELSEIF valor==<span style="color: #ff0000;">"V"</span><br />        <span style="color: #00C800;">Return</span> nRGB<span style="color: #000000;">&#40;</span><span style="color: #000000;">255</span>,<span style="color: #000000;">187</span>,<span style="color: #000000;">187</span><span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">//rojo claro</span><br />    ELSEIF valor==<span style="color: #ff0000;">"I"</span><br />        <span style="color: #00C800;">Return</span> nRGB<span style="color: #000000;">&#40;</span><span style="color: #000000;">255</span>,<span style="color: #000000;">251</span>,<span style="color: #000000;">164</span><span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">//Amarillo claro</span><br />    ELSEIF valor==<span style="color: #ff0000;">"Z"</span><br />        <span style="color: #00C800;">Return</span> nRGB<span style="color: #000000;">&#40;</span><span style="color: #000000;">255</span>,<span style="color: #000000;">251</span>,<span style="color: #000000;">164</span><span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">//Amarillo claro</span><br />    <span style="color: #00C800;">ELSE</span><br />        <span style="color: #00C800;">Return</span> nRGB<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> <span style="color: #B900B9;">//Blanco</span><br />    <span style="color: #00C800;">ENDIF</span><br /><span style="color: #00C800;">endif</span><br /> </div>[/code:1puhm259]
Configurate xBrowser from dbf data issues
Hello Leandro, and others... Estoy bien. Gracias por tu comentario Long live Google Translate ))) I made a sample program to show the issue that I have. I call a Xbrowse from a function (for many browses in the program) The testprogram normaly will build 2 dbf's with some data into it and uses the customer.dbf from the samples dir. (put the program there) If I put the code for coloring cells with a condition insite the function getXbrowser, I get the same color for every row (Green) oBrw[2] = getXBrowser("CUSTOMERS",oFld:aDialogs[2]) Lines for coloring start from 373 - 387. For the demo I just made a Array with some data. If I call a function afther I made the getxbrowser, it works ok (Orange) [code=fw:34a8m1rh]<div class="fw" id="{CB}" style="font-family: monospace;"><br />oBrw<span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span> = getXBrowser<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"CUSTOMERS"</span>,oFld:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span><br /><br />oBrw<span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">First</span>:<span style="color: #000000;">bClrStd</span> := <span style="color: #000000;">&#123;</span> || <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> oBrw<span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">state</span>:<span style="color: #000000;">value</span> = <span style="color: #ff0000;">"IL"</span>,;<br />      <span style="color: #000000;">&#123;</span>nClrTxtBrw, MY_YELLOW <span style="color: #000000;">&#125;</span> ,;<br />      <span style="color: #000000;">&#123;</span>nClrTxtBrw, <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> oBrw<span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">KeyNo</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> % <span style="color: #000000;">2</span> == <span style="color: #000000;">0</span>, CLR_BROWSE2, CLR_BROWSE1 <span style="color: #000000;">&#41;</span><span style="color: #000000;">&#125;</span>    <span style="color: #000000;">&#41;</span><span style="color: #000000;">&#125;</span><br /> </div>[/code:34a8m1rh] [img:34a8m1rh]https&#58;//www&#46;maveco&#46;be/fivewin/fivexb&#46;jpg[/img:34a8m1rh] So the green cells don't folow the condition. The idea is to put as many options for Xbrowse inside a DBF and make a xbrowse Builder from it. [code=fw:34a8m1rh]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"fivewin.ch"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"Directry.ch"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"inkey.ch"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">'ord.ch'</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"ribbon.ch"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">'xbrowse.ch'</span><br /><br /><span style="color: #00D7D7;">#define</span> MY_GREEN   nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">145</span>, <span style="color: #000000;">214</span>, <span style="color: #000000;">124</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00D7D7;">#define</span> MY_LIGHTGREEN nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">236</span>, <span style="color: #000000;">255</span>, <span style="color: #000000;">224</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00D7D7;">#define</span> MY_LIGHTYELLOW nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">255</span>, <span style="color: #000000;">251</span>, <span style="color: #000000;">142</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00D7D7;">#define</span> MY_LIGHTBLUE nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">214</span>, <span style="color: #000000;">229</span>, <span style="color: #000000;">255</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00D7D7;">#define</span> MY_PAARS nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">232</span>, <span style="color: #000000;">201</span>, <span style="color: #000000;">255</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00D7D7;">#define</span> MY_YELLOW nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">255</span>, <span style="color: #000000;">220</span>, <span style="color: #000000;">96</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00D7D7;">#Define</span> CLR_BROWSE1     nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">214</span>, <span style="color: #000000;">229</span>, <span style="color: #000000;">255</span> <span style="color: #000000;">&#41;</span><br /><span style="color: #00D7D7;">#Define</span> CLR_BROWSE2     nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">229</span>, <span style="color: #000000;">237</span>, <span style="color: #000000;">246</span> <span style="color: #000000;">&#41;</span><br /><span style="color: #00D7D7;">#Define</span> CLR_BROWSECEL   nRGB<span style="color: #000000;">&#40;</span>   <span style="color: #000000;">0</span>,  <span style="color: #000000;">75</span>, <span style="color: #000000;">125</span> <span style="color: #000000;">&#41;</span><br /><span style="color: #00D7D7;">#Define</span> CLR_BROWSEROW   nRGB<span style="color: #000000;">&#40;</span>  <span style="color: #000000;">73</span>, <span style="color: #000000;">118</span>, <span style="color: #000000;">185</span> <span style="color: #000000;">&#41;</span><br /><span style="color: #00D7D7;">#Define</span> CLR_BROWSEINDEX nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">156</span>, <span style="color: #000000;">156</span>, <span style="color: #000000;">156</span> <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00D7D7;">#Define</span> CLR_LGREEN     nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">190</span>, <span style="color: #000000;">215</span>, <span style="color: #000000;">190</span> <span style="color: #000000;">&#41;</span><br /><span style="color: #00D7D7;">#Define</span> CLR_SOFTYELLOW nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">255</span>, <span style="color: #000000;">251</span>, <span style="color: #000000;">225</span> <span style="color: #000000;">&#41;</span><br /><span style="color: #00D7D7;">#Define</span> CLR_PINK       nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">255</span>, <span style="color: #000000;">128</span>, <span style="color: #000000;">128</span> <span style="color: #000000;">&#41;</span><br /><span style="color: #00D7D7;">#Define</span> CLR_NBLUE      nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">128</span>, <span style="color: #000000;">128</span>, <span style="color: #000000;">192</span> <span style="color: #000000;">&#41;</span><br /><span style="color: #00D7D7;">#Define</span> CLR_MSPURPLE   nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span>,   <span style="color: #000000;">120</span>, <span style="color: #000000;">215</span> <span style="color: #000000;">&#41;</span><br /><span style="color: #00D7D7;">#Define</span> CLR_MSRED      nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">232</span>,  <span style="color: #000000;">17</span>,  <span style="color: #000000;">35</span> <span style="color: #000000;">&#41;</span><br /><span style="color: #00D7D7;">#Define</span> CLR_MSGRAY     nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">229</span>, <span style="color: #000000;">229</span>, <span style="color: #000000;">229</span> <span style="color: #000000;">&#41;</span><br /><span style="color: #00D7D7;">#define</span> CLR_LIGHTBLUE  nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">214</span>, <span style="color: #000000;">229</span>, <span style="color: #000000;">255</span><span style="color: #000000;">&#41;</span><br /><br />ANNOUNCE RDDSYS<br />REQUEST OrdKeyNo, OrdKeyCount, OrdCreate, OrdKeyGoto<br />REQUEST DBFCDX, DBFFPT<br /><br /><span style="color: #00C800;">STATIC</span> oWnd, oDlg, oFont, cClrBack, oBold<br /><span style="color: #00C800;">STATIC</span> oDlgRB<span style="color: #000000;">&#91;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#93;</span><br /><span style="color: #00C800;">STATIC</span> SERVER_PATH, LOCAL_PATH, oFld, CDRIVE, cLocal<br /><span style="color: #00C800;">STATIC</span> lServer := .F.<br /><span style="color: #B900B9;">//  ADDED BY MARC</span><br /><br /><span style="color: #00C800;">STATIC</span> oKlant , oRec<br /><span style="color: #00C800;">static</span> sys_dbf:=<span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #00C800;">static</span> nClrTxtBrw      := CLR_BLACK<br /><span style="color: #00C800;">static</span> nClrBackBrw     := CLR_WHITE<br /><span style="color: #00C800;">static</span> lPijama         := .T.<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> sys_versie := <span style="color: #ff0000;">"Dec 2021 - 02/12"</span><br />   <span style="color: #00C800;">LOCAL</span> cErrorLogFileName := <span style="color: #ff0000;">"MyLog.log"</span><br />   <span style="color: #00C800;">LOCAL</span> oFol, oDlg, oRBar, oMenu, oMenuWnd, oBrush1, oGr, oGr1, oGr2, oGr3, ;<br />         oGr9, oSay1, oBmp, oFont1, oCursor, oBtn2, oBtn3, oBtn4<br /><br />   RDDSETDEFAULT<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"DBFCDX"</span><span style="color: #000000;">&#41;</span><br /><br />   FW_SetUnicode<span style="color: #000000;">&#40;</span> .T. <span style="color: #000000;">&#41;</span><br />   SetBalloon<span style="color: #000000;">&#40;</span> .T. <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// Balloon shape required for tooltips</span><br />   SkinButtons<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   SetGetColorFocus<span style="color: #000000;">&#40;</span> MY_LIGHTGREEN <span style="color: #000000;">&#41;</span><br />   xbrNumFormat<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"E"</span>, .T. <span style="color: #000000;">&#41;</span>  <span style="color: #B900B9;">// "E" for European, "A" for American and others // .t. for showing thousand separators</span><br /><br />   Forumsetup<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>  <span style="color: #B900B9;">// Make forumdatabases for testing</span><br /><br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFont1 <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"Arial"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>, - <span style="color: #000000;">15</span> <span style="color: #B900B9;">// BOLD</span><br /><br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">CURSOR</span> oCursor HAND<br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BRUSH</span> oBrush1 <span style="color: #0000ff;">COLOR</span> nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">223</span>, <span style="color: #000000;">233</span>, <span style="color: #000000;">244</span> <span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Maveco Bedrijfskleding "</span> + FWVERSION ;<br />      <span style="color: #0000ff;">FROM</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span> <span style="color: #0000ff;">TO</span> <span style="color: #000000;">1030</span>, <span style="color: #000000;">1920</span> <span style="color: #0000ff;">pixel</span> <span style="color: #0000ff;">MDI</span> <span style="color: #0000ff;">MENU</span> oMenu <span style="color: #0000ff;">BRUSH</span> oBrush1<br /><br />   <span style="color: #0000ff;">DEFINE</span> RIBBONBAR oRBar <span style="color: #0000ff;">WINDOW</span> oWnd <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Klanten"</span>, <span style="color: #ff0000;">"Leveranciers"</span>, <span style="color: #ff0000;">"Ingeven Documenten"</span>;<br />      HEIGHT <span style="color: #000000;">130</span> TOPMARGIN <span style="color: #000000;">25</span><br /><br /><span style="color: #B900B9;">//  Databases =============================</span><br />   ADD GROUP oGr  RIBBON oRBar <span style="color: #0000ff;">TO</span> OPTION <span style="color: #000000;">1</span> <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Databases"</span> width <span style="color: #000000;">130</span> ;<br />      BITMAP <span style="color: #ff0000;">"bitmaps<span style="color: #000000;">\f</span>ivetech.BMP"</span><br /><br />   @ <span style="color: #000000;">02</span>, <span style="color: #000000;">05</span> ADD <span style="color: #0000ff;">BUTTON</span> oBtn2 GROUP oGr BITMAP <span style="color: #ff0000;">"bitmaps<span style="color: #000000;">\c</span>ut16.BMP"</span> ;<br />      <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">75</span>, <span style="color: #000000;">20</span> <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Customers"</span>  MOSTLEFT <span style="color: #0000ff;">round</span> ;<br />      <span style="color: #0000ff;">action</span> <span style="color: #000000;">&#40;</span> Marc_FolderEx<span style="color: #000000;">&#40;</span>oWnd<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />   ADD GROUP oGr2  RIBBON oRBar <span style="color: #0000ff;">TO</span> OPTION <span style="color: #000000;">1</span> <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Documents"</span> width <span style="color: #000000;">130</span> ;<br />      BITMAP <span style="color: #ff0000;">"bitmaps<span style="color: #000000;">\f</span>ivetech.BMP"</span><br /><br /><br /><span style="color: #B900B9;">//  X-Browsers =============================</span><br /><br />   ADD GROUP oGr7  RIBBON oRBar <span style="color: #0000ff;">TO</span> OPTION <span style="color: #000000;">1</span> <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"XBrowsers"</span> width <span style="color: #000000;">130</span> ;<br />      BITMAP <span style="color: #ff0000;">"bitmaps<span style="color: #000000;">\f</span>ivetech.BMP"</span><br /><br />   ADD GROUP oGr9 RIBBON oRBar <span style="color: #0000ff;">TO</span> OPTION <span style="color: #000000;">1</span> <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Exit"</span> width <span style="color: #000000;">70</span> ;<br />      BITMAP <span style="color: #ff0000;">"bitmap<span style="color: #000000;">\f</span>ivetech.bmp"</span><br /><br /><span style="color: #B900B9;">//  Exit =============================</span><br /><br />   @ <span style="color: #000000;">15</span>, <span style="color: #000000;">20</span> ADD <span style="color: #0000ff;">BUTTON</span> oBtn4 GROUP oGr9 BITMAP <span style="color: #ff0000;">"bitmaps<span style="color: #000000;">\3</span>2x32<span style="color: #000000;">\q</span>uit.BMP"</span> ;<br />      <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">34</span>, <span style="color: #000000;">52</span> <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Exit"</span> <span style="color: #0000ff;">action</span><span style="color: #000000;">&#40;</span> oWnd:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />   SET <span style="color: #0000ff;">MESSAGE</span> <span style="color: #0000ff;">OF</span> oWnd <span style="color: #0000ff;">TO</span> <span style="color: #ff0000;">"Version : "</span> + sys_versie ;<br />      <span style="color: #0000ff;">CENTERED</span> CLOCK KEYBOARD <span style="color: #000000;">2007</span><br /><br />   WndCenter<span style="color: #000000;">&#40;</span> oWnd:<span style="color: #000000;">hWnd</span> <span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <span style="color: #0000ff;">MAXIMIZED</span><br /><br /><br />   oBrush1:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   oRBar:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><br /><span style="color: #00C800;">CLASS</span> TSeek <span style="color: #00C800;">STATIC</span> <span style="color: #B900B9;">//  From Xbrowse seek function ?</span><br /><br />   <span style="color: #00C800;">DATA</span> oBrw<br /><br />   <span style="color: #00C800;">METHOD</span> <span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> oBrw <span style="color: #000000;">&#41;</span> CONSTRUCTOR<br />   <span style="color: #00C800;">METHOD</span> SetText<span style="color: #000000;">&#40;</span> c <span style="color: #000000;">&#41;</span> <span style="color: #00C800;">INLINE</span> ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">RefreshFooters</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">ENDCLASS</span><br /><br /><span style="color: #00C800;">METHOD</span> <span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> oBrw <span style="color: #000000;">&#41;</span> <span style="color: #00C800;">CLASS</span> TSeek  <span style="color: #B900B9;">//  From Xbrowse seek function ?</span><br /><br />   ::<span style="color: #000000;">oBrw</span>   := oBrw<br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">Self</span><br /><br /><span style="color: #00C800;">FUNCTION</span> del_row<span style="color: #000000;">&#40;</span> oBrw <span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">IF</span> MsgYesNo<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Deze regel wissen"</span> <span style="color: #000000;">&#41;</span><br /><br />      oBrw:<span style="color: #000000;">delete</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">ENDIF</span><br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><br /><br /><span style="color: #00C800;">FUNCTION</span> Marc_FolderEx<span style="color: #000000;">&#40;</span> oWnd <span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #B900B9;">//  Locals added by Marc</span><br />   <span style="color: #00C800;">local</span> oFont1,oBold,oFont,oFont3,oFonts,oFontXS<br />   <span style="color: #00C800;">local</span> cCol, oBrush<br />   <span style="color: #00C800;">LOCAL</span> aVelden := ARRAY<span style="color: #000000;">&#40;</span><span style="color: #000000;">10</span><span style="color: #000000;">&#41;</span>  <span style="color: #B900B9;">// oBrw[10]</span><br />   <span style="color: #00C800;">LOCAL</span> oBrw    := ARRAY<span style="color: #000000;">&#40;</span><span style="color: #000000;">10</span><span style="color: #000000;">&#41;</span>  <span style="color: #B900B9;">// oBrw[10]</span><br />   <span style="color: #00C800;">LOCAL</span> hBmp    := ReadBitmap<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span>, <span style="color: #ff0000;">"bitmaps<span style="color: #000000;">\s</span>earch.bmp"</span> <span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #B900B9;">//</span><br />   <span style="color: #00C800;">LOCAL</span> oDlg, oFld, oBarDialog, cTitle, aGrad, oOk, oExit<br />   <span style="color: #00C800;">LOCAL</span> cDenominazione := <span style="color: #ff0000;">""</span><br />   <span style="color: #00C800;">LOCAL</span> cIndirizzo     := <span style="color: #ff0000;">""</span><br />   <span style="color: #00C800;">LOCAL</span> oSay      := ARRAY<span style="color: #000000;">&#40;</span><span style="color: #000000;">4</span><span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">LOCAL</span> aGet      := ARRAY<span style="color: #000000;">&#40;</span><span style="color: #000000;">4</span><span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">LOCAL</span> cCompl    := REPLICATE<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"."</span>,  <span style="color: #000000;">9</span> <span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">LOCAL</span> oSilDrawLi<br />   <span style="color: #00C800;">LOCAL</span> SilDrawLi := REPLICATE<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"_"</span>, <span style="color: #000000;">50</span> <span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">LOCAL</span> EmailSilv := SPACE<span style="color: #000000;">&#40;</span><span style="color: #000000;">50</span><span style="color: #000000;">&#41;</span><br /><br /><br />   <span style="color: #B900B9;">//OpenDatabases("KLANTEN")</span><br /><br />   cTitle := <span style="color: #ff0000;">"Marc Test : Systems Folders and Xbrowse Builder"</span><br /><br />   SET _3DLOOK <span style="color: #0000ff;">ON</span><br /><br />   SetGetColorFocus<span style="color: #000000;">&#40;</span> CLR_LGREEN <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// COR EM TODOS OS GETS DOS DIALOGOS.</span><br /><br />   tGet<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #000000;">lDisColors</span>  := .F.   <span style="color: #B900B9;">// WHEN( .F. ) COR.</span><br />   tGet<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #000000;">nClrTextDis</span> := CLR_HBLUE<br />   tGet<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #000000;">nClrPaneDis</span> := CLR_SOFTYELLOW<br /><br />   SetBalloon<span style="color: #000000;">&#40;</span> .T. <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// Balloon shape required for tooltips</span><br /><br />   SkinButtons<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   aGrad := <span style="color: #000000;">&#123;</span> <span style="color: #000000;">&#123;</span> <span style="color: #000000;">1</span>, CLR_WHITE, CLR_LIGHTBLUE <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span><br /><br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFont1 <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"Ms Sans Serif"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>, - <span style="color: #000000;">8</span> BOLD<br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oBold <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">'CALIBRI'</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>, - <span style="color: #000000;">12</span> BOLD<br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFont <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"CALIBRI"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>, - <span style="color: #000000;">14</span><br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFont3 <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"Segoe UI"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>, - <span style="color: #000000;">12</span><br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFontS <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"Segoe UI"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>, - <span style="color: #000000;">09</span><br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFontXS <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"Segoe UI"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>, - <span style="color: #000000;">08</span><br /><br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BRUSH</span> oBrush FILE <span style="color: #ff0000;">"Bitmaps<span style="color: #000000;">\B</span>ackGrnd<span style="color: #000000;">\S</span>tone.bmp"</span><br /><br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">FROM</span> <span style="color: #000000;">60</span>,<span style="color: #000000;">0</span> <span style="color: #0000ff;">to</span> <span style="color: #000000;">750</span>,<span style="color: #000000;">1900</span> <span style="color: #0000ff;">PIXEL</span> TRUEPIXEL <span style="color: #0000ff;">TITLE</span> cTitle;<br />      GRADIENT aGrad<br /><br />   oDlg:<span style="color: #000000;">lHelpIcon</span> := .F.<br /><br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTONBAR</span> oBarDialog <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">80</span>, <span style="color: #000000;">80</span> <span style="color: #000000;">2007</span> BOTTOM NOBORDER<br /><br />   @ <span style="color: #000000;">3</span>, <span style="color: #000000;">3</span> FOLDEREX oFld <span style="color: #0000ff;">SIZE</span> oDlg:<span style="color: #000000;">nWidth</span>, oDlg:<span style="color: #000000;">nHeight</span> - oBarDialog:<span style="color: #000000;">nheight</span>  ;<br />      <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Basic"</span>, <span style="color: #ff0000;">"Builder"</span> ;<br />      <span style="color: #0000ff;">BITMAPS</span> <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\a</span>lphabmp<span style="color: #000000;">\F</span>acebook.bmp"</span>,                            ;<br />              <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\a</span>lphabmp<span style="color: #000000;">\v</span>iddler.bmp"</span>                              ;<br />      <span style="color: #0000ff;">FONT</span> oFont <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">COLOR</span> CLR_MSGRAY TAB HEIGHT <span style="color: #000000;">25</span> <span style="color: #0000ff;">ROUND</span> <span style="color: #000000;">5</span><br /><br />   oFld:<span style="color: #000000;">aEnable</span> = <span style="color: #000000;">&#123;</span> .T., .T. <span style="color: #000000;">&#125;</span><br />   oFld:<span style="color: #000000;">SetOption</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span><br />   oFld:<span style="color: #000000;">Show</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #B900B9;">// Marc, write the code here on the spot.</span><br /><br />   <span style="color: #B900B9;">//  FOLDER 1  -----------------------------------------------------------------------------------------------</span><br /><br />   aVelden<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span> :=  <span style="color: #000000;">&#123;</span> ;<br />      <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"ID"</span>, <span style="color: #ff0000;">"ID"</span>, <span style="color: #00C800;">NIL</span>,  <span style="color: #000000;">90</span> <span style="color: #000000;">&#125;</span>, ;<br />      <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"First"</span>, <span style="color: #ff0000;">"First"</span>, <span style="color: #00C800;">NIL</span>,  <span style="color: #000000;">350</span> <span style="color: #000000;">&#125;</span>, ;<br />      <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"Last"</span>, <span style="color: #ff0000;">"Last"</span>, <span style="color: #00C800;">NIL</span>, <span style="color: #000000;">300</span> <span style="color: #000000;">&#125;</span>, ;<br />      <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"Street"</span>, <span style="color: #ff0000;">"Street"</span>, <span style="color: #00C800;">NIL</span>, <span style="color: #000000;">300</span> <span style="color: #000000;">&#125;</span>, ;<br />      <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"City"</span>, <span style="color: #ff0000;">"City"</span>, <span style="color: #00C800;">NIL</span>, <span style="color: #000000;">200</span> <span style="color: #000000;">&#125;</span>, ;<br />      <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"Zip"</span>, <span style="color: #ff0000;">"Zip"</span>, <span style="color: #00C800;">NIL</span>, <span style="color: #000000;">150</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span><br /><br />   @ <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span> <span style="color: #0000ff;">XBROWSE</span> oBrw<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">size</span> - <span style="color: #000000;">05</span>, - <span style="color: #000000;">20</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oFld:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">font</span> oFont ;<br />      DATASOURCE <span style="color: #ff0000;">"customer"</span> ;<br />      COLUMNS aVelden<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span> ;<br />      AUTOSORT CELL LINES NOBORDER FOOTERS<br /><br />   WITH OBJECT oBrw<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span><br />      :<span style="color: #000000;">bKeyDown</span>   := <span style="color: #000000;">&#123;</span>| k | <span style="color: #00C800;">IF</span> <span style="color: #000000;">&#40;</span> K == VK_DELETE, Del_row<span style="color: #000000;">&#40;</span> oBrw<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span>, <span style="color: #00C800;">NIL</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />      <span style="color: #B900B9;">// Designing is here</span><br /><br />   END<br />   oBrw<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">CreateFromCode</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   oBrw<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">setfocus</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #B900B9;">//  FOLDER 2  -----------------------------------------------------------------------------------------------</span><br /><br />   oBrw<span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span> = getXBrowser<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"CUSTOMERS"</span>,oFld:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #B900B9;">// This way the colors are painted correct</span><br />   oBrw<span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">First</span>:<span style="color: #000000;">bClrStd</span> := <span style="color: #000000;">&#123;</span> || <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> oBrw<span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">state</span>:<span style="color: #000000;">value</span> = <span style="color: #ff0000;">"IL"</span>,;<br />      <span style="color: #000000;">&#123;</span>nClrTxtBrw, MY_YELLOW <span style="color: #000000;">&#125;</span> ,;<br />      <span style="color: #000000;">&#123;</span>nClrTxtBrw, <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> oBrw<span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">KeyNo</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> % <span style="color: #000000;">2</span> == <span style="color: #000000;">0</span>, CLR_BROWSE2, CLR_BROWSE1 <span style="color: #000000;">&#41;</span><span style="color: #000000;">&#125;</span>    <span style="color: #000000;">&#41;</span><span style="color: #000000;">&#125;</span><br /><br />   <span style="color: #B900B9;">//  FOLDER 3  -----------------------------------------------------------------------------------------------</span><br />   <span style="color: #B900B9;">//  FOLDER 4  -----------------------------------------------------------------------------------------------</span><br />   <span style="color: #B900B9;">//  END FOLDERS</span><br /><br />   <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span><br /><br />   oFont:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   close all<br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><br /><br /><br /><span style="color: #00C800;">FUNCTION</span> MARC_SETFILTER<span style="color: #000000;">&#40;</span> oBrw <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// SETFILTER()?? INTERN COMMAND.</span><br /><br />   <span style="color: #00C800;">LOCAL</span> cFilter := <span style="color: #ff0000;">""</span><br />   <span style="color: #00C800;">LOCAL</span> n, oCol, uVal, cType<br /><br />   <span style="color: #00C800;">FOR</span> n := <span style="color: #000000;">1</span> <span style="color: #0000ff;">TO</span> Len<span style="color: #000000;">&#40;</span> oBrw:<span style="color: #000000;">aCols</span> <span style="color: #000000;">&#41;</span><br /><br />      oCol  := oBrw:<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span> n <span style="color: #000000;">&#93;</span><br /><br />      <span style="color: #00C800;">IF</span> ! Empty<span style="color: #000000;">&#40;</span> uVal := oCol:<span style="color: #000000;">uBarGetVal</span> <span style="color: #000000;">&#41;</span><br /><br />         <span style="color: #00C800;">IF</span> !Empty<span style="color: #000000;">&#40;</span> cFilter <span style="color: #000000;">&#41;</span><br />            cFilter  += <span style="color: #ff0000;">" .AND. "</span><br />         <span style="color: #00C800;">ENDIF</span><br /><br />         cType    := ValType<span style="color: #000000;">&#40;</span> uVal <span style="color: #000000;">&#41;</span><br /><br />         <span style="color: #00C800;">DO</span> <span style="color: #00C800;">CASE</span><br />         <span style="color: #00C800;">CASE</span> cType == <span style="color: #ff0000;">'C'</span><br />            uVal     := Upper<span style="color: #000000;">&#40;</span> AllTrim<span style="color: #000000;">&#40;</span> uVal <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />   <span style="color: #B900B9;">// cFilter += '"' + uVal + '" $ UPPER( ' + FieldName( n ) + " )"</span><br />            cFilter += <span style="color: #ff0000;">'"'</span> + uVal + <span style="color: #ff0000;">'" $ UPPER( '</span> + oCol:<span style="color: #000000;">CExpr</span> + <span style="color: #ff0000;">" )"</span><br />         <span style="color: #00C800;">OTHERWISE</span><br />   <span style="color: #B900B9;">// cFilter  += FieldName( n ) + " == " + cValToChar( uVal )</span><br />            cFilter  += oCol:<span style="color: #000000;">cExpr</span> + <span style="color: #ff0000;">" == "</span> + cValToChar<span style="color: #000000;">&#40;</span> uVal <span style="color: #000000;">&#41;</span><br />         <span style="color: #00C800;">ENDCASE</span><br />      <span style="color: #00C800;">ENDIF</span><br /><br />   <span style="color: #00C800;">NEXT</span><br />   <span style="color: #B900B9;">// ******************************</span><br />   <span style="color: #B900B9;">// /</span><br />   <span style="color: #B900B9;">// msginfo(cFilter)</span><br />   <span style="color: #B900B9;">// msgGet( "title", "message", @cFilter )</span><br /><br />   <span style="color: #00C800;">IF</span> Empty<span style="color: #000000;">&#40;</span> cFilter <span style="color: #000000;">&#41;</span><br /><br />      <span style="color: #00C800;">IF</span> ! Empty<span style="color: #000000;">&#40;</span> dbFilter<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />         dbClearFilter<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />         oBrw:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />      <span style="color: #00C800;">ENDIF</span><br /><br />   <span style="color: #00C800;">ELSE</span><br /><br />      <span style="color: #00C800;">IF</span> !<span style="color: #000000;">&#40;</span> dbFilter<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> == cFilter <span style="color: #000000;">&#41;</span><br />         SET FILTER <span style="color: #0000ff;">TO</span> &cFilter<br />         GO TOP<br />         oBrw:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />      <span style="color: #00C800;">ENDIF</span><br /><br />   <span style="color: #00C800;">ENDIF</span><br /><br />   oBrw:<span style="color: #000000;">SetFocus</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><br /><span style="color: #00C800;">function</span> getXbrowser<span style="color: #000000;">&#40;</span>cData,oTarget<span style="color: #000000;">&#41;</span><br />  <span style="color: #00C800;">local</span> aBrw:=<span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span>, aVeld:=<span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span>, aKop:=<span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span>, aSizes:=<span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span>, aFields:=<span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span>, oBrw<br />  <span style="color: #00C800;">local</span> aBrwget:=<span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span>, aBrwedit:=<span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span><br />  <span style="color: #00C800;">local</span> aBrwCols:=<span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span><br />  <span style="color: #00C800;">local</span> cDbf, cZoek:=<span style="color: #ff0000;">""</span>, cIndex<br />  <span style="color: #00C800;">Local</span> nTop:=<span style="color: #000000;">0</span>, nLeft:=<span style="color: #000000;">0</span>, nBreed:=<span style="color: #000000;">0</span>, nHoogte:=<span style="color: #000000;">0</span>, cRelation:=<span style="color: #ff0000;">""</span><br />  <span style="color: #00C800;">local</span> cVelden:=<span style="color: #ff0000;">""</span>, cHeaders:=<span style="color: #ff0000;">""</span>, cSizes:=<span style="color: #ff0000;">""</span>, cBrwget:=<span style="color: #ff0000;">""</span>, cBrwedit:=<span style="color: #ff0000;">""</span><br />  <span style="color: #00C800;">local</span> cVeld, cFront, cBack, cExpres, lZoek:=.f.<br /><br />  FIELD brwnaam,klant_nr,document   <span style="color: #B900B9;">// Xbrowsers</span><br /><br />  cData = upper<span style="color: #000000;">&#40;</span>cData<span style="color: #000000;">&#41;</span><br />  <span style="color: #B900B9;">//  Get data from dbf</span><br />  use brwsetup <span style="color: #0000ff;">alias</span> tempXb shared <span style="color: #00C800;">NEW</span><br />  tempxb-><span style="color: #000000;">&#40;</span>dbsetorder<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"code"</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br /><br />  <span style="color: #0000ff;">select</span> TempXB<br />  set filter <span style="color: #0000ff;">to</span> brwnaam = cData<br />  tempXB-><span style="color: #000000;">&#40;</span>dbgotop<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />  cDbf = alltrim<span style="color: #000000;">&#40;</span>tempXb->database<span style="color: #000000;">&#41;</span><br />  cIndex = alltrim<span style="color: #000000;">&#40;</span>tempXb->index<span style="color: #000000;">&#41;</span><br /><br />  cMaster = alltrim<span style="color: #000000;">&#40;</span>tempXb->master<span style="color: #000000;">&#41;</span><br />  nTop = tempXb->top<br />  nLeft = tempXb->left<br />  nBreed = tempXb->Breed<br />  nHoogte = tempXb->hoogte<br />  cRelation = alltrim<span style="color: #000000;">&#40;</span>tempXb->relation<span style="color: #000000;">&#41;</span><br />  close tempXb<br />  <span style="color: #B900B9;">//  Haal de detaildata</span><br />  use brwdetail <span style="color: #0000ff;">alias</span> tempXb shared <span style="color: #00C800;">NEW</span><br />  tempxb-><span style="color: #000000;">&#40;</span>dbsetorder<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"code"</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br /><br />  <span style="color: #0000ff;">select</span> tempXb<br />  set filter <span style="color: #0000ff;">to</span> brwnaam = cData<br />  tempXb-><span style="color: #000000;">&#40;</span>dbgotop<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />  <span style="color: #00C800;">do</span> <span style="color: #00C800;">while</span> !tempXb-><span style="color: #000000;">&#40;</span>eof<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />    <span style="color: #00C800;">if</span> tempXb->sel_bar<br />      aadd<span style="color: #000000;">&#40;</span>aBrwGet,alltrim<span style="color: #000000;">&#40;</span>tempXb->brnaam<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />    <span style="color: #00C800;">endif</span><br />    <span style="color: #00C800;">if</span> tempXb->sel_edit<br />      aadd<span style="color: #000000;">&#40;</span>aBrwEdit,alltrim<span style="color: #000000;">&#40;</span>tempXb->brnaam<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />    <span style="color: #00C800;">endif</span><br />    aadd<span style="color: #000000;">&#40;</span>aVeld,alltrim<span style="color: #000000;">&#40;</span>tempXb->veld<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />    aadd<span style="color: #000000;">&#40;</span>aKop,alltrim<span style="color: #000000;">&#40;</span>tempXb->brnaam<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />    aadd<span style="color: #000000;">&#40;</span>aSizes,tempXb->size<span style="color: #000000;">&#41;</span><br />    tempXb-><span style="color: #000000;">&#40;</span>dbskip<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />  <span style="color: #00C800;">enddo</span><br />  close tempXb<br />  use <span style="color: #000000;">&#40;</span>cdbf<span style="color: #000000;">&#41;</span><br />  <span style="color: #0000ff;">select</span> <span style="color: #000000;">&#40;</span>cDbf<span style="color: #000000;">&#41;</span><br /><br />  <span style="color: #B900B9;">//  This data is comming from a dbf in real live )))</span><br />  <span style="color: #B900B9;">//aadd(aBrwCols,{alltrim(tempXB->veld),alltrim(tempXb->colcond),alltrim(tempXb->colfront),alltrim(tempXb->colback)})</span><br />  aadd<span style="color: #000000;">&#40;</span>aBrwCols,<span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"State"</span>,<span style="color: #ff0000;">"if(customer->state = 'IL',.T.,.F.)"</span>,<span style="color: #ff0000;">"0"</span>,<span style="color: #ff0000;">"8634760"</span><span style="color: #000000;">&#125;</span><span style="color: #000000;">&#41;</span><br /><br />  @ nTop,nLeft <span style="color: #0000ff;">XBROWSE</span> oBrw <span style="color: #0000ff;">size</span> nBreed,nHoogte <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oTarget <span style="color: #0000ff;">font</span> oFont ;<br />      DATASOURCE cDbf ;<br />      COLUMNS aVeld ;<br />      HEADERS aKop ;<br />      COLSIZES aSizes ;<br />      AUTOSORT CELL LINES NOBORDER FOOTERS<br /><br />   <span style="color: #B900B9;">// Is nog een issue mee</span><br />   oBrw:<span style="color: #000000;">CreateFromCode</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   StyleBrowse<span style="color: #000000;">&#40;</span>oBrw, aBrwGet, aBrwEdit ,cData <span style="color: #000000;">&#41;</span><br />   <span style="color: #B900B9;">/*                   */</span><br />   <span style="color: #00C800;">if</span> len<span style="color: #000000;">&#40;</span>aBrwCols<span style="color: #000000;">&#41;</span> > <span style="color: #000000;">0</span><br />     <span style="color: #00C800;">for</span> i = <span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> len<span style="color: #000000;">&#40;</span>aBrwCols<span style="color: #000000;">&#41;</span><br />        cVeld = aBrwCols<span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span><br />        cExpres = aBrwCols<span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span><br />        cFront = val<span style="color: #000000;">&#40;</span>aBrwCols<span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">3</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span><br />        cBack = val<span style="color: #000000;">&#40;</span>aBrwCols<span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">4</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span><br />        cZoek = oBrw:&cVeld:<span style="color: #000000;">value</span><br />        lZoek = &cExpres  <span style="color: #B900B9;">// Execute expression with result .t. of .f.</span><br /><br />        oBrw:&cVeld:<span style="color: #000000;">bClrStd</span> := <span style="color: #000000;">&#123;</span> || <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> lZoek  , ;<br />        <span style="color: #000000;">&#123;</span>nClrTxtBrw, cBack <span style="color: #000000;">&#125;</span> ,;<br />        <span style="color: #000000;">&#123;</span>nClrTxtBrw, <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> oBrw:<span style="color: #000000;">KeyNo</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> % <span style="color: #000000;">2</span> == <span style="color: #000000;">0</span>, CLR_BROWSE2, CLR_BROWSE1 <span style="color: #000000;">&#41;</span><span style="color: #000000;">&#125;</span>    <span style="color: #000000;">&#41;</span><span style="color: #000000;">&#125;</span><br />     <span style="color: #00C800;">next</span><br />   <span style="color: #00C800;">endif</span><br /><br /><br />   oBrw:<span style="color: #0000ff;">refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   oBrw:<span style="color: #000000;">setfocus</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">return</span> oBrw<br /><br /><span style="color: #00C800;">Static</span> <span style="color: #00C800;">Function</span> StyleBrowse<span style="color: #000000;">&#40;</span> oBrwSel, aBarget, aEditget, cNaam <span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">LOCAL</span> hBmp    := ReadBitmap<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span>, <span style="color: #ff0000;">"bitmaps<span style="color: #000000;">\s</span>earch.bmp"</span> <span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">local</span> cCol,cTemp<br />   <span style="color: #00C800;">DEFAULT</span> aBarget:=<span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span><br />   <span style="color: #00C800;">DEFAULT</span> aEditget:=<span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span><br />   <span style="color: #00C800;">DEFAULT</span> cNaam:=<span style="color: #ff0000;">""</span><br /><br />   <span style="color: #00C800;">if</span> lPijama  <span style="color: #B900B9;">//  Make stripes in the browse</span><br />      oBrwSel:<span style="color: #000000;">bClrStd</span> = <span style="color: #000000;">&#123;</span> || <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> oBrwSel:<span style="color: #000000;">KeyNo</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> % <span style="color: #000000;">2</span> == <span style="color: #000000;">0</span>, ;<br />                            <span style="color: #000000;">&#123;</span> <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> oBrwSel:<span style="color: #000000;">cAlias</span> <span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span> Deleted<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>, CLR_HRED, nClrTxtBrw <span style="color: #000000;">&#41;</span>,;<br />                              CLR_BROWSE2 <span style="color: #000000;">&#125;</span>, ;<br />                            <span style="color: #000000;">&#123;</span> <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> oBrwSel:<span style="color: #000000;">cAlias</span> <span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span> Deleted<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>, CLR_HRED, nClrTxtBrw <span style="color: #000000;">&#41;</span>,;<br />                              CLR_BROWSE1 <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />      oBrwSel:<span style="color: #000000;">bClrSel</span> = <span style="color: #000000;">&#123;</span> || <span style="color: #000000;">&#123;</span> <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> oBrwSel:<span style="color: #000000;">cAlias</span> <span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span> Deleted<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>, CLR_HRED, nClrBackBrw <span style="color: #000000;">&#41;</span>,;<br />                              CLR_BROWSEROW <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span><br />   <span style="color: #00C800;">else</span><br />      oBrwSel:<span style="color: #000000;">bClrStd</span> := <span style="color: #000000;">&#123;</span> || <span style="color: #000000;">&#123;</span> <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> oBrwSel:<span style="color: #000000;">cAlias</span> <span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span> Deleted<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>, CLR_HRED, nClrTxtBrw <span style="color: #000000;">&#41;</span>,;<br />                          nClrBackBrw <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span><br />      oBrwSel:<span style="color: #000000;">bClrSel</span> := <span style="color: #000000;">&#123;</span> || <span style="color: #000000;">&#123;</span> <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> oBrwSel:<span style="color: #000000;">cAlias</span> <span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span> Deleted<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>, CLR_HRED, nClrBackBrw <span style="color: #000000;">&#41;</span>,;<br />                           MY_PAARS <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span><br />   <span style="color: #00C800;">endif</span><br /><br /><br />   cClrBack     := Eval<span style="color: #000000;">&#40;</span> oBrwSel:<span style="color: #000000;">bClrSelFocus</span> <span style="color: #000000;">&#41;</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span>  <span style="color: #B900B9;">//  I don't know what this is doing</span><br /><br />   oBrwSel:<span style="color: #000000;">SetChecks</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   <span style="color: #B900B9;">//oBrwSel:bRClickHeaders := { || XbrColSelector( oBrwSel, cNaam ) }  // Kies welke velden tezien zijn</span><br /><br />   WITH OBJECT oBrwSel<br />      :<span style="color: #000000;">l2007</span>               := .F.<br />      :<span style="color: #000000;">lFooter</span>          := .T.<br />      :<span style="color: #000000;">bRecSelHeader</span>    := <span style="color: #000000;">&#123;</span>|| <span style="color: #ff0000;">"Klant"</span> <span style="color: #000000;">&#125;</span><br />      :<span style="color: #000000;">bRecSelData</span>      := <span style="color: #000000;">&#123;</span>| o | o:<span style="color: #000000;">KeyNo</span> <span style="color: #000000;">&#125;</span><br />      :<span style="color: #000000;">bRecSelFooter</span>    := <span style="color: #000000;">&#123;</span>| o | o:<span style="color: #000000;">nLen</span> <span style="color: #000000;">&#125;</span><br />      :<span style="color: #000000;">oRecSelFont</span>      := oFont  <span style="color: #B900B9;">// optional</span><br />      :<span style="color: #000000;">nRecSelWidth</span>     := <span style="color: #ff0000;">"99999"</span> <span style="color: #B900B9;">// required size</span><br /><br />      :<span style="color: #000000;">lColChangeNotify</span>    := .T.<br />      :<span style="color: #000000;">nMarqueeStyle</span>       := MARQSTYLE_HIGHLROW<br /><br />      :<span style="color: #000000;">lHScroll</span>      := .F.<br />      :<span style="color: #000000;">lFullGrid</span>           := .T.<br />      :<span style="color: #000000;">lMultiSelect</span>        := .T.<br />      :<span style="color: #000000;">lRowDividerComplete</span> := .T.<br />      :<span style="color: #000000;">lColDividerComplete</span> := .T.<br />      :<span style="color: #000000;">nColDividerStyle</span>    := LINESTYLE_LIGHTGRAY<br />      :<span style="color: #000000;">nRowDividerStyle</span>    := LINESTYLE_LIGHTGRAY<br />      :<span style="color: #000000;">bClrSelFocus</span>        := <span style="color: #000000;">&#123;</span>|| <span style="color: #000000;">&#123;</span> CLR_WHITE, CLR_BROWSECEL <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span> <span style="color: #B900B9;">// CUANDO TIENE EL FOCUS</span><br />      :<span style="color: #000000;">bClrRowFocus</span>        := <span style="color: #000000;">&#123;</span>|| <span style="color: #000000;">&#123;</span> CLR_WHITE, CLR_BROWSEROW <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span><br /><br />      :<span style="color: #000000;">nHeaderHeight</span>       := <span style="color: #000000;">23</span><br />      :<span style="color: #000000;">oHeaderFonts</span>        := oBold<br />      :<span style="color: #000000;">nHeadStrAligns</span>      := AL_CENTER<br /><br /><br />      <span style="color: #B900B9;">//:nFooterHeight     := oBrwSel:nHeaderHeight</span><br />      :<span style="color: #000000;">nRowHeight</span>          := oBrwSel:<span style="color: #000000;">nHeaderHeight</span><br />      :<span style="color: #000000;">nStretchCol</span>         := <span style="color: #00C800;">NIL</span>  <span style="color: #B900B9;">// -2 // STRETCHCOL_WIDEST</span><br />      :<span style="color: #000000;">nFreeze</span>             := <span style="color: #000000;">1</span><br />      <span style="color: #00C800;">if</span> lPijama<br />         :<span style="color: #000000;">SetColor</span><span style="color: #000000;">&#40;</span> CLR_BLACK, RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">232</span>, <span style="color: #000000;">255</span>, <span style="color: #000000;">232</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// Pink</span><br />      <span style="color: #00C800;">else</span><br />         :<span style="color: #000000;">SetColor</span><span style="color: #000000;">&#40;</span> nClrTxtBrw, nClrBackBrw <span style="color: #000000;">&#41;</span><br />      <span style="color: #00C800;">endif</span><br />   END<br />   <span style="color: #B900B9;">//  Toon de Bargetdata (Gets boven Bar)</span><br /><br />   oBrwSel:<span style="color: #000000;">lGetBar</span>   := .T.  <span style="color: #B900B9;">// Button to activate</span><br /><br /><br />   <span style="color: #00C800;">if</span> len<span style="color: #000000;">&#40;</span>aBarget<span style="color: #000000;">&#41;</span>><span style="color: #000000;">0</span><br /><br /><br />      <span style="color: #00C800;">FOR</span> EACH cCol in aBarget<br /><br />         WITH OBJECT oBrwSel:<span style="color: #000000;">oCol</span><span style="color: #000000;">&#40;</span> cCol <span style="color: #000000;">&#41;</span><br /><br />            :<span style="color: #000000;">uBarGetVal</span>    := uValBlank<span style="color: #000000;">&#40;</span> :<span style="color: #000000;">Value</span> <span style="color: #000000;">&#41;</span><br /><br />            :<span style="color: #000000;">cBarGetPic</span>    := :<span style="color: #000000;">cEditPicture</span><br />            :<span style="color: #000000;">bClrEdit</span>      := <span style="color: #000000;">&#123;</span>|| <span style="color: #000000;">&#123;</span> CLR_BLACK, MY_LIGHTYELLOW <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span><br /><br />            :<span style="color: #000000;">lBarGetOnKey</span> := .T. <span style="color: #B900B9;">// after having setfocus the oBrowse object, the end user can insert the characters directly into the get</span><br />            :<span style="color: #000000;">cBarGetBmp</span> := hBmp <span style="color: #B900B9;">// this for show the Bitmap on the get</span><br />            :<span style="color: #000000;">bBarGetAction</span> := <span style="color: #000000;">&#123;</span>|| <span style="color: #000000;">&#40;</span> oBrwSel:<span style="color: #000000;">cAlias</span> <span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span> MARC_SETFILTER<span style="color: #000000;">&#40;</span> oBrwSel <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #B900B9;">// this for show the bitmap on the get and associated a action</span><br /><span style="color: #B900B9;">// //         :bBarGetAction := {|| ( oBrwSel:cAlias )->( SETFILTER( oBrwSel ) ) } // this for show the bitmap on the get and associated a action</span><br /><br />         END<br /><br />      <span style="color: #00C800;">NEXT</span><br /><br /><br />   <span style="color: #00C800;">endif</span><br />   */<br /><br /><br />   <span style="color: #00C800;">if</span> len<span style="color: #000000;">&#40;</span>aEditget<span style="color: #000000;">&#41;</span>><span style="color: #000000;">0</span><br />      <span style="color: #B900B9;">//xbrowser(aEditget) title oBrwSel:cAlias()</span><br />      <span style="color: #00C800;">FOR</span> EACH cCol in aEditget<br />         <span style="color: #B900B9;">//msginfo(cCol+oBrwSel:cAlias(),"Info")</span><br />         WITH OBJECT oBrwSel:<span style="color: #000000;">oCol</span><span style="color: #000000;">&#40;</span> cCol <span style="color: #000000;">&#41;</span><br />            :<span style="color: #000000;">nEditType</span>     := EDIT_GET<br />            :<span style="color: #000000;">bClrHeader</span>    := <span style="color: #000000;">&#123;</span>|| <span style="color: #000000;">&#123;</span> CLR_WHITE, CLR_BROWSEINDEX <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span><br />            <span style="color: #B900B9;">//msginfo(cCol+oBrwSel:cAlias(),"Info Done")</span><br />         END<br />      <span style="color: #00C800;">NEXT</span><br />   <span style="color: #00C800;">endif</span><br /><br />   */<br /><span style="color: #00C800;">Return</span> <span style="color: #00C800;">nil</span><br /><br /><br /><span style="color: #B900B9;">//  I use a database, but this is"</span><br /><span style="color: #B900B9;">// Just for the forum so there is a sample dbf</span><br /><br /><span style="color: #00C800;">function</span> forumsetup<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">local</span> aFields:=<span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span>, aF2:=<span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span><br />cFile = <span style="color: #ff0000;">"brwsetup.dbf"</span><br /><span style="color: #00C800;">IF</span> .NOT. FILE<span style="color: #000000;">&#40;</span> cFile <span style="color: #000000;">&#41;</span><br /><br />      aFields := <span style="color: #000000;">&#123;</span> <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"BRWNAAM"</span>, <span style="color: #ff0000;">"C"</span>, <span style="color: #000000;">15</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#125;</span>,;<br />                   <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"TOP"</span>, <span style="color: #ff0000;">"N"</span>, <span style="color: #000000;">4</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#125;</span>,;<br />                   <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"LEFT"</span>, <span style="color: #ff0000;">"N"</span>, <span style="color: #000000;">4</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#125;</span>,;<br />                   <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"BREED"</span>, <span style="color: #ff0000;">"N"</span>, <span style="color: #000000;">4</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#125;</span>,;<br />                   <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"HOOGTE"</span>, <span style="color: #ff0000;">"N"</span>, <span style="color: #000000;">4</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#125;</span>,;<br />                   <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"DATABASE"</span>, <span style="color: #ff0000;">"C"</span>, <span style="color: #000000;">15</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#125;</span>,;<br />                   <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"RELATION"</span>, <span style="color: #ff0000;">"C"</span>, <span style="color: #000000;">200</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#125;</span>,;<br />                   <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"INDEX"</span>, <span style="color: #ff0000;">"C"</span>, <span style="color: #000000;">15</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#125;</span>,;<br />                   <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"INFO"</span>, <span style="color: #ff0000;">"C"</span>, <span style="color: #000000;">250</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#125;</span>,;<br />                   <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"MASTER"</span>, <span style="color: #ff0000;">"C"</span>, <span style="color: #000000;">10</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span><br /><br />  DbCreate<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"brwsetup.dbf"</span>, aFields, <span style="color: #ff0000;">"DBFCDX"</span> <span style="color: #000000;">&#41;</span><br />  use brwsetup <span style="color: #00C800;">NEW</span> VIA <span style="color: #ff0000;">"DBFCDX"</span><br />  <span style="color: #0000ff;">index</span> <span style="color: #0000ff;">on</span> upper<span style="color: #000000;">&#40;</span>brwnaam<span style="color: #000000;">&#41;</span> tag code<br />  append blank<br />  brwsetup->brwnaam = <span style="color: #ff0000;">"CUSTOMERS"</span><br />  brwsetup->DATABASE = <span style="color: #ff0000;">"CUSTOMER"</span><br /><br />  close brwsetup<br /><br /><span style="color: #00C800;">endif</span><br /><br />cFile = <span style="color: #ff0000;">"brwdetail.dbf"</span><br /><span style="color: #00C800;">IF</span> .NOT. FILE<span style="color: #000000;">&#40;</span> cFile <span style="color: #000000;">&#41;</span><br /><br />      aF2       := <span style="color: #000000;">&#123;</span> <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"VELD"</span>, <span style="color: #ff0000;">"C"</span>, <span style="color: #000000;">15</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#125;</span>,;<br />                   <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"BRNAAM"</span>, <span style="color: #ff0000;">"C"</span>, <span style="color: #000000;">15</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#125;</span>,;<br />                   <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"SIZE"</span>, <span style="color: #ff0000;">"N"</span>, <span style="color: #000000;">3</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#125;</span>,;<br />                   <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"SEL_BAR"</span>, <span style="color: #ff0000;">"L"</span>, <span style="color: #000000;">1</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#125;</span>,;<br />                   <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"SEL_EDIT"</span>, <span style="color: #ff0000;">"L"</span>, <span style="color: #000000;">1</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#125;</span>,;<br />                   <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"ORDER"</span>, <span style="color: #ff0000;">"N"</span>, <span style="color: #000000;">4</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#125;</span>,;<br />                   <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"TOP"</span>, <span style="color: #ff0000;">"N"</span>, <span style="color: #000000;">4</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#125;</span>,;<br />                   <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"LEFT"</span>, <span style="color: #ff0000;">"N"</span>, <span style="color: #000000;">4</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#125;</span>,;<br />                   <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"BREED"</span>, <span style="color: #ff0000;">"N"</span>, <span style="color: #000000;">4</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#125;</span>,;<br />                   <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"HOOGTE"</span>, <span style="color: #ff0000;">"N"</span>, <span style="color: #000000;">4</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#125;</span>,;<br />                   <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"BRWNAAM"</span>, <span style="color: #ff0000;">"C"</span>, <span style="color: #000000;">20</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#125;</span>,;<br />                   <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"PIC"</span>, <span style="color: #ff0000;">"C"</span>, <span style="color: #000000;">20</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#125;</span>,;<br />                   <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"ALIGN"</span>, <span style="color: #ff0000;">"N"</span>, <span style="color: #000000;">1</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#125;</span>,;<br />                   <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"DATABASE"</span>, <span style="color: #ff0000;">"C"</span>, <span style="color: #000000;">15</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span><br /><br />  DbCreate<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"brwdetail.dbf"</span>, aF2, <span style="color: #ff0000;">"DBFCDX"</span> <span style="color: #000000;">&#41;</span><br />  USE brwdetail <span style="color: #00C800;">NEW</span> VIA <span style="color: #ff0000;">"DBFCDX"</span><br />  <span style="color: #0000ff;">INDEX</span> <span style="color: #0000ff;">ON</span> upper<span style="color: #000000;">&#40;</span>brwnaam<span style="color: #000000;">&#41;</span>+str<span style="color: #000000;">&#40;</span>order<span style="color: #000000;">&#41;</span> TAG CODE<br />  append blank<br />  brwdetail->veld = <span style="color: #ff0000;">"ID"</span><br />  brwdetail->brnaam = <span style="color: #ff0000;">"ID"</span><br />  brwdetail->size = <span style="color: #000000;">100</span><br />  brwdetail->sel_bar = .T.<br />  brwdetail->sel_edit = .f.<br />  brwdetail->order = <span style="color: #000000;">1000</span><br />  brwdetail->brwnaam = <span style="color: #ff0000;">"CUSTOMERS"</span><br /><br />  append blank<br />  brwdetail->veld = <span style="color: #ff0000;">"FIRST"</span><br />  brwdetail->brnaam = <span style="color: #ff0000;">"First"</span><br />  brwdetail->size = <span style="color: #000000;">250</span><br />  brwdetail->sel_bar = .T.<br />  brwdetail->sel_edit = .T.<br />  brwdetail->order = <span style="color: #000000;">1010</span><br />  brwdetail->brwnaam = <span style="color: #ff0000;">"CUSTOMERS"</span><br /><br />  append blank<br />  brwdetail->veld = <span style="color: #ff0000;">"LAST"</span><br />  brwdetail->brnaam = <span style="color: #ff0000;">"Last"</span><br />  brwdetail->size = <span style="color: #000000;">250</span><br />  brwdetail->sel_bar = .T.<br />  brwdetail->sel_edit = .T.<br />  brwdetail->order = <span style="color: #000000;">1020</span><br />  brwdetail->brwnaam = <span style="color: #ff0000;">"CUSTOMERS"</span><br /><br />  append blank<br />  brwdetail->veld = <span style="color: #ff0000;">"STATE"</span><br />  brwdetail->brnaam = <span style="color: #ff0000;">"State"</span><br />  brwdetail->size = <span style="color: #000000;">100</span><br />  brwdetail->sel_bar = .T.<br />  brwdetail->sel_edit = .T.<br />  brwdetail->order = <span style="color: #000000;">1030</span><br />  brwdetail->brwnaam = <span style="color: #ff0000;">"CUSTOMERS"</span><br /><br /><br />  close brwdetail<br /><span style="color: #00C800;">endif</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">NIL</span><br /><br /><br /> </div>[/code:34a8m1rh]
Configurate xBrowser from dbf data issues
hi Marc, [quote="Marc Venken":1qsypz33] [code=fw:1qsypz33]<div class="fw" id="{CB}" style="font-family: monospace;">     <span style="color: #00C800;">for</span> i = <span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> len<span style="color: #000000;">&#40;</span>aBrwCols<span style="color: #000000;">&#41;</span><br /><span style="color: #B900B9;">//  Rest code ...   </span></div>[/code:1qsypz33]This code is working for 1 row, and then keeps the values the same for every folowing row, so the condition is not changing. [/quote:1qsypz33] as i understand you want to build your Browse "in a Loop" [code=fw:1qsypz33]<div class="fw" id="{CB}" style="font-family: monospace;">     <span style="color: #00C800;">for</span> i = <span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> len<span style="color: #000000;">&#40;</span>aBrwCols<span style="color: #000000;">&#41;</span></div>[/code:1qsypz33] now you get result with "last Counter" Value for all --- when use a Codeblock i do "create" it as String in a Function [code=fw:1qsypz33]<div class="fw" id="{CB}" style="font-family: monospace;"><br />   o:<span style="color: #000000;">Property</span> := DetachedLocal<span style="color: #000000;">&#40;</span>i, aArray<span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">FUNCTION</span> DetachedLocal<span style="color: #000000;">&#40;</span>i, aArray<span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">RETURN</span> &<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"{|| DoFunc("</span> + aArray<span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span> + <span style="color: #ff0000;">" })<br /></span></div>[/code:1qsypz33]
Configurate xBrowser from dbf data issues
Hi, Authentic local detached like this: [code=fw:59mpymha]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">FUNCTION</span> DetachedLocal<span style="color: #000000;">&#40;</span>i, aArray<span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">RETURN</span> <span style="color: #000000;">&#123;</span>|| DoFunc<span style="color: #000000;">&#40;</span> aArray<span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />&nbsp;</div>[/code:59mpymha] regards
Configurate xBrowser from dbf data issues
Hey Guys, You pointed me in the right direction .... I now remember having issues with 'detached local' once or twice many years ago... I will try to change my sample with the tips you gave me. Is it so that in this loop all VAR's like : cVeld = aBrwCols[i][1] // need to become something like cVeld := DetachedLocal(i, aBrwCols,"V") // maybe a extra VAR "V" so the function knows it need to take the Veld als field Var cExpres := DetachedLocal(i, aBrwCols,"E") // Expression because the array aBrwCols is more dimensions [code=fw:2r2yumud]<div class="fw" id="{CB}" style="font-family: monospace;"><br />  <span style="color: #00C800;">if</span> len<span style="color: #000000;">&#40;</span>aBrwCols<span style="color: #000000;">&#41;</span> > <span style="color: #000000;">0</span><br />     <span style="color: #00C800;">for</span> i = <span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> len<span style="color: #000000;">&#40;</span>aBrwCols<span style="color: #000000;">&#41;</span><br />        cVeld = aBrwCols<span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span><br />        cExpres = aBrwCols<span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span><br />        cFront = val<span style="color: #000000;">&#40;</span>aBrwCols<span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">3</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span><br />        cBack = val<span style="color: #000000;">&#40;</span>aBrwCols<span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">4</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span><br />        cZoek = oBrw:&cVeld:<span style="color: #000000;">value</span><br />        lZoek = &cExpres  <span style="color: #B900B9;">// Execute expression with result .t. of .f.</span><br /><br />        oBrw:&cVeld:<span style="color: #000000;">bClrStd</span> := <span style="color: #000000;">&#123;</span> || <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> lZoek  , ;<br />        <span style="color: #000000;">&#123;</span>nClrTxtBrw, cBack <span style="color: #000000;">&#125;</span> ,;<br />        <span style="color: #000000;">&#123;</span>nClrTxtBrw, <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> oBrw:<span style="color: #000000;">KeyNo</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> % <span style="color: #000000;">2</span> == <span style="color: #000000;">0</span>, CLR_BROWSE2, CLR_BROWSE1 <span style="color: #000000;">&#41;</span><span style="color: #000000;">&#125;</span>    <span style="color: #000000;">&#41;</span><span style="color: #000000;">&#125;</span><br />     <span style="color: #00C800;">next</span><br />   <span style="color: #00C800;">endif</span><br /><br /> </div>[/code:2r2yumud]
Configuration buttons ribbon bar
I thinked to create a small listbox with chechbox with all buttons of the ribbonbar How I can make this ? Any Idea ?
Configuration buttons ribbon bar
Silvio, You could use a browse or an ownerdraw listbox. The browse will provide you more possibilities.
Configuration buttons ribbon bar
I try your tree checkbox sample but there is error
Configuration buttons ribbon bar
Antonio, Can I have a small sample to create a Tree with checkbox from database the database can be in this structure NAME FIELD TYPE SIZE Code C 6 desc C 30 BMP N 9 CHECK L 1 I want insert different bitmaps for each record
Configuration buttons ribbon bar
Silvio, On each post you ask for a different thing <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> You have enough technical skills to try it for yourself <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Configuration buttons ribbon bar
Silvio, FWH\samples\TreeChck.prg is working fine here using FWH 9.11: [img:1881lcns]http&#58;//img683&#46;imageshack&#46;us/img683/2874/13682576&#46;jpg[/img:1881lcns]
Configuration buttons ribbon bar
have try to click on each check box ? it make me error
Configuration buttons ribbon bar
and to insert a bmp for each record wich is the command ?
Configuration buttons ribbon bar
Antonio, Why there is a checkbox also for the first node ? [b:2soaa5et]Principal [/b:2soaa5et] no checkbox [b:2soaa5et] Imprimpir [/b:2soaa5et] yes checkbox I can make a tree type it ?
Configuration buttons ribbon bar
Silvio, > have try to click on each check box ? Yes, here it works fine on Windows 7 Ultimate 32 bits. > it make me error What error is it ? Please provide an accurate feedback so we can properly help you. You are not a novice in these forums <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Configuration buttons ribbon bar
[code=fw:1dvb866o]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #B900B9;">// Using a TreeView with checkboxes and checking their status</span><br /><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> oDlg, oTree<br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg<br /><br />&nbsp; &nbsp; &nbsp; oTree = TTreeView<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, oDlg,,,,,<span style="color: #000000;">200</span>,<span style="color: #000000;">200</span>,,.t.<span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; oTree:<span style="color: #000000;">OnClick</span> = <span style="color: #000000;">&#123;</span> || CheckStatus<span style="color: #000000;">&#40;</span> oTree, oTree:<span style="color: #000000;">aItems</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span> <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">INIT</span> BuildTree<span style="color: #000000;">&#40;</span> oTree <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span> <br /><br /><span style="color: #00C800;">function</span> BuildTree<span style="color: #000000;">&#40;</span> oTree <span style="color: #000000;">&#41;</span> <br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> oMenu := Array<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span>, oSubMenu := Array<span style="color: #000000;">&#40;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span> <br /><br />&nbsp; &nbsp;oMenu<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span>:= oTree:<span style="color: #000000;">Add</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Principal"</span> <span style="color: #000000;">&#41;</span> <br />&nbsp; &nbsp; &nbsp; oSubMenu<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span>:= oMenu<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">Add</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Imprimir..."</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; oSubMenu<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">SetCheck</span><span style="color: #000000;">&#40;</span> .T. <span style="color: #000000;">&#41;</span> <br /><br />&nbsp; &nbsp;oMenu<span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span>:= oTree:<span style="color: #000000;">Add</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Proyectos"</span> <span style="color: #000000;">&#41;</span> <br />&nbsp; &nbsp; &nbsp; oSubMenu<span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span>:= oMenu<span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">Add</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Definir Proyectos"</span> <span style="color: #000000;">&#41;</span> <br />&nbsp; &nbsp; &nbsp; oSubmenu<span style="color: #000000;">&#91;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#93;</span>:= oMenu<span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">Add</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Actualización datos"</span> <span style="color: #000000;">&#41;</span> <br /><br />&nbsp; &nbsp;oTree:<span style="color: #000000;">Expand</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;">function</span> CheckStatus<span style="color: #000000;">&#40;</span> oTree, aItems <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> n<br />&nbsp; &nbsp;<br />&nbsp; &nbsp;<span style="color: #00C800;">for</span> n = <span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> Len<span style="color: #000000;">&#40;</span> aItems <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> oTree:<span style="color: #000000;">GetCheck</span><span style="color: #000000;">&#40;</span> aItems<span style="color: #000000;">&#91;</span> n <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; CheckStatus<span style="color: #000000;">&#40;</span> oTree, aItems<span style="color: #000000;">&#91;</span> n <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">aItems</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">next</span><br />&nbsp; &nbsp;<br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span> &nbsp; &nbsp; &nbsp;</div>[/code:1dvb866o] Application =========== Path and name: C:\work\FWH\samples\testtre5.Exe (32 bits) Size: 1,863,680 bytes Time from start: 0 hours 0 mins 4 secs Error occurred at: 12/15/09, 15:01:35 Error description: Error BASE/1004 Class: 'NIL' has no exported method: CPROMPT Args: [ 1] = U Stack Calls =========== Called from: => CPROMPT(0) Called from: .\source\classes\TTREEVIE.PRG => TTREEVIEW:HANDLEEVENT(282) Called from: .\source\classes\WINDOW.PRG => _FWH(3347) Called from: => DIALOGBOXINDIRECT(0) Called from: .\source\classes\DIALOG.PRG => TDIALOG:ACTIVATE(273) Called from: testtre5.prg => MAIN(15)
Configuration buttons ribbon bar
Silvio, Please check that you have this code in Class TTreeView: [code=fw:26h3rwf2]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">METHOD</span> HandleEvent<span style="color: #000000;">&#40;</span> nMsg, nWParam, nLParam <span style="color: #000000;">&#41;</span> <span style="color: #00C800;">CLASS</span> TTreeView<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> oItem<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">do</span> <span style="color: #00C800;">case</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">case</span> nMsg == WM_CHAR<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span> nWParam == VK_RETURN<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">return</span> <span style="color: #000000;">1</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">endif</span><br />&nbsp; &nbsp;<span style="color: #00C800;">endcase</span><br />&nbsp; &nbsp;<br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">Super</span>:<span style="color: #000000;">HandleEvent</span><span style="color: #000000;">&#40;</span> nMsg, nWParam, nLParam <span style="color: #000000;">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp;</div>[/code:26h3rwf2]
Configuration Error.
I am currently getting the following error when attempting to compile: Embarcadero C++ 7.00 for Win32 Copyright (c) 1993-2015 Embarcadero Technologies, Inc. obj\tmstsr.c: Error E2209 e:\harbour\include\stdarg.h 32: Unable to open include file 'tr1/cstdarg' Error E2209 e:\harbour\include\string.h 15: Unable to open include file '_mingw.h' I can find the missing .h files in the BCC7 directory, don't know if they are correct, but it still does not work. Anybody know how to correct this?
Configuration Error.
Que usas para compilar? What do you use to compile? [url:1ui9gkvc]http&#58;//www&#46;hmgforum&#46;com/viewtopic&#46;php?t=3862[/url:1ui9gkvc] Regards, saludos.
Configuration Error.
I use Borland BCC7.
Configuration dialog style windows 10
How build a dialog for create a small configuration style windows 10 ( touch screen) ? [b:1axhi4k5] sample :[/b:1axhi4k5] [img:1axhi4k5]http&#58;//www&#46;chimerarevo&#46;com/wp-content/uploads/wifi-cons-1-600x395&#46;jpg[/img:1axhi4k5]
Configuration of Resedit
Someone Know how config resedit for use with fwh ?
Configuration of Resedit
Hi Silvio, it's so easy. Only you must configure Preferences. In my case [url:1ah8sq7t]https&#58;//vgy&#46;me/delete/p4Le8NrtcmYt[/url:1ah8sq7t] Best regards
Configuration of Resedit
thanks
Configuration of Resedit
yo uso esto para bcc 7.20 y 7.30 [img:2c8rtnj7]https&#58;//i&#46;imgur&#46;com/9bLYx2k&#46;png[/img:2c8rtnj7]
Configuration of Resedit
the problem is when I open a rc run ok the save close resedit then Open resedit app and load saved file then it make errors and close the file this situation is the same with Pellesc Now I prefer use all sources and I'm worlink on rc2prg to converte all resources
Configuring Uestudio
Hi Can anyone send my the files to configure Uestudio for Xharbour+FwH? The ones that are in this newsGroup as expired is time for downloading Best regards Pedro
Configuring Uestudio
Pedro, Already sent to your email. Hyperupload is not working today <!-- s:-( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":-(" title="Sad" /><!-- s:-( -->
Configuring Uestudio
Hi Antonio Tanxs for your answer, But i didn´t receive any mail <!-- e --><a href="mailto:psfaro@netcabo.pt">psfaro@netcabo.pt</a><!-- e --> psfaro@hotmail Best regards Pedro
Configuring Uestudio
Pedro, <!-- m --><a class="postlink" href="http://www.uploading.com/files/1D26ZJ3W/UEStudio.zip.html">http://www.uploading.com/files/1D26ZJ3W ... o.zip.html</a><!-- m -->
Confrontare due orari
Salve, sapere se esiste una funzione per confrontare due orari ? In pratica avendo cTime1="10.55" e cTime2="13.44" vorrei una funzione che mi restituisce se un orario è maggiore o minore dell'altro. Grazie in anticipo
Confrontare due orari
cTime1 > cTime2 EMG
Confrontare due orari
Ho già risolto con TimeToSec(), grazie comunque per il suggerimento.
Confrontare due orari
Perché usare una funzione, per di più non standard, per fare qualcosa che si fa con i normali operatori di confronto? EMG
Confrontare due orari
scusa Marco ma ho avuto problemi con il terremoto , ho la casa lesionata anc'hio cmq prova questo . FUNCTION Diff_Tempo( dData1,cOra1,dData2,cOra2 ) LOCAL nGiorni,nOrasp,nMinutp,nOrasa,nMinuta,nOras,nMinuto IF cOra1 = NIL .OR. EMPTY( cOra1 ) cOra1 := "00:00" END IF IF dData2 = NIL .OR. EMPTY( dData2 ) dData2 := DATE() END IF IF cOra2 = NIL .OR. EMPTY( cOra2 ) cOra2 := SUBSTR( TIME(),1,5 ) END IF IF VALTYPE( dData1 ) != 'D' .OR. VALTYPE( dData2 ) != 'D' .OR.; VALTYPE( cOra1 ) != 'C' .OR. VALTYPE( cOra2 ) != 'C' .OR.; EMPTY( dData1 ) RETURN 0 END IF nGiorni := dData2 - dData1 nOrasp := VAL( SUBSTR( cOra2,1,2 ) ) nMinutp := VAL( SUBSTR( cOra2,4,2 ) ) nOrasa := VAL( SUBSTR( cOra1,1,2 ) ) nMinuta := VAL( SUBSTR( cOra1,4,2 ) ) nOras := nOrasp - nOrasa IF nOras < 0 --nGiorni nOras += 24 END IF nMinuto = nMinutp - nMinuta IF nMinuto < 0 --nOras nMinuto += 60 END IF RETURN nMinuto + ( nOras * 60 ) + ( ( nGiorni * 24 ) * 60 )
Confundido...
Logré compilar mi aplicación en 32 bits, todo bien, hasta cuando engancho alguna de las opciones del menú y me arroja el error fivewin/3 Cannot create dialog box habiendo migrado la dll a rc y luego compilado a como dll 32, no entiendo que pasa, si todo está correcto. De ante mano, gracias.
Confundido...
Utilizas controles de Borland ? Como recomendacion, pasa de los DLLs y trabaja directamente con el RC pegado al EXE
Confundido...
Hice el RC, lo compilé pegado al exe, y sigue enviandome el mismo error, pero en los recursos que generé para mdichild... no sé que pasa.
Confundido...
Leon, Puedes poner un ejemplo pequeño de tu PRG y RC aqui para que lo revisemos ? gracias,
Confundido...
Hola Leon Quizas te pueda dar unas ideas al respecto, pues hace poco me sucedia lo mismo, dale una verificada a este link del foro, fue una ayuda que recibi <!-- m --><a class="postlink" href="http://fivetechsoft.com/forums/viewtopic.php?t=6791">http://fivetechsoft.com/forums/viewtopic.php?t=6791</a><!-- m --> Suerte Lubin
Confundido...
Debo contarles, que he logrado enlazar los recursos, y eso, gracias a las cosas que leí en este foro, estoy muy agradecido por esta línea de programa: DLL32 FUNCTION BWCCRegister( hInst AS LONG ) AS WORD PASCAL LIB "BWCC32.DLL" La incluí al final del módulo principal, y el problema se solucionó. Sólo me queda un problemilla que resolver... que el programa queda inmerso en loop, ejecuta una y otra vez, la solicitud de password... lo que es un mal menor... creo que se puede solucinar con dos ejecutables y un winexec... Gracias. Han sido y seguirán siendo una gran ayuda, es un inmenso aporte al programador este foro.
Confusion con bInit tprinter o rpreview
saludos En relaidad que confusion con bInit, para efectos que funcione la exportacion a excel con el preview de tprinter el bInit pertenece a la clase tprinter o rpreview, verifico ambas clases y en ninguna esta definido el bInit, que debo hacer para que mi exportacion a excel desde el preview funcione. Modifico la clase rpreview: function RPreview( oDevice, oReport ) local oPreview := TPreview():New( oDevice ) oPreview:oReport := oReport oPreview:oReport:bInit:={||.t.} // AGREGO ESTA LINEA Y ME MARCA ERROR oPreview:Activate() return nil Que debo hacer en realidad?
Confusion con bInit tprinter o rpreview
Mira este hilo <!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=6&t=28319">viewtopic.php?f=6&t=28319</a><!-- l -->
Confusion con bInit tprinter o rpreview
Saludos. Solo para aclarar un poco sobre este tema: Estoy usando para mis impresiones la clase tprinter y no treport La clase treport si maneja el bInit y lo evalua, pero el tprinter.. no
Confusion con bInit tprinter o rpreview
Creo que el problema no es del bInit Es porque el método ToExcel, que es el utilizado para la conversión, es de la clase TReport y necesita un oReport definido, ya que utiliza las columnas especificadas en dicho objeto para el traspaso.
Confusion re version compatibility b/w FWH and xHarbour.com
I'm a bit confused. I want to update FWH from 7.01 to 8.05 when it is available but I also currently use xHarbour.com's Builder of Dec '06. I'm reluctant to take another 6 months subscription to the Builder just yet as it seems a new stable version is released only about once a year (IIRC the last version was going to be "very soon" for very many months) so I want to time my Builder renewal to get the next stable xHarbour version.Will FWH 8.05 work with xHarbour.com's Dec 2006 commercial build? If not, some posts seem to suggest problems (?) with the Nov 2007 version (eg with Vista + Excel). What is my best upgrade approach for stability as I enjoy the simplicity of xHarbour.com's Builder but I also want to upgrade from FWH 7.01 to 8.05?Hope my query makes sense.TIAColin Wisbey
Confusion re version compatibility b/w FWH and xHarbour.com
Colin,xHarbour.com last released a "stable" version in November, 2007. Ever since then they have been betas.Patrick posted that a new version would be released "any day" over a week ago, but in a response to my question, he indicated it was still a beta with many changes and good only for testing and not production.As you noted, stable releases are "few and far between" so it is best to avoid betas for production work because if your clients have a problem, you won't get a true fix for a long time. This happened to me over a year ago when I made this mistake, and I lost several clients and a lot of income as a result.FWH 8.04 was unusable for me because it required the latest xHarbour.com beta, which was soon to be replaced, and has reported problems. I was able to use 8.03 with my xHarbour NOV stable build.In my case, I'll have to wait for further FWH upgrades until there is a version compatible with a stable xHarbour release. Until then I'll use FWH 8.03 and xHarbour Nov 2007. I know both products will improve significantly over the coming months. so the wait will be worth it.FWIW, most development products do not have new releases every month. There may be patches out, but most products ( ie. Visual Studio ) only offer major updates every couple of years. Antonio is adding new capabilities every month, and that is admirable. xHarbour has a lot of people working on a variety of tasks, and that often requires some time for them to all get on the same page. I don't see a negative here ... we just need to be patient for the two to once again come together in a release we can use for our clients. Until then, we could work with a separate install to test the newer features which actually means we can move to the stable releases, and distribute our products, more quickly when that time comes.Tim
Confusion re version compatibility b/w FWH and xHarbour.com
Colin,Meanwhile a new xHB.com version gets available, I suggest you to try and use the free xHarbour for Borland version.You can use a free tool like "Verce" with FWH and xHarbour (Borland), which it is very popular, and that will offer you the same simplicity that you get with the "builder" <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Confusion re version compatibility b/w FWH and xHarbour.com
Hello Colin, Tim,Yes, latest FWH 8.04 and 8.05 needs a new xHarbour Builder.I can only tell that we are working hard to get a new xHarbour Builder beta out as soon as possible. The bug that's stopping me now is about quitting windows apps which don't quit until you kill its process in the task-manager. So, as you see, I'm so depended on so many freelance open source programmers. A new release "look" so easy to do, but its' not. Believe me . <!-- s;-) --><img src="{SMILIES_PATH}/icon_wink.gif" alt=";-)" title="Wink" /><!-- s;-) -->I just wanted you to know that we ALSO are very much awaiting a new xHarbour Builder release. And after this new BETA release, its up to you guys. The more people try the BETA and report bugs, the faster we get to a stable release.Off course we are also testing the beta's! For sure! <!-- s;-) --><img src="{SMILIES_PATH}/icon_wink.gif" alt=";-)" title="Wink" /><!-- s;-) -->Patrick
Confusion re version compatibility b/w FWH and xHarbour.com
Dear Patrick,>The bug that's stopping me now is about quitting windows apps which don't quit until you kill its process in the task-manager>Is that bug also present in the free xHarbour Borland version ?We haven't noticed it and haven't got any report about it (with the Borland version I mean). Thanks! <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Confusion re version compatibility b/w FWH and xHarbour.com
[quote="Antonio Linares":1uzojiof] > The bug that's stopping me now is about quitting windows apps which don't quit until you kill its process in the task-manager > Is that bug also present in the free xHarbour Borland version ? We haven't noticed it and haven't got any report about it (with the Borland version I mean). Thanks! <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->[/quote:1uzojiof]I'm not sure if it's also in the BCC edition of xHarbour. I did not had the change to test it in BCC yet. But this is something that developers are fixing in xH.org core yes. The bug does not manifest itself always, so its kinda hard to catch.Patrick
Confusion re version compatibility b/w FWH and xHarbour.com
Patrick,thanks for the info <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Confusion re version compatibility b/w FWH and xHarbour.com
Hi all,am i missing something?I use xHarbour Builder from Nov. 2007.In my xbp-settings i chose the Borland compiler instead of Pelles C.I dont have any problem using FWH 8.04.Just wondering about this discussion,Detlef
Confusion re version compatibility b/w FWH and xHarbour.com
Well I may be way off base. I use the default xHarbour.com compiler ( Pelles ) because it is Microsoft C compatible. So, yes, it does have the problem with 8.04.I know many people are happy with Borland but I simply made the decision several years ago to not use it. Ultimately I feel we get more support with Microsoft compatibility from a wide range of resources, and Borland, while useable, does not enjoy the same amount of development. Also, I'm not being critical of the time it takes to get the build working right with xHarbour. People are busy and it takes time to get things right. For now I'm OK with my current versions, and when all is resolved I'll use the new versions and enjoy the advancements.
Confusion re version compatibility b/w FWH and xHarbour.com
I noticed the problem of an app not exiting completely when using xBuilder of Nov '07 with FHW 8.04 so I revered back to 8.03 and then the app exited correctly.For whatever that's worth.- Roger
Confusion re version compatibility b/w FWH and xHarbour.com
Roger,are you using the xHBuilder/Pelles C compiler too?Regards,Detlef
Confusion re version compatibility b/w FWH and xHarbour.com
Dear All,I used xHb Builder Nov'07 with FWH 8.04 without any problem. I use xCC of xHarbour.com.Regards,Dutch
Confusion re version compatibility b/w FWH and xHarbour.com
Is it possible to download and test Nov 2007 demo version? When I download demo from xharbour.com it is Feb 2008 beta. Can we not get Demo for Nov 2007 ?
Confusion re version compatibility b/w FWH and xHarbour.com
[quote="nageswaragunupudi":15q7yht2]Is it possible to download and test Nov 2007 demo version? When I download demo from xharbour.com it is Feb 2008 beta. Can we not get Demo for Nov 2007 ?[/quote:15q7yht2]No sorry, the Demo versions are always the latest BETA's.if you want the PRE-Beta build of the DEMO version of xHarbour Builder, please email me and I will send it via email.Patrick
Congelar columnas en xBrowse (Solucionado)
Tengo el siguiente inconveniente cuando congelo columnas en el xBrowse: Tengo de un xBrowse de 30 columnas, congelo la columna 3, muevo la celda activa hacia la derecha (hasta el final), algunas columnas quedan ocultas ( 4, 5, 6, etc.) por el congelamiento. Hasta ahí todo está bien. El problema es cuando pulso la tecla hacia la izquierda para volver, las columnas que quedaron ocultas ( 4, 5, 6, etc.) no aparecen hasta que llego a la columna 1 y continúo pulsando la tecla a la izquierda recién empiezan a aparecer las columnas ocultadas. ¿No deberían aparecer las columnas ocultadas (4, 5, 6, etc.) cuando este intentando llegar a la columna 3?
Congelar columnas en xBrowse (Solucionado)
Abel, Yo lo hago así: [code=fw:2mvx222h]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">for</span> f = <span style="color: #000000;">4</span> <span style="color: #0000ff;">to</span> <span style="color: #000000;">30</span>   <span style="color: #B900B9;">// columnas a ocultar</span><br />  oBrw:<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span>f<span style="color: #000000;">&#93;</span>:<span style="color: #000000;">hide</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">next</span></div>[/code:2mvx222h] Espero te sirva. Rolando <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->