topic
stringlengths
1
63
text
stringlengths
1
577k
Control a paradas de tabulador
Hola a todos, Antes de nada, con todo mi respeto. Esta solución que acabais de dar, no es una barbaridad? El comportamiento natural de FWH no debería ser que con la tecla TAB no se parara en los SAY? Yo uso pocos DIALOG y su comportamiento es el correcto, no se para en los SAY, por eso pedía ver el código fuente de ese DIALOG. Os imaginais que los que como yo programamos directamente sin recursos, tuviéramos que realizar ese arreglo para cada SAY? Definir cada variable objeto y modificar su comportamiento. Antonio, por favor, dinos quién es el 'bárbarò'. <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) --> Uso FWH 0903. Saludos Carlos G.
Control a paradas de tabulador
[quote="FiveWiDi":2fflnzf8]Hola a todos, Antes de nada, con todo mi respeto. Esta solución que acabais de dar, no es una barbaridad? El comportamiento natural de FWH no debería ser que con la tecla TAB no se parara en los SAY? Yo uso pocos DIALOG y su comportamiento es el correcto, no se para en los SAY, por eso pedía ver el código fuente de ese DIALOG. Os imaginais que los que como yo programamos directamente sin recursos, tuviéramos que realizar ese arreglo para cada SAY? Definir cada variable objeto y modificar su comportamiento. Antonio, por favor, dinos quién es el 'bárbarò'. <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) --> Uso FWH 0903. Saludos Carlos G.[/quote:2fflnzf8] Dandole vuelta a lo que dices tienes razon, ahora que recuerdo cuando no sabia usar recursos hacia mis SAY a pedal y nunca los TAB se detubieron en ellos, ya que eso siempre lo he usado, y ahora que uso recursos ni los redefino, a menos que vaya hacerle alguna modificacion, hay que meterle el ojo a este tema, saludos... <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: -->
Control a paradas de tabulador
Fernando, Usando: oControl1:oJump := oControl2 puedes hacer que desde oControl1 se salte al que quieras <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Control a paradas de tabulador
Antonio Su solución trabaja mejor que la del maestro Mercado, aunque tuve que incluir el llamado dentro del metodo bLostFocus; así: oControl1:bLostFocus := {|| oControl1:oJump:=oControl2 } Gracias
Control antipirateria
Compañeros: Tengo un aplicativo terminado y listo para entregar donde he invertido muchas horas de programación. Para evitar pirateria tengo lo siguiente: 1.- La forma más segura que he encontrado para evitar el copiado (o piratería) es mediante la generación de claves o contra-cuentas asociadas al elemento a controlar, en este caso "nombre de la empresa" + "tlfno". Por ejemplo: Para DISTRIBUCIONES NUBEGRIS, SL + 34665667482 se genera una contraclave del tipo XG23F-G7FS4, en el que el usuario si no la introduce correctamente al entrar por primera vez, el programa se vuelve DEMO y no deja registrar más de 5 clientes, artículos y propuestas y facturas. 2.- He desechado la opción de disco llave USB tal y como se recomienda en este foro. 3.- Para evitar la acción COPIAR-PEGAR en otro PC y tener el programa funcionando en otro PC ilegalmente, he pensado que en el momento de la instalación, se copie un pequeño archivo en otra carpeta y cuando se ejecute el EXE llame al archivo, si no existe se convierte en DEMO. [color=#FF0000:1mj3w5mj]El problema lo tengo en como establezco la ruta de localización de este archivo desde otro terminal de la RED.[/color:1mj3w5mj] O bien otra opción sería que en el momento de la instalación quede almacenado "algo" en el registro de Windows de manera que al ejecutar el EXE llame a este "algo" y cumpruebe si existe. ¿ Sabeis vosotros como solucionar esto ? Mil gracias. LORENZO.
Control antipirateria
Hola Lorenzo, [quote="Loren":3otgqawc]2.- He desechado la opción de disco llave USB tal y como se recomienda en este foro.[/quote:3otgqawc] Porqué la has desechado? A mi me va bien (eso creo). Saludos Carlos G.
Control antipirateria
[quote="FiveWiDi":1munt176]Hola Lorenzo, [quote="Loren":1munt176]2.- He desechado la opción de disco llave USB tal y como se recomienda en este foro.[/quote:1munt176] Porqué la has desechado? A mi me va bien (eso creo). Saludos Carlos G.[/quote:1munt176] Fivewidi, Podrias enviarme tu correo del messenger a <!-- e --><a href="mailto:wmormar@yahoo.com.mx">wmormar@yahoo.com.mx</a><!-- e --> para charlar sobre la clase USB gracias de antemano
Control antipirateria
[quote="wmormar":nfypunpr][quote="FiveWiDi":nfypunpr]Hola Lorenzo, [quote="Loren":nfypunpr]2.- He desechado la opción de disco llave USB tal y como se recomienda en este foro.[/quote:nfypunpr] Porqué la has desechado? A mi me va bien (eso creo). Saludos Carlos G.[/quote:nfypunpr] Fivewidi, Podrias enviarme tu correo del messenger a <!-- e --><a href="mailto:wmormar@yahoo.com.mx">wmormar@yahoo.com.mx</a><!-- e --> para charlar sobre la clase USB gracias de antemano[/quote:nfypunpr] Eso es imposible William, no tengo messenger. Además tendríamos un problema de horario, yo estoy al otro lado del charco, en Barcelona (bueno cerca). Ahora bien, mi mail es <!-- e --><a href="mailto:fwd@telefonica.net">fwd@telefonica.net</a><!-- e --> para lo que quieras. Un saludo y gracias a ti. Carlos G.
Control antipirateria
Hola loren aver si te sirve con esto que hago yo: 1. Crea una base de datos con un solo campo que llamaremos EQUIPO C 20 y ubicala en la carpeta de tu programa 2. Cuando el sistema empieza a ejecutarce utiliza: cHDD:=ALLTRIM(STR(nSerialHD(CURDRIVE()+':\'))) para cargar el numero de serie del disco en el que tu programa se esta ejecutando, o mejor: cHDD:=ALLTRIM(STR(nSerialHD('C'))) para obtener el numero de serie del disco duro de la PC donde ejecutas el sistema... 3. Verifica la presencia del numero de serie en la base de datos que creastes para saber si la PC en la que estas ejecutando tu sistema esta en la lista de numeros de serie permitidos. 4. En caso de que el numero de serie de la PC en la que estas ejecutando el programa no se encuentre en la base de datos puedes suministrar una clave de acceso por pantalla para que el sistema registre la "nueva" PC dentro de la lista de equipos permitidos. 5. Para hacer las cosas mas dificiles para los posibles hakers, registra en numero de serie utilizando ENCRYPT(cHDD) para almacenarla encriptada y buscala por medio de DECRYPT(cHDD) 6. Para hacer las cosas mas dificiles para los hakers y mas faciles para ti, deben implementar una funcion que suministre una clave que cambie automaticamente en forma constante ya que si usas una misma clave en algun momento la descubriran. Yo me sirvo de los segundos para generar una clave cambiante y una pequena hoja de excel que uso en mi movil para calular la clave de activacion. Este metodo nunca me ha fallado y cuento con mas de 400 clientes ademas funciona para hacer que tus programas se ejecuten desde una USB y evitar que te los copien y ejecuten en otras memorias. Si tiene dudas no duden en preguntar. Espero te sirva Saludos desde Panama
Control antipirateria
Estimado muy buena tu sujerencia, ahora si el sistema está instalado en un Servidor, y todas las terminales buscan el ejecutable allí, se puede cargar el numero de serie del disco del Servidor ? Saludos David Argentina
Control antipirateria
Con el código anterior, que usa CURDRIVE(), creo que necesitas tener conectado el disco duro del servidor a una unidad en cada cliente. Si no puedes hacer esto me temo que no te servirá. No pienses en UN solo método de protección estático en el tiempo. Lo ideal es utilizar dos o tres que varíen con el tiempo. Algunos son tan básicos como crear un archivo inventado por ti en carpetas del sistema que siempre existen y de nombre parecido a algún otro del propio widows, incluso terminado en dll, en fin para liarlo más. A veces lo más sencillo es lo más difícil de encontrar. Por otro lado, recuerda que el programa más pirateado del mundo ha dado lugar a una de las fortunas más grandes del planeta...piensa en ello. Seguramente, tus clientes siempre van a necesitar mantenimiento, incluso si son clientes piratas, un día el ordenador fallará y su mayor valor, los datos, dependerán de ti para ser recuperados. Saludos.
Control antipirateria
[quote="Verhoven":24y4y6il]Por otro lado, recuerda que el programa más pirateado del mundo ha dado lugar a una de las fortunas más grandes del planeta...piensa en ello. Seguramente, tus clientes siempre van a necesitar mantenimiento, incluso si son clientes piratas, un día el ordenador fallará y su mayor valor, los datos, dependerán de ti para ser recuperados. Saludos.[/quote:24y4y6il] Alguién dijo alguna vez algo así: "deja que hablen de mi aunque se para mal." Si tu programa no se puede piratear, cuanta gente crees que lo va a conocer? El que realmente usará tu programa al final lo acabará comprando, simplemente por lo que dice Verhoven: mantenimiento, servició post venta, ampliaciones del programa. Por cierto pueden piratear una vez, pero cada 'n' actualizaciones cambias el método de protección y quizás te compren el programa en ese momento; es lo que hacen muchas empresas aunque de diferente manera, crean la necesidad y luego venden. Cuanto vale tu programa? Quien lo piratee, si no pudiera piratearlo lo compraría? O piratearía otro? Buscaría uno free? Entonces cuanto estarías perdiendo? Se me olvidaba, hace muchos años no me molesté en buscar una copia pirata del programa Contaplus (Sp Editores, en ese tiempo), era tan barato que lo compré en una ¡ Librería ! I(5.000 pesetas de entonces = 30,00 euros actuales) Esa es otra manera de evitar el pirateo y de expander un producto. Y donde lo instalé lo actualizaron con las siguientes versiones. Estaremos de acuerdo en que tengo una visión quizás singular del asunto. En fin, me he ido por las ramas. Como dicen, mis 2 cents. Un Saludo Carlos G.
Control antipirateria
En mi caso genero una contracuenta con el nombre de la empresa pero adicionalmente incluyo limites por documentos, usuarios concurrentes en red, cantidad de empresas o sucursales, fecha de activación, versión y fecha de vencimiento; entre otros controles. No me preocupa que lo copien, está disponible en mi sitio y es totalmente funcional con sus limitantes. Hoy ya se superan las 50,000 descargas con más de 3,000 usuarios registrados y potenciales clientes. El cargo es anual. Si se rebasan las condiciones o se deja expirar la licencia el sistema se convierte en demo y permite su uso pero se sale en forma aleatoria permitiendo el registro, consulta o acción máximo de tres procesos. Creo que conviene hacer un esfuerzo para poner más de un control que otorgue la libertad de uso en forma limitada y dejar que lo copie todo aquel que esté interesado. Si realmente lo usan seguro que lo van a adquirir.
Control antipirateria
Saludos a todos Bueno he de admitir que el permitir que le copien el programa a uno es una estrategia valida para diseminar nuestro producto. Pero en mi caso, que hago programas que se distribuyen se ejecutan desde memorias USB no me puedo dar ese lujo. Ademas, cuando alguien copia un programa, generalmente copia tambien los datos y por ende permitirlo seria una violacion a la seguridad de la informacion de los clientes que si compraron el producto. Imaginen un inventario de piezas que sea robado por un empleado y vendido a la competencia. Saludos Lorenzo Si necesitas ayuda, con mucho gusto... Con relacion a lo del numero de serie desde un servidor, al ejecutar la aplicacion nSerialHD toma el serial del disco donde se ejecuta la aplicacion asi que no necesitas hacer map... ya que lo que necesitas saber no es el numero de serie del servidor sino el de la PC donde tu quieres que la aplicacion sea utilizada. Haz lo siguiente: Una vez que tengas el numero de serie de la PC y hayas validado que no existe en tu lista de equipos permitidos puedes desplegar un dialogo en el cual el usuario pueda ingresar una clave especial que permitiria la ejecución del sistema a partir de ese momento. Como seria una torpeza utilizar la misma clave para todos nuestros sistema, debes implementar una clave que siempre sea distinta. Una forma de hacerlo es utilizando el viejo truco de reemplazar numeros con letras. El problema de este metodo es que si siempre usas la misma letra para un mismo numero, al final todo el mundo sabra cual es tu truco. Asi que lo que debes hacer es una clave en la que la tabla de equivalencias numero – letras sea siempre cambiante. Para hacer esto puedes valerte de la siguiente forma: • Crea 10 tablas de equivalencias de numeros a letras Ej 0=A 1=B ….. 0=X 1=H • Lee la hora del sistema y obten el ultimo numero de la hora (segundo) • Ese numero correspondera a la tabla de equivalencias que debes utilizar de esta forma el usuario observara que no siempre un 1 equivale a una A (por ejemplo) • Reemplaza los numeros de la hora con sus letras equivalentes y para confundir mas el asunto a tu posible hacker alterna pares con nones…. • El usuario debe ingresar la secuencia correcta de numeros que equivalen a las letras presentadas. Esta es la secuencia de activacion… y la debes suministrar tu cuando tu cliente te llame para dictarte las letras del numero de serie. • Lo mas recomendable es que en un mobil hagas una hoja de Excel que al ingresar las letras que tu cliente te dicta, te presente los numeros de la clave de activacion para que se los puedas dictar a tu cliente. PD: En el dialogo que presenta la letras del numero de serie es recomendable presentar palabras cuya inicial correspondan a las letras. Ej. C=charli D=delta P= papa….etc para evitar confusiones sonoras.
Control antipirateria
yo usaba en un tiempo el serial del disco duro, pero si formateas la maquina , te da otro serial diferente , esto es molesto para el cliente.. saludos...
Control antipirateria
Si pero todo eso se cobra... ademas con el metodo descrito puedes suministrar el serial por telefono...
Control antipirateria
bueno cobras si es que tu formateas el equipo, pero mis clientes tienen sus propios tecnicos, y no puedes cobrarle por darle de alta otro numero de serie, bueno cada quien , yo prefiero controlarlo de una forma que si formatean el equipo, solo tengan que volver a instalar y listo. saludos..
Control antipirateria
crea una clave con la MAC de la tarjeta de Red
Control antipirateria
Todo candado, tiene su cerrajero, Bajo este principio es imposible evitar que copien nuestras aplicaciones, es mas, programas sofisticados como las herramientas CAD, el mismo WINDOWS, OFFICE y otros tantos que viene con seriales complicadas, son copiados, pirateados, creackeados etc etc etc, y me pregunto,,, ¿Debo lidiar con los piratas?, o mejor afino mis sistemas... El modo de trabajo de ALfredo me parece interesante, personalmente hago lo siguiente: 1- Genero una clave a partir del nombre de la empresa cliente mas su numero registral 2- La aplicacion se compila con ese serial y el nombre de la empresa, es decir va un exe "personalizado" 3- Luego al iniciar por 1ra vez la aplicacion, verifica que en la base de datos este registrado el numero del MAC de la tarjeta de red, si no lo esta, pide el serial que debe ser proporcionado a la empresa.. luego este serial es de responsabilidad de la misma... Como se indica, es dificil evitar un copia ilegal, pero si podria ser una copia controlada, asi el numero de usuarios ve en aumento,,,, Salu2
Control box
Sin probar aun : [code=fw:2y2mzdzk]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> BOXCREATE <span style="color: #000000;">&#41;</span> <br /><span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp;NSBox * box = <span style="color: #000000;">&#91;</span> <span style="color: #000000;">&#91;</span> NSBox alloc <span style="color: #000000;">&#93;</span> <br />&nbsp;&nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;initWithFrame : <span style="color: #000000;">NSMakeRect</span><span style="color: #000000;">&#40;</span> hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span>, hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>, hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span>, hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">4</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#93;</span>;<br />&nbsp; &nbsp;NSString * string = <span style="color: #000000;">&#91;</span> <span style="color: #000000;">&#91;</span> <span style="color: #000000;">&#91;</span> NSString alloc <span style="color: #000000;">&#93;</span> initWithCString: <span style="color: #000000;">ISCHAR</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">5</span> <span style="color: #000000;">&#41;</span> ? hb_parc<span style="color: #000000;">&#40;</span> <span style="color: #000000;">5</span> <span style="color: #000000;">&#41;</span> : <span style="color: #ff0000;">""</span> <span style="color: #000000;">&#93;</span> autorelease <span style="color: #000000;">&#93;</span>;<br />&nbsp; &nbsp;NSWindow * <span style="color: #0000ff;">window</span> = <span style="color: #000000;">&#40;</span> NSWindow * <span style="color: #000000;">&#41;</span> hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">6</span> <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp;<span style="color: #000000;">&#91;</span>box setBoxType: <span style="color: #000000;">NSBoxPrimary</span> <span style="color: #000000;">&#93;</span>;<br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> string != <span style="color: #00C800;">NULL</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#91;</span>box setTitle : <span style="color: #000000;">string</span> <span style="color: #000000;">&#93;</span>;<br />&nbsp; &nbsp;<span style="color: #000000;">&#91;</span> GetView<span style="color: #000000;">&#40;</span> <span style="color: #0000ff;">window</span> <span style="color: #000000;">&#41;</span> addSubview : <span style="color: #000000;">box</span> <span style="color: #000000;">&#93;</span>;<br />&nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp;hb_retnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> LONG <span style="color: #000000;">&#41;</span> box <span style="color: #000000;">&#41;</span>;<br /><span style="color: #000000;">&#125;</span> <br /><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> <span style="color: #0000ff;">SEPARATOR</span> <span style="color: #000000;">&#41;</span> <br /><span style="color: #000000;">&#123;</span><br />NSBox *<span style="color: #0000ff;">Separator</span>=<span style="color: #000000;">&#91;</span><span style="color: #000000;">&#91;</span>NSBox alloc<span style="color: #000000;">&#93;</span> <br />&nbsp; &nbsp; &nbsp; &nbsp; initWithFrame:<span style="color: #000000;">NSMakeRect</span><span style="color: #000000;">&#40;</span> hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span>, hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>, hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span>, hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">4</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#93;</span>;<br />&nbsp; NSWindow * <span style="color: #0000ff;">window</span> = <span style="color: #000000;">&#40;</span> NSWindow * <span style="color: #000000;">&#41;</span> hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">6</span> <span style="color: #000000;">&#41;</span>; &nbsp; &nbsp; &nbsp; <br /><span style="color: #000000;">&#91;</span><span style="color: #0000ff;">Separator</span> setBoxType:<span style="color: #000000;">NSBoxSeparator</span><span style="color: #000000;">&#93;</span>;<br />&nbsp; <span style="color: #000000;">&#91;</span> GetView<span style="color: #000000;">&#40;</span> <span style="color: #0000ff;">window</span> <span style="color: #000000;">&#41;</span> addSubview : &nbsp;<span style="color: #0000ff;">Separator</span> <span style="color: #000000;">&#93;</span>;<br />&nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp;hb_retnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> LONG <span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">Separator</span> <span style="color: #000000;">&#41;</span>;<br /><span style="color: #000000;">&#125;</span> <br /><br />&nbsp;</div>[/code:2y2mzdzk]
Control box
Las Funciones anteriores con las correciones oportunas , mas dos funciones para controlar el stylo . FUNCIONANDO . [code=fw:1fbuxo2o]<div class="fw" id="{CB}" style="font-family: monospace;"><br />NSView * GetView<span style="color: #000000;">&#40;</span> NSWindow * <span style="color: #0000ff;">window</span> <span style="color: #000000;">&#41;</span>;<br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> BOXCREATE <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; NSBox * box = <span style="color: #000000;">&#91;</span> <span style="color: #000000;">&#91;</span> NSBox alloc <span style="color: #000000;">&#93;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;initWithFrame : <span style="color: #000000;">NSMakeRect</span><span style="color: #000000;">&#40;</span> hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span>, hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>, hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span>, hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">4</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#93;</span>;<br />&nbsp; &nbsp; NSString * string = <span style="color: #000000;">&#91;</span> <span style="color: #000000;">&#91;</span> <span style="color: #000000;">&#91;</span> NSString alloc <span style="color: #000000;">&#93;</span> initWithCString: <span style="color: #000000;">ISCHAR</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">5</span> <span style="color: #000000;">&#41;</span> ? hb_parc<span style="color: #000000;">&#40;</span> <span style="color: #000000;">5</span> <span style="color: #000000;">&#41;</span> : <span style="color: #ff0000;">""</span> <span style="color: #000000;">&#93;</span> autorelease <span style="color: #000000;">&#93;</span>;<br />&nbsp; &nbsp; NSWindow * <span style="color: #0000ff;">window</span> = <span style="color: #000000;">&#40;</span> NSWindow * <span style="color: #000000;">&#41;</span> hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">6</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; <br />&nbsp; &nbsp; <span style="color: #000000;">&#91;</span>box setBoxType: <span style="color: #000000;">NSBoxPrimary</span> <span style="color: #000000;">&#93;</span>;<br />&nbsp; &nbsp; <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> string != <span style="color: #00C800;">NULL</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#91;</span>box setTitle : <span style="color: #000000;">string</span> <span style="color: #000000;">&#93;</span> ;<br />&nbsp; &nbsp; <span style="color: #000000;">&#91;</span> GetView<span style="color: #000000;">&#40;</span> <span style="color: #0000ff;">window</span> <span style="color: #000000;">&#41;</span> addSubview : <span style="color: #000000;">box</span> <span style="color: #000000;">&#93;</span>;<br />&nbsp; &nbsp; <br />&nbsp; &nbsp; hb_retnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> LONG <span style="color: #000000;">&#41;</span> box <span style="color: #000000;">&#41;</span>;<br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> <span style="color: #0000ff;">SEPARATOR</span> <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; NSBox *<span style="color: #0000ff;">Separator</span>=<span style="color: #000000;">&#91;</span><span style="color: #000000;">&#91;</span>NSBox alloc<span style="color: #000000;">&#93;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; initWithFrame:<span style="color: #000000;">NSMakeRect</span><span style="color: #000000;">&#40;</span> hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span>, hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>, hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span>, hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">4</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#93;</span>;<br />&nbsp; &nbsp; NSWindow * <span style="color: #0000ff;">window</span> = <span style="color: #000000;">&#40;</span> NSWindow * <span style="color: #000000;">&#41;</span> hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">5</span> <span style="color: #000000;">&#41;</span>; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; <span style="color: #000000;">&#91;</span><span style="color: #0000ff;">Separator</span> setBoxType:<span style="color: #000000;">NSBoxSeparator</span><span style="color: #000000;">&#93;</span>;<br />&nbsp; &nbsp; <span style="color: #000000;">&#91;</span> GetView<span style="color: #000000;">&#40;</span> <span style="color: #0000ff;">window</span> <span style="color: #000000;">&#41;</span> addSubview : &nbsp;<span style="color: #0000ff;">Separator</span> <span style="color: #000000;">&#93;</span>;<br />&nbsp; &nbsp; <br />&nbsp; &nbsp; hb_retnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> LONG <span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">Separator</span> <span style="color: #000000;">&#41;</span>;<br /><span style="color: #000000;">&#125;</span> <br /><br /><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> BOXSETSTYLE <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; NSBox * box = <span style="color: #000000;">&#40;</span> NSBox * <span style="color: #000000;">&#41;</span> hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; <span style="color: #000000;">&#91;</span>box setBoxType : <span style="color: #000000;">hb_parnl</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#93;</span>;<br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> BOXGETSTYLE <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; NSBox * box = <span style="color: #000000;">&#40;</span> NSBox * <span style="color: #000000;">&#41;</span> hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; hb_retnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#91;</span> box boxType <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span>;<br /><span style="color: #000000;">&#125;</span><br /><br /><br />&nbsp;</div>[/code:1fbuxo2o]
Control box
Manuel, Has creado una Clase en PRG ? Podriamos llamarla TGroup por la equivalencia con Windows <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> Que ejemplo has probado ? gracias
Control box
No, no he creado la clase , lo he probado directamente sobre las funciones y sobre un dialogo que estoy creando para un "generador indices" perteneciente a un proyecto mayor ( cuando tenga mas o menos decente el generador intentaré compartirlo aquí ), pero se podría usar el tutor02.prg He revisado para hacer la clase y se me ocurre que una de las funciones sobra si modifico un poco el codigo . Lo pongo todo completo y SIN PROBAR ( Estoy en windows) : La clase: [code=fw:1puqu7cr]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveMac.ch"</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><br /><span style="color: #00C800;">CLASS</span> TGroup <span style="color: #0000ff;">FROM</span> TControl<br />   <br />   <span style="color: #00C800;">METHOD</span> <span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> nRow, nCol, nWidth, nHeight,  cText ,oWnd , nStyle <span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">METHOD</span> SetStyle<span style="color: #000000;">&#40;</span> nStyle <span style="color: #000000;">&#41;</span> <span style="color: #00C800;">INLINE</span> boxSetStyle<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">hWnd</span>, nStyle <span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">METHOD</span> GetStyle<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>         <span style="color: #00C800;">INLINE</span> boxGetStyle<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">hWnd</span> <span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">METHOD</span> <span style="color: #0000ff;">separator</span> <span style="color: #000000;">&#40;</span>nRow, nCol, nWidth, nHeight, oWnd <span style="color: #000000;">&#41;</span> <br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">METHOD</span> <span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> nRow, nCol, nWidth, nHeight, cText, oWnd , nStyle<span style="color: #000000;">&#41;</span>  <span style="color: #00C800;">CLASS</span> TGroup<br /><br />   <span style="color: #00C800;">local</span> hGroup := oRadMenu:<span style="color: #000000;">hGroup</span><br /><br />   <span style="color: #00C800;">DEFAULT</span> oWnd := GetWndDefault<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, nWidth := <span style="color: #000000;">100</span>, nHeight := <span style="color: #000000;">23</span> , nStyle := <span style="color: #000000;">1</span><br /><br />   ::<span style="color: #000000;">hWnd</span> = BoxCreate<span style="color: #000000;">&#40;</span> nRow, nCol, nWidth, nHeight, cText,nStyle , oWnd:<span style="color: #000000;">hWnd</span> <span style="color: #000000;">&#41;</span><br />   <br />   oWnd:<span style="color: #000000;">AddControl</span><span style="color: #000000;">&#40;</span> <span style="color: #00C800;">Self</span> <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">Self</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">METHOD</span> <span style="color: #0000ff;">Separator</span> <span style="color: #000000;">&#40;</span> nRow, nCol, nWidth, nHeight,  oWnd <span style="color: #000000;">&#41;</span>  <span style="color: #00C800;">CLASS</span> TGroup<br /><br />   <span style="color: #00C800;">local</span> hGroup := oRadMenu:<span style="color: #000000;">hGroup</span><br /><br />   <span style="color: #00C800;">DEFAULT</span> oWnd := GetWndDefault<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, nWidth := <span style="color: #000000;">100</span>, nHeight := <span style="color: #000000;">23</span><br /><br />   ::<span style="color: #000000;">hWnd</span> = BoxCreate<span style="color: #000000;">&#40;</span> nRow, nCol, nWidth, nHeight, , <span style="color: #000000;">3</span> , oWnd:<span style="color: #000000;">hWnd</span> <span style="color: #000000;">&#41;</span><br />   <br />   oWnd:<span style="color: #000000;">AddControl</span><span style="color: #000000;">&#40;</span> <span style="color: #00C800;">Self</span> <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">Self</span><br /> </div>[/code:1puqu7cr] Las funciones : [code=fw:1puqu7cr]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br />NSView * GetView<span style="color: #000000;">&#40;</span> NSWindow * <span style="color: #0000ff;">window</span> <span style="color: #000000;">&#41;</span>;<br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> BOXCREATE <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />    NSBox * box = <span style="color: #000000;">&#91;</span> <span style="color: #000000;">&#91;</span> NSBox alloc <span style="color: #000000;">&#93;</span><br />                   initWithFrame : <span style="color: #000000;">NSMakeRect</span><span style="color: #000000;">&#40;</span> hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span>, hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>, hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span>, hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">4</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#93;</span>;<br />    NSString * string = <span style="color: #000000;">&#91;</span> <span style="color: #000000;">&#91;</span> <span style="color: #000000;">&#91;</span> NSString alloc <span style="color: #000000;">&#93;</span> initWithCString: <span style="color: #000000;">ISCHAR</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">5</span> <span style="color: #000000;">&#41;</span> ? hb_parc<span style="color: #000000;">&#40;</span> <span style="color: #000000;">5</span> <span style="color: #000000;">&#41;</span> : <span style="color: #ff0000;">""</span> <span style="color: #000000;">&#93;</span> autorelease <span style="color: #000000;">&#93;</span>;<br />    NSWindow * <span style="color: #0000ff;">window</span> = <span style="color: #000000;">&#40;</span> NSWindow * <span style="color: #000000;">&#41;</span> hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">7</span> <span style="color: #000000;">&#41;</span>;<br />   <br />    <span style="color: #000000;">&#91;</span>box setBoxType:<span style="color: #000000;">hb_parnl</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">6</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#93;</span>;<br />    <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> string != <span style="color: #00C800;">NULL</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#91;</span>box setTitle : <span style="color: #000000;">string</span> <span style="color: #000000;">&#93;</span> ;<br />    <span style="color: #000000;">&#91;</span> GetView<span style="color: #000000;">&#40;</span> <span style="color: #0000ff;">window</span> <span style="color: #000000;">&#41;</span> addSubview : <span style="color: #000000;">box</span> <span style="color: #000000;">&#93;</span>;<br />   <br />    hb_retnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> LONG <span style="color: #000000;">&#41;</span> box <span style="color: #000000;">&#41;</span>;<br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> BOXSETSTYLE <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />    NSBox * box = <span style="color: #000000;">&#40;</span> NSBox * <span style="color: #000000;">&#41;</span> hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>;<br />    <span style="color: #000000;">&#91;</span>box setBoxType : <span style="color: #000000;">hb_parnl</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#93;</span>;<br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> BOXGETSTYLE <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />    NSBox * box = <span style="color: #000000;">&#40;</span> NSBox * <span style="color: #000000;">&#41;</span> hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>;<br />    hb_retnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#91;</span> box boxType <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span>;<br /><span style="color: #000000;">&#125;</span><br /> </div>[/code:1puqu7cr] el preprocesado : [code=fw:1puqu7cr]<div class="fw" id="{CB}" style="font-family: monospace;"><br />    <br />#xcommand @ <nTop>, <nLeft>  GROUP <span style="color: #000000;">&#91;</span> <oGroup> <span style="color: #000000;">&#93;</span> ;<br />             <span style="color: #000000;">&#91;</span> <span style="color: #0000ff;">SIZE</span> <nWidth>, <nHeight> <span style="color: #000000;">&#93;</span> ;<br />             <span style="color: #000000;">&#91;</span> <label:<span style="color: #000000;">LABEL</span>,PROMPT> <cLabel> <span style="color: #000000;">&#93;</span> ;<br />             <span style="color: #000000;">&#91;</span> <span style="color: #0000ff;">OF</span> <oWnd> <span style="color: #000000;">&#93;</span> ;<br />             <span style="color: #000000;">&#91;</span> <span style="color: #0000ff;">STYLE</span> <nStyle> <span style="color: #000000;">&#93;</span> ;<br />       => ;<br />          <span style="color: #000000;">&#91;</span> <oGroup> := <span style="color: #000000;">&#93;</span> TGroup<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> <nTop>, <nLeft>, <nWidth>, <nHeight>,;<br />             <cLabel>, <oWnd>, <nStyle> <span style="color: #000000;">&#41;</span><br /> </div>[/code:1puqu7cr] el ejemplo [code=fw:1puqu7cr]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveMac.ch"</span><br /><br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">local</span> oDlg, cFirst := Space<span style="color: #000000;">&#40;</span> <span style="color: #000000;">20</span> <span style="color: #000000;">&#41;</span>, cLast := Space<span style="color: #000000;">&#40;</span> <span style="color: #000000;">20</span> <span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">local</span> oGroup<br />   <br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Testing Gets"</span> ;<br />      <span style="color: #0000ff;">FROM</span> <span style="color: #000000;">270</span>, <span style="color: #000000;">350</span> <span style="color: #0000ff;">TO</span> <span style="color: #000000;">389</span>, <span style="color: #000000;">206</span><br />   <br />    @ <span style="color: #000000;">70</span>,<span style="color: #000000;">30</span> GROUP oGroup <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">200</span>, <span style="color: #000000;">200</span> ;<br />             <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Hola"</span> <span style="color: #0000ff;">OF</span> oDlg ;<br />              <span style="color: #0000ff;">STYLE</span> <span style="color: #000000;">1</span> <br />      <br />   @ <span style="color: #000000;">139</span>, <span style="color: #000000;">50</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">"First:"</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">50</span>, <span style="color: #000000;">17</span><br />      <br />   @ <span style="color: #000000;">137</span>, <span style="color: #000000;">108</span> <span style="color: #0000ff;">GET</span> cFirst <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">208</span>, <span style="color: #000000;">22</span> ;<br />      <span style="color: #0000ff;">VALID</span> <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> Empty<span style="color: #000000;">&#40;</span> cFirst <span style="color: #000000;">&#41;</span>, <span style="color: #000000;">&#40;</span> <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Please type something"</span> <span style="color: #000000;">&#41;</span>, .f. <span style="color: #000000;">&#41;</span>, .t. <span style="color: #000000;">&#41;</span><br />   <br />   @  <span style="color: #000000;">98</span>, <span style="color: #000000;">50</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">"Last:"</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">50</span>, <span style="color: #000000;">17</span><br />   <br />   @  <span style="color: #000000;">96</span>, <span style="color: #000000;">108</span> <span style="color: #0000ff;">GET</span> cLast <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">208</span>, <span style="color: #000000;">22</span><br />   <br />   @ <span style="color: #000000;">34</span>, <span style="color: #000000;">83</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"OK"</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">ACTION</span> oDlg:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   <br />   @ <span style="color: #000000;">34</span>, <span style="color: #000000;">218</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"Cancel"</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">ACTION</span> oDlg:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   <br />   <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span><br />   <br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span>   <br /> </div>[/code:1puqu7cr]
Control box
Manuel, Implementado y funcionando bien, gracias! <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Control de Cyber
Hola a todos...tanto tiempo desconectado. Un poquito ocupado con otros temas. Bueno... a ver: Agradeceré quien me pueda orientar en como iniciar el desarrollo de un software para controlar pc's de los clientes en un ciber. La idea es poder realizar todo lo que se pueda...algo así como el cybercontrol (<!-- w --><a class="postlink" href="http://www.cibercontrol.com">www.cibercontrol.com</a><!-- w -->). Como lo puedo hacer para la conexión a los pcs de los clientes, etc. Gracias nuevamente Saludos David
Control de Cyber
Estimado David Contactame a mi privado <!-- e --><a href="mailto:devwin2010@yahoo.com.ar">devwin2010@yahoo.com.ar</a><!-- e --> , Saludos Fabian
Control de Cyber
[quote="devwin2010":14mxm1i9]Estimado David Contactame a mi privado <!-- e --><a href="mailto:devwin2010@yahoo.com.ar">devwin2010@yahoo.com.ar</a><!-- e --> , Saludos Fabian[/quote:14mxm1i9] Fabián: Te he mandado varios correos sin respuesta. Favor mandar un correo a <!-- e --><a href="mailto:dlagoss@hotmail.com">dlagoss@hotmail.com</a><!-- e --> para contactarnos. Saludos David
Control de Cyber
[quote="metaldrummer":a8hmnfty]...para controlar pc's de los clientes en un ciber...[/quote:a8hmnfty] Aquí te he dejado una función para arrancar ordenadores remotamente: [b:a8hmnfty]Wake on lan (WOL) encender un ordenador remotamente via LAN[/b:a8hmnfty] <!-- m --><a class="postlink" href="http://fivetechsoft.com/forums/viewtopic.php?t=10239">http://fivetechsoft.com/forums/viewtopic.php?t=10239</a><!-- m -->
Control de Errores
Manuel, La solución es: << Una vuelta de tuerca a lo anterior puede ser la siguiente: Imagínense que no hemos protegido "manualmente" nuestro codigo contra las divisiones por cero; imagínense que tienen un código crítico que de ninguna manera debe fallar y por eso lo protegemos con un BEGIN SEQUENCE: CODE: SELECT ALL EXPAND VIEW bErrorBlock:= ErrorBlock( {|oError| Break(oError) } ) BEGIN SEQUENCE ...(1) RECOVER USING oError ...(2) END ErrorBlock(bErrorBlock) Pues bien, lo anterior provocará una deviación del flujo hacia el RECOVER si en las operaciones del ...(1) hay una operacion de division por cero, porque el tratamiento por defecto (ErrorSys) de la division por cero no se aplica aqui. La solución es: CODE: SELECT ALL EXPAND VIEW bErrorBlock:= ErrorBlock( {|oError| If(oError:GenCode == EG_ZERODIV, 0, Break(oError)) ) ) BEGIN SEQUENCE ...(1) RECOVER USING oError ...(2) END ErrorBlock(bErrorBlock) >> Desde el hilo [url:1b06wqcr]http&#58;//forums&#46;fivetechsupport&#46;com/viewtopic&#46;php?f=6&t=22561&start=0&hilit=hmpaquito[/url:1b06wqcr] Saludos
Control de Errores
En este código [code=fw:1lcjsylv]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> oError<br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> oBlock<br /><br />&nbsp; &nbsp;? <span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span> / <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;oBlock &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= ErrorBlock<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#123;</span> | oError | <span style="color: #00C800;">Break</span><span style="color: #000000;">&#40;</span> oError <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;BEGIN SEQUENCE<br /><br />&nbsp; &nbsp;? <span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span> / <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;RECOVER USING oError<br /><br />&nbsp; &nbsp; &nbsp; msgStop<span style="color: #000000;">&#40;</span> oError:<span style="color: #000000;">Description</span>, <span style="color: #ff0000;">"Error"</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;END SEQUENCE<br /><br />&nbsp; &nbsp;ErrorBlock<span style="color: #000000;">&#40;</span> oBlock <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br />&nbsp;</div>[/code:1lcjsylv] El primer mensaje me muestra 0, pero si esa operación ocurre dentro de un bloque de control de errores, el programa la desvía hacia el bloque RECOVER USING, realmente esto esta bien, pero en mi caso no quiero q por divisiones por cero esto ocurra, o sea q no se capture esa operación como error, como puedo hacerlo? Saludos
Control de Errores
Gracias por el aporte, muy bueno Yo lo he solucionado basándome en tu idea pero de esta manera oBlock := ErrorBlock( { | oError | ApoloBreak( oError ) } ) BEGIN SEQUENCE ... //--------------------------------------------------------------------------// Function ApoloBreak( oError ) Return ( if( oError:GenCode == EG_ZERODIV, 0, Break( oError ) ) ) //---------------------------------------------------------------------------// Y me va muy bien. Saludos.
Control de Errores
Saludos. Una duda respecto al controlador de errores en fwh: Cuel es el programa que controla los errores que biene integrado en las lib de fWh 13.07 errsysw.prg o errsysw_prg.prg
Control de Errores
Noe, errsysw.prg
Control de Errores
Buenas tardes, compañeros: Necesito controlar los errores que genera en tiempo de ejecución mi programa y para ello he modificado [b:h5rq1ltv]errsysw.prg[/b:h5rq1ltv] según mis necesidades para que muestre un dialog personalizado y con una opción para que el usuario pueda enviarme un email con el error.log adjunto automáticamente. Por ahora, he conseguido que esto funcione correctamente, pero necesito añadir en el email el contenido de 2 campos de una DBF que tiene 1 solo registro, pero haciendo pruebas me dice genera un error del tipo "Error: DEMASIADAS LLAMADAS RECURSIVAS" ¿Se puede hacer esto? Supongo que sí, pero ¿sabeis cómo? PD.: Probé guardando en 2 varibales públicas el contenido de estos 2 campos, pero tampoco funciona. Gracias. Un saludo. Lorenzo desde Cádiz, España.
Control de Errores
Loren, Lo que te está pasando es que el debes tener algun error en el errsysw.prg. Eso provoca una llamada infinita y hace que te salte ese mensaje de error. La solucion es muy facil: en la funcion de entrada del errsysw.prg graba un mensaje de error simple con los datos del objeto err. Teniendo la descripcion arregla el error y ya. Saludos
Control de Errores
Perdón, pero estuve fuera varios días y NO pude contestar. Hmpaquito, eso es precisamente lo que he intentado. Creo una variable "cTextoEmail" con toda la información del objeto error (equipo de trabajo, linea PRG de error, motivo del error... etc..). Si incluyo esta variable en el email, lo recibo perfectamente y sin problemas. Ahora bien, si a la variable "cTextoEmail" le añado 2 líneas: use empresa shared ; go top cTextoEmail+=empresa->email cTextoEmail+=empresa->nombre ... así se produce un GPF del tipo "DEMASIADAS LLAMADAS RECURSIVAS" Seguiré probando y buscando... Gracias
Control de Focus
Hola a todos tengo un problema, cuando desde una ventana MDICHILD llamo a otra ventana, en el on init pongo odlg:setfocus() pero no hace el focus hasta que le doy click en el formulario, entonces cuando le doy Esc se sale el formulario, pero; si no le doy click al formulario y al presionar la tecla escape se desaparece pero la ventana mdichild y queda solo el dialogo de consulta. Como puedo resolver que me de el focus al formulario. y asi cuando presione esc se desaparesca pero el formulario y no la ventana mdichild. Atentamente Julio Ponce
Control de Focus
Julio, si tu formulario es con Browse, a el tenes que darle el Focus oBrw:Setfocus() De lo contrario con control oDlg:aControls(n):Setfocus() Donde n es el número de control del formulario. Saludos Adhemar
Control de GPF
Hola a todos Necesito controlar los errores GPF de tal manera que cuando se produzca alguno me dé tiempo de comunicar, a otra aplicación, que se ha producido un error. ¿Alguna sugerencia? Un saludo
Control de GPF
Si supieramos que todos, o al menos la mayoria de los errores GPF generan una entrada en hb_out.log se podria hacer viendo/ comparando la fecha de ese fichero. Si lo que quieres es, en general, controlar salidas anomalas del programa yo lo haria de otra forma.
Control de GPF
Hola Paco, Cuando se genera un GPF Harbour crea hb_out.log. Luego, es cuestión de monitorizar con una aplicación/servicio externo si se ha generado tal archivo, o bien al comienzo de nuestra aplicación, etc.
Control de GPF
Me parece recordar que en algún momento he visto interceptar los gpfs desde fivewin pero no sé por donde empezar. ¿no os suena?
Control de GPF
Este es el código. Lo acabo de encontrar. No sé si funcionará, voy a echarle un vistazo. <!-- s;) --><img src="{SMILIES_PATH}/icon_wink.gif" alt=";)" title="Wink" /><!-- s;) --> [code=fw:157u06ci]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #B900B9;">// Testing Windows ToolHelp.dll</span><br /><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> aTimerInfo := TimerCount<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">// Determining how long an application has been running</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Milliseconds since this task started: "</span> + Str<span style="color: #000000;">&#40;</span> aTimerInfo<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: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Milliseconds since the VM started:"</span> + Str<span style="color: #000000;">&#40;</span> aTimerInfo<span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">// Controlling possible GPFs !!!</span><br /><br />&nbsp; &nbsp;InterruptRegister<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#123;</span> || ControlGPF<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span> &nbsp;<span style="color: #B900B9;">// Setting our own GPF controller</span><br />&nbsp; &nbsp;<span style="color: #B900B9;">// Comment the above function and see the difference !</span><br /><br />&nbsp; &nbsp;__GenGPF<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// Now we generate a GPF !!!</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">function</span> ControlGPF<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;MsgAlert<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"A GPF has occurred"</span> + CRLF + <span style="color: #ff0000;">"I am URGENTLY closing everything!"</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">// CLOSE ALL &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; --> Here we close all our files !!!</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"We recommend reboot the computer, or at least exit Windows"</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;InterruptUnRegister<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> &nbsp; <span style="color: #B900B9;">// We release our GPF controller</span><br /><br />&nbsp; &nbsp;Eval<span style="color: #000000;">&#40;</span> ErrorBlock<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, _FWGenError<span style="color: #000000;">&#40;</span> <span style="color: #000000;">5</span>, <span style="color: #ff0000;">"Undetermined GPF"</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; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// you can use the FiveWin</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// Error SubSystem !!!</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br />&nbsp;</div>[/code:157u06ci]
Control de GPF
[quote="pgfdz":2qdgqh61]Este es el código. Lo acabo de encontrar. No sé si funcionará, voy a echarle un vistazo. <!-- s;) --><img src="{SMILIES_PATH}/icon_wink.gif" alt=";)" title="Wink" /><!-- s;) --> [code=fw:2qdgqh61]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #B900B9;">// Testing Windows ToolHelp.dll</span><br /><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">local</span> aTimerInfo := TimerCount<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #B900B9;">// Determining how long an application has been running</span><br /><br />   <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Milliseconds since this task started: "</span> + Str<span style="color: #000000;">&#40;</span> aTimerInfo<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: #000000;">&#41;</span><br />   <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Milliseconds since the VM started:"</span> + Str<span style="color: #000000;">&#40;</span> aTimerInfo<span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #B900B9;">// Controlling possible GPFs !!!</span><br /><br />   InterruptRegister<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#123;</span> || ControlGPF<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span>  <span style="color: #B900B9;">// Setting our own GPF controller</span><br />   <span style="color: #B900B9;">// Comment the above function and see the difference !</span><br /><br />   __GenGPF<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>                                <span style="color: #B900B9;">// Now we generate a GPF !!!</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">function</span> ControlGPF<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   MsgAlert<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"A GPF has occurred"</span> + CRLF + <span style="color: #ff0000;">"I am URGENTLY closing everything!"</span> <span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #B900B9;">// CLOSE ALL           --> Here we close all our files !!!</span><br /><br />   <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"We recommend reboot the computer, or at least exit Windows"</span> <span style="color: #000000;">&#41;</span><br /><br />   InterruptUnRegister<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>   <span style="color: #B900B9;">// We release our GPF controller</span><br /><br />   Eval<span style="color: #000000;">&#40;</span> ErrorBlock<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, _FWGenError<span style="color: #000000;">&#40;</span> <span style="color: #000000;">5</span>, <span style="color: #ff0000;">"Undetermined GPF"</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />                                   <span style="color: #B900B9;">// you can use the FiveWin</span><br />                                   <span style="color: #B900B9;">// Error SubSystem !!!</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /> </div>[/code:2qdgqh61][/quote:2qdgqh61] [code=fw:2qdgqh61]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #B900B9;">/*<br />Application<br />===========<br />&nbsp; &nbsp;Path and name: C:\FWH1306\samples\TESTE.exe (32 bits)<br />&nbsp; &nbsp;Size: 2,408,960 bytes<br />&nbsp; &nbsp;Compiler version: xHarbour 1.2.3 Intl. (SimpLex) (Build 20150419)<br />&nbsp; &nbsp;FiveWin &nbsp;Version: FWHX 13.05<br />&nbsp; &nbsp;Windows version: 6.1, Build 7601 Service Pack 1<br /><br />&nbsp; &nbsp;Time from start: 0 hours 0 mins 0 secs <br />&nbsp; &nbsp;Error occurred at: 05/14/15, 10:32:35<br />&nbsp; &nbsp;Error description: Error BASE/1068 &nbsp;Argument error: array access<br />&nbsp; &nbsp;Args:<br />&nbsp; &nbsp; &nbsp;[ &nbsp; 1] = U &nbsp; <br />&nbsp; &nbsp; &nbsp;[ &nbsp; 2] = N &nbsp; 2<br /><br />Stack Calls<br />===========<br />&nbsp; &nbsp;Called from: TESTE.prg => MAIN( 14 )<br />*/</span><br />&nbsp;</div>[/code:2qdgqh61]
Control de Inicio y Fin
Amigos, mi consulta es la siguientes en clipper yo utilizaba el dBedit y ahi controloba cuando llegaba al inicio o al final le ponia (No hay mas Registros). .... ahora con xbrowse,ADO y MySql como se podria ser . desde ya gracias
Control de Inicio y Fin
con IF BOF() MsgStop( "mensageria", "atencion" ) ENDIF ó IF EOF() ... mensageria ENDIF puedes poner inclusive en el boton. Asi, no te funciona?
Control de Tiempos - Cronometro.
Hola quiero hacer una aplicación para poder controlar los tiempos por sectores y el total de la vuelta de mi hijo que esta conduciendo en Karts y quiere tenerlo todo registrado. Vamos tipo Formula 1. Debe hacer un cronometro general, un por vuelta que yo pueda ir pulsando una tecla (por ejemplo en un listbox) para cada sector y despues el tiempo total de la vuelta. Claro debe de ir en milesimas de segundo, he estado revisando y creo que debo hacerlo con la clase timer, pero el cronometro se tiene que ir refrescando cada milisengudo, bueno creo que he dejado un poco claro lo que quiero hacer. ¿Alguien podria echarme una mano y darme alguna idea de como controlar esos tiempos? Muchas Gracias.
Control de Tiempos - Cronometro.
[code=fw:1igp784g]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00D7D7;">#Include</span> <span style="color: #ff0000;">"FiveWin.Ch"</span><br /><br /><span style="color: #00C800;">Static</span> oDlg<br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">Function</span> Contador_Simples<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg ;<br /><span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Cronometro Simples"</span> ;<br /><span style="color: #0000ff;">FROM</span> <span style="color: #000000;">10</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">TO</span> <span style="color: #000000;">23</span>, <span style="color: #000000;">70</span><br /><br />oDlg:<span style="color: #000000;">lHelpIcon</span> := .F.<br /><br />@ <span style="color: #000000;">004</span>, <span style="color: #000000;">002</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"Cronometro"</span> ;<br /><span style="color: #0000ff;">ACTION</span><span style="color: #000000;">&#40;</span> Cronometro<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> ;<br /><span style="color: #0000ff;">OF</span> oDlg<br /><br />@ <span style="color: #000000;">004</span>, <span style="color: #000000;">015</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"&Saida"</span> <span style="color: #0000ff;">OF</span> oDlg ;<br /><span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">&#40;</span> oDlg:<span style="color: #000000;">End</span> <span style="color: #000000;">&#41;</span> CANCEL<br /><br /><span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg<br /><br /><span style="color: #00C800;">Return</span> <span style="color: #00C800;">Nil</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">Function</span> Cronometro<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">Local</span> Cronometro<br /><span style="color: #00C800;">Local</span> nHora_Calc<br /><span style="color: #00C800;">Local</span> nSegundos<br /><br /><span style="color: #B900B9;">// Calculo Sobre 24 Horas de um dia... Cada Hora Tem 3.600 Segundos.</span><br />Cronometro := <span style="color: #000000;">0</span> <span style="color: #B900B9;">// Contador de Segundos do Cronometro.</span><br />nHora_Calc := <span style="color: #000000;">0</span> <span style="color: #B900B9;">// Quantidade de Horas Que Ele Vai Achar.</span><br />nSegundos := <span style="color: #000000;">86400</span> <span style="color: #B900B9;">// Quantidade de Segundos Para Se Achar as Horas.</span><br /><br />@ <span style="color: #000000;">03</span>, <span style="color: #000000;">20</span> <span style="color: #0000ff;">Say</span> <span style="color: #ff0000;">"Em Segundos "</span> <span style="color: #0000ff;">Of</span> oDlg<br /><br /><span style="color: #00C800;">For</span> Cronometro := <span style="color: #000000;">1</span> <span style="color: #0000ff;">To</span> nSegundos <span style="color: #B900B9;">// -> Segundos a Calcular Para Horas</span><br /><br />nHora_Calc := <span style="color: #000000;">0</span><br /><br />oDlg:<span style="color: #0000ff;">Say</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">03</span>, <span style="color: #000000;">10</span>, Cronometro <span style="color: #000000;">&#41;</span><br /><br />SysRefresh<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #B900B9;">// Formula Para Calcular em Horas...</span><br />nHora_Calc := <span style="color: #000000;">&#40;</span> nHora_Calc <span style="color: #000000;">&#41;</span> + <span style="color: #000000;">&#40;</span> Cronometro / <span style="color: #000000;">60</span> <span style="color: #000000;">&#41;</span> / <span style="color: #000000;">60</span><br /><br /><span style="color: #00C800;">Next</span> Cronometro<br /><br />@ <span style="color: #000000;">05</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">Say</span> <span style="color: #ff0000;">"Em Horas: "</span> <span style="color: #0000ff;">Of</span> oDlg <span style="color: #B900B9;">// Resultado: 24:00:00 hrs.</span><br /><br />@ <span style="color: #000000;">07</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">Say</span> nHora_Calc <span style="color: #0000ff;">Picture</span> <span style="color: #ff0000;">"99.99.99.99"</span> <span style="color: #0000ff;">Of</span> oDlg<br /><br /><span style="color: #00C800;">Return</span> <span style="color: #00C800;">Nil</span><br />&nbsp;</div>[/code:1igp784g] 
Control de Tiempos - Cronometro.
[code=fw:3ez7nvb1]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00D7D7;">#Include</span> <span style="color: #ff0000;">"FiveWin.Ch"</span><br /><br /><span style="color: #00C800;">Static</span> nGet<br /><span style="color: #00C800;">Static</span> oBmp1, oBmp2, oBmp3, oBmp4, oBmp5<br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">Function</span> Velocimetro<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">Local</span> oDlg, oGet<br /><br />nGet := <span style="color: #000000;">0</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;">0</span>, <span style="color: #000000;">0</span> <span style="color: #0000ff;">TO</span> <span style="color: #000000;">20</span>, <span style="color: #000000;">60</span> ;<br /><span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Mostrando um Velocimetro/Cronômetro"</span><br /><span style="color: #B900B9;">// Mostrando Barras Verticais no Mostrador(Display)</span><br /><br />oDlg:<span style="color: #000000;">lHelpIcon</span> := .F.<br /><br /><span style="color: #B900B9;">//--------------------Área do DisPlay do Cronômetro------------------------</span><br /><br /><span style="color: #B900B9;">/* Cada dígito é de 34 x 48 */</span><br /><br /><span style="color: #B900B9;">/* Copie o "DisPlay.Bmp" de \FW..\BitMaps\ Para o Seu Diretório de Uso */</span><br /><br />@ <span style="color: #000000;">002</span>, <span style="color: #000000;">001</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">'Contador : '</span> <span style="color: #0000ff;">OF</span> oDlg<br /><br />@ <span style="color: #000000;">000</span>, <span style="color: #000000;">000</span> BITMAP oBmp1 FILE <span style="color: #ff0000;">"..<span style="color: #000000;">\B</span>itMaps<span style="color: #000000;">\D</span>isPlay.Bmp"</span> <span style="color: #0000ff;">OF</span> oDlg<br /><br />@ <span style="color: #000000;">000</span>, <span style="color: #000000;">000</span> BITMAP oBmp2 FILE <span style="color: #ff0000;">"..<span style="color: #000000;">\B</span>itMaps<span style="color: #000000;">\D</span>isPlay.Bmp"</span> <span style="color: #0000ff;">OF</span> oDlg<br /><br />@ <span style="color: #000000;">000</span>, <span style="color: #000000;">000</span> BITMAP oBmp3 FILE <span style="color: #ff0000;">"..<span style="color: #000000;">\B</span>itMaps<span style="color: #000000;">\D</span>isPlay.Bmp"</span> <span style="color: #0000ff;">OF</span> oDlg<br /><br />@ <span style="color: #000000;">000</span>, <span style="color: #000000;">000</span> BITMAP oBmp4 FILE <span style="color: #ff0000;">"..<span style="color: #000000;">\B</span>itMaps<span style="color: #000000;">\D</span>isPlay.Bmp"</span> <span style="color: #0000ff;">OF</span> oDlg<br /><br />@ <span style="color: #000000;">000</span>, <span style="color: #000000;">000</span> BITMAP oBmp5 FILE <span style="color: #ff0000;">"..<span style="color: #000000;">\B</span>itMaps<span style="color: #000000;">\D</span>isPlay.Bmp"</span> <span style="color: #0000ff;">OF</span> oDlg<br /><br /><span style="color: #B900B9;">//-------------------------------------------------------------------------</span><br /><br />oBmp1:<span style="color: #000000;">nTop</span> := <span style="color: #000000;">28</span><br />oBmp1:<span style="color: #000000;">nLeft</span> := <span style="color: #000000;">80</span><br />oBmp1:<span style="color: #000000;">nBottom</span> := <span style="color: #000000;">52</span><br />oBmp1:<span style="color: #000000;">nRight</span> := <span style="color: #000000;">97</span><br /><br />oBmp2:<span style="color: #000000;">nTop</span> := <span style="color: #000000;">28</span><br />oBmp2:<span style="color: #000000;">nLeft</span> := <span style="color: #000000;">98</span><br />oBmp2:<span style="color: #000000;">nBottom</span> := <span style="color: #000000;">52</span><br />oBmp2:<span style="color: #000000;">nRight</span> := <span style="color: #000000;">115</span><br /><br />oBmp3:<span style="color: #000000;">nTop</span> := <span style="color: #000000;">28</span><br />oBmp3:<span style="color: #000000;">nLeft</span> := <span style="color: #000000;">116</span><br />oBmp3:<span style="color: #000000;">nBottom</span> := <span style="color: #000000;">52</span><br />oBmp3:<span style="color: #000000;">nRight</span> := <span style="color: #000000;">133</span><br /><br />oBmp4:<span style="color: #000000;">nTop</span> := <span style="color: #000000;">28</span><br />oBmp4:<span style="color: #000000;">nLeft</span> := <span style="color: #000000;">134</span><br />oBmp4:<span style="color: #000000;">nBottom</span> := <span style="color: #000000;">52</span><br />oBmp4:<span style="color: #000000;">nRight</span> := <span style="color: #000000;">151</span><br /><br />oBmp5:<span style="color: #000000;">nTop</span> := <span style="color: #000000;">28</span><br />oBmp5:<span style="color: #000000;">nLeft</span> := <span style="color: #000000;">152</span><br />oBmp5:<span style="color: #000000;">nBottom</span> := <span style="color: #000000;">52</span><br />oBmp5:<span style="color: #000000;">nRight</span> := <span style="color: #000000;">169</span><br /><br /><span style="color: #B900B9;">//--------------------Área dos Say's---------------------------------------</span><br /><br />@ <span style="color: #000000;">002</span>, <span style="color: #000000;">030</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">"Evandro 1 Minuto"</span> <span style="color: #0000ff;">OF</span> oDlg<br />@ <span style="color: #000000;">2.5</span>, <span style="color: #000000;">030</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">"Tem 60 Segundos "</span> <span style="color: #0000ff;">OF</span> oDlg<br /><br />@ <span style="color: #000000;">004</span>, <span style="color: #000000;">010</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">"Use Sua Imaginação... Estás Trabalhando Com Horas..."</span> <span style="color: #0000ff;">OF</span> oDlg<br /><br />@ <span style="color: #000000;">005</span>, <span style="color: #000000;">010</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">"Vai Contar até 180 Milésimos de Secs = 3 Segundos. "</span> <span style="color: #0000ff;">OF</span> oDlg<br /><br />@ <span style="color: #000000;">006</span>, <span style="color: #000000;">010</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">"By João Santos - In FiveWin The Best! "</span> <span style="color: #0000ff;">OF</span> oDlg<br /><br />@ <span style="color: #000000;">007</span>, <span style="color: #000000;">010</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">"Todos os Direitos Reservados - 27/12/2003 "</span> <span style="color: #0000ff;">OF</span> oDlg<br /><br /><span style="color: #B900B9;">//--------------------Área dos Botões--------------------------------------</span><br /><br />@ <span style="color: #000000;">007</span>, <span style="color: #000000;">002</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"&Aumentar"</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">40</span>, <span style="color: #000000;">12</span> ;<br /><span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">&#40;</span> nGet++, Por_Bmp<span style="color: #000000;">&#40;</span> oBmp1, oBmp2, oBmp3, oBmp4, oBmp5, nGet <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />@ <span style="color: #000000;">007</span>, <span style="color: #000000;">010</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"&Diminuir"</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">40</span>, <span style="color: #000000;">12</span> ;<br /><span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">&#40;</span> nGet--, Por_Bmp<span style="color: #000000;">&#40;</span> oBmp1, oBmp2, oBmp3, oBmp4, oBmp5, nGet <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />@ <span style="color: #000000;">007</span>, <span style="color: #000000;">018</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"&Executar"</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">40</span>, <span style="color: #000000;">12</span> ;<br /><span style="color: #0000ff;">ACTION</span> Executar_Bmp<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />@ <span style="color: #000000;">007</span>, <span style="color: #000000;">026</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"&Saida"</span> <span style="color: #0000ff;">OF</span> oDlg ;<br /><span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">&#40;</span> oDlg:<span style="color: #000000;">End</span> <span style="color: #000000;">&#41;</span> CANCEL<br /><br /><span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span><br /><br />EndDialog<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// Fechar a Dialog</span><br />GlobalFree<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// By João Santos - São Paulo - Brazil - Recursos Liberados</span><br />ResAllFree<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// By Vagner Wirts .And. Elias Junior - Recursos Liberados</span><br /><br /><span style="color: #00C800;">Return</span> <span style="color: #00C800;">Nil</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">Function</span> Executar_Bmp<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">Local</span> I<br /><br /><span style="color: #00C800;">Local</span> nSegundos<br /><br /><span style="color: #B900B9;">// Fórmula Para Calculo de Horas, Minutos, Segundos, Etc... Ex. Simples</span><br />nSegundos := Seconds<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> + <span style="color: #000000;">&#40;</span> <span style="color: #000000;">3600</span> + <span style="color: #000000;">5</span> <span style="color: #000000;">&#41;</span> / <span style="color: #000000;">60</span> * <span style="color: #000000;">3</span> <span style="color: #B900B9;">//( 3 = Qtde. de Segundos)</span><br /><br /><span style="color: #00C800;">For</span> I = <span style="color: #000000;">1</span> <span style="color: #0000ff;">To</span> <span style="color: #000000;">&#40;</span> nSegundos - Seconds<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />Por_Bmp<span style="color: #000000;">&#40;</span> oBmp1, oBmp2, oBmp3, oBmp4, oBmp5, I <span style="color: #000000;">&#41;</span><br /><br />SysRefresh<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">Next</span> I<br /><br /><span style="color: #00C800;">Return</span> <span style="color: #00C800;">Nil</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">Function</span> Por_Bmp <span style="color: #000000;">&#40;</span> oBjeto1, oBjeto2, oBjeto3, oBjeto4, oBjeto5, nQuantidade <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">Local</span> cNum := SPACE<span style="color: #000000;">&#40;</span> <span style="color: #000000;">5</span> <span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">Local</span> nLen := <span style="color: #000000;">3</span><br /><span style="color: #00C800;">Local</span> nDigito1 := <span style="color: #000000;">3</span><br /><span style="color: #00C800;">Local</span> nDigito2 := <span style="color: #000000;">3</span><br /><span style="color: #00C800;">Local</span> nDigito3 := <span style="color: #000000;">3</span><br /><span style="color: #00C800;">Local</span> nDigito4 := <span style="color: #000000;">3</span><br /><span style="color: #00C800;">Local</span> nDigito5 := <span style="color: #000000;">3</span><br /><br />cNum := STR<span style="color: #000000;">&#40;</span> nQuantidade <span style="color: #000000;">&#41;</span><br />nLen := LEN<span style="color: #000000;">&#40;</span> cNum <span style="color: #000000;">&#41;</span><br /><br />nDigito1 := VAL<span style="color: #000000;">&#40;</span> <span style="color: #0000ff;">SUBSTR</span><span style="color: #000000;">&#40;</span> cNum, nLen - <span style="color: #000000;">4</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">If</span> nDigito1 = <span style="color: #000000;">0</span><br />oBjeto1:<span style="color: #000000;">nX</span> := <span style="color: #000000;">-528</span> <span style="color: #B900B9;">// 0 - (11 * 48) </span><br /><span style="color: #00C800;">Else</span><br />oBjeto1:<span style="color: #000000;">nX</span> := <span style="color: #000000;">0</span> - <span style="color: #000000;">&#40;</span> nDigito1 * <span style="color: #000000;">48</span> <span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">Endif</span><br /><br />nDigito2 := VAL<span style="color: #000000;">&#40;</span> <span style="color: #0000ff;">SUBSTR</span><span style="color: #000000;">&#40;</span> cNum, nLen - <span style="color: #000000;">3</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">If</span> nDigito2 = <span style="color: #000000;">0</span> .AND. nDigito1 = <span style="color: #000000;">0</span><br />oBjeto2:<span style="color: #000000;">nX</span> := <span style="color: #000000;">-528</span><br /><span style="color: #00C800;">Else</span><br />oBjeto2:<span style="color: #000000;">nX</span> := <span style="color: #000000;">0</span> - <span style="color: #000000;">&#40;</span> nDigito2 * <span style="color: #000000;">48</span> <span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">Endif</span><br /><br />nDigito3 := VAL<span style="color: #000000;">&#40;</span> <span style="color: #0000ff;">SUBSTR</span><span style="color: #000000;">&#40;</span> cNum, nLen - <span style="color: #000000;">2</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">If</span> nDigito3 = <span style="color: #000000;">0</span> .AND. nDigito2 = <span style="color: #000000;">0</span> .AND. nDigito1 = <span style="color: #000000;">0</span><br />oBjeto3:<span style="color: #000000;">nX</span> := <span style="color: #000000;">-528</span><br /><span style="color: #00C800;">Else</span><br />oBjeto3:<span style="color: #000000;">nX</span> := <span style="color: #000000;">0</span> - <span style="color: #000000;">&#40;</span> nDigito3 * <span style="color: #000000;">48</span> <span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">Endif</span><br /><br />nDigito4 := VAL<span style="color: #000000;">&#40;</span> <span style="color: #0000ff;">SUBSTR</span><span style="color: #000000;">&#40;</span> cNum, nLen - <span style="color: #000000;">1</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">If</span> nDigito4 = <span style="color: #000000;">0</span> .AND. nDigito3 = <span style="color: #000000;">0</span> .AND. nDigito2 = <span style="color: #000000;">0</span> .AND. nDigito1 = <span style="color: #000000;">0</span><br />oBjeto4:<span style="color: #000000;">nX</span> := <span style="color: #000000;">-528</span><br /><span style="color: #00C800;">Else</span><br />oBjeto4:<span style="color: #000000;">nX</span> := <span style="color: #000000;">0</span> - <span style="color: #000000;">&#40;</span> nDigito4 * <span style="color: #000000;">48</span> <span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">Endif</span><br /><br />nDigito5 := VAL<span style="color: #000000;">&#40;</span> <span style="color: #0000ff;">SUBSTR</span><span style="color: #000000;">&#40;</span> cNum, nLen, <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />oBjeto5:<span style="color: #000000;">nX</span> := <span style="color: #000000;">0</span> - <span style="color: #000000;">&#40;</span> nDigito5 * <span style="color: #000000;">48</span> <span style="color: #000000;">&#41;</span><br /><br />oBjeto5:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span> .F. <span style="color: #000000;">&#41;</span><br />oBjeto4:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span> .F. <span style="color: #000000;">&#41;</span><br />oBjeto3:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span> .F. <span style="color: #000000;">&#41;</span><br />oBjeto2:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span> .F. <span style="color: #000000;">&#41;</span><br />oBjeto1:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span> .F. <span style="color: #000000;">&#41;</span><br /><br />SysRefresh<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">Return</span> <span style="color: #00C800;">Nil</span><br />&nbsp;</div>[/code:3ez7nvb1] 
Control de Tiempos - Cronometro.
[code=fw:34hlyzqt]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00D7D7;">#Include</span> <span style="color: #ff0000;">"FiveWin.Ch"</span><br /><br /><span style="color: #00C800;">Static</span> nGet<br /><span style="color: #00C800;">Static</span> oBmp1, oBmp2, oBmp3, oBmp4, oBmp5<br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">Function</span> Velocimetro<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">Local</span> oDlg, oGet<br /><br />nGet := <span style="color: #000000;">0</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;">0</span>, <span style="color: #000000;">0</span> <span style="color: #0000ff;">TO</span> <span style="color: #000000;">20</span>, <span style="color: #000000;">60</span> ;<br /><span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Mostrando um Velocimetro/Cronômetro"</span> ;<br /><span style="color: #0000ff;">STYLE</span> nOR<span style="color: #000000;">&#40;</span> DS_MODALFRAME <span style="color: #000000;">&#41;</span><br /><br />oDlg:<span style="color: #000000;">lHelpIcon</span> := .F.<br /><br /><span style="color: #B900B9;">//--------------------Área do DisPlay do Cronômetro------------------------</span><br /><br /><span style="color: #B900B9;">/* Cada dígito é de 34 x 48 */</span><br /><br /><span style="color: #B900B9;">/* Copie o "DisPlay.Bmp" de \FW..\BitMaps\ Para o Seu Diretório de Uso */</span><br /><br />@ <span style="color: #000000;">002</span>, <span style="color: #000000;">001</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">'Contador : '</span> <span style="color: #0000ff;">OF</span> oDlg<br /><br />@ <span style="color: #000000;">000</span>, <span style="color: #000000;">000</span> BITMAP oBmp1 FILE <span style="color: #ff0000;">"..<span style="color: #000000;">\B</span>itMaps<span style="color: #000000;">\D</span>isPlay.Bmp"</span> <span style="color: #0000ff;">OF</span> oDlg<br /><br />@ <span style="color: #000000;">000</span>, <span style="color: #000000;">000</span> BITMAP oBmp2 FILE <span style="color: #ff0000;">"..<span style="color: #000000;">\B</span>itMaps<span style="color: #000000;">\D</span>isPlay.Bmp"</span> <span style="color: #0000ff;">OF</span> oDlg<br /><br />@ <span style="color: #000000;">000</span>, <span style="color: #000000;">000</span> BITMAP oBmp3 FILE <span style="color: #ff0000;">"..<span style="color: #000000;">\B</span>itMaps<span style="color: #000000;">\D</span>isPlay.Bmp"</span> <span style="color: #0000ff;">OF</span> oDlg<br /><br />@ <span style="color: #000000;">000</span>, <span style="color: #000000;">000</span> BITMAP oBmp4 FILE <span style="color: #ff0000;">"..<span style="color: #000000;">\B</span>itMaps<span style="color: #000000;">\D</span>isPlay.Bmp"</span> <span style="color: #0000ff;">OF</span> oDlg<br /><br />@ <span style="color: #000000;">000</span>, <span style="color: #000000;">000</span> BITMAP oBmp5 FILE <span style="color: #ff0000;">"..<span style="color: #000000;">\B</span>itMaps<span style="color: #000000;">\D</span>isPlay.Bmp"</span> <span style="color: #0000ff;">OF</span> oDlg<br /><br /><span style="color: #B900B9;">//-------------------------------------------------------------------------</span><br /><br />oBmp1:<span style="color: #000000;">nTop</span> := <span style="color: #000000;">28</span><br />oBmp1:<span style="color: #000000;">nLeft</span> := <span style="color: #000000;">80</span><br />oBmp1:<span style="color: #000000;">nBottom</span> := <span style="color: #000000;">52</span><br />oBmp1:<span style="color: #000000;">nRight</span> := <span style="color: #000000;">97</span><br /><br />oBmp2:<span style="color: #000000;">nTop</span> := <span style="color: #000000;">28</span><br />oBmp2:<span style="color: #000000;">nLeft</span> := <span style="color: #000000;">98</span><br />oBmp2:<span style="color: #000000;">nBottom</span> := <span style="color: #000000;">52</span><br />oBmp2:<span style="color: #000000;">nRight</span> := <span style="color: #000000;">115</span><br /><br />oBmp3:<span style="color: #000000;">nTop</span> := <span style="color: #000000;">28</span><br />oBmp3:<span style="color: #000000;">nLeft</span> := <span style="color: #000000;">116</span><br />oBmp3:<span style="color: #000000;">nBottom</span> := <span style="color: #000000;">52</span><br />oBmp3:<span style="color: #000000;">nRight</span> := <span style="color: #000000;">133</span><br /><br />oBmp4:<span style="color: #000000;">nTop</span> := <span style="color: #000000;">28</span><br />oBmp4:<span style="color: #000000;">nLeft</span> := <span style="color: #000000;">134</span><br />oBmp4:<span style="color: #000000;">nBottom</span> := <span style="color: #000000;">52</span><br />oBmp4:<span style="color: #000000;">nRight</span> := <span style="color: #000000;">151</span><br /><br />oBmp5:<span style="color: #000000;">nTop</span> := <span style="color: #000000;">28</span><br />oBmp5:<span style="color: #000000;">nLeft</span> := <span style="color: #000000;">152</span><br />oBmp5:<span style="color: #000000;">nBottom</span> := <span style="color: #000000;">52</span><br />oBmp5:<span style="color: #000000;">nRight</span> := <span style="color: #000000;">169</span><br /><br /><span style="color: #B900B9;">//--------------------Área dos Say's---------------------------------------</span><br /><br />@ <span style="color: #000000;">004</span>, <span style="color: #000000;">010</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">"Caro Usuário Tenha Calma, Espere o Contador Voltar!!"</span> <span style="color: #0000ff;">OF</span> oDlg<br /><br />@ <span style="color: #000000;">005</span>, <span style="color: #000000;">010</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">"Vai Contar até 99.999 e Depois Regressa o Cronômetro"</span> <span style="color: #0000ff;">OF</span> oDlg<br /><br />@ <span style="color: #000000;">006</span>, <span style="color: #000000;">010</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">"By João Santos - In FiveWin The Best! "</span> <span style="color: #0000ff;">OF</span> oDlg<br /><br />@ <span style="color: #000000;">007</span>, <span style="color: #000000;">010</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">"Todos os Direitos Reservados - 27/12/2003 "</span> <span style="color: #0000ff;">OF</span> oDlg<br /><br /><span style="color: #B900B9;">//--------------------Área dos Botões--------------------------------------</span><br /><br />@ <span style="color: #000000;">007</span>, <span style="color: #000000;">002</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"&Aumentar"</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">40</span>, <span style="color: #000000;">12</span> ;<br /><span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">&#40;</span> nGet++, Por_Bmp<span style="color: #000000;">&#40;</span> oBmp1, oBmp2, oBmp3, oBmp4, oBmp5, nGet <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />@ <span style="color: #000000;">007</span>, <span style="color: #000000;">010</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"&Diminuir"</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">40</span>, <span style="color: #000000;">12</span> ;<br /><span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">&#40;</span> nGet--, Por_Bmp<span style="color: #000000;">&#40;</span> oBmp1, oBmp2, oBmp3, oBmp4, oBmp5, nGet <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />@ <span style="color: #000000;">007</span>, <span style="color: #000000;">018</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"&Executar"</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">40</span>, <span style="color: #000000;">12</span> ;<br /><span style="color: #0000ff;">ACTION</span> Executar_Bmp<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />@ <span style="color: #000000;">007</span>, <span style="color: #000000;">026</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"&Saida"</span> <span style="color: #0000ff;">OF</span> oDlg ;<br /><span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">&#40;</span> oDlg:<span style="color: #000000;">End</span> <span style="color: #000000;">&#41;</span> CANCEL<br /><br /><span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span><br /><br />EndDialog<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// Fechar a Dialog</span><br />GlobalFree<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// By João Santos - São Paulo - Brazil - Recursos Liberados</span><br />ResAllFree<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// By Vagner Wirts .And. Elias Junior - Recursos Liberados</span><br /><br /><span style="color: #00C800;">Return</span> <span style="color: #00C800;">Nil</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">Function</span> Executar_Bmp<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">Local</span> I<br /><br /><span style="color: #00C800;">For</span> I = <span style="color: #000000;">1</span> <span style="color: #0000ff;">To</span> <span style="color: #000000;">99999</span> <span style="color: #B900B9;">// (Step By Step... Indo/Aumentando)</span><br /><br />Por_Bmp<span style="color: #000000;">&#40;</span> oBmp1, oBmp2, oBmp3, oBmp4, oBmp5, I <span style="color: #000000;">&#41;</span><br /><br />SysRefresh<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">Next</span> I<br /><br /><span style="color: #B900B9;">//InKey( 1 ) // Pode-se usar este comando velho do Clipper!</span><br />SysWait<span style="color: #000000;">&#40;</span> .<span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// Eu somente uso FiveWin! He he he he...</span><br /><br /><span style="color: #00C800;">For</span> I = <span style="color: #000000;">99999</span> <span style="color: #0000ff;">To</span> <span style="color: #000000;">1</span> STEP <span style="color: #000000;">-1</span> <span style="color: #B900B9;">// (Step By Step... Voltando/Diminuindo)</span><br /><br />Por_Bmp<span style="color: #000000;">&#40;</span> oBmp1, oBmp2, oBmp3, oBmp4, oBmp5, I <span style="color: #000000;">&#41;</span><br /><br />SysRefresh<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">Next</span> I<br /><br /><span style="color: #00C800;">Return</span> <span style="color: #00C800;">Nil</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">Function</span> Troca_Bmp<span style="color: #000000;">&#40;</span> oBmp1, oBmp2, oBmp3, lSinal <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">STATIC</span> nCont := <span style="color: #000000;">0</span><br /><br /><span style="color: #00C800;">Local</span> nInc := IIF<span style="color: #000000;">&#40;</span> lSinal, <span style="color: #000000;">1</span>, <span style="color: #000000;">-1</span> <span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">Local</span> nCam := IIF<span style="color: #000000;">&#40;</span> lSinal, <span style="color: #000000;">-528</span>, <span style="color: #000000;">-527</span> <span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">Local</span> nTopeI := IIF<span style="color: #000000;">&#40;</span> lSinal, <span style="color: #000000;">-576</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">Local</span> nTopeS := IIF<span style="color: #000000;">&#40;</span> lSinal, <span style="color: #000000;">0</span>, <span style="color: #000000;">-576</span> <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">If</span> ! lSinal .And. nCont == <span style="color: #000000;">0</span><br /><span style="color: #00C800;">Return</span> <span style="color: #00C800;">Nil</span><br /><span style="color: #00C800;">Endif</span><br /><br /><span style="color: #00C800;">If</span> oBmp3:<span style="color: #000000;">nX</span> == nTopeI<br />oBmp3:<span style="color: #000000;">nX</span> := nTopeS<br /><span style="color: #00C800;">Endif</span><br /><br /><span style="color: #00C800;">If</span> oBmp2:<span style="color: #000000;">nX</span> == nTopeI<br />oBmp2:<span style="color: #000000;">nX</span> := nTopeS<br /><span style="color: #00C800;">Endif</span><br /><br /><span style="color: #00C800;">If</span> oBmp1:<span style="color: #000000;">nX</span> == nTopeI<br />oBmp1:<span style="color: #000000;">nX</span> := nTopeS<br /><span style="color: #00C800;">Endif</span><br /><br />oBmp3:<span style="color: #000000;">nX</span> -= nInc<br />nCont += nInc<br /><br /><span style="color: #00C800;">If</span> oBmp3:<span style="color: #000000;">nX</span> <= nCam<br />oBmp2:<span style="color: #000000;">nX</span> -= nInc<br /><span style="color: #00C800;">If</span> oBmp2:<span style="color: #000000;">nX</span> <= nCam<br />oBmp1:<span style="color: #000000;">nX</span> -= nInc<br /><span style="color: #00C800;">Endif</span><br /><span style="color: #00C800;">Endif</span><br /><br />oBmp3:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span> .F. <span style="color: #000000;">&#41;</span><br />oBmp2:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span> .F. <span style="color: #000000;">&#41;</span><br />oBmp1:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span> .F. <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">Return</span> <span style="color: #00C800;">Nil</span><br /><br /><span style="color: #B900B9;">//---------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">Function</span> Por_Bmp <span style="color: #000000;">&#40;</span> oBjeto1, oBjeto2, oBjeto3, oBjeto4, oBjeto5, nQuantidade <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">Local</span> cNum := SPACE<span style="color: #000000;">&#40;</span> <span style="color: #000000;">5</span> <span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">Local</span> nLen := <span style="color: #000000;">0</span><br /><span style="color: #00C800;">Local</span> nDigito1 := <span style="color: #000000;">0</span><br /><span style="color: #00C800;">Local</span> nDigito2 := <span style="color: #000000;">0</span><br /><span style="color: #00C800;">Local</span> nDigito3 := <span style="color: #000000;">0</span><br /><span style="color: #00C800;">Local</span> nDigito4 := <span style="color: #000000;">0</span><br /><span style="color: #00C800;">Local</span> nDigito5 := <span style="color: #000000;">0</span><br /><br />cNum := STR<span style="color: #000000;">&#40;</span> nQuantidade <span style="color: #000000;">&#41;</span><br />nLen := LEN<span style="color: #000000;">&#40;</span> cNum <span style="color: #000000;">&#41;</span><br /><br />nDigito1 := VAL<span style="color: #000000;">&#40;</span> <span style="color: #0000ff;">SUBSTR</span><span style="color: #000000;">&#40;</span> cNum, nLen - <span style="color: #000000;">4</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">If</span> nDigito1 = <span style="color: #000000;">0</span><br />oBjeto1:<span style="color: #000000;">nX</span> := <span style="color: #000000;">-528</span> <span style="color: #B900B9;">// 0 - (11 * 48)</span><br /><span style="color: #00C800;">else</span><br />oBjeto1:<span style="color: #000000;">nX</span> := <span style="color: #000000;">0</span> - <span style="color: #000000;">&#40;</span> nDigito1 * <span style="color: #000000;">48</span> <span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">Endif</span><br /><br />nDigito2 := VAL<span style="color: #000000;">&#40;</span> <span style="color: #0000ff;">SUBSTR</span><span style="color: #000000;">&#40;</span> cNum, nLen - <span style="color: #000000;">3</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">If</span> nDigito2 = <span style="color: #000000;">0</span> .AND. nDigito1 = <span style="color: #000000;">0</span><br />oBjeto2:<span style="color: #000000;">nX</span> := <span style="color: #000000;">-528</span><br /><span style="color: #00C800;">else</span><br />oBjeto2:<span style="color: #000000;">nX</span> := <span style="color: #000000;">0</span> - <span style="color: #000000;">&#40;</span> nDigito2 * <span style="color: #000000;">48</span> <span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">Endif</span><br /><br />nDigito3 := VAL<span style="color: #000000;">&#40;</span> <span style="color: #0000ff;">SUBSTR</span><span style="color: #000000;">&#40;</span> cNum, nLen - <span style="color: #000000;">2</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">If</span> nDigito3 = <span style="color: #000000;">0</span> .AND. nDigito2 = <span style="color: #000000;">0</span> .AND. nDigito1 = <span style="color: #000000;">0</span><br />oBjeto3:<span style="color: #000000;">nX</span> := <span style="color: #000000;">-528</span><br /><span style="color: #00C800;">else</span><br />oBjeto3:<span style="color: #000000;">nX</span> := <span style="color: #000000;">0</span> - <span style="color: #000000;">&#40;</span>nDigito3 * <span style="color: #000000;">48</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">Endif</span><br /><br />nDigito4 := VAL<span style="color: #000000;">&#40;</span> <span style="color: #0000ff;">SUBSTR</span><span style="color: #000000;">&#40;</span> cNum, nLen - <span style="color: #000000;">1</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">If</span> nDigito4 = <span style="color: #000000;">0</span> .AND. nDigito3 = <span style="color: #000000;">0</span> .AND. nDigito2 = <span style="color: #000000;">0</span> .AND. nDigito1 = <span style="color: #000000;">0</span><br />oBjeto4:<span style="color: #000000;">nX</span> := <span style="color: #000000;">-528</span><br /><span style="color: #00C800;">else</span><br />oBjeto4:<span style="color: #000000;">nX</span> := <span style="color: #000000;">0</span> - <span style="color: #000000;">&#40;</span>nDigito4 * <span style="color: #000000;">48</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">Endif</span><br /><br />nDigito5 := VAL<span style="color: #000000;">&#40;</span> <span style="color: #0000ff;">SUBSTR</span><span style="color: #000000;">&#40;</span> cNum, nLen, <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />oBjeto5:<span style="color: #000000;">nX</span> := <span style="color: #000000;">0</span> - <span style="color: #000000;">&#40;</span> nDigito5 * <span style="color: #000000;">48</span> <span style="color: #000000;">&#41;</span><br /><br />oBjeto5:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span> .F. <span style="color: #000000;">&#41;</span><br />oBjeto4:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span> .F. <span style="color: #000000;">&#41;</span><br />oBjeto3:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span> .F. <span style="color: #000000;">&#41;</span><br />oBjeto2:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span> .F. <span style="color: #000000;">&#41;</span><br />oBjeto1:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span> .F. <span style="color: #000000;">&#41;</span><br /><br />SysRefresh<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">Return</span> <span style="color: #00C800;">Nil</span><br />&nbsp;</div>[/code:34hlyzqt] 
Control de Tiempos - Cronometro.
Lo he probado con timer asi, pero haciendo pruebas creo que se me va algunas milesimas desde que pulso el intro hasta que acabo el release timer. ¿podria ser? [code=fw:1nmd3b1x]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">TIMER</span> otime <span style="color: #0000ff;">INTERVAL</span> <span style="color: #000000;">0.1000</span> <span style="color: #0000ff;">action</span> <span style="color: #000000;">&#40;</span>vtiempos:=vtiempos<span style="color: #000000;">+1</span><span style="color: #000000;">&#41;</span><br />   <span style="color: #0000ff;">activate</span> <span style="color: #0000ff;">timer</span> otime<br />      vsector1:=<span style="color: #000000;">0</span><br />      oBrwt:<span style="color: #000000;">lEditCol</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">2</span>,@vsector1,<span style="color: #ff0000;">"99:999:999,999"</span>,,<span style="color: #000000;">&#41;</span><br />      <span style="color: #0000ff;">release</span> <span style="color: #0000ff;">timer</span> otime<br />      msgalert<span style="color: #000000;">&#40;</span>vtiempos<span style="color: #000000;">&#41;</span><br />      vsector1:=vtiempos/<span style="color: #000000;">60</span><br />      msgalert<span style="color: #000000;">&#40;</span>vtiempos/<span style="color: #000000;">60</span><span style="color: #000000;">&#41;</span><br />     <span style="color: #000000;">&#40;</span>ctemporal<span style="color: #000000;">&#41;</span>->sector1:=vsector1<br />      oBrwt: <span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span></div>[/code:1nmd3b1x]
Control de Tiempos - Cronometro.
Saludos y Gracias Compilare sin llamar esta funcion. Si puedes enviarla por favor, mi correo <!-- e --><a href="mailto:adaptaprodrive@gmail.com">adaptaprodrive@gmail.com</a><!-- e --> '_HB_FUN_RESALLFREE' referenced from C:\FWH17\SAMPLES\VELOCIMETRO.OBJ
Control de Tiempos - Cronometro.
Haga asi: [code=fw:6rh7n41m]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #B900B9;">// RESALLFREE()</span><br />&nbsp;</div>[/code:6rh7n41m] Esto no se usa más en 32 bits, Saludos.
Control de Tiempos - Cronometro.
[code=fw:3a7lgw7n]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveWin.Ch"</span><br /><br /><span style="color: #00C800;">STATIC</span> nGet<br /><span style="color: #00C800;">STATIC</span> oBmp1, oBmp2, oBmp3, oBmp4, oBmp5<br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">FUNCTION</span> Velocimetro<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> oDlg, oGet<br /><br />&nbsp; &nbsp;nGet := <span style="color: #000000;">0</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <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;">20</span>, <span style="color: #000000;">60</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Mostrando um Velocimetro/Cronômetro"</span> ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">STYLE</span> nOR<span style="color: #000000;">&#40;</span> DS_MODALFRAME <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;oDlg:<span style="color: #000000;">lHelpIcon</span> := .F.<br /><br /><span style="color: #B900B9;">//--------------------Área do DisPlay do Cronômetro------------------------</span><br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">/* Cada dígito é de 34 x 48 */</span><br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">/* Copie o "DisPlay.Bmp" de \FW..\BitMaps\ Para o Seu Diretório de Uso */</span><br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">002</span>, <span style="color: #000000;">001</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">'Contador : '</span> <span style="color: #0000ff;">OF</span> oDlg<br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">000</span>, <span style="color: #000000;">000</span> BITMAP oBmp1 FILE <span style="color: #ff0000;">"..<span style="color: #000000;">\B</span>itMaps<span style="color: #000000;">\D</span>isPlay.Bmp"</span> <span style="color: #0000ff;">OF</span> oDlg<br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">000</span>, <span style="color: #000000;">000</span> BITMAP oBmp2 FILE <span style="color: #ff0000;">"..<span style="color: #000000;">\B</span>itMaps<span style="color: #000000;">\D</span>isPlay.Bmp"</span> <span style="color: #0000ff;">OF</span> oDlg<br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">000</span>, <span style="color: #000000;">000</span> BITMAP oBmp3 FILE <span style="color: #ff0000;">"..<span style="color: #000000;">\B</span>itMaps<span style="color: #000000;">\D</span>isPlay.Bmp"</span> <span style="color: #0000ff;">OF</span> oDlg<br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">000</span>, <span style="color: #000000;">000</span> BITMAP oBmp4 FILE <span style="color: #ff0000;">"..<span style="color: #000000;">\B</span>itMaps<span style="color: #000000;">\D</span>isPlay.Bmp"</span> <span style="color: #0000ff;">OF</span> oDlg<br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">000</span>, <span style="color: #000000;">000</span> BITMAP oBmp5 FILE <span style="color: #ff0000;">"..<span style="color: #000000;">\B</span>itMaps<span style="color: #000000;">\D</span>isPlay.Bmp"</span> <span style="color: #0000ff;">OF</span> oDlg<br /><br /><span style="color: #B900B9;">//-------------------------------------------------------------------------</span><br /><br />&nbsp; &nbsp;oBmp1:<span style="color: #000000;">nTop</span> &nbsp; &nbsp;:= <span style="color: #000000;">28</span><br />&nbsp; &nbsp;oBmp1:<span style="color: #000000;">nLeft</span> &nbsp; := <span style="color: #000000;">80</span><br />&nbsp; &nbsp;oBmp1:<span style="color: #000000;">nBottom</span> := <span style="color: #000000;">52</span><br />&nbsp; &nbsp;oBmp1:<span style="color: #000000;">nRight</span> &nbsp;:= <span style="color: #000000;">97</span><br /><br />&nbsp; &nbsp;oBmp2:<span style="color: #000000;">nTop</span> &nbsp; &nbsp;:= <span style="color: #000000;">28</span><br />&nbsp; &nbsp;oBmp2:<span style="color: #000000;">nLeft</span> &nbsp; := <span style="color: #000000;">98</span><br />&nbsp; &nbsp;oBmp2:<span style="color: #000000;">nBottom</span> := <span style="color: #000000;">52</span><br />&nbsp; &nbsp;oBmp2:<span style="color: #000000;">nRight</span> &nbsp;:= <span style="color: #000000;">115</span><br /><br />&nbsp; &nbsp;oBmp3:<span style="color: #000000;">nTop</span> &nbsp; &nbsp;:= <span style="color: #000000;">28</span><br />&nbsp; &nbsp;oBmp3:<span style="color: #000000;">nLeft</span> &nbsp; := <span style="color: #000000;">116</span><br />&nbsp; &nbsp;oBmp3:<span style="color: #000000;">nBottom</span> := <span style="color: #000000;">52</span><br />&nbsp; &nbsp;oBmp3:<span style="color: #000000;">nRight</span> &nbsp;:= <span style="color: #000000;">133</span><br /><br />&nbsp; &nbsp;oBmp4:<span style="color: #000000;">nTop</span> &nbsp; &nbsp;:= <span style="color: #000000;">28</span><br />&nbsp; &nbsp;oBmp4:<span style="color: #000000;">nLeft</span> &nbsp; := <span style="color: #000000;">134</span><br />&nbsp; &nbsp;oBmp4:<span style="color: #000000;">nBottom</span> := <span style="color: #000000;">52</span><br />&nbsp; &nbsp;oBmp4:<span style="color: #000000;">nRight</span> &nbsp;:= <span style="color: #000000;">151</span><br /><br />&nbsp; &nbsp;oBmp5:<span style="color: #000000;">nTop</span> &nbsp; &nbsp;:= <span style="color: #000000;">28</span><br />&nbsp; &nbsp;oBmp5:<span style="color: #000000;">nLeft</span> &nbsp; := <span style="color: #000000;">152</span><br />&nbsp; &nbsp;oBmp5:<span style="color: #000000;">nBottom</span> := <span style="color: #000000;">52</span><br />&nbsp; &nbsp;oBmp5:<span style="color: #000000;">nRight</span> &nbsp;:= <span style="color: #000000;">169</span><br /><br /><span style="color: #B900B9;">//--------------------Área dos Say's---------------------------------------</span><br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">004</span>, <span style="color: #000000;">010</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">"Caro Usuário Tenha Calma, Espere o Contador Voltar!!"</span> <span style="color: #0000ff;">OF</span> oDlg<br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">005</span>, <span style="color: #000000;">010</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">"Vai Contar até 99.999 e Depois Regressa o Cronômetro"</span> <span style="color: #0000ff;">OF</span> oDlg<br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">006</span>, <span style="color: #000000;">010</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">"By João Santos - In FiveWin The Best! "</span> <span style="color: #0000ff;">OF</span> oDlg<br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">007</span>, <span style="color: #000000;">010</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">"Todos os Direitos Reservados - 27/12/2003 "</span> <span style="color: #0000ff;">OF</span> oDlg<br /><br /><span style="color: #B900B9;">//--------------------Área dos Botões--------------------------------------</span><br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">007</span>, <span style="color: #000000;">002</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"&Aumentar"</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">40</span>, <span style="color: #000000;">12</span> ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">&#40;</span> nGet++, Por_Bmp<span style="color: #000000;">&#40;</span> oBmp1, oBmp2, oBmp3, oBmp4, oBmp5, nGet <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">007</span>, <span style="color: #000000;">010</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"&Diminuir"</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">40</span>, <span style="color: #000000;">12</span> ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">&#40;</span> nGet--, Por_Bmp<span style="color: #000000;">&#40;</span> oBmp1, oBmp2, oBmp3, oBmp4, oBmp5, nGet <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">007</span>, <span style="color: #000000;">018</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"&Executar"</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">40</span>, <span style="color: #000000;">12</span> ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ACTION</span> Executar_Bmp<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">007</span>, <span style="color: #000000;">026</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"&Saida"</span> <span style="color: #0000ff;">OF</span> oDlg ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">&#40;</span> oDlg:<span style="color: #000000;">End</span> <span style="color: #000000;">&#41;</span> CANCEL<br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span><br /><br />&nbsp; &nbsp;oDlg:<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: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">FUNCTION</span> Executar_Bmp<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> I<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">FOR</span> I = <span style="color: #000000;">1</span> <span style="color: #0000ff;">TO</span> <span style="color: #000000;">99999</span> <span style="color: #B900B9;">// (Step By Step... Indo/Aumentando)</span><br /><br />&nbsp; &nbsp; &nbsp; Por_Bmp<span style="color: #000000;">&#40;</span> oBmp1, oBmp2, oBmp3, oBmp4, oBmp5, I <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; SysRefresh<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">NEXT</span> I<br /><br />&nbsp; &nbsp;SysWait<span style="color: #000000;">&#40;</span> .<span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">FOR</span> I = <span style="color: #000000;">99999</span> <span style="color: #0000ff;">TO</span> <span style="color: #000000;">1</span> STEP - <span style="color: #000000;">1</span> <span style="color: #B900B9;">// (Step By Step... Voltando/Diminuindo)</span><br /><br />&nbsp; &nbsp; &nbsp; Por_Bmp<span style="color: #000000;">&#40;</span> oBmp1, oBmp2, oBmp3, oBmp4, oBmp5, I <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; SysRefresh<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">NEXT</span> I<br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">Nil</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">FUNCTION</span> Troca_Bmp<span style="color: #000000;">&#40;</span> oBmp1, oBmp2, oBmp3, lSinal <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">STATIC</span> nCont := <span style="color: #000000;">0</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> nInc := IIF<span style="color: #000000;">&#40;</span> lSinal, <span style="color: #000000;">1</span>, - <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> nCam := IIF<span style="color: #000000;">&#40;</span> lSinal, - <span style="color: #000000;">528</span>, - <span style="color: #000000;">527</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> nTopeI := IIF<span style="color: #000000;">&#40;</span> lSinal, - <span style="color: #000000;">576</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> nTopeS := IIF<span style="color: #000000;">&#40;</span> lSinal, <span style="color: #000000;">0</span>, - <span style="color: #000000;">576</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">IF</span> .NOT. lSinal .AND. nCont == <span style="color: #000000;">0</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">Nil</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">ENDIF</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">IF</span> oBmp3:<span style="color: #000000;">nX</span> == nTopeI<br />&nbsp; &nbsp; &nbsp; oBmp3:<span style="color: #000000;">nX</span> := nTopeS<br />&nbsp; &nbsp;<span style="color: #00C800;">ENDIF</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">IF</span> oBmp2:<span style="color: #000000;">nX</span> == nTopeI<br />&nbsp; &nbsp; &nbsp; oBmp2:<span style="color: #000000;">nX</span> := nTopeS<br />&nbsp; &nbsp;<span style="color: #00C800;">ENDIF</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">IF</span> oBmp1:<span style="color: #000000;">nX</span> == nTopeI<br />&nbsp; &nbsp; &nbsp; oBmp1:<span style="color: #000000;">nX</span> := nTopeS<br />&nbsp; &nbsp;<span style="color: #00C800;">ENDIF</span><br /><br />&nbsp; &nbsp;oBmp3:<span style="color: #000000;">nX</span> -= nInc<br />&nbsp; &nbsp;nCont += nInc<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">IF</span> oBmp3:<span style="color: #000000;">nX</span> <= nCam<br />&nbsp; &nbsp; &nbsp; oBmp2:<span style="color: #000000;">nX</span> -= nInc<br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">IF</span> oBmp2:<span style="color: #000000;">nX</span> <= nCam<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oBmp1:<span style="color: #000000;">nX</span> -= nInc<br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">ENDIF</span><br />&nbsp; &nbsp;<span style="color: #00C800;">ENDIF</span><br /><br />&nbsp; &nbsp;oBmp3:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span> .F. <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oBmp2:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span> .F. <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oBmp1:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span> .F. <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">Nil</span><br /><br /><span style="color: #B900B9;">//---------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">FUNCTION</span> Por_Bmp <span style="color: #000000;">&#40;</span> oBjeto1, oBjeto2, oBjeto3, oBjeto4, oBjeto5, nQuantidade <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> cNum := SPACE<span style="color: #000000;">&#40;</span> <span style="color: #000000;">5</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> nLen := <span style="color: #000000;">0</span><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> nDigito1 := <span style="color: #000000;">0</span><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> nDigito2 := <span style="color: #000000;">0</span><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> nDigito3 := <span style="color: #000000;">0</span><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> nDigito4 := <span style="color: #000000;">0</span><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> nDigito5 := <span style="color: #000000;">0</span><br /><br />&nbsp; &nbsp;cNum := STR<span style="color: #000000;">&#40;</span> nQuantidade <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;nLen := LEN<span style="color: #000000;">&#40;</span> cNum <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;nDigito1 := VAL<span style="color: #000000;">&#40;</span> <span style="color: #0000ff;">SUBSTR</span><span style="color: #000000;">&#40;</span> cNum, nLen - <span style="color: #000000;">4</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">IF</span> nDigito1 = <span style="color: #000000;">0</span><br />&nbsp; &nbsp; &nbsp; oBjeto1:<span style="color: #000000;">nX</span> := - <span style="color: #000000;">528</span> <span style="color: #B900B9;">// 0 - (11 * 48)</span><br />&nbsp; &nbsp;<span style="color: #00C800;">ELSE</span><br />&nbsp; &nbsp; &nbsp; oBjeto1:<span style="color: #000000;">nX</span> := <span style="color: #000000;">0</span> - <span style="color: #000000;">&#40;</span> nDigito1 * <span style="color: #000000;">48</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">ENDIF</span><br /><br />&nbsp; &nbsp;nDigito2 := VAL<span style="color: #000000;">&#40;</span> <span style="color: #0000ff;">SUBSTR</span><span style="color: #000000;">&#40;</span> cNum, nLen - <span style="color: #000000;">3</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">IF</span> nDigito2 = <span style="color: #000000;">0</span> .AND. nDigito1 = <span style="color: #000000;">0</span><br />&nbsp; &nbsp; &nbsp; oBjeto2:<span style="color: #000000;">nX</span> := - <span style="color: #000000;">528</span><br />&nbsp; &nbsp;<span style="color: #00C800;">ELSE</span><br />&nbsp; &nbsp; &nbsp; oBjeto2:<span style="color: #000000;">nX</span> := <span style="color: #000000;">0</span> - <span style="color: #000000;">&#40;</span> nDigito2 * <span style="color: #000000;">48</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">ENDIF</span><br /><br />&nbsp; &nbsp;nDigito3 := VAL<span style="color: #000000;">&#40;</span> <span style="color: #0000ff;">SUBSTR</span><span style="color: #000000;">&#40;</span> cNum, nLen - <span style="color: #000000;">2</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">IF</span> nDigito3 = <span style="color: #000000;">0</span> .AND. nDigito2 = <span style="color: #000000;">0</span> .AND. nDigito1 = <span style="color: #000000;">0</span><br />&nbsp; &nbsp; &nbsp; oBjeto3:<span style="color: #000000;">nX</span> := - <span style="color: #000000;">528</span><br />&nbsp; &nbsp;<span style="color: #00C800;">ELSE</span><br />&nbsp; &nbsp; &nbsp; oBjeto3:<span style="color: #000000;">nX</span> := <span style="color: #000000;">0</span> - <span style="color: #000000;">&#40;</span> nDigito3 * <span style="color: #000000;">48</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">ENDIF</span><br /><br />&nbsp; &nbsp;nDigito4 := VAL<span style="color: #000000;">&#40;</span> <span style="color: #0000ff;">SUBSTR</span><span style="color: #000000;">&#40;</span> cNum, nLen - <span style="color: #000000;">1</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">IF</span> nDigito4 = <span style="color: #000000;">0</span> .AND. nDigito3 = <span style="color: #000000;">0</span> .AND. nDigito2 = <span style="color: #000000;">0</span> .AND. nDigito1 = <span style="color: #000000;">0</span><br />&nbsp; &nbsp; &nbsp; oBjeto4:<span style="color: #000000;">nX</span> := - <span style="color: #000000;">528</span><br />&nbsp; &nbsp;<span style="color: #00C800;">ELSE</span><br />&nbsp; &nbsp; &nbsp; oBjeto4:<span style="color: #000000;">nX</span> := <span style="color: #000000;">0</span> - <span style="color: #000000;">&#40;</span> nDigito4 * <span style="color: #000000;">48</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">ENDIF</span><br /><br />&nbsp; &nbsp;nDigito5 := VAL<span style="color: #000000;">&#40;</span> <span style="color: #0000ff;">SUBSTR</span><span style="color: #000000;">&#40;</span> cNum, nLen, <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;oBjeto5:<span style="color: #000000;">nX</span> := <span style="color: #000000;">0</span> - <span style="color: #000000;">&#40;</span> nDigito5 * <span style="color: #000000;">48</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;oBjeto5:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span> .F. <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oBjeto4:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span> .F. <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oBjeto3:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span> .F. <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oBjeto2:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span> .F. <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oBjeto1:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span> .F. <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;SysRefresh<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">Nil</span><br />&nbsp;</div>[/code:3a7lgw7n] Saludos.
Control de Versiones
Estimados FiveWinners. Requiero utilizar en software para controlar las versiones de los PRGs de mi aplicación, ya que hay varios involucrados en el desarrollo y cada quien desarrolla una parte del proyecto. Conocen algun producto que me ayude a controlar las versiones que opere en LAN, pero que no sea CVS. Gracias. saludos
Control de Versiones
Nosotros usamos SVN que funciona realmente bien y posiblemente sea el más usado de todos. Es gratuito y libre.
Control de Versiones
Antonio... como siempre... Gracias. Saludos
Control de Versiones
[url=http&#58;//mercurial&#46;selenic&#46;com/:2dgemdgs]Mercurial[/url:2dgemdgs] is another option. It's used by Python and OpenOffice.org's team.
Control de Volumen de Windows
Saludos a todos: Alguien sabe como puedo obtener el nivel de Volumen y tambien como subir o bajar la intensidad..? Tengo una modificación a un proyecto y me solicitan dicha modificación, he revisado la documentacion para saber si es posible desde WMI, pero no es así tampoco funciona lasllamadas a MCI pues en Windows Xp para adelante no funcionan,he revisado que dse puede lograr mediante llamas al API de Windows pero no doy como, encontre esto en Google, ojala se pudiera traducir a Harbour: [url:1f3q22z9]http&#58;//www&#46;geekpedia&#46;com/tutorial176_Get-and-set-the-wave-sound-volume&#46;html[/url:1f3q22z9] [url:1f3q22z9]http&#58;//stackoverflow&#46;com/questions/2534595/get-master-sound-volume-in-c-sharp[/url:1f3q22z9] [url:1f3q22z9]http&#58;//stackoverflow&#46;com/questions/3992798/how-to-programmatically-get-the-current-audio-level[/url:1f3q22z9] [url:1f3q22z9]http&#58;//stackoverflow&#46;com/questions/4235246/c-sharp-get-master-volume-level-precent[/url:1f3q22z9] [url:1f3q22z9]https&#58;//sites&#46;google&#46;com/site/lalitpundir/s-1[/url:1f3q22z9] gracias de antemano..
Control de Volumen de Windows
Victor, Prueba a ver si te sirven estas funciones: <!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?p=99705#p99705">viewtopic.php?p=99705#p99705</a><!-- l -->
Control de Volumen de Windows
Maestro Antonio: Gracias, Ya habia revisado en el foro y las habia probado, pero [b:wr1fk8mn]MSGInfo(cValtoChar(GETVOLUME()))[/b:wr1fk8mn] siempre devuelve un valor de 65535, que supongo es el nivel máximo de volumen, haciendo SETVOLUME(0) se queda totalmente en silencio, y al hacer SETVOLUME(65535) regresa al volumen alto, hasta ahi va bien.. Pero necesito saber en que nivel de volumen esta el sistema para ahi aumentarlo o disminuirlo con un Slider, aunque ponga el nivel de volumen en bajo GETVOLUME() siempre me retorna 65535, solo me faltaria éste detalle.. Gracias..
Control de Volumen de Windows
Victor, Por lo que he leido y probado parece esas funciones no devuelven valores intermedios. Revisa esta utilidad libre que por lo visto permite cambiar el volumen: [url:15drwtpa]http&#58;//www&#46;nirsoft&#46;net/utils/nircmd&#46;html[/url:15drwtpa]
Control de Volumen de Windows
Cierto Maestro, no hay manera de encontrar el nivel de volumen intermedio de una pc, ya habia probado tambien esta utilidad, de hecho me sirve para expulsar el cd de la bandeja de la PC sin estar molestando el boton fisico y no dañarlo. De pronto me las arregle con estas funciones para subir y bajar la intensidad, Como siempre Muy agradecido Saludos..
Control de Volumen de Windows
De nuevo comentando sobre el caso, en Windows XP funcionó bien pude bajar y subir el volumen en tiempo real, aún no he probado en Windows Vista, Seven, 8, pero en Windows 10 64 Bits éstas funciones no responden, no hacen nada... No se si sea por el tipo de arquitectura.. Habra que hacer cambios..?
Control de Volumen de Windows
Victor, Por lo visto, segun la documentación de esas funciones, no devuelven valores intermedios. Es muy extraño, pero es asi <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Control de aplicaciones
Hola, una duda en el manejo de aplicacones, uso local oOutlook := CreateObject( "Outlook.Application" ) en caso de no estar instalado outlook o no este abierto en la pc que se corre el programa, me saca y manda error: Error description: Error outlook.aplication/16389 E_FAIL:CREATEITEM (en caso de no tener abierto outlook) Como puedo comprobar que este instaldo outlook, como saber si esta abierto ("corrriendo") Espero haberme explicado gracias, saludos.
Control de aplicaciones
<!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=3&t=29986&p=170694&hilit=Outlook.Application#p170694">viewtopic.php?f=3&t=29986&p=170694&hilit=Outlook.Application#p170694</a><!-- l -->
Control de aplicaciones
Basándose en el tema, necesito un ejemplo sencillo de uso Microsoft Outllook. Porque con outlook.com, los Windows Live Mail, no funciona para envio de emails. Gracias, saludos.
Control de error al Imprimir con FastReport
Mario... El tema es que a partir de que el trabajo llega a la cola de impresión, ya FastReport terminó su parte... Lo deja todo en manos del Sistema Operativo. En ese caso hay que ver si se puede armar alguna función en C que te retorne el estado de los trabajos de la cola de impresión. Creo que la mano no viene por el lado de FastReport.
Control de error al Imprimir con FastReport
Alguien sabe si se puede controlar si la impresión fue exitosa o no? Tengo incluida esta instrucción lOk:= Empty( oFr:GetErrors() ), pero no obtengo el efecto esperado, ya que probando, al enviar a imprimir, si intencionalmente apago la impresora es Windows quien me la atrapa y la deja en cola de espera (supongo que una opcion seria activar Imrpimir directamente en la Impresora, pero la idea es no intervenir en la funcionalidad general de la impresora), de manera que lOK siempre es verdadero gracias, Saludos
Control de error al Imprimir con FastReport
Muy razonable; muchas gracias (el c solo 'ce' que existe <!-- s:? --><img src="{SMILIES_PATH}/icon_confused.gif" alt=":?" title="Confused" /><!-- s:? --> )
Control de errores
Hola buenos días, como bien dice el asunto necesito controlar los errores del sistema en distintas situaciones, mi idea es que guarde el error generado en una tabla o bien en lugar del disco. Que pueda crear el mismo archivo del error como error_AAMMDD.log, también que se envíe el error vía email. Si alguien lo hizo o me tira una ayuda, es bienvenido. Gracias de antemano. Saludos Marcelo
Control de errores
un saludo Marcelo tengo algo, solo me falta en envío por mail, es reducida la información pero es lo que yo necesito para resolver el problema en donde se generó 1.- formato del archivo Error dd-mm_Hora_mm.ss.TXT mas otro archivo genérico que tiene el nombre "Error de Sistema.txt" 2.- Guarda cada error generado en un DBF llamado Repository.dbf que lo genera automáticamente si no lo encuentra. 3.- Todo esto lo guarda en una sub-carpeta en donde se encuentra el sistema que se llama "Mensajes de Error" ejemplo del archivo de error que genera el sistema que tengo: [code=fw:zaqpag5x]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br />Información<br />-----------<br />Ruta y nombre: <span style="color: #000000;">C</span>:\PROY\Sistemas Vikings\Viking_Frozen.EXE<br />Fecha y Hora : <span style="color: #000000;">03</span>/<span style="color: #000000;">06</span>/<span style="color: #000000;">2019</span> - <span style="color: #000000;">11</span>:<span style="color: #000000;">42</span>:<span style="color: #000000;">25</span><br />Tamaño &nbsp; &nbsp; &nbsp; : <span style="color: #000000;">5.027</span><span style="color: #000000;">.328</span> bytes<br />Estación &nbsp; &nbsp; : <span style="color: #000000;">ARMANDO_PC</span><br /><br />Detalle técnico<br />---------------<br />Error BASE/<span style="color: #000000;">1081</span> Argument error: +<br />Argumentos &nbsp; :<br /><span style="color: #000000;">&#91;</span> &nbsp; <span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>= CEXECUTE S_Actividad_Usuario <span style="color: #ff0000;">'Administrador'</span>,<span style="color: #ff0000;">'MaeGene'</span>,<span style="color: #ff0000;">'0.44.2219'</span>,<span style="color: #ff0000;">'Ingreso los Maestros generales de <br />[ &nbsp; 2]= U<br /><br />Procedimientos<br />--------------<br />Ver 4.19.2219 Llamado de MAESTROS_GENERALES(76)<br />Ver 4.19.2219 Llamado de (b)MAIN(128)<br />Ver 4.19.2219 Llamado de TMENU:COMMAND(463)<br />Ver 4.19.2219 Llamado de TWINDOW:COMMAND(1.043)<br />Ver 4.19.2219 Llamado de TWINDOW:HANDLEEVENT(0)<br />Ver 4.19.2219 Llamado de _FWH(3.183)<br />Ver 4.19.2219 Llamado de WINRUN(0)<br />Ver 4.19.2219 Llamado de TWINDOW:ACTIVATE(996)<br />Ver 4.19.2219 Llamado de MAIN(408)<br /><br />Sistema<br />-------<br />Versión de Windows &nbsp; &nbsp;= Windows 7 o Superior<br />Número &nbsp;de Versión &nbsp; &nbsp;= 6.2.9200<br />Versión de Compilador = xHarbour 1.2.3 Intl. (SimpLex) (Build 20150603)<br />Versión de Sistema &nbsp;r = Ver 4.19.2219<br /><br />Procesador<br />----------<br />GenuineIntel &nbsp;x86 Family 6 Model 15 Stepping 11<br />Tipo Intel(R) Core(TM)2 Duo CPU &nbsp; &nbsp; E6550 &nbsp;@ 2.33GHz o Superior<br />Velocidad 2340 MHz<br />Placa Multiprocesador<br />BIOS 7514MS - 20080528 &nbsp;05/28/08<br /><br />Fin Error.txt <br />--------------<br /></span></div>[/code:zaqpag5x] clase modificada para los mensajes de error: [code=fw:zaqpag5x]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"Error.ch"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"Struct.ch"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"Dll.ch"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"TSButton.ch"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"viking_Master.ch"</span> &nbsp; &nbsp; &nbsp; &nbsp; <----- &nbsp; &nbsp; &nbsp;solo saca variables propias de versiones de mi sistema mas algunas definiciones de colores<br /><br /><span style="color: #00D7D7;">#define</span> &nbsp;HKEY_CLASSES_ROOT &nbsp; &nbsp; &nbsp;<span style="color: #000000;">2147483648</span> &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// 0x80000000</span><br /><span style="color: #00D7D7;">#define</span> &nbsp;HKEY_CURRENT_USER &nbsp; &nbsp; &nbsp;<span style="color: #000000;">2147483649</span> &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// 0x80000001</span><br /><span style="color: #00D7D7;">#define</span> &nbsp;HKEY_LOCAL_MACHINE &nbsp; &nbsp; <span style="color: #000000;">2147483650</span> &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// 0x80000002</span><br /><span style="color: #00D7D7;">#define</span> &nbsp;NTrim<span style="color: #000000;">&#40;</span>n<span style="color: #000000;">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AllTrim<span style="color: #000000;">&#40;</span> Transform<span style="color: #000000;">&#40;</span> n , <span style="color: #ff0000;">"@E 999,999,999,999"</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />PROCEDURE ErrorSys<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; ErrorBlock<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#123;</span> | e | ErrorDialog<span style="color: #000000;">&#40;</span> e <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">RETURN</span><br /><br /><span style="color: #B900B9;">//--------------------------</span><br /><br /><span style="color: #00C800;">STATIC</span> <span style="color: #00C800;">FUNCTION</span> ErrorDialog<span style="color: #000000;">&#40;</span> e <span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">LOCAL</span> aRct, oBtn, lRet, nI, oSystemInfo, oOldError, oDlg, oLbx, oFont<span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span>, oSay, cMessage, cErrorLog := <span style="color: #ff0000;">""</span>, aStack := <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span>, oNombre := <span style="color: #ff0000;">""</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">IF</span> <span style="color: #000000;">&#40;</span> e:<span style="color: #000000;">genCode</span> == EG_ZERODIV <span style="color: #000000;">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; &nbsp;<span style="color: #00C800;">RETURN</span> <span style="color: #000000;">0</span> &nbsp; ; <span style="color: #00C800;">ENDIF</span><br />&nbsp; &nbsp;<span style="color: #00C800;">IF</span> <span style="color: #000000;">&#40;</span> e:<span style="color: #000000;">genCode</span> == EG_OPEN &nbsp; &nbsp; &nbsp; .AND. <span style="color: #000000;">&#40;</span> e:<span style="color: #000000;">osCode</span> == <span style="color: #000000;">32</span> .OR. e:<span style="color: #000000;">osCode</span> == <span style="color: #000000;">5</span> <span style="color: #000000;">&#41;</span> .AND. e:<span style="color: #000000;">canDefault</span> <span style="color: #000000;">&#41;</span> ; NETERR<span style="color: #000000;">&#40;</span> .T. <span style="color: #000000;">&#41;</span> ; &nbsp;<span style="color: #00C800;">RETURN</span> .F. ; <span style="color: #00C800;">ENDIF</span><br />&nbsp; &nbsp;<span style="color: #00C800;">IF</span> <span style="color: #000000;">&#40;</span> e:<span style="color: #000000;">genCode</span> == EG_APPENDLOCK .AND. e:<span style="color: #000000;">canDefault</span> <span style="color: #000000;">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; NETERR<span style="color: #000000;">&#40;</span> .T. <span style="color: #000000;">&#41;</span> ; &nbsp;<span style="color: #00C800;">RETURN</span> .F. ; <span style="color: #00C800;">ENDIF</span><br />&nbsp; &nbsp;<span style="color: #00C800;">IF</span> ProcName<span style="color: #000000;">&#40;</span> <span style="color: #000000;">7</span> <span style="color: #000000;">&#41;</span> == <span style="color: #ff0000;">"ERRORDIALO"</span><br />&nbsp; &nbsp; &nbsp; SET RESOURCES <span style="color: #0000ff;">TO</span><br />&nbsp; &nbsp; &nbsp; ErrorLevel<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; QUIT<br />&nbsp; &nbsp;<span style="color: #00C800;">ENDIF</span><br /><br />&nbsp; &nbsp;USE .\Fuentes\System\Empresa.dbf <span style="color: #0000ff;">ALIAS</span> ALVER SHARED <span style="color: #00C800;">NEW</span> &nbsp; &nbsp; &nbsp; <-- solo saca un campo en donde veo la versión de compilación <br /><br />&nbsp; &nbsp;cErrorLog += <span style="color: #ff0000;">"Información"</span> + CRLF<br />&nbsp; &nbsp;cErrorLog += <span style="color: #ff0000;">"-----------"</span> + CRLF<br />&nbsp; &nbsp;cErrorLog += <span style="color: #ff0000;">"Ruta y nombre: "</span> + GetModuleFileName<span style="color: #000000;">&#40;</span> GetInstance<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> + CRLF<br />&nbsp; &nbsp;cErrorLog += <span style="color: #ff0000;">"Fecha y Hora : "</span> + DTOC<span style="color: #000000;">&#40;</span> DATE<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>+<span style="color: #ff0000;">" - "</span>+TIME<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> + CRLF<br />&nbsp; &nbsp;cErrorLog += <span style="color: #ff0000;">"Tamaño &nbsp; &nbsp; &nbsp; : "</span> + NTrim<span style="color: #000000;">&#40;</span> FSize<span style="color: #000000;">&#40;</span> GetModuleFileName<span style="color: #000000;">&#40;</span> GetInstance<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">" bytes"</span> + CRLF<br />&nbsp; &nbsp;cErrorLog += <span style="color: #ff0000;">"Estación &nbsp; &nbsp; : "</span> + NETNAME<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> + CRLF + CRLF<br />&nbsp; &nbsp;cMessage &nbsp; = <span style="color: #ff0000;">"Detalle técnico"</span> + CRLF+;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"---------------"</span> + CRLF+;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ErrorMessage<span style="color: #000000;">&#40;</span> e <span style="color: #000000;">&#41;</span> + CRLF<br />&nbsp; &nbsp; cErrorLog += cMessage<br />&nbsp; &nbsp; <span style="color: #00C800;">if</span> ValType<span style="color: #000000;">&#40;</span> e:<span style="color: #000000;">Args</span> <span style="color: #000000;">&#41;</span> == <span style="color: #ff0000;">"A"</span><br />&nbsp; &nbsp; &nbsp; &nbsp; cErrorLog += <span style="color: #ff0000;">"Argumentos &nbsp; :"</span> + CRLF<br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">for</span> nI = <span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> Len<span style="color: #000000;">&#40;</span> e:<span style="color: #000000;">Args</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cErrorLog += <span style="color: #ff0000;">"["</span> + Str<span style="color: #000000;">&#40;</span> nI, <span style="color: #000000;">4</span> <span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">"]= "</span> + ValType<span style="color: #000000;">&#40;</span> e:<span style="color: #000000;">Args</span><span style="color: #000000;">&#91;</span> nI <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span> + ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cValToChar<span style="color: #000000;">&#40;</span> e:<span style="color: #000000;">Args</span><span style="color: #000000;">&#91;</span> nI <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span> + CRLF<br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">next</span><br />&nbsp; &nbsp; <span style="color: #00C800;">endif</span><br /><br />&nbsp; &nbsp; cErrorLog += CRLF + <span style="color: #ff0000;">"Procedimientos"</span> + CRLF<br />&nbsp; &nbsp; cErrorLog += &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #ff0000;">"--------------"</span> + CRLF<br />&nbsp; &nbsp; nI := <span style="color: #000000;">2</span> &nbsp; &nbsp;<span style="color: #B900B9;">// we don't disscard any info again !</span><br />&nbsp; &nbsp; <span style="color: #00C800;">while</span> <span style="color: #000000;">&#40;</span> nI < <span style="color: #000000;">74</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> ! Empty<span style="color: #000000;">&#40;</span>ProcName<span style="color: #000000;">&#40;</span> nI <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AAdd<span style="color: #000000;">&#40;</span> aStack, __VERSION+ALVER->VERSION1+<span style="color: #ff0000;">" Llamado de "</span> + Trim<span style="color: #000000;">&#40;</span> ProcName<span style="color: #000000;">&#40;</span> nI <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> + ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"("</span> + NTrim<span style="color: #000000;">&#40;</span> ProcLine<span style="color: #000000;">&#40;</span> nI <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">")"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cErrorLog += ATail<span style="color: #000000;">&#40;</span> aStack <span style="color: #000000;">&#41;</span> + CRLF<br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">endif</span><br />&nbsp; &nbsp; &nbsp; &nbsp; nI++<br />&nbsp; &nbsp; end<br /><br />&nbsp; &nbsp; oSystemInfo:=TSystemInfo<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; cErrorLog+=CRLF+ <span style="color: #ff0000;">"Sistema"</span><br />&nbsp; &nbsp; cErrorLog+=CRLF+ <span style="color: #ff0000;">"-------"</span><br />&nbsp; &nbsp; cErrorLog+=CRLF+ <span style="color: #ff0000;">"Versión de Windows &nbsp; &nbsp;= "</span> + oSystemInfo:<span style="color: #000000;">WinVer</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; cErrorLog+=CRLF+ <span style="color: #ff0000;">"Número &nbsp;de Versión &nbsp; &nbsp;= "</span> + oSystemInfo:<span style="color: #000000;">VerNum</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; cErrorLog+=CRLF+ <span style="color: #ff0000;">"Versión de Compilador = "</span> + Version<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; cErrorLog+=CRLF+ <span style="color: #ff0000;">"Versión de Sistema &nbsp; &nbsp;= "</span> + __VERSION+ALVER->VERSION1<br />&nbsp; &nbsp; cErrorLog+=CRLF<br />&nbsp; &nbsp; cErrorLog+=CRLF+ <span style="color: #ff0000;">"Procesador"</span><br />&nbsp; &nbsp; cErrorLog+=CRLF+ <span style="color: #ff0000;">"----------"</span><br />&nbsp; &nbsp; cErrorLog+=CRLF+ oSystemInfo:<span style="color: #000000;">CPUVendor</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>+<span style="color: #ff0000;">" &nbsp;"</span>+oSystemInfo:<span style="color: #000000;">CPUIdentifier</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; cErrorLog+=CRLF+ <span style="color: #ff0000;">"Tipo "</span>+oSystemInfo:<span style="color: #000000;">CPU</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>+<span style="color: #ff0000;">" o Superior"</span><br />&nbsp; &nbsp; cErrorLog+=CRLF+ <span style="color: #ff0000;">"Velocidad "</span> + <span style="color: #00C800;">IF</span><span style="color: #000000;">&#40;</span>oSystemInfo:<span style="color: #000000;">SpeedCPU</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>><span style="color: #000000;">0</span>,LTrim<span style="color: #000000;">&#40;</span>Str<span style="color: #000000;">&#40;</span>oSystemInfo:<span style="color: #000000;">SpeedCPU</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>+<span style="color: #ff0000;">" MHz"</span>,<span style="color: #ff0000;">"No determinada"</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; <span style="color: #00C800;">if</span> oSystemInfo:<span style="color: #000000;">IsDualCPU</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;cErrorLog+=CRLF+ <span style="color: #ff0000;">"Placa Multiprocesador"</span><br />&nbsp; &nbsp; <span style="color: #00C800;">endif</span><br /><br />&nbsp; &nbsp; cErrorLog+=CRLF+ <span style="color: #ff0000;">"BIOS "</span>+oSystemInfo:<span style="color: #000000;">NameSystemBios</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>+<span style="color: #ff0000;">" &nbsp;"</span>+oSystemInfo:<span style="color: #000000;">DateSystemBios</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; cErrorLog+=CRLF<br />&nbsp; &nbsp; cErrorLog+=CRLF+ <span style="color: #ff0000;">"Fin Error.txt "</span><br />&nbsp; &nbsp; cErrorLog+=CRLF+ <span style="color: #ff0000;">"--------------"</span><br />&nbsp; &nbsp; cErrorLog+=CRLF<br /><br />&nbsp; &nbsp; <span style="color: #00C800;">if</span> ProcName<span style="color: #000000;">&#40;</span> <span style="color: #000000;">7</span> <span style="color: #000000;">&#41;</span> == <span style="color: #ff0000;">"ERRORDIALO"</span><br />&nbsp; &nbsp; &nbsp; &nbsp;SET RESOURCES <span style="color: #0000ff;">TO</span><br />&nbsp; &nbsp; &nbsp; &nbsp;ErrorLevel<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;QUIT<br />&nbsp; &nbsp; <span style="color: #00C800;">endif</span><br /><br />&nbsp; &nbsp; oNombre := <span style="color: #ff0000;">".<span style="color: #000000;">\M</span>ensajes de Error<span style="color: #000000;">\E</span>rror "</span>+strtran<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> str<span style="color: #000000;">&#40;</span>day<span style="color: #000000;">&#40;</span>date<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>,<span style="color: #000000;">2</span>,<span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span>+<span style="color: #ff0000;">"-"</span>+str<span style="color: #000000;">&#40;</span>month<span style="color: #000000;">&#40;</span>date<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>,<span style="color: #000000;">2</span>,<span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span>+<span style="color: #ff0000;">"_hora_"</span>+<span style="color: #0000ff;">substr</span><span style="color: #000000;">&#40;</span>time<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>,<span style="color: #000000;">1</span>,<span style="color: #000000;">2</span><span style="color: #000000;">&#41;</span>+<span style="color: #ff0000;">"."</span>+<span style="color: #0000ff;">substr</span><span style="color: #000000;">&#40;</span>time<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>,<span style="color: #000000;">4</span>,<span style="color: #000000;">2</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>,<span style="color: #ff0000;">" "</span>,<span style="color: #ff0000;">"0"</span><span style="color: #000000;">&#41;</span>+<span style="color: #ff0000;">".txt"</span><br /><br />&nbsp; &nbsp; MemoWrit<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">".<span style="color: #000000;">\M</span>ensajes de Error<span style="color: #000000;">\E</span>rror de Sistema.txt"</span>, cErrorLog <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; MemoWrit<span style="color: #000000;">&#40;</span> oNombre, cErrorLog <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; <span style="color: #B900B9;">/* PANTALLA DE CONTROL DEL ERROR */</span><br />&nbsp; &nbsp; <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFont<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"Roboto"</span> &nbsp; <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">-12</span><br />&nbsp; &nbsp; <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFont<span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">NAME</span> __FONT &nbsp; &nbsp; <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">-15</span><br /><br />&nbsp; &nbsp; nI := aStack<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span><br /><br />&nbsp; &nbsp; <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">600</span>, <span style="color: #000000;">285</span> <span style="color: #0000ff;">TITLE</span> __LOGO+<span style="color: #ff0000;">" "</span>+__MAIN1 <span style="color: #0000ff;">STYLE</span> nOr<span style="color: #000000;">&#40;</span> WS_CHILD, WS_POPUP, WS_CAPTION <span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">COLOR</span> CLR_WHITE <span style="color: #0000ff;">FONT</span> oFont<span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp;@ <span style="color: #000000;">00</span>, <span style="color: #000000;">03</span> STSAY oSay <span style="color: #0000ff;">VAR</span> <span style="color: #ff0000;">"TECNICAL / "</span>+ErrorMessage<span style="color: #000000;">&#40;</span> e <span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">CENTER</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">FONT</span> oFont<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;">295</span>, <span style="color: #000000;">80</span><br />&nbsp; &nbsp; &nbsp; &nbsp;@ <span style="color: #000000;">20</span>, <span style="color: #000000;">03</span> STSAY oSay <span style="color: #0000ff;">VAR</span> <span style="color: #ff0000;">"Modulos en Ejecusión"</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">FONT</span> oFont<span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">PIXEL</span><br />&nbsp; &nbsp; &nbsp; &nbsp;@ <span style="color: #000000;">24</span>,<span style="color: #000000;">248</span> STSAY oSay <span style="color: #0000ff;">VAR</span> __VERSION+ALVER->VERSION1 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">FONT</span> oFont<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">SIZE</span> &nbsp;<span style="color: #000000;">50</span>, <span style="color: #000000;">18</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">COLOR</span> CLR_HRED<br /><br />&nbsp; &nbsp; &nbsp; &nbsp;@ <span style="color: #000000;">31</span>,<span style="color: #000000;">3</span> <span style="color: #0000ff;">Listbox</span> oLbx <span style="color: #0000ff;">VAR</span> nI <span style="color: #0000ff;">ITEMS</span> aStack <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">295</span>,<span style="color: #000000;">90</span> <span style="color: #0000ff;">FONT</span> oFont<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">COLOR</span> CLR_HRED, CLR_BLACK <span style="color: #0000ff;">PIXEL</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp;@ <span style="color: #000000;">120</span>, <span style="color: #000000;">95</span> SBUTTON oBtn <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Salir"</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">50</span>, <span style="color: #000000;">18</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">&#40;</span> oDlg:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">FONT</span> oFont<span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span> SUNSET <span style="color: #0000ff;">COLOR</span> CLR_WHITE, CLR_BLACK<br />&nbsp; &nbsp; &nbsp; &nbsp;@ <span style="color: #000000;">120</span>,<span style="color: #000000;">165</span> SBUTTON oBtn <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Detalles"</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">50</span>, <span style="color: #000000;">18</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">&#40;</span> WAITRUN<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"NotePad .<span style="color: #000000;">\M</span>ensajes de Error<span style="color: #000000;">\E</span>rror de Sistema.txt"</span><span style="color: #000000;">&#41;</span>, oDlg:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">FONT</span> oFont<span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span> SUNSET <span style="color: #0000ff;">COLOR</span> CLR_WHITE, CLR_BLACK<br /><br />&nbsp; &nbsp; <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">PAINT</span> <span style="color: #000000;">&#40;</span> aRct := GetClientRect<span style="color: #000000;">&#40;</span> oDlg:<span style="color: #000000;">hWnd</span> <span style="color: #000000;">&#41;</span>, GradColor<span style="color: #000000;">&#40;</span> oDlg:<span style="color: #000000;">hDC</span>, aRct, nRGB<span style="color: #000000;">&#40;</span><span style="color: #000000;">68</span>,<span style="color: #000000;">68</span>,<span style="color: #000000;">68</span><span style="color: #000000;">&#41;</span>, CLR_BLACK <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">INIT</span> &nbsp;<span style="color: #000000;">&#40;</span> SndPlaySound<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">".<span style="color: #000000;">\S</span>YSTEM<span style="color: #000000;">\V</span>oice_Error.wav"</span>,<span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; oFont<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; oFont<span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; <span style="color: #00C800;">if</span> lRet == <span style="color: #00C800;">nil</span> .or. <span style="color: #000000;">&#40;</span> !LWRunning<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> .and. lRet <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp;BEGIN SEQUENCE<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oOldError = ErrorBlock<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#123;</span> || DoBreak<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">IF</span> !FILE &nbsp; <span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Mensajes de Error<span style="color: #000000;">\R</span>epository.dbf"</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; DbCreate<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Mensajes de Error<span style="color: #000000;">\R</span>epository.dbf"</span>, &nbsp;<span style="color: #000000;">&#123;</span><span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"USER"</span> &nbsp;,<span style="color: #ff0000;">"C"</span>,<span style="color: #000000;">11</span>,<span style="color: #000000;">0</span><span style="color: #000000;">&#125;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"FECHA"</span> ,<span style="color: #ff0000;">"D"</span>, <span style="color: #000000;">8</span>,<span style="color: #000000;">0</span><span style="color: #000000;">&#125;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"HORA"</span> &nbsp;,<span style="color: #ff0000;">"C"</span>, <span style="color: #000000;">8</span>,<span style="color: #000000;">0</span><span style="color: #000000;">&#125;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"ERROR"</span> ,<span style="color: #ff0000;">"C"</span>,<span style="color: #000000;">90</span>,<span style="color: #000000;">0</span><span style="color: #000000;">&#125;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"DESCR"</span> ,<span style="color: #ff0000;">"M"</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><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">ENDIF</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;USE <span style="color: #ff0000;">"Mensajes de Error<span style="color: #000000;">\R</span>epository.dbf"</span> SHARED<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;APPEND BLANK<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;REPLACE USER &nbsp; &nbsp; &nbsp; WITH NETNAME<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;REPLACE FECHA &nbsp; &nbsp; &nbsp;WITH DATE<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;REPLACE HORA &nbsp; &nbsp; &nbsp; WITH TIME<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;REPLACE ERROR &nbsp; &nbsp; &nbsp;WITH STRTRAN<span style="color: #000000;">&#40;</span>ErrorMessage<span style="color: #000000;">&#40;</span> e <span style="color: #000000;">&#41;</span>,CRLF,<span style="color: #ff0000;">" "</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;REPLACE DESCR &nbsp; &nbsp; &nbsp;WITH cErrorLog<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;COMMIT<br />&nbsp; &nbsp; &nbsp; &nbsp;END SEQUENCE<br />&nbsp; &nbsp; &nbsp; &nbsp;ErrorBlock<span style="color: #000000;">&#40;</span> oOldError <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;DBCLOSEALL<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;SET RESOURCES <span style="color: #0000ff;">TO</span><br />&nbsp; &nbsp; &nbsp; &nbsp;ErrorLevel<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;QUIT<br />&nbsp; &nbsp; <span style="color: #00C800;">endif</span><br /><br /><span style="color: #00C800;">return</span> lRet<br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">static</span> <span style="color: #00C800;">function</span> DoBreak<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">BREAK</span><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">static</span> <span style="color: #00C800;">function</span> ErrorMessage<span style="color: #000000;">&#40;</span> e <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// start error message</span><br />&nbsp; &nbsp; <span style="color: #00C800;">local</span> cMessage := <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> empty<span style="color: #000000;">&#40;</span> e:<span style="color: #000000;">OsCode</span> <span style="color: #000000;">&#41;</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> e:<span style="color: #000000;">severity</span> > ES_WARNING, <span style="color: #ff0000;">"Error "</span>, <span style="color: #ff0000;">"ADV="</span> <span style="color: #000000;">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"(Error DOS "</span> + AllTrim<span style="color: #000000;">&#40;</span> Str<span style="color: #000000;">&#40;</span> e:<span style="color: #000000;">osCode</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">") "</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// add subsystem name if available</span><br />&nbsp; &nbsp; cMessage += <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> ValType<span style="color: #000000;">&#40;</span> e:<span style="color: #000000;">SubSystem</span> <span style="color: #000000;">&#41;</span> == <span style="color: #ff0000;">"C"</span>, e:<span style="color: #000000;">SubSystem</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, <span style="color: #ff0000;">"???"</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// add subsystem's error code if available</span><br />&nbsp; &nbsp; cMessage += <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> ValType<span style="color: #000000;">&#40;</span> e:<span style="color: #000000;">SubCode</span> <span style="color: #000000;">&#41;</span> == <span style="color: #ff0000;">"N"</span>, <span style="color: #ff0000;">"/"</span> + AllTrim<span style="color: #000000;">&#40;</span> Str<span style="color: #000000;">&#40;</span> e:<span style="color: #000000;">SubCode</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>, <span style="color: #ff0000;">"/???"</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// add error description if available</span><br />&nbsp; <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> ValType<span style="color: #000000;">&#40;</span> e:<span style="color: #000000;">Description</span> <span style="color: #000000;">&#41;</span> == <span style="color: #ff0000;">"C"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; cMessage += <span style="color: #ff0000;">" "</span> + e:<span style="color: #000000;">Description</span><br />&nbsp; end<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// add either filename or operation</span><br />&nbsp; &nbsp; cMessage += <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> ! Empty<span style="color: #000000;">&#40;</span> e:<span style="color: #000000;">FileName</span> <span style="color: #000000;">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">": "</span> + e:<span style="color: #000000;">FileName</span> &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> !Empty<span style="color: #000000;">&#40;</span> e:<span style="color: #000000;">Operation</span> <span style="color: #000000;">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">": "</span> + e:<span style="color: #000000;">Operation</span> &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">""</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">return</span> cMessage<br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">CLASS</span> TSystemInfo<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">DATA</span> nOsVer, nMajor, nMinor, nBuild, nPlatform, cSP<br />&nbsp; &nbsp;<span style="color: #00C800;">DATA</span> wSerPackM, wSerPacki, wSteMask, wProdType, wRes<br />&nbsp; &nbsp;<span style="color: #00C800;">DATA</span> cIP, cSName, cLName<br />&nbsp; &nbsp;<span style="color: #00C800;">DATA</span> TSIVersion<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">METHOD</span> <span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> lTest, lMsg <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">METHOD</span> WinVer<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">METHOD</span> VerNum<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">INLINE</span> LTrim<span style="color: #000000;">&#40;</span>Str<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">nMajor</span> <span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>+<span style="color: #ff0000;">"."</span>+LTrim<span style="color: #000000;">&#40;</span>Str<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">nMinor</span> <span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>+<span style="color: #ff0000;">"."</span>+LTrim<span style="color: #000000;">&#40;</span>Str<span style="color: #000000;">&#40;</span>::<span style="color: #000000;">nBuild</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>+RTrim<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">" "</span>+ ::<span style="color: #000000;">cSP</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">METHOD</span> WhichNT<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">METHOD</span> TimeZone<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">METHOD</span> DateSystemBios<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">METHOD</span> NameSystemBios<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">METHOD</span> DateVideoBios<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">METHOD</span> NameVideoBios<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">METHOD</span> ComputerName<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">METHOD</span> IEStartPage<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">METHOD</span> IEVersion<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">METHOD</span> DefBrowser<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">METHOD</span> DTWallpaper<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">METHOD</span> DirectxVersion<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">METHOD</span> Ass4Ext<span style="color: #000000;">&#40;</span> cExt <span style="color: #000000;">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// Associated program for this extension</span><br />&nbsp; &nbsp;<span style="color: #00C800;">METHOD</span> App4Ext<span style="color: #000000;">&#40;</span> cExt <span style="color: #000000;">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// App that opens this extension</span><br />&nbsp; &nbsp;<span style="color: #00C800;">METHOD</span> Icon4Ext<span style="color: #000000;">&#40;</span> cExt <span style="color: #000000;">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// Icon associated to this extension</span><br />&nbsp; &nbsp;<span style="color: #00C800;">METHOD</span> BootDir<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">METHOD</span> GetColors<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">METHOD</span> SpeedCPU<span style="color: #000000;">&#40;</span> nCPU <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">METHOD</span> CPU<span style="color: #000000;">&#40;</span> nCPU <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">METHOD</span> CPUName<span style="color: #000000;">&#40;</span> nCPU <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">METHOD</span> IsDualCPU<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">INLINE</span> ::<span style="color: #000000;">SpeedCPU</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span> > <span style="color: #000000;">0</span><br />&nbsp; &nbsp;<span style="color: #00C800;">METHOD</span> CPUVendor<span style="color: #000000;">&#40;</span> nCPU <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">METHOD</span> CPUIdentifier<span style="color: #000000;">&#40;</span> nCPU <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">METHOD</span> ModemName<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">METHOD</span> ModemVersion<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">METHOD</span> ModemPort<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">METHOD</span> MonitorName<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">METHOD</span> MouseName<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">METHOD</span> MouseVersion<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">METHOD</span> IPInfo<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">METHOD</span> IsWin95<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">INLINE</span> ::<span style="color: #000000;">nPlatform</span> == <span style="color: #000000;">1</span> .and. ::<span style="color: #000000;">nMajor</span> == <span style="color: #000000;">4</span> .and. ::<span style="color: #000000;">nMinor</span> == &nbsp;<span style="color: #000000;">0</span> .and. ::<span style="color: #000000;">nBuild</span> == &nbsp;<span style="color: #000000;">950</span><br />&nbsp; &nbsp;<span style="color: #00C800;">METHOD</span> IsWin95SP1<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">INLINE</span> ::<span style="color: #000000;">nPlatform</span> == <span style="color: #000000;">1</span> .and. ::<span style="color: #000000;">nMajor</span> == <span style="color: #000000;">4</span> .and. ::<span style="color: #000000;">nMinor</span> == &nbsp;<span style="color: #000000;">0</span> .and. ::<span style="color: #000000;">nBuild</span> <= <span style="color: #000000;">1080</span><br />&nbsp; &nbsp;<span style="color: #00C800;">METHOD</span> IsWin95OSR2<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">INLINE</span> ::<span style="color: #000000;">nPlatform</span> == <span style="color: #000000;">1</span> .and. ::<span style="color: #000000;">nMajor</span> == <span style="color: #000000;">4</span> .and. ::<span style="color: #000000;">nMinor</span> < &nbsp;<span style="color: #000000;">10</span> .and. ::<span style="color: #000000;">nBuild</span> > &nbsp;<span style="color: #000000;">1080</span><br />&nbsp; &nbsp;<span style="color: #00C800;">METHOD</span> IsWin98<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">INLINE</span> ::<span style="color: #000000;">nPlatform</span> == <span style="color: #000000;">1</span> .and. ::<span style="color: #000000;">nMajor</span> == <span style="color: #000000;">4</span> .and. ::<span style="color: #000000;">nMinor</span> == <span style="color: #000000;">10</span> .and. ::<span style="color: #000000;">nBuild</span> == <span style="color: #000000;">1998</span><br />&nbsp; &nbsp;<span style="color: #00C800;">METHOD</span> IsWin98SP1<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">INLINE</span> ::<span style="color: #000000;">nPlatform</span> == <span style="color: #000000;">1</span> .and. ::<span style="color: #000000;">nMajor</span> == <span style="color: #000000;">4</span> .and. ::<span style="color: #000000;">nMinor</span> == <span style="color: #000000;">10</span> .and. ::<span style="color: #000000;">nBuild</span> > &nbsp;<span style="color: #000000;">1998</span> .and. ::<span style="color: #000000;">nBuild</span> <= <span style="color: #000000;">2183</span><br />&nbsp; &nbsp;<span style="color: #00C800;">METHOD</span> IsWin98SE<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">INLINE</span> ::<span style="color: #000000;">nPlatform</span> == <span style="color: #000000;">1</span> .and. ::<span style="color: #000000;">nMajor</span> == <span style="color: #000000;">4</span> .and. ::<span style="color: #000000;">nMinor</span> == <span style="color: #000000;">10</span> .and. ::<span style="color: #000000;">nBuild</span> > &nbsp;<span style="color: #000000;">2183</span><br />&nbsp; &nbsp;<span style="color: #00C800;">METHOD</span> IsWinME<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">INLINE</span> ::<span style="color: #000000;">nPlatform</span> == <span style="color: #000000;">1</span> .and. ::<span style="color: #000000;">nMajor</span> == <span style="color: #000000;">4</span> .and. ::<span style="color: #000000;">nMinor</span> == <span style="color: #000000;">90</span> .and. ::<span style="color: #000000;">nBuild</span> > &nbsp;<span style="color: #000000;">2183</span><br />&nbsp; &nbsp;<span style="color: #00C800;">METHOD</span> IsWinNT31<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">INLINE</span> ::<span style="color: #000000;">nPlatform</span> == <span style="color: #000000;">2</span> .and. ::<span style="color: #000000;">nMajor</span> == <span style="color: #000000;">3</span> .and. ::<span style="color: #000000;">nMinor</span> == <span style="color: #000000;">10</span><br />&nbsp; &nbsp;<span style="color: #00C800;">METHOD</span> IsWinNT35<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">INLINE</span> ::<span style="color: #000000;">nPlatform</span> == <span style="color: #000000;">2</span> .and. ::<span style="color: #000000;">nMajor</span> == <span style="color: #000000;">3</span> .and. ::<span style="color: #000000;">nMinor</span> == <span style="color: #000000;">50</span><br />&nbsp; &nbsp;<span style="color: #00C800;">METHOD</span> IsWinNT351<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">INLINE</span> ::<span style="color: #000000;">nPlatform</span> == <span style="color: #000000;">2</span> .and. ::<span style="color: #000000;">nMajor</span> == <span style="color: #000000;">3</span> .and. ::<span style="color: #000000;">nMinor</span> == <span style="color: #000000;">51</span><br />&nbsp; &nbsp;<span style="color: #00C800;">METHOD</span> IsWinNT4<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">INLINE</span> ::<span style="color: #000000;">nPlatform</span> == <span style="color: #000000;">2</span> .and. ::<span style="color: #000000;">nMajor</span> == <span style="color: #000000;">4</span><br />&nbsp; &nbsp;<span style="color: #00C800;">METHOD</span> IsWin2000<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">INLINE</span> ::<span style="color: #000000;">nPlatform</span> == <span style="color: #000000;">2</span> .and. ::<span style="color: #000000;">nMajor</span> == <span style="color: #000000;">5</span> .and. ::<span style="color: #000000;">nMinor</span> == <span style="color: #000000;">0</span><br />&nbsp; &nbsp;<span style="color: #00C800;">METHOD</span> IsWinXP<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">INLINE</span> ::<span style="color: #000000;">nPlatform</span> == <span style="color: #000000;">2</span> .and. ::<span style="color: #000000;">nMajor</span> == <span style="color: #000000;">5</span> .and. ::<span style="color: #000000;">nMinor</span> == <span style="color: #000000;">1</span><br />&nbsp; &nbsp;<span style="color: #00C800;">METHOD</span> IsWin2003Server<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> &nbsp;<span style="color: #00C800;">INLINE</span> ::<span style="color: #000000;">nPlatform</span> == <span style="color: #000000;">2</span> .and. ::<span style="color: #000000;">nMajor</span> == <span style="color: #000000;">5</span> .and. ::<span style="color: #000000;">nMinor</span> == <span style="color: #000000;">2</span><br />&nbsp; &nbsp;<span style="color: #00C800;">METHOD</span> ServicePack<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">INLINE</span> <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">nPlatform</span> > <span style="color: #000000;">1</span>, <span style="color: #ff0000;">"Service Pack "</span> + LTrim<span style="color: #000000;">&#40;</span> Str<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">wSerPackM</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>, <span style="color: #ff0000;">""</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">METHOD</span> IsNTPreWin2K<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> &nbsp; &nbsp; <span style="color: #00C800;">INLINE</span> ::<span style="color: #000000;">nPlatform</span> == <span style="color: #000000;">2</span> .and. ::<span style="color: #000000;">nMajor</span> <= <span style="color: #000000;">4</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">METHOD</span> IsNTWorkstation<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> &nbsp;<span style="color: #00C800;">INLINE</span> ::<span style="color: #000000;">IsNTPreWin2K</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> .and. Upper<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">WhichNT</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> == <span style="color: #ff0000;">"WINNT"</span><br />&nbsp; &nbsp;<span style="color: #00C800;">METHOD</span> IsNTServer<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">INLINE</span> ::<span style="color: #000000;">IsNTPreWin2K</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> .and. Upper<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">WhichNT</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> == <span style="color: #ff0000;">"SERVERNT"</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">METHOD</span> IsWin2000Prof<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> &nbsp; &nbsp;<span style="color: #00C800;">INLINE</span> ::<span style="color: #000000;">IsWin2000</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> .and. Upper<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">WhichNT</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> == <span style="color: #ff0000;">"WINNT"</span><br />&nbsp; &nbsp;<span style="color: #00C800;">METHOD</span> IsWin2000Server<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> &nbsp;<span style="color: #00C800;">INLINE</span> ::<span style="color: #000000;">IsWin2000</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> .and. <span style="color: #000000;">&#40;</span> Upper<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">WhichNT</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> == <span style="color: #ff0000;">"SERVERNT"</span> .or. Upper<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">WhichNT</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> == <span style="color: #ff0000;">"LANMANNT"</span> <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">ENDCLASS</span><br /><br /><span style="color: #B900B9;">//--------------------------------------------------------------------</span><br /><br /><span style="color: #00C800;">METHOD</span> <span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> lTest, lMsg <span style="color: #000000;">&#41;</span> <span style="color: #00C800;">Class</span> TSystemInfo<br /><span style="color: #00C800;">Local</span> cBuffer, sInfo, lWinNT := IsWinNT<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">Default</span> lTest := .F., lMsg := .T.<br /><br />::<span style="color: #000000;">TSIVersion</span> := <span style="color: #ff0000;">"1.06"</span><br />::<span style="color: #000000;">IPInfo</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />Struct sInfo<br />&nbsp; &nbsp;Member nLOsVer &nbsp; &nbsp;As DWORD &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// Size of the structure</span><br />&nbsp; &nbsp;Member nLMajor &nbsp; &nbsp;As DWORD &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// Major windows Version</span><br />&nbsp; &nbsp;Member nLMinor &nbsp; &nbsp;As DWORD &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// Minor Windows Version</span><br />&nbsp; &nbsp;Member nLBuild &nbsp; &nbsp;As DWORD &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// Build Number</span><br />&nbsp; &nbsp;Member nLPlatform As DWORD &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// Wich Platform</span><br />&nbsp; &nbsp;Member cLSP &nbsp; &nbsp; &nbsp; As STRING LEN <span style="color: #000000;">128</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// Service Pack (Nt/2000)</span><br />&nbsp; &nbsp;<span style="color: #00C800;">If</span> lWinNT<br />&nbsp; &nbsp; &nbsp; Member wLSerPackM As WORD<br />&nbsp; &nbsp; &nbsp; Member wLSerPacki As WORD<br />&nbsp; &nbsp; &nbsp; Member wLSteMask &nbsp;As WORD<br />&nbsp; &nbsp; &nbsp; Member wLProdType As BYTE<br />&nbsp; &nbsp; &nbsp; Member wLRes &nbsp; &nbsp; &nbsp;As BYTE<br />&nbsp; &nbsp;<span style="color: #00C800;">Endif</span><br />EndStruct<br /><br />sInfo:<span style="color: #000000;">SetMember</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>, sInfo:<span style="color: #000000;">sizeOf</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />cBuffer := sInfo:<span style="color: #000000;">cBuffer</span><br /><br /><span style="color: #00C800;">If</span> GetVerExA<span style="color: #000000;">&#40;</span> @cBuffer <span style="color: #000000;">&#41;</span> <> <span style="color: #000000;">1</span> .and. lMsg<br />&nbsp; &nbsp;<span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Error on calling GetVersionExA()"</span> <span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">Endif</span><br /><br />sInfo:<span style="color: #000000;">cBuffer</span> := cBuffer<br /><br />::<span style="color: #000000;">nOSVer</span> &nbsp; &nbsp;:= nLoWord<span style="color: #000000;">&#40;</span> sInfo:<span style="color: #000000;">nLOSVer</span> <span style="color: #000000;">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// this is struct length, not OS version</span><br />::<span style="color: #000000;">nMajor</span> &nbsp; &nbsp;:= nLoWord<span style="color: #000000;">&#40;</span> sInfo:<span style="color: #000000;">nLMajor</span> <span style="color: #000000;">&#41;</span><br />::<span style="color: #000000;">nMinor</span> &nbsp; &nbsp;:= nLoWord<span style="color: #000000;">&#40;</span> sInfo:<span style="color: #000000;">nLMinor</span> <span style="color: #000000;">&#41;</span><br />::<span style="color: #000000;">nBuild</span> &nbsp; &nbsp;:= nLoWord<span style="color: #000000;">&#40;</span> sInfo:<span style="color: #000000;">nLBuild</span> <span style="color: #000000;">&#41;</span><br />::<span style="color: #000000;">nPlatform</span> := nLoWord<span style="color: #000000;">&#40;</span> sInfo:<span style="color: #000000;">nLPlatform</span> <span style="color: #000000;">&#41;</span><br />::<span style="color: #000000;">cSP</span> &nbsp; &nbsp; &nbsp; := AllTrim<span style="color: #000000;">&#40;</span> psz<span style="color: #000000;">&#40;</span> sInfo:<span style="color: #000000;">cLSP</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">if</span> lWinNT<br />&nbsp; &nbsp;::<span style="color: #000000;">wSerPackM</span> := nLoWord<span style="color: #000000;">&#40;</span> sInfo:<span style="color: #000000;">wLSerPackM</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;::<span style="color: #000000;">wSerPacki</span> := nLoWord<span style="color: #000000;">&#40;</span> sInfo:<span style="color: #000000;">wLSerPacki</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;::<span style="color: #000000;">wSteMask</span> &nbsp;:= nLoWord<span style="color: #000000;">&#40;</span> sInfo:<span style="color: #000000;">wLSteMask</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;::<span style="color: #000000;">wProdType</span> := sInfo:<span style="color: #000000;">wLProdType</span><br />&nbsp; &nbsp;::<span style="color: #000000;">wRes</span> &nbsp; &nbsp; &nbsp;:= sInfo:<span style="color: #000000;">wLRes</span><br /><span style="color: #00C800;">Else</span><br />&nbsp; &nbsp;::<span style="color: #000000;">wSerPackM</span> := <span style="color: #000000;">0</span><br />&nbsp; &nbsp;::<span style="color: #000000;">wSerPacki</span> := <span style="color: #000000;">0</span><br />&nbsp; &nbsp;::<span style="color: #000000;">wSteMask</span> &nbsp;:= <span style="color: #000000;">0</span><br />&nbsp; &nbsp;::<span style="color: #000000;">wProdType</span> := <span style="color: #000000;">0</span><br />&nbsp; &nbsp;::<span style="color: #000000;">wRes</span> &nbsp; &nbsp; &nbsp;:= <span style="color: #000000;">0</span><br /><span style="color: #00C800;">Endif</span><br /><br /><span style="color: #00C800;">If</span> lTest<br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"nMajor = "</span> &nbsp; &nbsp;+ LTrim<span style="color: #000000;">&#40;</span> Str<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">nMajor</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> &nbsp; &nbsp;+ CRLF + ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"nMinor = "</span> &nbsp; &nbsp;+ LTrim<span style="color: #000000;">&#40;</span> Str<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">nMinor</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> &nbsp; &nbsp;+ CRLF + ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"nBuild = "</span> &nbsp; &nbsp;+ LTrim<span style="color: #000000;">&#40;</span> Str<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">nBuild</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> &nbsp; &nbsp;+ CRLF + ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"cSP = "</span> &nbsp; &nbsp; &nbsp; + ::<span style="color: #000000;">cSP</span> + CRLF + ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"sPlatform = "</span> + LTrim<span style="color: #000000;">&#40;</span> Str<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">nPlatform</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> + ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">nPlatform</span> > <span style="color: #000000;">1</span>, CRLF + ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #ff0000;">"wSerPackM = "</span> + LTrim<span style="color: #000000;">&#40;</span> Str<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">wSerPackM</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> + CRLF + ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #ff0000;">"wSerPacki = "</span> + LTrim<span style="color: #000000;">&#40;</span> Str<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">wSerPacki</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> + CRLF + ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #ff0000;">"wSteMask = "</span> &nbsp;+ LTrim<span style="color: #000000;">&#40;</span> Str<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">wSteMask</span> &nbsp;<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> + CRLF + ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #ff0000;">"wProdType = "</span> + LTrim<span style="color: #000000;">&#40;</span> Str<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">wProdType</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> + CRLF + ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #ff0000;">"wRes = "</span> &nbsp; &nbsp; &nbsp;+ LTrim<span style="color: #000000;">&#40;</span> Str<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">wRes</span> &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>, <span style="color: #ff0000;">""</span> <span style="color: #000000;">&#41;</span>, <span style="color: #ff0000;">"System Information"</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;">Self</span><br /><br /><span style="color: #B900B9;">//--------------------------------------------------------------------</span><br /><br /><span style="color: #00C800;">METHOD</span> WinVer<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #00C800;">Class</span> TSystemInfo<br /><span style="color: #00C800;">Local</span> cVersion := <span style="color: #ff0000;">""</span><br /><br /><span style="color: #00C800;">Do</span> <span style="color: #00C800;">Case</span><br />&nbsp; &nbsp;<span style="color: #00C800;">Case</span> ::<span style="color: #000000;">IsWinXP</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> &nbsp; &nbsp; &nbsp;; cVersion := <span style="color: #ff0000;">"Windows XP"</span><br />&nbsp; &nbsp;<span style="color: #00C800;">Otherwise</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; cVersion := <span style="color: #ff0000;">"Windows 7 o Superior"</span><br /><span style="color: #00C800;">EndCase</span><br /><br /><span style="color: #00C800;">Return</span> cVersion<br /><br /><span style="color: #B900B9;">//--------------------------------------------------------------------</span><br /><br /><span style="color: #00C800;">METHOD</span> WhichNT<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #00C800;">Class</span> TSystemInfo<br /><span style="color: #00C800;">Local</span> oReg, uVar<br /><br /><span style="color: #00C800;">If</span> ::<span style="color: #000000;">nPlatform</span> < <span style="color: #000000;">2</span><br />&nbsp; &nbsp;uVar := <span style="color: #ff0000;">""</span><br /><span style="color: #00C800;">Else</span><br />&nbsp; &nbsp;oReg := TReg32<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> HKEY_LOCAL_MACHINE, <span style="color: #ff0000;">"System<span style="color: #000000;">\C</span>urrentControlSet<span style="color: #000000;">\C</span>ontrol<span style="color: #000000;">\P</span>roductOptions"</span>, .f. <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;uVar := oReg:<span style="color: #0000ff;">Get</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"ProductType"</span>, <span style="color: #ff0000;">""</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oReg:<span style="color: #000000;">Close</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;">Return</span> uVar<br /><br /><span style="color: #B900B9;">//--------------------------------------------------------------------</span><br /><br /><span style="color: #00C800;">METHOD</span> DateSystemBios<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #00C800;">Class</span> TSystemInfo<br /><span style="color: #00C800;">Local</span> oReg, uVar<br /><br />oReg := TReg32<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> HKEY_LOCAL_MACHINE, <span style="color: #ff0000;">"HARDWARE<span style="color: #000000;">\D</span>ESCRIPTION<span style="color: #000000;">\S</span>ystem"</span>, .f. <span style="color: #000000;">&#41;</span><br />uVar := oReg:<span style="color: #0000ff;">Get</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"SystemBIOSDate"</span>, <span style="color: #ff0000;">""</span> <span style="color: #000000;">&#41;</span><br />oReg:<span style="color: #000000;">Close</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">If</span> Empty<span style="color: #000000;">&#40;</span> uVar <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oReg := TReg32<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> HKEY_LOCAL_MACHINE, <span style="color: #ff0000;">"Enum<span style="color: #000000;">\R</span>oot<span style="color: #000000;">\*</span>PNP0C01<span style="color: #000000;">\0</span>000"</span>, .f. <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;uVar := oReg:<span style="color: #0000ff;">Get</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"BIOSDate"</span>, <span style="color: #ff0000;">""</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oReg:<span style="color: #000000;">Close</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;">Return</span> uVar<br /><br /><span style="color: #B900B9;">//--------------------------------------------------------------------</span><br /><br /><span style="color: #00C800;">METHOD</span> NameSystemBios<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #00C800;">Class</span> TSystemInfo<br /><span style="color: #00C800;">Local</span> oReg, uVar<br /><br />oReg := TReg32<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> HKEY_LOCAL_MACHINE, <span style="color: #ff0000;">"HARDWARE<span style="color: #000000;">\D</span>ESCRIPTION<span style="color: #000000;">\S</span>ystem"</span>, .f. <span style="color: #000000;">&#41;</span><br />uVar := RTrim<span style="color: #000000;">&#40;</span> Remove0<span style="color: #000000;">&#40;</span> oReg:<span style="color: #0000ff;">Get</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"SystemBIOSVersion"</span>, <span style="color: #ff0000;">""</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />oReg:<span style="color: #000000;">Close</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">If</span> Empty<span style="color: #000000;">&#40;</span> uVar <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oReg := TReg32<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> HKEY_LOCAL_MACHINE, <span style="color: #ff0000;">"Enum<span style="color: #000000;">\R</span>oot<span style="color: #000000;">\*</span>PNP0C01<span style="color: #000000;">\0</span>000"</span>, .f. <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;uVar := AllTrim<span style="color: #000000;">&#40;</span> Remove0<span style="color: #000000;">&#40;</span> oReg:<span style="color: #0000ff;">Get</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"BIOSName"</span>, <span style="color: #ff0000;">""</span> <span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">" "</span> + oReg:<span style="color: #0000ff;">Get</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"BIOSVersion"</span>, <span style="color: #ff0000;">""</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oReg:<span style="color: #000000;">Close</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;">Return</span> uVar<br /><br /><span style="color: #B900B9;">//--------------------------------------------------------------------</span><br /><br /><span style="color: #00C800;">METHOD</span> DateVideoBios<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #00C800;">Class</span> TSystemInfo<br /><span style="color: #00C800;">Local</span> oReg, uVar<br /><br />oReg := TReg32<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> HKEY_LOCAL_MACHINE, <span style="color: #ff0000;">"HARDWARE<span style="color: #000000;">\D</span>ESCRIPTION<span style="color: #000000;">\S</span>ystem"</span>, .f. <span style="color: #000000;">&#41;</span><br />uVar := RTrim<span style="color: #000000;">&#40;</span> oReg:<span style="color: #0000ff;">Get</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"VideoBiosdate"</span>, <span style="color: #ff0000;">""</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />oReg:<span style="color: #000000;">Close</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">Return</span> uVar<br /><br /><span style="color: #B900B9;">//--------------------------------------------------------------------</span><br /><br /><span style="color: #00C800;">METHOD</span> NameVideoBios<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #00C800;">Class</span> TSystemInfo<br /><span style="color: #00C800;">Local</span> oReg, uVar<br /><br />oReg := TReg32<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> HKEY_LOCAL_MACHINE, <span style="color: #ff0000;">"HARDWARE<span style="color: #000000;">\D</span>ESCRIPTION<span style="color: #000000;">\S</span>ystem"</span>, .f. <span style="color: #000000;">&#41;</span><br />uVar := RTrim<span style="color: #000000;">&#40;</span> Remove0<span style="color: #000000;">&#40;</span> oReg:<span style="color: #0000ff;">Get</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"VideoBiosVersion"</span>, <span style="color: #ff0000;">""</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />oReg:<span style="color: #000000;">Close</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">Return</span> uVar<br /><br /><span style="color: #B900B9;">//--------------------------------------------------------------------</span><br /><br /><span style="color: #00C800;">METHOD</span> Computername<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #00C800;">Class</span> TSystemInfo<br /><span style="color: #00C800;">Local</span> oReg, uVar<br /><br />oReg := TReg32<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> HKEY_LOCAL_MACHINE, <span style="color: #ff0000;">"SYSTEM<span style="color: #000000;">\C</span>urrentControlSet<span style="color: #000000;">\C</span>ontrol<span style="color: #000000;">\C</span>omputerName<span style="color: #000000;">\C</span>omputerName"</span>, .f. <span style="color: #000000;">&#41;</span><br />uVar := oReg:<span style="color: #0000ff;">Get</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Computername"</span>, <span style="color: #ff0000;">""</span> <span style="color: #000000;">&#41;</span><br />oReg:<span style="color: #000000;">Close</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">Return</span> uVar<br /><br /><span style="color: #B900B9;">//--------------------------------------------------------------------</span><br /><br /><span style="color: #00C800;">METHOD</span> TimeZone<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #00C800;">Class</span> TSystemInfo<br /><span style="color: #00C800;">Local</span> oReg, uVar<br /><br />oReg := TReg32<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> HKEY_LOCAL_MACHINE, <span style="color: #ff0000;">"SYSTEM<span style="color: #000000;">\C</span>urrentControlSet<span style="color: #000000;">\C</span>ontrol<span style="color: #000000;">\T</span>imeZoneInformation"</span>, .f. <span style="color: #000000;">&#41;</span><br />uVar := oReg:<span style="color: #0000ff;">Get</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"StandardName"</span>,<span style="color: #ff0000;">""</span> <span style="color: #000000;">&#41;</span><br />oReg:<span style="color: #000000;">Close</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">Return</span> uVar<br /><br /><span style="color: #B900B9;">//--------------------------------------------------------------------</span><br /><br /><span style="color: #00C800;">METHOD</span> IEStartPage<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #00C800;">Class</span> TSystemInfo<br /><span style="color: #00C800;">LOCAL</span> oReg, uVar<br /><br />oReg := TReg32<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> HKEY_CURRENT_USER, <span style="color: #ff0000;">"Software<span style="color: #000000;">\M</span>icrosoft<span style="color: #000000;">\I</span>nternet Explorer<span style="color: #000000;">\M</span>ain"</span>, .f. <span style="color: #000000;">&#41;</span><br />uVar := oReg:<span style="color: #0000ff;">Get</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Start Page"</span>, <span style="color: #ff0000;">""</span> <span style="color: #000000;">&#41;</span><br />oReg:<span style="color: #000000;">Close</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">Return</span> uVar<br /><br /><span style="color: #B900B9;">//--------------------------------------------------------------------</span><br /><br /><span style="color: #00C800;">METHOD</span> IEVersion<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #00C800;">Class</span> TSystemInfo<br /><span style="color: #00C800;">Local</span> oReg, uVar<br /><br />oReg := TReg32<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> HKEY_LOCAL_MACHINE, <span style="color: #ff0000;">"Software<span style="color: #000000;">\M</span>icrosoft<span style="color: #000000;">\I</span>nternet Explorer"</span>, .f. <span style="color: #000000;">&#41;</span><br />uVar := oReg:<span style="color: #0000ff;">Get</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Version"</span>, <span style="color: #ff0000;">""</span> <span style="color: #000000;">&#41;</span><br />oReg:<span style="color: #000000;">Close</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">Return</span> uVar<br /><br /><span style="color: #B900B9;">//--------------------------------------------------------------------</span><br /><br /><span style="color: #00C800;">METHOD</span> DefBrowser<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #00C800;">Class</span> TSystemInfo<br /><span style="color: #00C800;">Local</span> oReg, cVar<br /><br />oReg := TReg32<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> HKEY_CLASSES_ROOT, <span style="color: #ff0000;">".html"</span>, .f. <span style="color: #000000;">&#41;</span><br />cVar := RTrim<span style="color: #000000;">&#40;</span> Remove0<span style="color: #000000;">&#40;</span> oReg:<span style="color: #0000ff;">Get</span><span style="color: #000000;">&#40;</span> <span style="color: #00C800;">Nil</span>, <span style="color: #ff0000;">""</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// i.e look for (Default) key</span><br />oReg:<span style="color: #000000;">close</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">Return</span> cVar<br /><br /><span style="color: #B900B9;">//--------------------------------------------------------------------</span><br /><br /><span style="color: #00C800;">METHOD</span> DTWallpaper<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #00C800;">Class</span> TSystemInfo &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// DesktopWallpaper</span><br /><span style="color: #00C800;">Local</span> oReg, uVar<br /><br />oReg := TReg32<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> HKEY_CURRENT_USER, <span style="color: #ff0000;">"Software<span style="color: #000000;">\M</span>icrosoft<span style="color: #000000;">\I</span>nternet Explorer<span style="color: #000000;">\D</span>esktop<span style="color: #000000;">\G</span>eneral"</span>, .f. <span style="color: #000000;">&#41;</span><br />uVar := oReg:<span style="color: #0000ff;">Get</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Wallpaper"</span>, <span style="color: #ff0000;">""</span> <span style="color: #000000;">&#41;</span><br />oReg:<span style="color: #000000;">Close</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">Return</span> uVar<br /><br /><span style="color: #B900B9;">//--------------------------------------------------------------------</span><br /><br /><span style="color: #00C800;">METHOD</span> SpeedCPU<span style="color: #000000;">&#40;</span> nCPU <span style="color: #000000;">&#41;</span> <span style="color: #00C800;">Class</span> TSystemInfo<br /><span style="color: #00C800;">Local</span> oReg, uVar<br /><br /><span style="color: #00C800;">If</span> ValType<span style="color: #000000;">&#40;</span> nCPU <span style="color: #000000;">&#41;</span> # <span style="color: #ff0000;">"N"</span><br />&nbsp; &nbsp;nCPU := <span style="color: #000000;">1</span><br /><span style="color: #00C800;">Endif</span><br /><br /><span style="color: #00C800;">If</span> ::<span style="color: #000000;">nPlatform</span> < <span style="color: #000000;">2</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// Win95-98-ME</span><br />&nbsp; &nbsp;uVar := <span style="color: #000000;">0</span><br /><span style="color: #00C800;">Else</span><br />&nbsp; &nbsp;oReg := TReg32<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> HKEY_LOCAL_MACHINE, <span style="color: #ff0000;">"HARDWARE<span style="color: #000000;">\D</span>ESCRIPTION<span style="color: #000000;">\S</span>ystem<span style="color: #000000;">\C</span>entralProcessor<span style="color: #000000;">\"</span> + LTrim( Str( nCPU - 1 ) ), .f. )<br />&nbsp; &nbsp;uVar := oReg:Get( "</span>~MHz<span style="color: #ff0000;">", 0 )<br />&nbsp; &nbsp;oReg:Close()<br />&nbsp; &nbsp;uVar := Round( uVar / 10, 0 ) * 10<br />Endif<br /><br />Return uVar<br /><br />//--------------------------------------------------------------------<br /><br />METHOD CPU( nCPU ) Class TSystemInfo<br />Local oReg, uVar<br /><br />If ValType( nCPU ) # "</span>N<span style="color: #ff0000;">"<br />&nbsp; &nbsp;nCPU := 1<br />Endif<br /><br />If ::nPlatform < 2 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // Win95-98-ME<br />&nbsp; &nbsp;oReg := TReg32():New( HKEY_LOCAL_MACHINE, "</span>Enum\Root\*PNP0C01\<span style="color: #ff0000;">" + StrZero( nCPU - 1, 4 ), .f. )<br />&nbsp; &nbsp;uVar := AllTrim( Remove0( oReg:Get( "</span>CPU<span style="color: #ff0000;">", "</span><span style="color: #ff0000;">" ) ) )<br />&nbsp; &nbsp;oReg:Close()<br />Else<br />&nbsp; &nbsp;oReg := TReg32():New( HKEY_LOCAL_MACHINE, "</span>HARDWARE\DESCRIPTION\System\CentralProcessor\<span style="color: #ff0000;">" + LTrim( Str( nCPU - 1 ) ), .f. )<br />&nbsp; &nbsp;uVar := AllTrim( Remove0( oReg:Get( "</span>ProcessorNameString<span style="color: #ff0000;">", "</span><span style="color: #ff0000;">" ) ) )<br />&nbsp; &nbsp;oReg:Close()<br />Endif<br /><br />If Empty( uVar )<br />&nbsp; &nbsp;uVar := GetCPU()<br />Endif<br /><br />Return uVar<br /><br />//--------------------------------------------------------------------<br />METHOD CPUName(nCPU) CLASS TSystemInfo<br />LOCAL oReg, uVar<br /><br />if ValType(nCPU)#"</span>N<span style="color: #ff0000;">"<br />&nbsp; &nbsp;nCPU:=1<br />endif<br /><br />oReg := TReg32():New(HKEY_LOCAL_MACHINE,"</span>HARDWARE\DESCRIPTION\System\CentralProcessor\<span style="color: #ff0000;">"+LTrim(Str(nCPU-1)),.f.)<br />uVar := AllTrim( Remove0( oReg:Get("</span>ProcessorNameString<span style="color: #ff0000;">","</span><span style="color: #ff0000;">") ) )<br />oReg:Close()<br /><br />RETURN uVar<br /><br />//--------------------------------------------------------------------<br /><br />METHOD CPUVendor( nCPU ) Class TSystemInfo<br />Local oReg, uVar<br /><br />If ValType( nCPU ) # "</span>N<span style="color: #ff0000;">"<br />&nbsp; &nbsp;nCPU := 1<br />Endif<br /><br />oReg := TReg32():New( HKEY_LOCAL_MACHINE, "</span>HARDWARE\DESCRIPTION\System\CentralProcessor\<span style="color: #ff0000;">" + LTrim( Str( nCPU - 1 ) ), .f. )<br />uVar := AllTrim( Remove0( oReg:Get( "</span>VendorIdentifier<span style="color: #ff0000;">", "</span><span style="color: #ff0000;">" ) ) )<br />oReg:Close()<br /><br />Return uVar<br /><br />//--------------------------------------------------------------------<br /><br />METHOD CPUIdentifier( nCPU ) Class TSystemInfo<br />Local oReg, uVar<br /><br />If ValType( nCPU ) # "</span>N<span style="color: #ff0000;">"<br />&nbsp; &nbsp;nCPU := 1<br />Endif<br /><br />oReg := TReg32():New( HKEY_LOCAL_MACHINE, "</span>HARDWARE\DESCRIPTION\System\CentralProcessor\<span style="color: #ff0000;">" + LTrim( Str( nCPU - 1 ) ), .f. )<br />uVar := AllTrim( Remove0( oReg:Get( "</span>Identifier<span style="color: #ff0000;">", "</span><span style="color: #ff0000;">" ) ) )<br />oReg:Close()<br /><br />Return uVar<br /><br />//--------------------------------------------------------------------<br /><br />METHOD DirectXVersion() Class TSystemInfo<br />Local oReg, uVar<br /><br />oReg := TReg32():New( HKEY_LOCAL_MACHINE,"</span>SOFTWARE\Microsoft\DirectX<span style="color: #ff0000;">", .f. )<br />uVar := oReg:Get( "</span>Version<span style="color: #ff0000;">", "</span><span style="color: #ff0000;">" )<br />oReg:Close()<br /><br />Return uVar<br /><br />//--------------------------------------------------------------------<br /><br />METHOD Ass4Ext( cExt ) Class TSystemInfo<br />Local oReg, uVar<br /><br />If ! ValType( cExt ) == "</span>C<span style="color: #ff0000;">"<br />&nbsp; &nbsp;Return "</span><span style="color: #ff0000;">"<br />Endif<br /><br />If ! Left( cExt, 1 ) == "</span>.<span style="color: #ff0000;">"<br />&nbsp; &nbsp;cExt := "</span>.<span style="color: #ff0000;">" + cExt<br />Endif<br /><br />oReg := TReg32():New( HKEY_LOCAL_MACHINE, "</span>SOFTWARE\Microsoft\Windows\CurrentVersion\Extensions<span style="color: #ff0000;">", .f. )<br />uVar := oReg:Get( cExt, "</span><span style="color: #ff0000;">" )<br />oReg:Close()<br /><br />Return SubStr( uVar, 1, Len( uVar ) - ( Len( cExt ) + 2 ) )<br /><br />//--------------------------------------------------------------------<br /><br />METHOD App4Ext( cExt ) Class TSystemInfo<br />Local oReg, cVar1 := "</span><span style="color: #ff0000;">", cVar2 := "</span><span style="color: #ff0000;">", nPos<br /><br />If ! ValType( cExt ) == "</span>C<span style="color: #ff0000;">"<br />&nbsp; &nbsp;Return "</span><span style="color: #ff0000;">"<br />Endif<br /><br />If ! Left( cExt, 1 ) == "</span>.<span style="color: #ff0000;">"<br />&nbsp; &nbsp;cExt := "</span>.<span style="color: #ff0000;">" + cExt<br />Endif<br /><br />oReg := TReg32():New( HKEY_CLASSES_ROOT, cExt, .f. )<br />cVar1 := RTrim( Remove0( oReg:Get( Nil, "</span><span style="color: #ff0000;">" ) ) ) // i.e look for (Default) key<br />oReg:close()<br /><br />If ! Empty( cVar1 )<br />&nbsp; &nbsp;oReg := TReg32():New( HKEY_CLASSES_ROOT, cVar1 + "</span>\shell\open\command<span style="color: #ff0000;">" )<br />&nbsp; &nbsp;cVar2 := RTrim( Remove0( oReg:Get( Nil, "</span><span style="color: #ff0000;">" ) ) ) &nbsp;// i.e look for (Default) key<br />&nbsp; &nbsp;oReg:close()<br /><br />&nbsp; &nbsp;If ( nPos := RAt( "</span> %<span style="color: #000000;">1</span><span style="color: #ff0000;">", cVar2 ) ) > 0 &nbsp; &nbsp; &nbsp; &nbsp;// look for param placeholder without the quotes (ie notepad)<br />&nbsp; &nbsp; &nbsp; cVar2 := SubStr( cVar2, 1, nPos )<br />&nbsp; &nbsp;Elseif ( nPos := RAt( '"</span>%<span style="color: #ff0000;">', cVar2 ) ) > 0 &nbsp; &nbsp; // look for stuff like "%1", "%L", and so forth (ie, with quotes)<br />&nbsp; &nbsp; &nbsp; cVar2 := SubStr( cVar2, 1, nPos - 1 )<br />&nbsp; &nbsp;Endif<br />Endif<br /><br />Return RTrim( cVar2 )<br /><br />//--------------------------------------------------------------------<br /><br />METHOD Icon4Ext( cExt ) Class TSystemInfo<br />Local oReg, cVar1 := "", cVar2 := ""<br /><br />If ! ValType( cExt ) == "C"<br />&nbsp; &nbsp;Return ""<br />Endif<br /><br />If ! Left( cExt, 1 ) == "."<br />&nbsp; &nbsp;cExt := "." + cExt<br />Endif<br /><br />oReg := TReg32():New( HKEY_CLASSES_ROOT, cExt, .f. &nbsp;)<br />cVar1 := RTrim( Remove0( oReg:Get( Nil, "" ) ) ) &nbsp;// i.e look for (Default) key<br />oReg:close()<br /><br />If ! Empty( cVar1 )<br />&nbsp; &nbsp;oReg := TReg32():New( HKEY_CLASSES_ROOT, cVar1 + "<span style="color: #000000;">\D</span>efaultIcon" )<br />&nbsp; &nbsp;cVar2 := RTrim( Remove0( oReg:Get( Nil, "" ) ) ) &nbsp; // i.e look for (Default) key<br />&nbsp; &nbsp;oReg:close()<br />&nbsp; &nbsp;// the value after the comma in cVar2 is the position of the icon inside that file (.exe, .dll or whatever)<br />Endif<br /><br />Return cVar2<br /><br />//--------------------------------------------------------------------<br /><br />METHOD BootDir() Class TSystemInfo<br />Local oReg, uVar<br /><br />oReg := TReg32():New( HKEY_LOCAL_MACHINE, "SOFTWARE<span style="color: #000000;">\M</span>icrosoft<span style="color: #000000;">\W</span>indows<span style="color: #000000;">\C</span>urrentVersion<span style="color: #000000;">\S</span>etup", .f. )<br />uVar := oReg:Get( "BootDir", "" )<br />oReg:Close()<br /><br />Return uVar<br /><br />//--------------------------------------------------------------------<br /><br />METHOD ModemName() Class TSystemInfo<br />Local oReg, uVar<br /><br />oReg := TReg32():New( HKEY_LOCAL_MACHINE, "SYSTEM<span style="color: #000000;">\C</span>urrentControlSet<span style="color: #000000;">\C</span>ontrol<span style="color: #000000;">\C</span>lass<span style="color: #000000;">\{</span>4D36E96D-E325-11CE-BFC1-08002BE10318}<span style="color: #000000;">\0</span>000", .f. )<br />uVar := RTrim( Remove0( oReg:Get( "DriverDesc", "" ) ) )<br />oReg:Close()<br /><br />If Empty( uVar ) &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // Win95-98-ME doesn'</span>t have the above key<br />&nbsp; &nbsp;oReg := TReg32<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> HKEY_LOCAL_MACHINE, <span style="color: #ff0000;">"System<span style="color: #000000;">\C</span>urrentControlSet<span style="color: #000000;">\S</span>ervices<span style="color: #000000;">\C</span>lass<span style="color: #000000;">\M</span>odem<span style="color: #000000;">\0</span>000"</span>, .f. <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;uVar := RTrim<span style="color: #000000;">&#40;</span> Remove0<span style="color: #000000;">&#40;</span> oReg:<span style="color: #0000ff;">Get</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"DriverDesc"</span>, <span style="color: #ff0000;">""</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oReg:<span style="color: #000000;">Close</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;">Return</span> uVar<br /><br /><span style="color: #B900B9;">//--------------------------------------------------------------------</span><br /><br /><span style="color: #00C800;">METHOD</span> ModemVersion<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #00C800;">Class</span> TSystemInfo<br /><span style="color: #00C800;">Local</span> oReg, uVar<br /><br />oReg := TReg32<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> HKEY_LOCAL_MACHINE, <span style="color: #ff0000;">"SYSTEM<span style="color: #000000;">\C</span>urrentControlSet<span style="color: #000000;">\C</span>ontrol<span style="color: #000000;">\C</span>lass<span style="color: #000000;">\{</span>4D36E96D-E325-11CE-BFC1-08002BE10318}<span style="color: #000000;">\0</span>000"</span>, .f. <span style="color: #000000;">&#41;</span><br />uVar := RTrim<span style="color: #000000;">&#40;</span> Remove0<span style="color: #000000;">&#40;</span> oReg:<span style="color: #0000ff;">Get</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"DriverVersion"</span>, <span style="color: #ff0000;">""</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />oReg:<span style="color: #000000;">Close</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">If</span> Empty<span style="color: #000000;">&#40;</span> uVar <span style="color: #000000;">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// Win95-98-ME doesn't have the above key</span><br />&nbsp; &nbsp;oReg := TReg32<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> HKEY_LOCAL_MACHINE, <span style="color: #ff0000;">"System<span style="color: #000000;">\C</span>urrentControlSet<span style="color: #000000;">\S</span>ervices<span style="color: #000000;">\C</span>lass<span style="color: #000000;">\M</span>odem<span style="color: #000000;">\0</span>000"</span>, .f. <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;uVar := RTrim<span style="color: #000000;">&#40;</span> Remove0<span style="color: #000000;">&#40;</span> oReg:<span style="color: #0000ff;">Get</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"DriverVersion"</span>, <span style="color: #ff0000;">""</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oReg:<span style="color: #000000;">Close</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;">Return</span> uVar<br /><br /><span style="color: #B900B9;">//--------------------------------------------------------------------</span><br /><br /><span style="color: #00C800;">METHOD</span> ModemPort<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #00C800;">Class</span> TSystemInfo<br /><span style="color: #00C800;">Local</span> oReg, uVar<br /><br />oReg := TReg32<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> HKEY_LOCAL_MACHINE, <span style="color: #ff0000;">"SYSTEM<span style="color: #000000;">\C</span>urrentControlSet<span style="color: #000000;">\C</span>ontrol<span style="color: #000000;">\C</span>lass<span style="color: #000000;">\{</span>4D36E96D-E325-11CE-BFC1-08002BE10318}<span style="color: #000000;">\0</span>000"</span>, .f. <span style="color: #000000;">&#41;</span><br />uVar := RTrim<span style="color: #000000;">&#40;</span> Remove0<span style="color: #000000;">&#40;</span> oReg:<span style="color: #0000ff;">Get</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"AttachedTo"</span>, <span style="color: #ff0000;">""</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />oReg:<span style="color: #000000;">Close</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">If</span> Empty<span style="color: #000000;">&#40;</span> uVar <span style="color: #000000;">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// Win95-98-ME doesn't have the above key</span><br />&nbsp; &nbsp;oReg := TReg32<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> HKEY_LOCAL_MACHINE, <span style="color: #ff0000;">"System<span style="color: #000000;">\C</span>urrentControlSet<span style="color: #000000;">\S</span>ervices<span style="color: #000000;">\C</span>lass<span style="color: #000000;">\M</span>odem<span style="color: #000000;">\0</span>000"</span>, .f. <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;uVar := RTrim<span style="color: #000000;">&#40;</span> Remove0<span style="color: #000000;">&#40;</span> oReg:<span style="color: #0000ff;">Get</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"AttachedTo"</span>, <span style="color: #ff0000;">""</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oReg:<span style="color: #000000;">Close</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;">Return</span> uVar<br /><br /><span style="color: #B900B9;">//--------------------------------------------------------------------</span><br /><br /><span style="color: #00C800;">METHOD</span> MonitorName<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #00C800;">Class</span> TSystemInfo<br /><span style="color: #00C800;">Local</span> oReg, uVar<br /><br />oReg := TReg32<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> HKEY_LOCAL_MACHINE, <span style="color: #ff0000;">"SYSTEM<span style="color: #000000;">\C</span>urrentControlSet<span style="color: #000000;">\C</span>ontrol<span style="color: #000000;">\C</span>lass<span style="color: #000000;">\{</span>4D36E96E-E325-11CE-BFC1-08002BE10318}<span style="color: #000000;">\0</span>000"</span>, .f. <span style="color: #000000;">&#41;</span><br />uVar := RTrim<span style="color: #000000;">&#40;</span> Remove0<span style="color: #000000;">&#40;</span> oReg:<span style="color: #0000ff;">Get</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"DriverDesc"</span>, <span style="color: #ff0000;">""</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />oReg:<span style="color: #000000;">Close</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">If</span> Empty<span style="color: #000000;">&#40;</span> uVar <span style="color: #000000;">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// Win95-98-ME doesn't have the above key</span><br />&nbsp; &nbsp;oReg := TReg32<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> HKEY_LOCAL_MACHINE, <span style="color: #ff0000;">"System<span style="color: #000000;">\C</span>urrentControlSet<span style="color: #000000;">\S</span>ervices<span style="color: #000000;">\C</span>lass<span style="color: #000000;">\M</span>onitor<span style="color: #000000;">\0</span>000"</span>, .f. <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;uVar := RTrim<span style="color: #000000;">&#40;</span> Remove0<span style="color: #000000;">&#40;</span> oReg:<span style="color: #0000ff;">Get</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"DriverDesc"</span>, <span style="color: #ff0000;">""</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oReg:<span style="color: #000000;">Close</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;">Return</span> uVar<br /><br /><span style="color: #B900B9;">//--------------------------------------------------------------------</span><br /><br /><span style="color: #00C800;">METHOD</span> MouseName<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #00C800;">Class</span> TSystemInfo<br /><span style="color: #00C800;">Local</span> oReg, uVar<br /><br />oReg := TReg32<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> HKEY_LOCAL_MACHINE, <span style="color: #ff0000;">"SYSTEM<span style="color: #000000;">\C</span>urrentControlSet<span style="color: #000000;">\C</span>ontrol<span style="color: #000000;">\C</span>lass<span style="color: #000000;">\{</span>4D36E96F-E325-11CE-BFC1-08002BE10318}<span style="color: #000000;">\0</span>000"</span>, .f. <span style="color: #000000;">&#41;</span><br />uVar := RTrim<span style="color: #000000;">&#40;</span> Remove0<span style="color: #000000;">&#40;</span> oReg:<span style="color: #0000ff;">Get</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"DriverDesc"</span>, <span style="color: #ff0000;">""</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />oReg:<span style="color: #000000;">Close</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">If</span> Empty<span style="color: #000000;">&#40;</span> uVar <span style="color: #000000;">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// Win95-98-ME doesn't have the above key</span><br />&nbsp; &nbsp;oReg := TReg32<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> HKEY_LOCAL_MACHINE, <span style="color: #ff0000;">"System<span style="color: #000000;">\C</span>urrentControlSet<span style="color: #000000;">\S</span>ervices<span style="color: #000000;">\C</span>lass<span style="color: #000000;">\M</span>ouse<span style="color: #000000;">\0</span>000"</span>, .f. <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;uVar := RTrim<span style="color: #000000;">&#40;</span> Remove0<span style="color: #000000;">&#40;</span> oReg:<span style="color: #0000ff;">Get</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"DriverDesc"</span>, <span style="color: #ff0000;">""</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oReg:<span style="color: #000000;">Close</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;">Return</span> uVar<br /><br /><span style="color: #B900B9;">//--------------------------------------------------------------------</span><br /><br /><span style="color: #00C800;">METHOD</span> MouseVersion<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #00C800;">Class</span> TSystemInfo<br /><span style="color: #00C800;">Local</span> oReg, uVar<br /><br />oReg := TReg32<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> HKEY_LOCAL_MACHINE, <span style="color: #ff0000;">"SYSTEM<span style="color: #000000;">\C</span>urrentControlSet<span style="color: #000000;">\C</span>ontrol<span style="color: #000000;">\C</span>lass<span style="color: #000000;">\{</span>4D36E96F-E325-11CE-BFC1-08002BE10318}<span style="color: #000000;">\0</span>000"</span>, .f. <span style="color: #000000;">&#41;</span><br />uVar := RTrim<span style="color: #000000;">&#40;</span> Remove0<span style="color: #000000;">&#40;</span> oReg:<span style="color: #0000ff;">Get</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"DriverVersion"</span>, <span style="color: #ff0000;">""</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />oReg:<span style="color: #000000;">Close</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">If</span> Empty<span style="color: #000000;">&#40;</span> uVar <span style="color: #000000;">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// Win95-98-ME doesn't have the above key</span><br />&nbsp; &nbsp;oReg := TReg32<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> HKEY_LOCAL_MACHINE, <span style="color: #ff0000;">"System<span style="color: #000000;">\C</span>urrentControlSet<span style="color: #000000;">\S</span>ervices<span style="color: #000000;">\C</span>lass<span style="color: #000000;">\M</span>ouse<span style="color: #000000;">\0</span>000"</span>, .f. <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;uVar := RTrim<span style="color: #000000;">&#40;</span> Remove0<span style="color: #000000;">&#40;</span> oReg:<span style="color: #0000ff;">Get</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"DriverVersion"</span>, <span style="color: #ff0000;">""</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oReg:<span style="color: #000000;">Close</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;">Return</span> uVar<br /><br /><span style="color: #B900B9;">//--------------------------------------------------------------------</span><br /><br /><span style="color: #00C800;">METHOD</span> IPInfo<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #00C800;">Class</span> TSystemInfo<br /><span style="color: #00C800;">Local</span> lSuccess<br /><br /><span style="color: #00C800;">If</span> lSuccess := WSAStartUp<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> == <span style="color: #000000;">0</span><br />&nbsp; &nbsp;::<span style="color: #000000;">cSName</span> := GetHostName<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// usually the same as ::ComputerName(), but in original case (lower case most likely)</span><br />&nbsp; &nbsp;::<span style="color: #000000;">cIP</span> &nbsp; &nbsp;:= GetHostByName<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">cSName</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;::<span style="color: #000000;">cLName</span> := GetHostByAddress<span style="color: #000000;">&#40;</span> AllTrim<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">cIP</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;WSACleanUp<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">Else</span><br />&nbsp; &nbsp;::<span style="color: #000000;">cIP</span> &nbsp; &nbsp;:= <span style="color: #ff0000;">"0.0.0.0"</span><br />&nbsp; &nbsp;::<span style="color: #000000;">cSName</span> := <span style="color: #ff0000;">""</span><br />&nbsp; &nbsp;::<span style="color: #000000;">cLName</span> := <span style="color: #ff0000;">""</span><br /><span style="color: #00C800;">Endif</span><br /><br /><span style="color: #00C800;">Return</span> lSuccess<br /><br /><span style="color: #B900B9;">//--------------------------------------------------------------------</span><br /><br />#ifndef __HARBOUR__<br />&nbsp; &nbsp;DLL32 <span style="color: #00C800;">Static</span> <span style="color: #00C800;">Function</span> MemStat<span style="color: #000000;">&#40;</span> pMEMORY As LPSTR <span style="color: #000000;">&#41;</span> As VOID PASCAL <span style="color: #0000ff;">From</span> <span style="color: #ff0000;">"GlobalMemoryStatus"</span> Lib <span style="color: #ff0000;">"KERNEL32.DLL"</span><br />#endif<br /><br /><span style="color: #B900B9;">//--------------------------------------------------------------------</span><br /><br /><span style="color: #00C800;">Method</span> GetColors<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #00C800;">Class</span> TSystemInfo<br /><span style="color: #00C800;">Local</span> hDC, nPlanes, nBitsPixel<br /><br />hDC &nbsp; &nbsp; &nbsp; &nbsp;:= CreateDC<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"DISPLAY"</span>, <span style="color: #ff0000;">""</span>, <span style="color: #ff0000;">""</span> <span style="color: #000000;">&#41;</span><br />nPlanes &nbsp; &nbsp;:= GetDeviceCaps<span style="color: #000000;">&#40;</span> hDC, <span style="color: #000000;">14</span> <span style="color: #000000;">&#41;</span><br />nBitsPixel := GetDeviceCaps<span style="color: #000000;">&#40;</span> hDC, <span style="color: #000000;">12</span> <span style="color: #000000;">&#41;</span><br />DeleteDC<span style="color: #000000;">&#40;</span> hDC <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">Return</span> Int<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span> ^ <span style="color: #000000;">&#40;</span> nPlanes * nBitsPixel <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br /><br /><span style="color: #00C800;">Static</span> <span style="color: #00C800;">Function</span> Remove0<span style="color: #000000;">&#40;</span> c <span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">Return</span> StrTran<span style="color: #000000;">&#40;</span> c, Chr<span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span>, <span style="color: #ff0000;">" "</span> <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">Static</span> <span style="color: #00C800;">Function</span> psz<span style="color: #000000;">&#40;</span> c <span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">Return</span> <span style="color: #0000ff;">SubStr</span><span style="color: #000000;">&#40;</span> c, <span style="color: #000000;">1</span>, <span style="color: #00C800;">At</span><span style="color: #000000;">&#40;</span> Chr<span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span>, c <span style="color: #000000;">&#41;</span> - <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #B900B9;">//--------------------------------------------------------------------</span><br /><br />DLL32 <span style="color: #00C800;">STATIC</span> <span style="color: #00C800;">FUNCTION</span> GetVerExA<span style="color: #000000;">&#40;</span> @lpVersionInformation As LPSTR <span style="color: #000000;">&#41;</span> As LONG PASCAL <span style="color: #0000ff;">From</span> <span style="color: #ff0000;">"GetVersionExA"</span> Lib <span style="color: #ff0000;">"KERNEL32.DLL"</span><br /><br /><span style="color: #B900B9;">//--------------------------------------------------------------------</span><br /><br />&nbsp;</div>[/code:zaqpag5x] si te salta un error por variables, esas son propias mías y que no influyen en el funcionamiento de la clase, las puedes reemplazar por las tuyas. espero que sirva, saludos!
Control de errores
Hola Armando buenas tardes, buenísimo justo lo que necesitaba, lo pruebo y adapto a mis necesidades y luego comento. Muy agradecido por tu buena voluntad. Un saludo desde Argentina. Marcelo
Control de rendimiento
Hay algún control o función que le pueda añadir a mi programa para que muestre el estado de uso de la memoria gráficamente mientras se ejecuta el programa. Mi intención es poner un pequeño control tipo meter en la barra de mensajes que igual que cuando se pulsa control-alt-del aparezca el uso del rendimiento de la memoria para así poder controlar en todo momento cuando se consume mas memoria y poder así tomar decisiones al respecto.
Control de rendimiento
Ayer cuando lo comentamos no tenia ni idea como hacerlo, pero luego recorde que con WMI se puede sacar toda la informacion del sistema, aqui te pongo un pequeño ejemplo. El tema de ponerlo en pantalla graficamente te lo dejo para ti, lo puedes hacer con un timer y un meter. [code:2v17wux6] #include "FiveWin&#46;Ch" FUNCTION main&#40;&#41; LOCAL oLoc,oWmi,oLis, oObj LOCAL nTotal&#58;=0,nLibre&#58;=0 oLoc &#58;= CreateObject&#40; "wbemScripting&#46;SwbemLocator" &#41; oWmi &#58;= oLoc&#58;ConnectServer&#40;&#41; oLis &#58;= oWmi&#58;ExecQuery&#40; "SELECT * FROM Win32_ComputerSystem" &#41; FOR EACH oObj IN oLis nTotal+=Val&#40; oObj&#58;TotalPhysicalMemory &#41; //Valor en Bytes NEXT nTotal&#58;=nTotal/1024 //Convertimos a KB oLis &#58;= oWmi&#58;ExecQuery&#40; "SELECT * FROM Win32_OperatingSystem" &#41; FOR EACH oObj IN oLis nLibre+=Val&#40; oObj&#58;FreePhysicalMemory &#41; //Valor en KB NEXT ? 'Memoria física total&#40;KB&#41;&#58;'+Str&#40;nTotal&#41;,; 'Memoria física libre&#40;KB&#41;&#58;'+Str&#40;nLibre&#41;,; '% memoria ocupada &#58;'+Str&#40;100-&#40;&#40;nLibre*100&#41;/nTotal&#41;&#41; RETURN NIL [/code:2v17wux6]
Control de rendimiento
Biel, Esto podria ser una solución a lo que tenemos en FWH, que solo muestra 90% todo el tiempo? Parece interesante... Saludos,
Control de rendimiento
Biel, saudações amigo... Biel, como saber as possibilidades de uso do: ExecQuery( "SELECT * FROM Win32_ComputerSystem") Digo quais outras chamadas de pode fazer? Grato
Control de rendimiento
Gracias Biel eres un genio... Voy a mirar como ponerlo en mi programa....
Control de rendimiento
Kleyber, me habia fijado en tu comentario, ya que por casualidad un dia dando doble click en la barra de mensajes me cambiaba la barra titulo poniendo el estado de memoria, pero no se para que sirve pues nunca varia como tu dices ni la memoria cambia ni los recursos cambian siempre esta al 90%, si alguien sabe a que se debe. Tambien podria ser una solucion para poder instalar un indicador tipo meter aunque no se si en la barra titulo se puede hacer.
Control de rendimiento
Andrés, > siempre esta al 90%, si alguien sabe a que se debe Se debe a que las funciones de Windows que se usaban en 16 bits, ya no funcionan en 32 bits y devuelven esos valores (absurdos). La solución de Biel se ve muy interesante, lo que habría que valorar es si puede afectar al rendimiento global de la aplicación. Es decir, comprobar si al ser llamadas desde un timer, se ejecutan rápidamente y sin consumir mucha CPU y memoria.
Control de rendimiento
Gracias Antonio, la solucion esta en realizar la misma operacion que con el doble click en la barra de mensajes. Utilizarlo solo cuando es necesario para ver como consumen la memoria los procesos que haces en un determinado momento y el resto que no actue para nada...
Control de rendimiento
Hice pruebas y no veo cambios significativos, solo cuando se abren o cierran otras aplicaciones. [url=http&#58;//img159&#46;imageshack&#46;us/my&#46;php?image=mtestjc5&#46;jpg:1lmkaf2w][img:1lmkaf2w]http&#58;//img159&#46;imageshack&#46;us/img159/2159/mtestjc5&#46;th&#46;jpg[/img:1lmkaf2w][/url:1lmkaf2w] Descargas: <!-- m --><a class="postlink" href="http://www.despachoarteaga.com.mx/TG-Test.zip">http://www.despachoarteaga.com.mx/TG-Test.zip</a><!-- m -->
Control de rendimiento
Muy bueno Alfredo eso era lo que quería hacer, mira que empleo el tGraph (bueno mi versión era mas antigua) pero nunca se me había ocurrido hacerlo con esto.
Control de un error
Compañeros: Tengo el caso de una aplicacion mia que genera un ARCHIVO .mem en C:\windows, mediante SAVE TO C:\WINDOWS\MEMO.MEM ALL LIKE MEMO A veces, los usuarios no tienen permisos en Windows, por lo que mi aplicación, en este punto, genera un error y aborta. ¿Como podría controlar este error, advirtiendo al usuario algo así como: "Error al generar el archivo MEMO.mem, posiblemente no tenga permisos en windows" Eché un vistazo en samples\Testerr.prg, pero no logro ponerlo en marcha Mil gracias. LORENZO.
Control de un error
[quote="Loren":1zzjlinb]Compañeros: Tengo el caso de una aplicacion mia que genera un ARCHIVO .mem en C:\windows, mediante SAVE TO C:\WINDOWS\MEMO.MEM ALL LIKE MEMO A veces, los usuarios no tienen permisos en Windows, por lo que mi aplicación, en este punto, genera un error y aborta. ¿Como podría controlar este error, advirtiendo al usuario algo así como: "Error al generar el archivo MEMO.mem, posiblemente no tenga permisos en windows" Eché un vistazo en samples\Testerr.prg, pero no logro ponerlo en marcha Mil gracias. LORENZO.[/quote:1zzjlinb] En mi empresa cuando sucede algo asi le decimos al vendedor que la empresa ya tiene establecida una pólitica de permisos/privilegios y que vuelva cuando lo tenga solucionado; me explico? Nunca se me ocurriría obligar a la empresa a la que le tengo que vender mi aplicación a que dé permisos específicos para que mi aplicación funcione. Yo soy el que quiero vender, ellos pueden comprar a cualquier otro proveedor. Yo lo grabaría en el mismo directorio del EXE, donde casi seguro no habrá problemas problemas de permisos como por ejemplo: SAVE TO (cFilePath( ARG( 0 ) ) + "MEMO.MEM" ) ALL LIKE MEMO Si te preocupa el pirateo utiliza los USB creo que prometen mucho; y le das libertad al que compró la licencia a que lo utilice en su portatil, en su PC de sobremesa, es decir donde quiera, todo el mundo puede tener un USB que además le servirá de soporte de copias de seguridad. Creo que es cojonudo. Saludos Carlos G.
Control de un error
Estimado FiveWiDi Por supuesto, coincido contigo en cuanto a la respuesta que hay que darle al cliente por el tema de los permisos/privilegios. Es problema de ellos y son ellos quien lo tienen que solucionar internamente. Yo me refería a que tal y como está ahora mi aplicación, esta genera un ERROR y se sale directamente, sin advertirle ni avisarle al usuario del problema que hubo. Me gustaría que mi aplicación lo detectase mediante un ERRORBLOCK ( o algo así ) y emitir un msginfo "Atención, tiene problemas de permisos/privilegios. Solucionelo." Al menos, así el usuario se da por enterado. No obstante, mil gracias. LORENZO
Control de un error
[quote="Loren":18q5d6yb]Estimado FiveWiDi Por supuesto, coincido contigo en cuanto a la respuesta que hay que darle al cliente por el tema de los permisos/privilegios. Es problema de ellos y son ellos quien lo tienen que solucionar internamente. Yo me refería a que tal y como está ahora mi aplicación, esta genera un ERROR y se sale directamente, sin advertirle ni avisarle al usuario del problema que hubo. Me gustaría que mi aplicación lo detectase mediante un ERRORBLOCK ( o algo así ) y emitir un msginfo "Atención, tiene problemas de permisos/privilegios. Solucionelo." Al menos, así el usuario se da por enterado. No obstante, mil gracias. LORENZO[/quote:18q5d6yb] Me he explicado muy mal. Yo no trabajo/vivo de la informática. Cuando decía 'mi empresa' me refería a la empresa que comprará la aplicación informática, yo soy el cliente. Desde mi punto de vista el problema es de la empresa que ha desarrollado la aplicación informática. Si tu vienes como proveedor te diré que los premisos no se van a modificar y por tanto deberás modificar tu aplicación. Tu punto de vista lo puede aplicar Microsoft y muy pocas empresas más. Saludos Carlos G.
Control de usuario
hola fivewiners de seguro ya han pasado por esto, quisiera preguntarles como controlan los perfiles de usuario asociados a una clave de ingreso por usuario, me explico que al ingresar al programa el usuario ingrese su clave y de acuerdo a su perfil se activen los usos del menú principal?? alguien tendra un ejemplito por hay... gracias
Control de usuario
Este post te puede servir de guia. <!-- l --><a class="postlink-local" href="http://fivetechsupport.com/forums/viewtopic.php?f=6&t=18117&start=0&hilit=control+de+usuarios">viewtopic.php?f=6&t=18117&start=0&hilit=control+de+usuarios</a><!-- l --> Saludos.
Control de vehiculos o control de flota.
A la altura que estamos y con los dispositivos tan a mano como tenemos me pregunto si alguien ha hecho algo sobre control de flotas o control de vehículos. Nos han presentado un producto para localizar los vehículos que creo que es de una simplicidad tremenda pero por el cual nos piden una millonada. Me pregunto si alguno tiene experiencia en el tema para compartir impresiones sobre el mismo, ya que lo único que nos interesa es saber donde está el vehículo para incorporarlo a un mapa de forma visual que podemos hacerlo en googlemaps. Digo que debe ser de una simplicidad tremenda ya que se trata que por vía datos se transmita la posición del gps y se almacene en algún lugar para cada cierto tiempo actualizar en pantalla y poder tomar decisiones. Puede alguien con experiencia en el tema decirme si voy muy equivocado. Aunque pretendo hacer el tema en fivewin, creo que ahí radica el principal problema, ya que los equipos que actualmente disponen de windowsCE son cada día mas escasos. Antonio nos puedes aclarar como va el tema de Android. Podemos empezar a desarrollar cosas para Android, creo que la tendencia va por ahí y cada día encontramos tabletas por menos de 200€, que ya lo incorporan todo. Ne sé para enpezar creo que me bastaría un dispositivo Android que transmita su posición a un ftp. No se si disponemos esta posibilidad desde Harbour o por ende desde fivewin. Gracias.
Control de vehiculos o control de flota.
Hombre, por 15€ , tienes un movil android con tarifa de datos, instalas el latitude en cada uno que quieres controlar. También , hacerlo en Android con Java, es controlar el GPS, y enviar los datos a un webservices que que se encargue de pintar en el googlemaps la posición actual. Con un poco más de faena, puedes ir guardando la localización, y hacer un recorrido por donde se ha movido.
Control de vehiculos o control de flota.
Amigo es eso q explicas. thefull saludos
Control de vehiculos o control de flota.
Andrés, date una vuelta por [url:2qctqjxr]http&#58;//www&#46;cif-gps-flotas&#46;com/?gclid=CNKPuu7bzKsCFcyCDgodlAmf3Q[/url:2qctqjxr] Saludos, Felix
Control de vehiculos o control de flota.
Sí Rafa, la teoría es fácil, pero lo difícil es meterte en un entorno que aun no conoces, como es Android y Java, por eso la pregunta. Ahora la decisión es el tema de integración con lo que ya tenemos y que puedo dominar que es el tema de FWH. Por eso la pregunta si ya hay algo hecho en Harbour-Android o Fivewin-Android. Es una cuestión de inversión. Lo hago yo y invierto en desarrollo o lo presupuesto para que me tengan atrapado de por vida. Parece una cuestión muy sencilla ya que lo más lógico es desarrollarlo uno mismo pues como tu dices parece muy sencillo. Pero hoy por hoy, estamos estancados en el windows ce, y como te puedes imaginar, las tendencias del mercados lo pone en peligro de extinción. Felix plantea un equipo independiente del usuario y yo me decanto por algo participativo o interactivo, como son las tablets. Es una primera toma de contacto con el tema y sopesar como está el mercado.
Control de vehiculos o control de flota.
Andres, Hasta donde conozco y puedo contarte... He tenido la necesidad de meterme en el mundo de los móbiles. Hace unos cuantos años esta necesidad la tenia perfectamente cubierta con FWPPC. En un dia eras capaz de generar tus primeras aplicaciones, primeros tests y primeras impresiones positivas, porque no necesitabas practicamente una curva de aprendizaje, ya que todo se basaba en la misma filosofia de FWH -> Fichero, le dabas un bat, compilabas tu aplicacion en un momento y listos. Realmente fue en su momento para mi una pasada de producto, recordando muchos doctores en informatica de la empresa viendo con cara de pocker como era esta 'magia'. Desgraciadamente con el tiempo las cosas han cambiado, por una parte FWPPC te llega hasta la 6.5 y resulta que es un parque de moviles cada vez mas pequeño. Actualmente el mercado o el amplio sector esta con el IOS y Android. Nos hemos declinado por Android por varias razones, principalmente porque no pasas por el unico canal de tener de comprar iphones, ya que cada vez mas son los mobiles que usan Android y esto te ofrece mas flexibilidad dentro de la empresa, la distribucion de tus aplicaciones (con android envias, copias, distribuyes,..el apk y listos) y la filosofia como entorno de programacion que avanza a pasos agigantados, ofreciendote amplias posibilidades que cumplan tu objetivo, que en nuestro caso es la conectividad y gestion de datos. Dicho esto, estuve mirando hace 4 meses el nuevo engendro de Fivetech -> FiveDroid. ¿Serian capaces de hacer lo mismo que con FWPPC ? Despues de unos "dias" de instalacion del entorno y entender un poco la estructura de este tipo de aplicaciones lo consegui hacer funcionar, realmente lo habian vuelto ha conseguir peeeeeeero: Creo que esta muy verde, por ahora necesitas integrarte en el entorno eclipse, y empezar a conocer todo este mundo (nada que ver con lo que estamos acostumbrados). Hace cuatro meses no entendia muchas cosas, ahora entiendo unas pocas mas jejeje y me lo vuelvo a revisar y veo que al igual existen opciones de sacar un Fivedroid, pero no acabo de ver la misma transparencia y facilidad que teniamos con FWPPC. La magia del ficherete plano con un include y un DEFINE WINDOW... y el bat, aqui va ser muy complicado (pero como he visto "milagros", me callo por si acaso <!-- s:wink: --><img src="{SMILIES_PATH}/icon_wink.gif" alt=":wink:" title="Wink" /><!-- s:wink: --> ) Por otra parte si decides hacer el salto y empezar a experimentar, probar, aprender, libros, videos, tutoriales... llega un momento que dices... ¿ Pues porque no sigo y lo hago como se tiene de hacer ? no se si me explico. Cuando realizas una aplicacion, un tema importante es saber que ante un problema uno es capaz de ver por donde van los tiro, buscar y corregir el error. En Android necesitas estos minimos conocimientos y es necesario por narices situarte y conocerlo. Y una cosa... no tiene nada que ver con lo que sabemos de FWH. Yo creo, que quizas sea posible crear un framework de trabajo y una libreria para poder crear apps en android, pero hasta donde yo veo y se, falta bastante pero la puerta esta abierta. El problema que planteas tu, a priori parece muy facil de resolver, ya que android tiene sus propias clases muy faciles de usar e integradas con todo el entorno google y para posicionarte, y enviar datos con la frecuencia que quieras a un server, no hay mucha complejidad <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->. De hecho el otro dia estuve con el vecino que le instalaban un aire acondicionado y el instalador me comento que les hacian llevar el mobil para que su empresa supiera en todo momento donde estaban y que no se puedieran "escaquear" ha hacer otros trabajitos... jejeje Que tiempos los del FWPPC <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
Control de vehiculos o control de flota.
Retomo este post porque no lo había leido y lo he encontrado a raiz de buscar en el foro porque estoy haciendo algo parecido para PC. El caso es que tengo publicada una aplicación para iPhone y Android, que mas o menos es eso. Aunque aun está un poco verde, sobre todo la web donde se pueden consultar los datos, dale un vistazo (con IExplorer algunas cosas no se ven o se ven mal de momento, utiliza si puedes Google Chrome): [url:2tim37lg]http&#58;//gyrotracker&#46;net[/url:2tim37lg] Saludos P.D. Estaré unos días de vacaciones, aunque si tengo una wifi a mano intentaré seguir el post.
Control de vehiculos o control de flota.
Gracias Sebastián en cuanto pueda miro como funciona y te comento cosas. De momento por prioridad he dejado de lado este proyecto por lo costoso que nos salía. Igual ahora con las nuevas tablets de Asus y programandolo en PC, puedo empezar a mirar algo, no sé, como te comento somos muchos y nos salia mucho dinero y en los tiempos que corren de crisis la administración cada día nos recorta más todo. Pero te comento que sigo muy interesado en el tema. Disculpa Carles, supongo que por esos días estuve muy liado y no pude comentarte nada por falta de tiempo y luego ya se me pasó. Gracias por tus comentarios.
Control de vehiculos o control de flota.
Hola Andrés, Nosotros tenemos una aplicación comercial, para la gestión de flotas, servicios comerciales y rondas de vigilancias (seguridad). La aplicación esta hecha en FWH con acceso a un servidor externo MySql que es donde los dispositivos envian los datos. Aunque se pueden emplear dispositivos móviles, no es profesional. Lo ideal, para un control de flotas eficaz y seguro, es instalar en los vehículos trackers especiales (GPS+GPRS), conectado a la bateria que tienen un coste de unos 220 euros.
Control de vehiculos o control de flota.
Gracias Manuel, me lo apunto y en septiembre te pido cosas. Ahora estoy un poco liado con otros proyectos que tenemos y me comen todo el tiempo.