topic
stringlengths
1
63
text
stringlengths
1
577k
Algun experto en el foro que use o uso Eagle 1 ?
Una buena idea es la que plantea Carlos... 1.- Crear una variable estática al principio de tu programa. 2.- Crear el objeto conexión dentro de la función main. 3.- Usar esa variable en cualquier parte de tu PRG. Si tu programa consta de muchos PRG para generar el EXE lo mejor es que crees una función que pueda ser llamada desde cualquier PRG [code=fw:3rk8k4s5]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br /><span style="color: #00C800;">function</span> dameConexion<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />    <span style="color: #00C800;">static</span> oConnect := <span style="color: #00C800;">nil</span>            <span style="color: #B900B9;">// Objeto conexion declarado como estatica</span><br />    <span style="color: #00C800;">local</span> cHost := <span style="color: #ff0000;">"127.0.0.1"</span><br />    <span style="color: #00C800;">local</span> cUser := <span style="color: #ff0000;">"root"</span><br />    <span style="color: #00C800;">local</span> cPassword := <span style="color: #ff0000;">"root"</span><br />    <span style="color: #00C800;">local</span> cDbName := <span style="color: #ff0000;">"E1Prueba"</span><br /><br />    <span style="color: #00C800;">if</span> oConnect == <span style="color: #00C800;">nil</span><br />        <span style="color: #B900B9;">// Creamos el objeto "connexion"</span><br />        oConnect := TMSConnect<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 /><br />        <span style="color: #B900B9;">// Nos conectamos al servidor</span><br />        <span style="color: #00C800;">if</span> !oConnect:<span style="color: #000000;">Connect</span><span style="color: #000000;">&#40;</span> cHost, cUser, cPassword, cDbName <span style="color: #000000;">&#41;</span><br />            <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"No hay conexion con el servidor"</span>, <span style="color: #ff0000;">"Operación Cancelada"</span> <span style="color: #000000;">&#41;</span><br />            oConnect:<span style="color: #000000;">Free</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />        <span style="color: #00C800;">endif</span><br />    <span style="color: #00C800;">endif</span><br />    <br /><span style="color: #00C800;">return</span> oConnect<br /><br /> </div>[/code:3rk8k4s5] luego en cualquier PRG podras hacer: oCon := dameConexion()
Algun experto en el foro que use o uso Eagle 1 ?
Por cierto en Eagle1 ya existía una RDD para usar comandos DBF. Ojo no estaban implementados todos, pero si los principales: Este era un ABM hecho con la E1RDD [code=fw:1h2zwnv2]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #B900B9;">//---------------------------------------------------------------------------//</span><br /><span style="color: #B900B9;">// &nbsp;AUTOR.....: Manuel Expósito Suárez &nbsp; Soft4U 2002-2010 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;//</span><br /><span style="color: #B900B9;">// &nbsp;eMail.....: <!-- e --><a href="mailto:messoft@gmail.com">messoft@gmail.com</a><!-- e --> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;//</span><br /><span style="color: #B900B9;">// &nbsp;CLASE.....: TMyTable &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><br /><span style="color: #B900B9;">// &nbsp;FECHA MOD.: 11/05/2010 &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><br /><span style="color: #B900B9;">// &nbsp;VERSION...: 6.00 &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><br /><span style="color: #B900B9;">// &nbsp;PROPOSITO.: Ejemplo uso E1RDD de Egle1 + FW con Browse de FW &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //</span><br /><span style="color: #B900B9;">//---------------------------------------------------------------------------//</span><br /><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"Eagle1.ch"</span><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;">"dtpicker.ch"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"calendar.ch"</span><br /><br /><span style="color: #B900B9;">//---------------------------------------------------------------------------//</span><br /><span style="color: #B900B9;">// Son estaticas para que sean visibles desde todo el PRG un poco por</span><br /><span style="color: #B900B9;">// comodidad</span><br /><br /><span style="color: #00C800;">static</span> oConnect &nbsp; &nbsp; <span style="color: #B900B9;">// Objeto conexion</span><br /><span style="color: #00C800;">static</span> nWA := <span style="color: #000000;">0</span> &nbsp; &nbsp; <span style="color: #B900B9;">// Arera de trabajo</span><br /><br /><span style="color: #00C800;">static</span> oWnd &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// Objetos de FWH</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; SET DATE FORMAT <span style="color: #0000ff;">TO</span> <span style="color: #ff0000;">"DD/MM/YYYY"</span><br /><br />&nbsp; &nbsp; <span style="color: #00C800;">if</span> AbrirTodo<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <span style="color: #0000ff;">FROM</span> <span style="color: #000000;">4</span>, <span style="color: #000000;">4</span> <span style="color: #0000ff;">TO</span> <span style="color: #000000;">40</span>, <span style="color: #000000;">120</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Ejemplo de manteniento de una tabla con Eagle1 y FWH"</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MENU</span> BuildMenu<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SET <span style="color: #0000ff;">MESSAGE</span> <span style="color: #0000ff;">OF</span> oWnd NOINSET;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">TO</span> oConnect:<span style="color: #000000;">cVersion</span> + <span style="color: #ff0000;">" por "</span> + oConnect:<span style="color: #000000;">cAuthor</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CLOCK DATE<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oWnd<br /><br />&nbsp; &nbsp; <span style="color: #00C800;">else</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; Salir<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; <span style="color: #00C800;">endif</span><br /><br /><span style="color: #00C800;">return</span><span style="color: #000000;">&#40;</span> <span style="color: #00C800;">nil</span> <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">function</span> BuildMenu<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> oMenu<br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">MENU</span> oMenu<br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"&Mantenimiento"</span> <span style="color: #0000ff;">ACTION</span> Mantenimiento<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"&Utilities"</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MENU</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"&Calculadora"</span> <span style="color: #0000ff;">ACTION</span> WinExec<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Calc"</span> <span style="color: #000000;">&#41;</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MESSAGE</span> <span style="color: #ff0000;">"Lamando a la calculadora de Windows"</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">SEPARATOR</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"&Escribir"</span> &nbsp; &nbsp;<span style="color: #0000ff;">ACTION</span> WinExec<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Write"</span> <span style="color: #000000;">&#41;</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MESSAGE</span> <span style="color: #ff0000;">"Llamando a Write de Windows"</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ENDMENU</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"&Salir"</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MENU</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"&Acerca de..."</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ACTION</span> MsgAbout<span style="color: #000000;">&#40;</span> oConnect:<span style="color: #000000;">cAuthor</span>, oConnect:<span style="color: #000000;">cVersion</span> <span style="color: #000000;">&#41;</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MESSAGE</span> <span style="color: #ff0000;">"Informa sobre la versión de Eagle1"</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">SEPARATOR</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"&Salir"</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ACTION</span> Salir<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MESSAGE</span> <span style="color: #ff0000;">"Salir del ejemplo de Eagle1 y FWH"</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ENDMENU</span><br /><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">ENDMENU</span><br /><br /><span style="color: #00C800;">return</span> oMenu<br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><span style="color: #B900B9;">//</span><br /><br /><span style="color: #00C800;">static</span> <span style="color: #00C800;">function</span> AbrirTodo<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #B900B9;">/*<br />&nbsp; &nbsp; local cHost := &nbsp; &nbsp; &nbsp;"127.0.0.1 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; "<br />&nbsp; &nbsp; local cUser := &nbsp; &nbsp; &nbsp;"root &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;"<br />&nbsp; &nbsp; local cPassword := &nbsp;"root &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;"<br />&nbsp; &nbsp; local cDbName := &nbsp; &nbsp;"E1Prueba &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;"<br />&nbsp; &nbsp; local lRet, oDlg<br /><br />&nbsp; &nbsp; DEFINE DIALOG oDlg FROM 2, 2 TO 14, 35;<br />&nbsp; &nbsp; &nbsp; &nbsp; TITLE "Datos de conexión" ;<br />&nbsp; &nbsp; &nbsp; &nbsp; STYLE nOr( DS_MODALFRAME, WS_POPUP, WS_CAPTION, WS_SYSMENU, 4 )<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; @ 01, 01 SAY "Host:" OF oDlg<br />&nbsp; &nbsp; &nbsp; &nbsp; @ 01, 05 GET cHost PICTURE "@K" UPDATE OF oDlg<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; @ 1.8, 01 SAY "Usuario:" OF oDlg<br />&nbsp; &nbsp; &nbsp; &nbsp; @ 02, 05 GET cUser PICTURE "@K" UPDATE OF oDlg<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; @ 2.6, 01 SAY "Password:" OF oDlg<br />&nbsp; &nbsp; &nbsp; &nbsp; @ 03, 05 GET cPassword PICTURE "@K" UPDATE OF oDlg<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; @ 3.4, 01 SAY "Base datos:" OF oDlg<br />&nbsp; &nbsp; &nbsp; &nbsp; @ 04, 05 GET cDbName PICTURE "@K" UPDATE OF oDlg<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; @ 4, 7 BUTTON "&Acptar" ACTION oDlg:End() OF oDlg<br /><br />&nbsp; &nbsp; ACTIVATE DIALOG oDlg CENTERED<br /><br />&nbsp; &nbsp; cHost := trim( cHost )<br />&nbsp; &nbsp; cUser := trim( cUser )<br />&nbsp; &nbsp; cPassword := trim( cPassword )<br />&nbsp; &nbsp; cDbName := trim( cDbName )<br /><br />&nbsp; &nbsp; // Creamos el objeto "connexion"<br />&nbsp; &nbsp; oConnect := TMSConnect():New()<br /><br />&nbsp; &nbsp; // Nos conectamos al servidor<br />&nbsp; &nbsp; lRet := oConnect:Connect( cHost, cUser, cPassword, cDbName )<br />*/</span><br /><br />&nbsp; &nbsp; <span style="color: #00C800;">local</span> cDbName := &nbsp; &nbsp;<span style="color: #ff0000;">"E1Prueba &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;"</span><br />&nbsp; &nbsp; <span style="color: #00C800;">local</span> cTabla := <span style="color: #ff0000;">"Test"</span><br />&nbsp; &nbsp; <span style="color: #00C800;">local</span> lRet<br /><br /><span style="color: #B900B9;">// Con sistema empotrado:</span><br />#ifdef E1_EMBEDDED<br /><br />&nbsp; &nbsp; <span style="color: #00C800;">local</span> aOptions := <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"Prueba E1 con FWH"</span>, <span style="color: #ff0000;">"--defaults-file=./test.cnf"</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; <span style="color: #00C800;">local</span> aGroup := <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"op_servidor"</span>, <span style="color: #ff0000;">"op_cliente"</span> <span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp; oConnect := TMSEConnect<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; lRet := oConnect:<span style="color: #000000;">Connect</span><span style="color: #000000;">&#40;</span> &nbsp;aOptions, aGroup, AllTrim<span style="color: #000000;">&#40;</span> cDbName <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #B900B9;">// Con sistema cliente/servidor:</span><br />#else<br /><br />&nbsp; &nbsp; <span style="color: #00C800;">local</span> cHost := &nbsp; &nbsp; &nbsp;<span style="color: #ff0000;">"127.0.0.1 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; "</span><br />&nbsp; &nbsp; <span style="color: #00C800;">local</span> cUser := &nbsp; &nbsp; &nbsp;<span style="color: #ff0000;">"root &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;"</span><br />&nbsp; &nbsp; <span style="color: #00C800;">local</span> cPassword := &nbsp;<span style="color: #ff0000;">"root &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;"</span><br />&nbsp; &nbsp; <span style="color: #00C800;">local</span> oDlg<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;">2</span>, <span style="color: #000000;">2</span> <span style="color: #0000ff;">TO</span> <span style="color: #000000;">14</span>, <span style="color: #000000;">35</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Datos de conexión"</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">STYLE</span> nOr<span style="color: #000000;">&#40;</span> DS_MODALFRAME, WS_POPUP, WS_CAPTION, WS_SYSMENU, <span style="color: #000000;">4</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; @ <span style="color: #000000;">01</span>, <span style="color: #000000;">01</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">"Host:"</span> <span style="color: #0000ff;">OF</span> oDlg<br />&nbsp; &nbsp; &nbsp; &nbsp; @ <span style="color: #000000;">01</span>, <span style="color: #000000;">05</span> <span style="color: #0000ff;">GET</span> cHost <span style="color: #0000ff;">PICTURE</span> <span style="color: #ff0000;">"@K"</span> <span style="color: #0000ff;">UPDATE</span> <span style="color: #0000ff;">OF</span> oDlg<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; @ <span style="color: #000000;">1.8</span>, <span style="color: #000000;">01</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">"Usuario:"</span> <span style="color: #0000ff;">OF</span> oDlg<br />&nbsp; &nbsp; &nbsp; &nbsp; @ <span style="color: #000000;">02</span>, <span style="color: #000000;">05</span> <span style="color: #0000ff;">GET</span> cUser <span style="color: #0000ff;">PICTURE</span> <span style="color: #ff0000;">"@K"</span> <span style="color: #0000ff;">UPDATE</span> <span style="color: #0000ff;">OF</span> oDlg<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; @ <span style="color: #000000;">2.6</span>, <span style="color: #000000;">01</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">"Password:"</span> <span style="color: #0000ff;">OF</span> oDlg<br />&nbsp; &nbsp; &nbsp; &nbsp; @ <span style="color: #000000;">03</span>, <span style="color: #000000;">05</span> <span style="color: #0000ff;">GET</span> cPassword <span style="color: #0000ff;">PICTURE</span> <span style="color: #ff0000;">"@K"</span> <span style="color: #0000ff;">UPDATE</span> <span style="color: #0000ff;">OF</span> oDlg<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; @ <span style="color: #000000;">3.4</span>, <span style="color: #000000;">01</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">"Base datos:"</span> <span style="color: #0000ff;">OF</span> oDlg<br />&nbsp; &nbsp; &nbsp; &nbsp; @ <span style="color: #000000;">04</span>, <span style="color: #000000;">05</span> <span style="color: #0000ff;">GET</span> cDbName <span style="color: #0000ff;">PICTURE</span> <span style="color: #ff0000;">"@K"</span> <span style="color: #0000ff;">UPDATE</span> <span style="color: #0000ff;">OF</span> oDlg<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; @ <span style="color: #000000;">4</span>, <span style="color: #000000;">7</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"&Acptar"</span> <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> <span style="color: #0000ff;">OF</span> oDlg<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; cHost := trim<span style="color: #000000;">&#40;</span> cHost <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; cUser := trim<span style="color: #000000;">&#40;</span> cUser <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; cPassword := trim<span style="color: #000000;">&#40;</span> cPassword <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; cDbName := trim<span style="color: #000000;">&#40;</span> cDbName <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; <span style="color: #B900B9;">// Creamos el objeto "connexion"</span><br />&nbsp; &nbsp; oConnect := TMSConnect<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 /><br />&nbsp; &nbsp; <span style="color: #B900B9;">// Nos conectamos al servidor</span><br />&nbsp; &nbsp; lRet := oConnect:<span style="color: #000000;">Connect</span><span style="color: #000000;">&#40;</span> cHost, cUser, cPassword, cDbName <span style="color: #000000;">&#41;</span><br /><br />#endif<br /><br /><br /><br />&nbsp; &nbsp; <span style="color: #00C800;">if</span> !lRet<br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"No hay conexión con el servidor"</span>, <span style="color: #ff0000;">"Operación Cancelada"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; <span style="color: #00C800;">else</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><span style="color: #B900B9;">// Aqui empieza E1RDD</span><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// Se inicia el sistema E1RDD</span><br />&nbsp; &nbsp; &nbsp; &nbsp; InitE1RDD<span style="color: #000000;">&#40;</span> oConnect <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// A partir de aquí como una DBF</span><br />&nbsp; &nbsp; &nbsp; &nbsp; USE test <span style="color: #00C800;">NEW</span> <span style="color: #0000ff;">ALIAS</span> test VIA <span style="color: #ff0000;">"E1RDD"</span><br />&nbsp; &nbsp; &nbsp; &nbsp; nWA := <span style="color: #0000ff;">Select</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"test"</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp;<span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br />&nbsp; &nbsp; <span style="color: #00C800;">endif</span><br /><br /><span style="color: #00C800;">return</span><span style="color: #000000;">&#40;</span> lRet <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><span style="color: #B900B9;">//</span><br /><br /><span style="color: #00C800;">static</span> procedure Salir<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; <span style="color: #00C800;">if</span> nWA > <span style="color: #000000;">0</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#40;</span> nWA <span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span> DbCloseArea<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; <span style="color: #00C800;">endif</span><br /><br />&nbsp; &nbsp; <span style="color: #00C800;">if</span> ValType<span style="color: #000000;">&#40;</span> oConnect <span style="color: #000000;">&#41;</span> == <span style="color: #ff0000;">"O"</span><br />&nbsp; &nbsp; &nbsp; &nbsp; oConnect:<span style="color: #000000;">Free</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; <span style="color: #00C800;">endif</span><br /><br />&nbsp; &nbsp; <span style="color: #00C800;">if</span> ValType<span style="color: #000000;">&#40;</span> oWnd <span style="color: #000000;">&#41;</span> == <span style="color: #ff0000;">"O"</span><br />&nbsp; &nbsp; &nbsp; &nbsp; oWnd:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; <span style="color: #00C800;">endif</span><br /><br /><span style="color: #00C800;">return</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">static</span> procedure Mantenimiento<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; <span style="color: #00C800;">local</span> oDlg, oBrw, oCol<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;">3</span>, <span style="color: #000000;">3</span> <span style="color: #0000ff;">TO</span> <span style="color: #000000;">40</span>, <span style="color: #000000;">100</span> <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Mantenimiento tabla TEST"</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; @ <span style="color: #000000;">00</span>, <span style="color: #000000;">01</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">" &Datos tabla..."</span> &nbsp;<span style="color: #0000ff;">OF</span> oDlg<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; oBrw := TXBrowse<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> oDlg <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; oCol := oBrw:<span style="color: #000000;">AddCol</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; oCol:<span style="color: #000000;">bStrData</span> &nbsp;:= <span style="color: #000000;">&#123;</span> || hb_ValToStr<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> nWA <span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span> FieldGet<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; oCol:<span style="color: #000000;">cHeader</span> &nbsp; := <span style="color: #000000;">&#40;</span> nWA <span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span> FieldName<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; oCol := oBrw:<span style="color: #000000;">AddCol</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; oCol:<span style="color: #000000;">bStrData</span> &nbsp;:= <span style="color: #000000;">&#123;</span> || <span style="color: #000000;">&#40;</span> nWA <span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span> FieldGet<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; oCol:<span style="color: #000000;">cHeader</span> &nbsp; := <span style="color: #000000;">&#40;</span> nWA <span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span> FieldName<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; oCol := oBrw:<span style="color: #000000;">AddCol</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; oCol:<span style="color: #000000;">bStrData</span> &nbsp;:= <span style="color: #000000;">&#123;</span> || <span style="color: #000000;">&#40;</span> nWA <span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span> FieldGet<span style="color: #000000;">&#40;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; oCol:<span style="color: #000000;">cHeader</span> &nbsp; := <span style="color: #000000;">&#40;</span> nWA <span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span> FieldName<span style="color: #000000;">&#40;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; oCol := oBrw:<span style="color: #000000;">AddCol</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; oCol:<span style="color: #000000;">bStrData</span> &nbsp;:= <span style="color: #000000;">&#123;</span> || <span style="color: #000000;">&#40;</span> nWA <span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span> FieldGet<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;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; oCol:<span style="color: #000000;">cHeader</span> &nbsp; := <span style="color: #000000;">&#40;</span> nWA <span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span> FieldName<span style="color: #000000;">&#40;</span> <span style="color: #000000;">4</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; oCol := oBrw:<span style="color: #000000;">AddCol</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; oCol:<span style="color: #000000;">bStrData</span> &nbsp;:= <span style="color: #000000;">&#123;</span> || <span style="color: #000000;">&#40;</span> nWA <span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span> FieldGet<span style="color: #000000;">&#40;</span> <span style="color: #000000;">5</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; oCol:<span style="color: #000000;">cHeader</span> &nbsp; := <span style="color: #000000;">&#40;</span> nWA <span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span> FieldName<span style="color: #000000;">&#40;</span> <span style="color: #000000;">5</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; oCol := oBrw:<span style="color: #000000;">AddCol</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; oCol:<span style="color: #000000;">bStrData</span> &nbsp;:= <span style="color: #000000;">&#123;</span> || <span style="color: #000000;">&#40;</span> nWA <span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span> FieldGet<span style="color: #000000;">&#40;</span> <span style="color: #000000;">6</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; oCol:<span style="color: #000000;">cHeader</span> &nbsp; := <span style="color: #000000;">&#40;</span> nWA <span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span> FieldName<span style="color: #000000;">&#40;</span> <span style="color: #000000;">6</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; oCol := oBrw:<span style="color: #000000;">AddCol</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; oCol:<span style="color: #000000;">bStrData</span> &nbsp;:= <span style="color: #000000;">&#123;</span> || <span style="color: #000000;">&#40;</span> nWA <span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span> FieldGet<span style="color: #000000;">&#40;</span> <span style="color: #000000;">7</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; oCol:<span style="color: #000000;">cHeader</span> &nbsp; := <span style="color: #000000;">&#40;</span> nWA <span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span> FieldName<span style="color: #000000;">&#40;</span> <span style="color: #000000;">7</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; oCol := oBrw:<span style="color: #000000;">AddCol</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; oCol:<span style="color: #000000;">bStrData</span> &nbsp;:= <span style="color: #000000;">&#123;</span> || DToC<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> nWA <span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span> FieldGet<span style="color: #000000;">&#40;</span> <span style="color: #000000;">8</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; oCol:<span style="color: #000000;">cHeader</span> &nbsp; := <span style="color: #000000;">&#40;</span> nWA <span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span> FieldName<span style="color: #000000;">&#40;</span> <span style="color: #000000;">8</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; oCol := oBrw:<span style="color: #000000;">AddCol</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; oCol:<span style="color: #000000;">bStrData</span> &nbsp;:= <span style="color: #000000;">&#123;</span> || hb_ValToStr<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> nWA <span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span> FieldGet<span style="color: #000000;">&#40;</span> <span style="color: #000000;">9</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; oCol:<span style="color: #000000;">cHeader</span> &nbsp; := <span style="color: #000000;">&#40;</span> nWA <span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span> FieldName<span style="color: #000000;">&#40;</span> <span style="color: #000000;">9</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; oCol := oBrw:<span style="color: #000000;">AddCol</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; oCol:<span style="color: #000000;">bStrData</span> &nbsp;:= <span style="color: #000000;">&#123;</span> || hb_ValToStr<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> nWA <span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span> FieldGet<span style="color: #000000;">&#40;</span> <span style="color: #000000;">10</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; oCol:<span style="color: #000000;">cHeader</span> &nbsp; := <span style="color: #000000;">&#40;</span> nWA <span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span> FieldName<span style="color: #000000;">&#40;</span> <span style="color: #000000;">10</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; oCol := oBrw:<span style="color: #000000;">AddCol</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; oCol:<span style="color: #000000;">bStrData</span> &nbsp;:= <span style="color: #000000;">&#123;</span> || hb_ValToStr<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> nWA <span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span> FieldGet<span style="color: #000000;">&#40;</span> <span style="color: #000000;">11</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; oCol:<span style="color: #000000;">cHeader</span> &nbsp; := <span style="color: #000000;">&#40;</span> nWA <span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span> FieldName<span style="color: #000000;">&#40;</span> <span style="color: #000000;">11</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; oCol := oBrw:<span style="color: #000000;">AddCol</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; oCol:<span style="color: #000000;">bStrData</span> &nbsp;:= <span style="color: #000000;">&#123;</span> || <span style="color: #000000;">&#40;</span> nWA <span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span> FieldGet<span style="color: #000000;">&#40;</span> <span style="color: #000000;">12</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; oCol:<span style="color: #000000;">cHeader</span> &nbsp; := <span style="color: #000000;">&#40;</span> nWA <span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span> FieldName<span style="color: #000000;">&#40;</span> <span style="color: #000000;">12</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; WITH OBJECT oBrw<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; :<span style="color: #000000;">nTop</span> &nbsp; &nbsp; &nbsp;:= <span style="color: #000000;">10</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; :<span style="color: #000000;">nLeft</span> &nbsp; &nbsp; := <span style="color: #000000;">10</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; :<span style="color: #000000;">nBottom</span> &nbsp; := <span style="color: #000000;">240</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; :<span style="color: #000000;">nRight</span> &nbsp; &nbsp;:= <span style="color: #000000;">370</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; :<span style="color: #000000;">nColDividerStyle</span> := <span style="color: #000000;">2</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; :<span style="color: #000000;">bKeyNo</span> &nbsp; &nbsp;:= <span style="color: #000000;">&#123;</span> | n | iif<span style="color: #000000;">&#40;</span> n == <span style="color: #00C800;">nil</span>, <span style="color: #000000;">&#40;</span> nWA <span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span> RecNo<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>, <span style="color: #000000;">&#40;</span> nWA <span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span> DbGoto<span style="color: #000000;">&#40;</span> n <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; :<span style="color: #000000;">bKeyCount</span> := <span style="color: #000000;">&#123;</span>|| <span style="color: #000000;">&#40;</span> nWA <span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span> RecCount<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; :<span style="color: #000000;">bSkip</span> := <span style="color: #000000;">&#123;</span> | n | GetTableObject<span style="color: #000000;">&#40;</span> nWA <span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Skipper</span><span style="color: #000000;">&#40;</span> n <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; :<span style="color: #000000;">SetRDD</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; :<span style="color: #000000;">cAlias</span> &nbsp; &nbsp;:= <span style="color: #ff0000;">"Test"</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; :<span style="color: #000000;">CreateFromCode</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; END<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; @ <span style="color: #000000;">14</span>, <span style="color: #000000;">01</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"&Añadir"</span> &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">35</span>, <span style="color: #000000;">12</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ACTION</span> CtrDatos<span style="color: #000000;">&#40;</span> oBrw, .t. <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; @ <span style="color: #000000;">14</span>, <span style="color: #000000;">08</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"&Modificar"</span> &nbsp; &nbsp;<span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">35</span>, <span style="color: #000000;">12</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ACTION</span> CtrDatos<span style="color: #000000;">&#40;</span> oBrw, .f. <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; @ <span style="color: #000000;">14</span>, <span style="color: #000000;">15</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"&Borrar"</span> &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">35</span>, <span style="color: #000000;">12</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ACTION</span> Borrar<span style="color: #000000;">&#40;</span> oBrw <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; @ <span style="color: #000000;">14</span>, <span style="color: #000000;">22</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"&Ordenar"</span> &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">35</span>, <span style="color: #000000;">12</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ACTION</span> Ordernar<span style="color: #000000;">&#40;</span> oBrw <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; @ <span style="color: #000000;">14</span>, <span style="color: #000000;">29</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"B&uscar"</span> &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">35</span>, <span style="color: #000000;">12</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ACTION</span> Buscar<span style="color: #000000;">&#40;</span> oBrw <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; @ <span style="color: #000000;">14</span>, <span style="color: #000000;">36</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"Listar"</span> &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">35</span>, <span style="color: #000000;">12</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">&#40;</span> oBrw:<span style="color: #000000;">Report</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Listado de la tabla"</span>, .t. <span style="color: #000000;">&#41;</span>, <span style="color: #000000;">&#40;</span> nWA <span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span> DbGoTop<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; @ <span style="color: #000000;">14</span>, <span style="color: #000000;">43</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"<<"</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">ACTION</span> oBrw:<span style="color: #000000;">GoTop</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">35</span>, <span style="color: #000000;">12</span><br />&nbsp; &nbsp; &nbsp; &nbsp; @ <span style="color: #000000;">14</span>, <span style="color: #000000;">50</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">">>"</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">ACTION</span> oBrw:<span style="color: #000000;">GoBottom</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">35</span>, <span style="color: #000000;">12</span><br />&nbsp; &nbsp; &nbsp; &nbsp; @ <span style="color: #000000;">14</span>, <span style="color: #000000;">57</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"&Salir"</span> &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">OF</span> oDlg ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <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> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">35</span>, <span style="color: #000000;">12</span><br /><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span><br /><br /><span style="color: #00C800;">return</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><span style="color: #B900B9;">// Borra la fila actual</span><br /><br /><span style="color: #00C800;">static</span> procedure Borrar<span style="color: #000000;">&#40;</span> oBrw <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; <span style="color: #00C800;">local</span> nRecNo := <span style="color: #000000;">&#40;</span> nWA <span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span> RecNo<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; <span style="color: #00C800;">if</span> MsgYesNo<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Realmente quiere borrar el registro "</span> + StrNum<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> nWA <span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span> RecNo<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;">"?"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#40;</span> nWA <span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span> DbDelete<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; MyMsgInfo<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Borrado en el servidor"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#40;</span> nWA <span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span> DbGoTo<span style="color: #000000;">&#40;</span> nRecNo <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; oBrw:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; <span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp; &nbsp; MyMsgInfo<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"No se ha borrado..."</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; <span style="color: #00C800;">endif</span><br /><br /><span style="color: #00C800;">return</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><span style="color: #B900B9;">// Establece un nuevo orden de visualizacion</span><br /><br /><span style="color: #00C800;">static</span> procedure Ordernar<span style="color: #000000;">&#40;</span> oLbxPrincipal <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; <span style="color: #00C800;">local</span> oDlg, oLbx<br /><br />&nbsp; &nbsp; <span style="color: #B900B9;">// Así se obtiene el objeto que maneja el WA, así de facíl se puede trabajar</span><br />&nbsp; &nbsp; <span style="color: #B900B9;">// con clases y RDD</span><br />&nbsp; &nbsp; <span style="color: #00C800;">local</span> oDs := GetTableObject<span style="color: #000000;">&#40;</span> nWA <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; <span style="color: #00C800;">local</span> i := <span style="color: #000000;">&#40;</span> nWA <span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span> FCount<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; <span style="color: #00C800;">local</span> aFld := Array<span style="color: #000000;">&#40;</span> i <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; <span style="color: #00C800;">local</span> n, cValue<br /><br />&nbsp; &nbsp; <span style="color: #00C800;">FOR</span> n := <span style="color: #000000;">1</span> <span style="color: #0000ff;">TO</span> i<br />&nbsp; &nbsp; &nbsp; &nbsp; aFld<span style="color: #000000;">&#91;</span> n <span style="color: #000000;">&#93;</span> := <span style="color: #000000;">&#40;</span> nWA <span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span> FieldName<span style="color: #000000;">&#40;</span> n <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; <span style="color: #00C800;">NEXT</span><br /><br />&nbsp; &nbsp; n := <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;">2</span>, <span style="color: #000000;">2</span> <span style="color: #0000ff;">TO</span> <span style="color: #000000;">18</span>, <span style="color: #000000;">30</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Eagle1, FW y ListBox"</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">STYLE</span> nOr<span style="color: #000000;">&#40;</span> DS_MODALFRAME, WS_POPUP, WS_CAPTION, WS_SYSMENU, <span style="color: #000000;">4</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; @ <span style="color: #000000;">1</span>, <span style="color: #000000;">02</span> <span style="color: #0000ff;">LISTBOX</span> oLbx;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">VAR</span> cValue;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ITEMS</span> aFld;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">80</span>, <span style="color: #000000;">70</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">OF</span> oDlg<br /><br />&nbsp; &nbsp; @ <span style="color: #000000;">5</span>, <span style="color: #000000;">02</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"&Seleccionar"</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">OF</span> oDlg;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">40</span>, <span style="color: #000000;">12</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">DEFAULT</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">&#40;</span> MyMsgInfo<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Orden: "</span> + Str<span style="color: #000000;">&#40;</span> n := oLbx:<span style="color: #000000;">GetPos</span><span style="color: #000000;">&#40;</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;+ CRLF + <span style="color: #ff0000;">"Nombre del campo: "</span> + cValue, <span style="color: #ff0000;">"Has elegido"</span> <span style="color: #000000;">&#41;</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oDlg:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; @ <span style="color: #000000;">5</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"&Salir"</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">OF</span> oDlg;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">40</span>, <span style="color: #000000;">12</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ACTION</span> oDlg:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span><br /><br />&nbsp; &nbsp; <span style="color: #00C800;">if</span> n != <span style="color: #000000;">0</span> .and. oDS:<span style="color: #000000;">SetOrderBy</span><span style="color: #000000;">&#40;</span> n,, .t. <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; oLbxPrincipal:<span style="color: #000000;">GoTop</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; oLbxPrincipal:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; <span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp; &nbsp; MyMsgInfo<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"No se ha establacido otro orden..."</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; <span style="color: #00C800;">endif</span><br /><br /><span style="color: #00C800;">return</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">static</span> procedure Buscar<span style="color: #000000;">&#40;</span> oLb <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; <span style="color: #00C800;">local</span> oDlg<br />&nbsp; &nbsp; <span style="color: #00C800;">local</span> i := <span style="color: #000000;">&#40;</span> nWA <span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span> FCount<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; <span style="color: #00C800;">local</span> n := <span style="color: #000000;">1</span><br />&nbsp; &nbsp; <span style="color: #00C800;">local</span> oSay, cSay := <span style="color: #ff0000;">"&Valor campo "</span><br />&nbsp; &nbsp; <span style="color: #00C800;">local</span> oGet, uVal<br />&nbsp; &nbsp; <span style="color: #00C800;">local</span> oDs := GetTableObject<span style="color: #000000;">&#40;</span> nWA <span style="color: #000000;">&#41;</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;">2</span>, <span style="color: #000000;">2</span> <span style="color: #0000ff;">TO</span> <span style="color: #000000;">12</span>, <span style="color: #000000;">70</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Búsqueda de valores en el DataSet"</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">STYLE</span> nOr<span style="color: #000000;">&#40;</span> DS_MODALFRAME, WS_POPUP, WS_CAPTION, WS_SYSMENU, <span style="color: #000000;">4</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; @ <span style="color: #000000;">01</span>, <span style="color: #000000;">01</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">"&Numero de columna ( 1 - "</span> + StrNum<span style="color: #000000;">&#40;</span> i <span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">" ):"</span> <span style="color: #0000ff;">OF</span> oDlg<br />&nbsp; &nbsp; &nbsp; &nbsp; @ <span style="color: #000000;">01</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">GET</span> n <span style="color: #0000ff;">PICTURE</span> <span style="color: #ff0000;">"999"</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">VALID</span> <span style="color: #000000;">&#40;</span> uVal := <span style="color: #000000;">&#40;</span> nWA <span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span> FieldGet<span style="color: #000000;">&#40;</span> n <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>, oGet:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oSay:<span style="color: #000000;">SetText</span><span style="color: #000000;">&#40;</span> cSay + <span style="color: #000000;">&#40;</span> nWA <span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span> FieldName<span style="color: #000000;">&#40;</span> n <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>, n > <span style="color: #000000;">0</span> .and. n <= i <span style="color: #000000;">&#41;</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">OF</span> oDlg<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; @ <span style="color: #000000;">02</span>, <span style="color: #000000;">01</span> <span style="color: #0000ff;">SAY</span> oSay <span style="color: #0000ff;">VAR</span> cSay <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">50</span>, <span style="color: #000000;">13</span> &nbsp;<span style="color: #0000ff;">OF</span> oDlg<br />&nbsp; &nbsp; &nbsp; &nbsp; @ <span style="color: #000000;">02</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">GET</span> oGet <span style="color: #0000ff;">VAR</span> uVal <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">160</span>, <span style="color: #000000;">13</span> <span style="color: #0000ff;">OF</span> oDlg<br /><br /><br />&nbsp; &nbsp; @ <span style="color: #000000;">3</span>, <span style="color: #000000;">02</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"&Buscar"</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">OF</span> oDlg;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">40</span>, <span style="color: #000000;">12</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">&#40;</span> <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> oDS:<span style="color: #000000;">Find</span><span style="color: #000000;">&#40;</span> n, uVal, .t. <span style="color: #000000;">&#41;</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MyMsgInfo<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Valor encontrado"</span> <span style="color: #000000;">&#41;</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MyMsgInfo<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Valor no encontrado"</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>, oLb:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; @ <span style="color: #000000;">3</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"S&iguiente"</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">OF</span> oDlg;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">40</span>, <span style="color: #000000;">12</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">&#40;</span> <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> !oDS:<span style="color: #000000;">FindNext</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, MyMsgInfo<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"No hay más. Se llegó al final"</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;oLb:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; @ <span style="color: #000000;">3</span>, <span style="color: #000000;">18</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"&Salir"</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">OF</span> oDlg;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">40</span>, <span style="color: #000000;">12</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ACTION</span> oDlg:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg<br /><br /><span style="color: #00C800;">return</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">static</span> procedure CtrDatos<span style="color: #000000;">&#40;</span> oLb, lNuevo <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; <span style="color: #00C800;">local</span> oDlg, cQueHago, nRec<br /><br />&nbsp; &nbsp; <span style="color: #00C800;">if</span> lNuevo<br />&nbsp; &nbsp; &nbsp; &nbsp; cQueHago := <span style="color: #ff0000;">"Altas"</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#40;</span> nWA <span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span> DbAppend<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; <span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp; &nbsp; cQueHago := <span style="color: #ff0000;">"Modificación"</span><br />&nbsp; &nbsp; <span style="color: #00C800;">endif</span><br /><br />&nbsp; &nbsp; nRec := <span style="color: #000000;">&#40;</span> nWA <span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span> RecNo<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</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;">2</span>, <span style="color: #000000;">2</span> <span style="color: #0000ff;">TO</span> <span style="color: #000000;">30</span>, <span style="color: #000000;">77</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Mantenimiento de la tabla Test - "</span> + cQueHago;<br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">STYLE</span> nOr<span style="color: #000000;">&#40;</span> DS_MODALFRAME, WS_POPUP, WS_CAPTION, WS_SYSMENU, <span style="color: #000000;">4</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; @ <span style="color: #000000;">01</span>, <span style="color: #000000;">02</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">"First"</span> &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">OF</span> oDlg<br />&nbsp; &nbsp; &nbsp; &nbsp; @ <span style="color: #000000;">02</span>, <span style="color: #000000;">1.5</span> <span style="color: #0000ff;">GET</span> <span style="color: #000000;">&#40;</span> nWA <span style="color: #000000;">&#41;</span>->First &nbsp; &nbsp;<span style="color: #0000ff;">PICTURE</span> <span style="color: #ff0000;">"@K"</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">UPDATE</span> <span style="color: #0000ff;">OF</span> oDlg<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; @ <span style="color: #000000;">01</span>, <span style="color: #000000;">26.6</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">"Last"</span> &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">OF</span> oDlg<br />&nbsp; &nbsp; &nbsp; &nbsp; @ <span style="color: #000000;">02</span>, <span style="color: #000000;">20</span> <span style="color: #0000ff;">GET</span> <span style="color: #000000;">&#40;</span> nWA <span style="color: #000000;">&#41;</span>->Last &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">PICTURE</span> <span style="color: #ff0000;">"@K"</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">UPDATE</span> <span style="color: #0000ff;">OF</span> oDlg<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; @ <span style="color: #000000;">2.8</span>, <span style="color: #000000;">02</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">"Street"</span> &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">OF</span> oDlg<br />&nbsp; &nbsp; &nbsp; &nbsp; @ <span style="color: #000000;">4</span>, <span style="color: #000000;">1.5</span> <span style="color: #0000ff;">GET</span> <span style="color: #000000;">&#40;</span> nWA <span style="color: #000000;">&#41;</span>->Street &nbsp; &nbsp;<span style="color: #0000ff;">PICTURE</span> <span style="color: #ff0000;">"@K"</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">UPDATE</span> <span style="color: #0000ff;">OF</span> oDlg<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; @ <span style="color: #000000;">2.8</span>, <span style="color: #000000;">26.6</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">"City"</span> &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">OF</span> oDlg<br />&nbsp; &nbsp; &nbsp; &nbsp; @ <span style="color: #000000;">4</span>, <span style="color: #000000;">20</span> <span style="color: #0000ff;">GET</span> <span style="color: #000000;">&#40;</span> nWA <span style="color: #000000;">&#41;</span>->City &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">PICTURE</span> <span style="color: #ff0000;">"@K"</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">UPDATE</span> <span style="color: #0000ff;">OF</span> oDlg<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; @ <span style="color: #000000;">4.6</span>, <span style="color: #000000;">02</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">"State"</span> &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">OF</span> oDlg<br />&nbsp; &nbsp; &nbsp; &nbsp; @ <span style="color: #000000;">6</span>, <span style="color: #000000;">1.5</span> <span style="color: #0000ff;">GET</span> <span style="color: #000000;">&#40;</span> nWA <span style="color: #000000;">&#41;</span>->State &nbsp; &nbsp; <span style="color: #0000ff;">PICTURE</span> <span style="color: #ff0000;">"@K XX"</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">UPDATE</span> <span style="color: #0000ff;">OF</span> oDlg<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; @ <span style="color: #000000;">4.6</span>, <span style="color: #000000;">5.5</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">"Zip"</span> &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">OF</span> oDlg<br />&nbsp; &nbsp; &nbsp; &nbsp; @ <span style="color: #000000;">6</span>, <span style="color: #000000;">4</span> <span style="color: #0000ff;">GET</span> <span style="color: #000000;">&#40;</span> nWA <span style="color: #000000;">&#41;</span>->Zip &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">PICTURE</span> <span style="color: #ff0000;">"@K 99999-9999"</span> &nbsp; &nbsp; <span style="color: #0000ff;">UPDATE</span> <span style="color: #0000ff;">OF</span> oDlg<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; @ <span style="color: #000000;">4.6</span>, <span style="color: #000000;">13.9</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">"Hiredate"</span> &nbsp;<span style="color: #0000ff;">OF</span> oDlg<br />&nbsp; &nbsp; &nbsp; &nbsp; @ <span style="color: #000000;">78</span>, <span style="color: #000000;">83</span> DTPICKER <span style="color: #000000;">&#40;</span> nWA <span style="color: #000000;">&#41;</span>->Hiredate &nbsp; <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">50</span>, <span style="color: #000000;">11</span> &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">UPDATE</span> <span style="color: #0000ff;">OF</span> oDlg<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; @ <span style="color: #000000;">5.7</span>, <span style="color: #000000;">22</span> <span style="color: #0000ff;">CHECKBOX</span> <span style="color: #000000;">&#40;</span> nWA <span style="color: #000000;">&#41;</span>->Married <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Married"</span> &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">UPDATE</span> <span style="color: #0000ff;">OF</span> oDlg<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; @ <span style="color: #000000;">4.6</span>, <span style="color: #000000;">33</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">"Age"</span> &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">OF</span> oDlg<br />&nbsp; &nbsp; &nbsp; &nbsp; @ <span style="color: #000000;">6</span>, <span style="color: #000000;">24.5</span> <span style="color: #0000ff;">GET</span> <span style="color: #000000;">&#40;</span> nWA <span style="color: #000000;">&#41;</span>->Age &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">PICTURE</span> <span style="color: #ff0000;">"@K 999"</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">UPDATE</span> <span style="color: #0000ff;">OF</span> oDlg<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; @ <span style="color: #000000;">4.6</span>, <span style="color: #000000;">37.5</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">"Salary"</span> &nbsp; &nbsp;<span style="color: #0000ff;">OF</span> oDlg<br />&nbsp; &nbsp; &nbsp; &nbsp; @ <span style="color: #000000;">6</span>, <span style="color: #000000;">28</span> <span style="color: #0000ff;">GET</span> <span style="color: #000000;">&#40;</span> nWA <span style="color: #000000;">&#41;</span>->Salary &nbsp; &nbsp; <span style="color: #0000ff;">PICTURE</span> <span style="color: #ff0000;">"@KE 9,999,999.999"</span> <span style="color: #0000ff;">UPDATE</span> <span style="color: #0000ff;">OF</span> oDlg<br /><br /><span style="color: #B900B9;">//..................... El campo MEMO...............................................</span><br />&nbsp; &nbsp; &nbsp; &nbsp; @ <span style="color: #000000;">6.4</span>, <span style="color: #000000;">02</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">"Notes"</span> &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">OF</span> oDlg<br />&nbsp; &nbsp; &nbsp; &nbsp; @ <span style="color: #000000;">8.1</span>, <span style="color: #000000;">1.5</span> <span style="color: #0000ff;">GET</span> <span style="color: #000000;">&#40;</span> nWA <span style="color: #000000;">&#41;</span>->Notes &nbsp; MEMO <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">270</span>, <span style="color: #000000;">65</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">UPDATE</span> <span style="color: #0000ff;">OF</span> oDlg<br /><span style="color: #B900B9;">//..................................................................................</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; @ <span style="color: #000000;">10</span>, <span style="color: #000000;">02</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"&Guardar"</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">OF</span> oDlg;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">40</span>, <span style="color: #000000;">12</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> nWA <span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span> DbCommit<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>, <span style="color: #000000;">&#40;</span> nWA <span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span> DBGoTo<span style="color: #000000;">&#40;</span> nRec <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; oLb:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</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><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; @ <span style="color: #000000;">10</span>, <span style="color: #000000;">18</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"&Salir"</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">OF</span> oDlg;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">40</span>, <span style="color: #000000;">12</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">ACTION</span> oDlg:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg<br /><br /><span style="color: #00C800;">return</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br />&nbsp;</div>[/code:1h2zwnv2]
Algun experto en el foro que use o uso Eagle 1 ?
Por cierto... Ya sabéis que ahora estoy con HDO que es un concepto mucho mas amplio y ambicioso que Eagle1... Pronto voy a poner una LIB demo con ejemplos para que podáis hacer pruebas. <!-- 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 -->
Algun experto en el foro que use o uso Eagle 1 ?
[quote="xmanuel":22z3q8ia]Una buena idea es la que plantea Carlos... 1.- Crear una variable estática al principio de tu programa. 2.- Crear el objeto conexión dentro de la función main. 3.- Usar esa variable en cualquier parte de tu PRG. Si tu programa consta de muchos PRG para generar el EXE lo mejor es que crees una función que pueda ser llamada desde cualquier PRG [code=fw:22z3q8ia]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br /><span style="color: #00C800;">function</span> dameConexion<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />    <span style="color: #00C800;">static</span> oConnect := <span style="color: #00C800;">nil</span>            <span style="color: #B900B9;">// Objeto conexion declarado como estatica</span><br />    <span style="color: #00C800;">local</span> cHost := <span style="color: #ff0000;">"127.0.0.1"</span><br />    <span style="color: #00C800;">local</span> cUser := <span style="color: #ff0000;">"root"</span><br />    <span style="color: #00C800;">local</span> cPassword := <span style="color: #ff0000;">"root"</span><br />    <span style="color: #00C800;">local</span> cDbName := <span style="color: #ff0000;">"E1Prueba"</span><br /><br />    <span style="color: #00C800;">if</span> oConnect == <span style="color: #00C800;">nil</span><br />        <span style="color: #B900B9;">// Creamos el objeto "connexion"</span><br />        oConnect := TMSConnect<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 /><br />        <span style="color: #B900B9;">// Nos conectamos al servidor</span><br />        <span style="color: #00C800;">if</span> !oConnect:<span style="color: #000000;">Connect</span><span style="color: #000000;">&#40;</span> cHost, cUser, cPassword, cDbName <span style="color: #000000;">&#41;</span><br />            <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"No hay conexion con el servidor"</span>, <span style="color: #ff0000;">"Operación Cancelada"</span> <span style="color: #000000;">&#41;</span><br />            oConnect:<span style="color: #000000;">Free</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />        <span style="color: #00C800;">endif</span><br />    <span style="color: #00C800;">endif</span><br />    <br /><span style="color: #00C800;">return</span> oConnect<br /><br /> </div>[/code:22z3q8ia] luego en cualquier PRG podras hacer: oCon := dameConexion()[/quote:22z3q8ia] Se puede hacer lo mismo en vez de una fu ncion usar una variable Publica ? Algun ejemplo ?
Algun experto en el foro que use o uso Eagle 1 ?
FUNCTION DPMYSQLBD(cDb,cIp,cLogin,cPass,nPort,lError,lCreate,lAdd) LOCAL oDb,oMySql,nAt DEFAULT cIp :=oDp:cIp ,; cLogin :=oDp:cLogin,; cPass :=oDp:cPass ,; nPort :=oDp:nPort ,; cDb :=oDp:cDsnData,; lError :=.T.,; lCreate :=.F.,; lAdd :=.F. // Agrega lista de Tablas ADD para Refrescar tiempo y reconectar DEFAULT oDp:aDPMYSQLBD:={} cIp :=ALLTRIM(cIp ) cLogin :=ALLTRIM(cLogin) cPass :=ALLTRIM(cPass ) nAt :=ASCAN(oDp:aDPMYSQLBD,{|a,n| a[1]==cIp .AND. a[2]==cDb}) IF nAt>0 oDb:=oDp:aDPMYSQLBD[nAt,3] ENDIF /[code=fw:3kth5m80]<div class="fw" id="{CB}" style="font-family: monospace;">/ ?</div>[/code:3kth5m80]cDb,cIp,cLogin,cPass,nPort,lError,lCreate,"MYSQLDB",GETPROCE() // oMySql :=EJECUTAR("DPMYSQLSTART",cIp,cLogin,cPass,nPort,lError) oMySql :=DPMYSQLSTART(cIp,cLogin,cPass,nPort,lError) // IF oDp:nVersion<6 // oDp:oMySqlCon:=DPMYSQLSTART(cIp,cLogin,cPass,nPort,lError) // ENDIF IF oMySql=NIL RETURN NIL ENDIF IF !oMySql:ExistDb(cDb) .AND. lCreate //? "SERA CREADA BD EN SERVIDOR ",cDb,oMySql:cHost oMySql:CreateDB(cDb) ENDIF IF !oMySql:ExistDb(cDb) MensajeErr("Base de Datos "+cDb+" no Existe en Servidor: "+oMySql:cHost) RETURN NIL ENDIF // jn 09/09/2016 // ? "my opendatabase ya no esta funcionando" oDb:=TMSDataBase():New( oMySql, cDb, .t. ) IF lAdd MYADD_DATABASE(oDb) // Reemplaza utilizar oDb:=MyOpenDataBase(cDb,.f.,oMySql) // Refresca las conexiones (usuarios Dormidos)// ? oMySql:ClassName(),"DPMYSQLBD",cDb ENDIF // oDb:=MyOpenDataBase(cDb,.f.,oMySql) // Refresca las conexiones (usuarios Dormidos) // "my opendatabase ya no esta funcionando" oDb:Use() oDb:Select() /* IF !oDb:oConnect:lConnected oDb:oConnect:ReConnect() ENDIF */ AADD(oDp:aDPMYSQLBD,{cIp,cDb,oDb,oMySql}) RETURN oDb FUNCTION DPMYSQLSTART(cIp,cLogin,cPass,nPort,lError) LOCAL lHayError:=.F. ,oMySqlCon:=NIL,nAt,oDataBase DEFAULT cIp :=oDp:cIp ,; cLogin :=oDp:cLogin,; cPass :=oDp:cPass ,; nPort :=oDp:nPort ,; lError:=.T. DEFAULT oDp:aMySql:={} cIp :=ALLTRIM(cIp ) cLogin :=ALLTRIM(cLogin) cPass :=ALLTRIM(cPass ) nAt:=ASCAN(oDp:aMySql,{|a,n| cIp=a[1] }) IF nAt>0 oMySqlCon:=oDp:aMySql[nAt,2] // Cinco Minutos y Cierre la Conección, y vuelve a conectarse IF ABS(SECONDS()-oDp:aMySql[nAt,3])>(60*60*5) oMySqlCon:CLOSE() oMySqlCon:=NIL ARREDUCE(oDp:aMySql,nAt) // AADD(oDp:aMySql,{cIp,oMySqlCon,SECONDS()}) ELSE oDp:aMySql[nAt,3]:=SECONDS() ENDIF ENDIF IF ValType(oMySqlCon)="O" IF oMySqlCon:oError:GetErrNo()=2003 .AND. UPPE(cIp)="LOCALHOST" lHayError:=.T. MsgRun("Instalando Servicio","Por Favor Espere",{||WaitRun("MYSQL\DPMYSQLSTART.BAT",0)}) ENDIF IF oMySqlCon:oError:GetErrNo()=2013 oMySqlCon:Close() oMySqlCon:ReConnect() ENDIF IF !lHayError .AND. !oMySqlCon:lConnected // oMySqlCon:ReConnect() lHayError:=.T. ENDIF IF lHayError ARREDUCE(oDp:aMySql,nAt) RETURN NIL ENDIF RETURN oMySqlCon ENDIF CursorWait() oMySqlCon:= TMSConnect():New() // Inicia el objeto Conexion oMySqlCon:SetAutoError( lError ) __objAddData(oMySqlCon, "nSeconds" ) oSend(oMySqlCon, "nSeconds",0) __objAddData(oMySqlCon, "nTimeMax" ) oSend(oMySqlCon, "nTimeMax",5*(60*60)) IF oMySqlCon:Connect( cIp, cLogin , cPass , NIL, IF( nPort=3306 , NIL , nPort )) AADD(oDp:aMySql,{cIp,oMySqlCon,SECONDS()}) ELSE oMySqlCon:Close() MensajeErr( "No hay conexion con "+cIp ) RETURN NIL ENDIF RETURN oMySqlCon
Algun experto en el foro que use o uso Eagle 1 ?
[quote:1j0hr538] // Con sistema empotrado: #ifdef Probar [/quote:1j0hr538]
Algun experto en el foro que use o uso Eagle 1 ?
Claro que se puede. Y esa es la otra manera de hacer que una variable sea visible en todos los PRG de tu programa. [code=fw:tnw2y7zh]<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;">PUBLIC</span> oConnect<br /><br /><span style="color: #B900B9;">///------------------------------------------------------------------------------------</span><br /><span style="color: #00C800;">Function</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; oConnect := TMSConnect<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; oConnect:<span style="color: #000000;">Connect</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"127.0.0.1"</span>, <span style="color: #ff0000;">"usuario"</span>, <span style="color: #ff0000;">"passw"</span>,,<span style="color: #000000;">3306</span>, ,<span style="color: #000000;">&#40;</span> <span style="color: #000000;">65536</span> + <span style="color: #000000;">131072</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />...<br />&nbsp;</div>[/code:tnw2y7zh] Como puedes observar declaras la variable publica antes de entrar en la funcion main y listo... Ahora bien las variable publica ocupan sitio en la tabla de simbolos de Harbour y eso no me gusta porque en Clipper había un limite. Por suerte en Harbour no tenemos ese problema <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> Solo tener encuenta que si en otro PRG tienes una variable con el mismo nombre la ultima declarada tendrá preferencia tenga el modificador de visibilidad que tenga (static, local, private, public, etc) En xHarbour existe otro tipo que es GLOBAL que también te serviría.
Algun experto en el foro que use o uso Eagle 1 ?
Buenas tardes Manu, y con el permiso de todos Por favor existe aun actualizaciones de Eagle1 compatible para fwh 19 con harbour y bcc7 He actualizado mi FWh y quiero saber si puedo seguir contando con Eagle1 , respuestas a <!-- e --><a href="mailto:lubin.am@speedy.com.pe">lubin.am@speedy.com.pe</a><!-- e --> Gracias Lubin
Algun experto en el foro que use o uso Eagle 1 ?
[quote="lubin":323h9u4n]Buenas tardes Manu, y con el permiso de todos Por favor existe aun actualizaciones de Eagle1 compatible para fwh 19 con harbour y bcc7 He actualizado mi FWh y quiero saber si puedo seguir contando con Eagle1 , respuestas a <!-- e --><a href="mailto:lubin.am@speedy.com.pe">lubin.am@speedy.com.pe</a><!-- e --> Gracias Lubin[/quote:323h9u4n] Saludos Lubin, Yo uso la Eagle1 ya migrada a BCC 7.3 y Harbour 3.2. Con el ultimo Fivewin trabaja sin problemas Contacta a Manu para que te de detalles, pero te puedo decir que el ya hizo el trabajo de migracion de esta clase y funciona muy bien
Algun experto en el foro que use o uso Eagle 1 ?
Gracias por la respuesta estimado Me das alguna esperanza,No me gustaría pasar a otra librería pues el Eagle1 ya la conozco pero lo que pasa es que nuestro amigo Manu no me responde a mi correo o quizás tengo su correo antiguo que ya no usa <!-- s:( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":(" title="Sad" /><!-- s:( --> <!-- s:( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":(" title="Sad" /><!-- s:( --> Por favor crees que puedas pasarme su correo, puede ser por aquí o por <!-- e --><a href="mailto:lubin.am@speedy.com.pe">lubin.am@speedy.com.pe</a><!-- e --> o <!-- e --><a href="mailto:lubin.am@gmail.com">lubin.am@gmail.com</a><!-- e --> Gracias nuevamente . Lubin [quote="Compuin":3o9f79jb][quote="lubin":3o9f79jb]Buenas tardes Manu, y con el permiso de todos Por favor existe aun actualizaciones de Eagle1 compatible para fwh 19 con harbour y bcc7 He actualizado mi FWh y quiero saber si puedo seguir contando con Eagle1 , respuestas a <!-- e --><a href="mailto:lubin.am@speedy.com.pe">lubin.am@speedy.com.pe</a><!-- e --> Gracias Lubin[/quote:3o9f79jb] Saludos Lubin, Yo uso la Eagle1 ya migrada a BCC 7.3 y Harbour 3.2. Con el ultimo Fivewin trabaja sin problemas Contacta a Manu para que te de detalles, pero te puedo decir que el ya hizo el trabajo de migracion de esta clase y funciona muy bien[/quote:3o9f79jb]
Algun experto en el foro que use o uso Eagle 1 ?
Respondido por privado amigo Lubin <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
Algun experto en el foro que use o uso Eagle 1 ?
Gracias Manu !! estamos en contacto !!! [quote="xmanuel":2pfk1gfh]Respondido por privado amigo Lubin <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->[/quote:2pfk1gfh]
Algun procedimiento para ver variables y Bases de Datos
Antonio, Sabes si existe algun ejemplo donde pueda ver las variables que empleo y las bases de datos que tengo abiertas, vamos como el antiguo FWDBG.dll que utilizabamos con el Clipper 5.0. Ahora lo estoy haciendo de forma manual, pero la cosa se me complica mucho y me gustaria disponer de lo mismo que esta en las FWDBG.DLL pero segun creo eso solo sirve para 16 bits.
Algun procedimiento para ver variables y Bases de Datos
Andrés: Talvez te sea útil la función aGetWorkAreas() que devuelve un array con los nombres de todas las areas de trabajo abiertas. Saludos
Algun procedimiento para ver variables y Bases de Datos
Gracias Francisco, ando un poco despistado, ya he visto que existe un ejemplo fwdbhp.prg que es parte del antiguo FWDBG.DLL que esta en los ejemplos. De todas maneras creo que lo que tu me dices también me sirve. Hasta ahora lo hacia por el cuento de la vieja, a base de mensajes de alerta.
Algun procedimiento para ver variables y Bases de Datos
Andrés, Puedes usar el debuger (en modo consola texto) de Harbour/xHarbour. Tienes un ejemplo en FWH\samples\AltD.prg. Tu aplicación funciona en Windows y el debuger se ve en una ventana de texto. Tambien puedes usar el debuger en modo gráfico de Andrés Reyes: <!-- m --><a class="postlink" href="http://www.fivetechsoft.com/files/utilities/windebug.zip">http://www.fivetechsoft.com/files/utili ... ndebug.zip</a><!-- m -->
Algun procedimiento para ver variables y Bases de Datos
Hola Andrés, aunque no es exactamente lo que pides, mira el post del final de como se usa dbwin32, seguro que te va a ser más útil y cómodo que MsgInfo(). Y no hace falta quitarlo del código <!-- s;) --><img src="{SMILIES_PATH}/icon_wink.gif" alt=";)" title="Wink" /><!-- s;) --> <!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=6&t=12952&hilit=dbwin32">viewtopic.php?f=6&t=12952&hilit=dbwin32</a><!-- l -->
Algun procedimiento para ver variables y Bases de Datos
Gracias Carlos y Antonio, esta semana he estado bastante liado, pero hoy voy a ver si puedo hacer algo con vuestras recomendaciones.
Algun programa cazador de recursos....
pues eso, si sabeis de algun programa que coja los recursos de un exe y me los convierta en .rc o cuando no que me obtenga los recursos en forma de ficheros(bmp, dialogos, cursores,...etc). Muchas demos que tengo tienen el codigo fuente y el exe pero no el .rc y a la hora de ejecutar el programa no es muy instructivo, y muchos de ellos son muy antiguos. Supongo que el workshop debiera hacerlo pero supongo que la version que tengo es antigua y la mayoria no me funciona con los exes a 32. Saludos
Algun programa cazador de recursos....
Yo he abierto EXEs de 32 bits con el Workshop 4.5 sin ningun problema. Haz la prueba, seleccion un EXE con el Workshop y verás que se pueden abrir todos los recursos incrustado para luego generar un RC.
Algun programa cazador de recursos....
Gracias Rene es lo primero que prove pero como bien he dicho algo falla en el workshop 4.5, no todos los exe 32 funcionan, muchos sobre todo me dan fallo al abrir los cursores y ya no puedo seguir, pero bueno investigando por internet como bien dice Antonio he conseguido uno que por lo menos me recupera los recursos en forma de fichero el Resource Tuner, que aunque es una version demo me ha funcionado y me ha recuperado todo en forma de ficheros, si alguien se le ocurre algo mejor que lo diga por favor.
Algun programa cazador de recursos....
Creo que lo que buscas es ResHacker <!-- m --><a class="postlink" href="http://www.angusj.com/resourcehacker/">http://www.angusj.com/resourcehacker/</a><!-- m --> Saludos,
Algun programa cazador de recursos....
hace tiempo yo usaba uno llamdo Resource Xcavator, muy bueno para recursos graficos (cursores iconos y bitmaps), no te vale para los dialogos, pero miratelo con google. tambien puedes usar el resource builder de <!-- w --><a class="postlink" href="http://www.sicomponents.com">www.sicomponents.com</a><!-- w -->
Algun programa cazador de recursos....
Jose Luis Gracias por el email que me mandaste a mi privado hacia tiempo que no revisaba el correo gmail, te agradezco tu ayuda. Por lo que veo el Resource tuyo es muy completo e incluso varia los recursos de los exe. Igualmente gracias Rene.
Algun que me explique como configurar mysql para accceso rem
Hola. Por favor, tengo window 7 ya baje el firewall pero no me deja acceder remotamente a una base de datos mysql, Alguien puede explicarme? gracias.
Algun reporte ejemplo usando TReport con recordset y grupos?
Amigos:Una vez más acudo a este bendito foro para solicitarles un pequeño ejemplo de un reporte con grupos usando la clase TReport (obviamente) y recordset.Muchas gracias por su apoyoSaludos
Algun reporte ejemplo usando TReport con recordset y grupos?
Porque no "AGRUPAS" tu informacion desde tu 'SELECT ......", cuando creas el RS. Por Ejeemplo: Select id,nombre, cantidad for xxxx group by id Y el reporte lo generas como si fuera creado desde un array.saludos
Algun reporte ejemplo usando TReport con recordset y grupos?
Ricardo:Te agradezco infinitamente la respuesta, sin embargo creo que no me soluciona el problema pues agrupando desde el SELECT solo tendré un registro por cada grupo con la suma de la columna en cuestión.Lo que necesito hacer es imprimir todos los registros del grupo y al cambiar de grupo imprimir la suma de la columna, por ejemplo:Vendedor: JMGFACT: 1254 $ 35,569.80FACT: 1657 $ 1,000.00Total del vendedor: $ 36,569.80Vendedor: AEBFACT: 2556 $ 20,000.50FACT: 1698 $ 10,000.00Total del vendedor: $ 30,000.50Esto lo podré hacer agrupando desde el SELECT ?, me parece que no.Nuevamente te agradezco el interés, una abrazo
Algun reporte ejemplo usando TReport con recordset y grupos?
Ok. Este ejemplo lo estoy haciendo con un Tarray, espero te sirva: [quote:nu9zs7s1] REPORT oReport PREVIEW FROM USER CAPTION "Reporte de Extranjeros" ; TITLE "Reporte de Extranjeros" ,; oApp:cEmpresa,; oApp:cDomicilio, "" ; HEADER "Fecha: " + dtoc(date()) + space(150) + "Hora: "+time() CENTERED ; FOOTER "Pagina: " + strzero(oReport:nPage,3) CENTERED ; FONT oFont1, oFont2, oFont3 COLUMN TITLE "Nombre" DATA oDatos:cId+" "+Alltrim(oDatos:cNombre) SIZE 20 COLUMN TITLE "Fecha Alta" DATA oDatos:dFecAlta SIZE 10 COLUMN TITLE "R f c" DATA oDatos:cRfc SIZE 10 COLUMN TITLE "Desarrollo" DATA oDatos:cNomDesa SIZE 20 [b:nu9zs7s1][color=green:nu9zs7s1]GROUP ON oDatos:cIdNacion FOOTER "Nacionaldad: " + ; alltrim(if(naciones->(dbseek(oReport:aGroups[1]:cValue)),naciones->nombre, "")) +; "("+ltrim(str(oReport:aGroups[1]:nCounter)) + ")" FONT 2[/color:nu9zs7s1][/b:nu9zs7s1] oReport:oDevice:lPrvModal := .F. // Para que muestre en forma modal la ventana del preview oReport:oDevice:SetCopies(1) oReport:nTitleUpLine := RPT_NOLINE // Linea Arriba de los nombres de columnas oReport:nTotalLine := RPT_SINGLELINE // Para las lineas mas delgadas oReport:lSummary := .F.// si queremos que sumarice por conceptos y nada mas nos muestre los totales [b][color=green:nu9zs7s1]oReport:bSkip := {|| ++nBrinco, oDatos:skip(1) }[/[/color:nu9zs7s1]b] END REPORT ACTIVATE REPORT oReport WHILE nBrinco <= len(oDatos:aDatos) ; ON STARTPAGE Tone( 100, 1 ) ; ON STARTGROUP oReport:NewLine() [/quote:nu9zs7s1]
Algun reporte ejemplo usando TReport con recordset y grupos?
Tambien pudiera ser como te decia en el ejemplo inicial, solo que en lugar de hacer GROUP BY id Seria GROUP BY id,Factura ( por ejemplo )
Algun reporte ejemplo usando TReport con recordset y grupos?
Ricardo:Muchas gracias, voy a probar.Saludos
Alguna LIB o clase para leer QR
Amigos: Complementando el título, alguien tiene o sabe de alguna LIB o clase para leer códigos QR? Saludos
Alguna LIB o clase para leer QR
Armando <!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=6&t=23175&p=124329&hilit=codigos+qr#p124329">viewtopic.php?f=6&t=23175&p=124329&hilit=codigos+qr#p124329</a><!-- l -->
Alguna LIB o clase para leer QR
Cristóbal y amigos: Gracias por tu respuesta, pero creo que me precipite en la consulta. Para decodificar un QR obligadamente necesito un lector de códigos, al igual que los códigos de barras "normales" el lector nos debe entregar un texto. Recibiendo ese texto en nuestra aplicación de ahí ya podremos manipularlo a nuestras necesidades. Parece sencillo, no? Ven porque digo que me precipite Saludos y feliz año nuevo
Alguna LIB o clase para leer QR
Armando, pensaba que te referias a la posibilidad de generarlos tu
Alguna LIB o clase para leer QR
Cristóbal: No, necesito leerlos, pero no te preocupes gracias de todos modos por tu interés, así pasa cuando sucede <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> Saludos
Alguna LIB o clase para leer QR
<!-- m --><a class="postlink" href="http://zbar.sourceforge.net/">http://zbar.sourceforge.net/</a><!-- m -->
Alguna LIB o clase para leer QR
zekasan Gracias, Thanks a lot. Saludos, Best regards
Alguna LIB o clase para leer QR
Saludos Desde una imagen o desde un lector?
Alguna LIB o clase para leer QR
Daniel: Gracias por tu interés. La idea es leer el QR impreso en un papel y decodificarlo entregando una cadena de texto con el contenido del QR. Saludos
Alguna LIB o clase para leer QR
Amigos del foro: Tal como comenté en este hilo, se adquirió un lector de códigos QR que alimenta a mi aplicación con el contenido del código QR. Hasta ahí todo perfecto, el pero es que algunos caracteres que me devuelve el lector no son los correctos, por ejemplo: [code=fw:3vxtlmwe]<div class="fw" id="{CB}" style="font-family: monospace;"><br />?re=    me devuelve    _re¿<br />&rr=    me devuelve    /rr¿<br />&tt=    me devuelve    /tt¿<br />&id=    me devuelve   /<span style="color: #0000ff;">id</span>¿<br /> </div>[/code:3vxtlmwe] El mismo código leído con un IPhone devuelve los caracteres correctamente. Al igual que ustedes, pensé que había que configurar el lector pero no hay modo, ya leí el instructivo adjunto y no hay forma de configurarlo. (Tendré que cambiar de lector?) La otra posibilidad es que configure mi aplicación que compilo con xHarbour, en Harbour hay dos funciones [code=fw:3vxtlmwe]<div class="fw" id="{CB}" style="font-family: monospace;"><br />    REQUEST HB_CODEPAGE_ESWIN<br />    HB_CDPSELECT<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"ESWIN"</span><span style="color: #000000;">&#41;</span><br /> </div>[/code:3vxtlmwe] Hay algo parecido en xHarbour que me ayude a configurar mi App??? y que me devuelve los caracteres correctos. Saludos al foro
Alguna aplicación de ejemplo
Holasss.. Me gustaría saber si hay alguna aplicación hecha para verla correr en algún linux, bien sea una mini facturación etec. un saludo. xPepe
Alguna aplicación de ejemplo
Pepe, Aplicaciones completas, no. Pero ejemplos fáciles de entender y simples, si tenemos bastantes.
Alguna clase por favor para ingresar horas?
eso. gracias.
Alguna clase por favor para ingresar horas?
<!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=6&t=28663">viewtopic.php?f=6&t=28663</a><!-- l -->
Alguna forma de quitarle las solapas o pestanas a un folder
Ya se q el TPAGES hace eso pero todo lo tengo echo con folderes y necesito quitarle las solapas para no rahcer todo con pagescomo le hagoGracias totales
Alguna forma de quitarle las solapas o pestanas a un folder
[quote="Vladimir Zorrilla":3qz8sghi]Ya se q el TPAGES hace eso pero todo lo tengo echo con folderes y necesito quitarle las solapas para no rahcer todo con pages como le hago Gracias totales[/quote:3qz8sghi]<!-- m --><a class="postlink" href="http://forums.fivetechsoft.com/viewtopic.php?t=11746">http://forums.fivetechsoft.com/viewtopic.php?t=11746</a><!-- m -->
Alguna funcion que convierta un html en txt
Existe alguna funcion para convertir un archivo html en archivo de texto libre de etiquetasGracias
Alguna funcion que convierta un html en txt
Vladimir,Nosotros usamos esta función para quitar los tags:[code:1hjrssd0] function RemoveTags&#40; cText &#41; // Quita "< &#46;&#46;&#46; >" de un texto local nStart, nEnd while &#40; nStart &#58;= At&#40; "<", cText &#41; &#41; != 0 nEnd = At&#40; ">", SubStr&#40; cText, nStart + 1 &#41; &#41; if nEnd == 0 nEnd = nStart else nEnd += nStart endif cText = If&#40; nStart > 1, SubStr&#40; cText, 1, nStart - 1 &#41;, "" &#41; + SubStr&#40; cText, nEnd + 1 &#41; end return cText [/code:1hjrssd0]
Alguna idea de por qué esta línea falla ?
Llevo varios dias intentando completar el makefile para EasyReport usando Visual Studio, y esta simple línea desde goms.bat falla y es imposible que falle, pero falla <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> if exist "%ProgramFiles%\Microsoft Visual Studio 12.0\VC\vcvarsall.bat" call "%ProgramFiles%\Microsoft Visual Studio 12.0\VC\vcvarsall.bat" Lo increible del asunto es que si hago esta llamada: call "C:\Program Files\Microsoft Visual Studio 12.0\VC\vcvarsall.bat" entonces funciona bien. Que puñetas falla en esa linea ? <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Alguna idea de por qué esta línea falla ?
El error es siempre el mismo: c:\EasyReport>if exist "C:\Program Files\Microsoft Visual Studio 12.0\VC\vcvarsa ll.bat" call "C:\Program Files\Microsoft Visual Studio 12.0\VC\vcvarsall.bat" The system cannot find the path specified. Es el tipico error de volverse loco <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Alguna idea de por qué esta línea falla ?
La línea esta bien porque la he depurado y tanto la primera parte (antes del call) como la segunda parte funcionan bien. Debe ser algo que se genera desde vcvarsall.bat
Alguna idea de por qué esta línea falla ?
me respondo yo mismo, está claro que hay que tracear vcvarsall.bat <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Alguna idea para leer los ficheros en la pocket ?
Hola, Alguien ha tenido la necesidad de tener de seleccionar algun fichero de la pocket desde dentro la aplicacion FWPPC ? Alguna IDEA ? Saludos. C.
Alguna idea para leer los ficheros en la pocket ?
Carles, Tienes disponible la función cGetFile() <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) --> aunque no la habíamos probado antes y aunque la caja de diálogo aparece, no se si realmente funciona.
Alguna idea para leer los ficheros en la pocket ?
Antonio, Juraria q la probe hace 2 semanas... y no existia No entiendo nada... Gracias. La voy a testear Ciao. C.
Alguna idea para leer los ficheros en la pocket ?
Antonio, [code:4yoh3p5h] #include 'FWCE&#46;ch' FUNCTION Main&#40;&#41; LOCAL oWnd DEFINE WINDOW oWnd TITLE "Test cGetFile&#40;&#41;" @1,4 BUTTON 'cGetFile&#40;&#41;' SIZE 80, 25 OF oWnd ; ACTION MsgInfo&#40; cGetFile&#40; '*&#46;*', 'Mi Titulo&#46;&#46;&#46;',, CurDir&#40;&#41; + '\*&#46;*'&#41; &#41; ACTIVATE WINDOW oWnd RETU NIL [/code:4yoh3p5h] Pero me temo q no funciona correctamente. Aparece el dialogo de seleccion, perooo el tio no quiere darme nada <!-- s:-( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":-(" title="Sad" /><!-- s:-( --> Saludos. C.
Alguna idea para leer los ficheros en la pocket ?
Is there any problem with the cGetFile(). I am getting GPF on Emulator as well as on handheld. After I select a valid file, I get GPF Regards Anser
Alguna idea para leer los ficheros en la pocket ?
Dear Mr.Antonio, The solution available on the following thread is working fine for me <!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=4&t=3998&hilit=cGetFile">viewtopic.php?f=4&t=3998&hilit=cGetFile</a><!-- l --> It seems that this change is not included in the recent FWPPC Lib Regards Anser
Alguna noticia de FastReports ?
Hola amigos, Hay alguna noticia de FastReports ? Ya no se puede comprar ?
Alguna noticia de FastReports ?
La información que tengo es que el autor murió. No estoy seguro. Saludos.
Alguna noticia de FastReports ?
FastReport se sigue vendiendo como siempre, Murió el autor de la librería de FastReport para xHarbour. Supongo que esa libreria se puede conseguir. Saludos
Alguna noticia de FastReports ?
Saludos paisano dede Venezuela, si puedes ponte en contacto a mi correo de hotmail, creo aca lo iba distribuir datapro, pero nose que hay de cierto en eso, solo fue un rumor, saludos... <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: -->
Alguna noticia de FastReports ?
Jose Luis, enconté tu correo de yahoo pero no el del hotmail <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) -->
Alguna noticia de FastReports ?
Saludos Carlos, ya te respondi por yahoo, no revordaba no tenia correo msn aca...saludos... <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: -->
Alguna noticia de FastReports ?
Se murio <!-- s:cry: --><img src="{SMILIES_PATH}/icon_cry.gif" alt=":cry:" title="Crying or Very sad" /><!-- s:cry: --> [img:3f72d27n]http&#58;//t0&#46;gstatic&#46;com/images?q=tbn&#58;ANd9GcQ_Ds-JtfOzaTqZ_y6sdlnyGD2b9nJrNo_Qy0EisOfleZ1e_sNp[/img:3f72d27n]
Alguna novedad con activex + harbour svn + fwh9.07 ???
Pues lo del titulo, existe alguna novedad ???? Atte., Lautaro Moreira Osorno Chile
Alguna novedad con activex + harbour svn + fwh9.07 ???
Lautaro, De momento no hay novedad. Creemos que el problema viene de los cambios recientes que se han hecho en la Clase ToleAuto de Harbour. Lo que queremos intentar es aislar el problema en un ejemplo reproducible que no use FWH para proporcionarlo a la lista de desarrollo de Harbour. Has probado a usar el Harbour SVN más reciente pero con la librería hbwin.lib de la versión 2.0 beta de Harbour ? Esta podria ser una solución provisional.
Alguna novedad con activex + harbour svn + fwh9.07 ???
Lautaro, Has probado a reconstruir hbwin.lib despues de estos cambios recientes ? 2009-08-14 15:52 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl) * harbour/contrib/hbwin/olecore.c + added support for decoding VT_DECIMAL variants + added disabled by default support for passing pointer items just like in old OLE code + added decoding of VT_VARIANT passed by reference + encode NIL or other not directly supported types passed by reference as VT_VARIANT passed by reference * added disabled by '#if 0' code which uses VT_VARIANT | VT_BYREF to pass parameters by reference for testing
Alguna novedad con activex + harbour svn + fwh9.07 ???
Antonio, Gracias por la respuestas, voy a probar inmediatamente y aviso de los resultados por este medio. Atte., Lautaro Moreira Osorno Chile
Alguna novedad con activex + harbour svn + fwh9.07 ???
Antonio, Despues de las modificaciones que publicaste en la lista de correos de Harbour y la pequeña correccion al metodo setprop que envie en el mensaje : [url:1c1s26qx]http&#58;//forums&#46;fivetechsupport&#46;com/viewtopic&#46;php?f=6&t=15945[/url:1c1s26qx] los activex funcionan ok con la version del svn y la lib fwh9.07 que enviaste. Atte., Lautaro Moreira Osorno Chile
Alguna novedad con activex + harbour svn + fwh9.07 ???
Lautaro, Bien! <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Alguna novedad con activex + harbour svn + fwh9.07 ???
Me olvidaba, Przemek sugirio otra implementacion para __OLEPDISP que hace uso de hb_oleItemPut, ¿ para uso de fwh con harbour , cual es mejor ?, pensando en evitar futuros inconvenientes de incompatibilidad. Atte., Lautaro
Alguna novedad con activex + harbour svn + fwh9.07 ???
Lautaro, El código es igual en un caso que en el otro. Asi que no importa cual se implemente finalmente, funcionará bien <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Alguna novedad con activex + harbour svn + fwh9.07 ???
Ok, Gracias por la respuesta. Lautaro
Alguna novedad con parentcapture() + winxp
Pues eso, ya que ahi es donde esta el problema con trbgroup cuando se usa en un dialogo en windows xp, tambien pasa con los trbtn transparentes en winxp sobre un dialogo. Atte., Lautaro Moreira FWH9.08+harbour+msvc
Alguna novedad con parentcapture() + winxp
Lautaro... prueba con estos cambios y nos comentas para incluirlos en la proxima version agrega esta funcion al final de tu PRG principal [code=fw:5zffq3tl]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00D7D7;">#pragma</span> BEGINDUMP<br /><span style="color: #00D7D7;">#include</span> <hbapi.h><br /><span style="color: #00D7D7;">#include</span> <windows.h><br /><br />HBITMAP MakeBkBmpEx<span style="color: #000000;">&#40;</span> HWND hWnd, int iTop, int iLeft, int iWidth, int iHeight  <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />   HDC hDC   = GetDC<span style="color: #000000;">&#40;</span> hWnd <span style="color: #000000;">&#41;</span>;<br />   HDC hDC2;<br />   HBITMAP hBmp, hBmpOld;<br /><br />   hDC2    = CreateCompatibleDC<span style="color: #000000;">&#40;</span> hDC <span style="color: #000000;">&#41;</span>;<br />   hBmp    = CreateCompatibleBitmap<span style="color: #000000;">&#40;</span> hDC, iWidth, iHeight <span style="color: #000000;">&#41;</span>;<br />   hBmpOld = <span style="color: #000000;">&#40;</span> HBITMAP <span style="color: #000000;">&#41;</span> SelectObject<span style="color: #000000;">&#40;</span> hDC2, hBmp <span style="color: #000000;">&#41;</span>;<br /><br />   BitBlt<span style="color: #000000;">&#40;</span> hDC2, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, iWidth, iHeight, hDC, iLeft, iTop,  SRCCOPY <span style="color: #000000;">&#41;</span>;<br />   <br />   SelectObject<span style="color: #000000;">&#40;</span> hDC2, hBmpOld <span style="color: #000000;">&#41;</span>;<br />   <br />   DeleteDC<span style="color: #000000;">&#40;</span> hDC <span style="color: #000000;">&#41;</span>;<br />   DeleteDC<span style="color: #000000;">&#40;</span> hDC2 <span style="color: #000000;">&#41;</span>;<br />   <br />   <span style="color: #00C800;">return</span> hBmp;<br /><span style="color: #000000;">&#125;</span><br />   <br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> MAKEBKBMPEX <span style="color: #000000;">&#41;</span><span style="color: #B900B9;">// hWnd, nTop, nLeft, nWidth, nHeight --> hBmp</span><br /><span style="color: #000000;">&#123;</span><br />   hb_retnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> LONG <span style="color: #000000;">&#41;</span> MakeBkBmpEx<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> HWND <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_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span>, hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span>, hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">4</span> <span style="color: #000000;">&#41;</span>, hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">5</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> ;<br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #00D7D7;">#pragma</span> ENDDUMP<br /> </div>[/code:5zffq3tl] substituye la llamada a ParentCapture en las clases trbgroup y trbtn por esta linea [code=fw:5zffq3tl]<div class="fw" id="{CB}" style="font-family: monospace;">hCapture = MakeBkBmpEx<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">hWnd</span>, aRect<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span>, aRect<span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span>, ::<span style="color: #000000;">nWidth</span>, ::<span style="color: #000000;">nHeight</span> <span style="color: #000000;">&#41;</span></div>[/code:5zffq3tl]
Alguna novedad con parentcapture() + winxp
Daniel, Muchas gracias, funciona perfectamente en : Windows 2000, windows xp ( profesional ), windows vista ( bussines ), windows 7 ( ultimate ) Como siempre feliz de poder ayudar con las pruebas, Lautaro Moreira Osorno Chile
Alguna novedad con parentcapture() + winxp
Lautaro... Ya ha sido incluida la modificacion en la proxima version de FWH 9.09 Gracias por el feedback
Alguna sugerencia con Get
En mi aplicacion tengo varias tablas que son "catalogos" del sistema, algunas de ellas con tan solo 2 campos y solo uno para ser actualizado, (el otro es la llave, y lo genera "autonumerado"), pues bien, para no tener varios dialogos en mi .RC, el sistema genera automaticamente un dialogo en base a los campos que serán editados. en el caso de las tablas que solo tienen 2 campos, tan solo edito 1 que seria el nombre de (ciudad, moneda, etc.), Y lo que quiero hacer es que cuando el usuario cambie el dato de ese campo, con oprimir las teclas CTRL + F4, se grabe ese dato en la base de datos, para que no utilize tanto el mouse. Pero no se como validar que el campo ya fué cambiado. Por su atención GRACIAS Y FELIZ NAVIDA Y PROSPERO 2008, PARA TODOS Y CADA UNO DE UDS. Ricardo E. Guardado Flores
Alguna sugerencia con Get
Ricardo: En principio no veo la necesidad de saber si el dato fue cambiado o no, simplemente con la combinación de las teclas que mencionas grabas el dato aunque haya o no cambiado. Perooooo, si insistes en saber si el dato cambió o no te recomiendo que uses la clase TDATABASE que si no recuerdo mal tiene la propiedad lModified que te indica si cambió o no. Saludos y Felíz Navidad para todo el foro
Alguna sugerencia con Get
Armando, gracias por contestar. Perdon que no me haya dado a entender como deberia de ser. Te explico. Como comento tengo un dialogo con tan solo un campo y dos botones Al "EDITAR" el campo, este tiene el dato "HERMOSILLOS", para corregir el dato el usuario logicamente escribira "HERMOSILLO", pero sin que el usuario de "ENTER", al querer grabar con CTRL + F4, como el get no ha perdido el foco NI CON ENTER, NI CON TAB, pues el registro se queda como estaba, en cambio si llevo el mouse hacia el boton grabar, si lo hace, porque el get ya perdio el foco, (hay usuarios que les da flojera arrastrar el mouse, al cliente lo que solicite, porque gracias a ellos tenemos trabajo). "Necesito grabar los datos cuando el usuario esta dentro del get". Gracias por tus comentarios. Ricardo E. Guardado Flores.
Alguna sugerencia con Get
Podrias probar asi. <!-- m --><a class="postlink" href="http://fivetechsoft.com/forums/viewtopic.php?t=4840&highlight=salir">http://fivetechsoft.com/forums/viewtopi ... ight=salir</a><!-- m -->
Alguna sugerencia con Get
Ricardo, Aqui tienes un ejemplo funcionando como quieres: [code:2bqhkjtk] #include "FiveWin&#46;ch" function Main&#40;&#41; local oDlg, oGet, cText &#58;= "Hello world" SetKey&#40; VK_F4, &#123; || SaveGet&#40; oGet &#41; &#125; &#41; DEFINE DIALOG oDlg TITLE "Test" @ 2, 2 GET oGet VAR cText ACTIVATE DIALOG oDlg CENTERED return nil function SaveGet&#40; oGet &#41; if GetKeyState&#40; VK_CONTROL &#41; MsgInfo&#40; AllTrim&#40; oGet&#58;GetText&#40;&#41; &#41; &#41; // salvar aqui el contenido del GET endif return nil [/code:2bqhkjtk]
Alguna sugerencia con Get
Sr. Linares Como siempre, funciono Ok. Armando, Vital, Muchas gracias por sus sugerencias.
Alguna version de VERCE sirve en windows 7 64 bits
recien instale windows 7 y el verce que uso no sirve, probe el 4.3 el 5.3 y nada todos dan el mismo error, un alias DATMEN que o consigue, alguna version mas reciente?
Alguna version reciente de CDOSYS?
Saludos nuevamente. Ya reconstrui el ejecuble de CODSYS con la version bajada de internet, y esta me sigue dejando sin mis datos adjuntos los mails. Y el exe que biene con ella, si lo realiza sin problemas. Quiero suponer que es con una version de FWH anterior a la 13x Alquien que ya haya realizadfo cambios a este programa y que no tengan problemas porfa. O bien, se reciben re4comendaciones de alguna otra clase para el envio de mails desde las app. Gracias.
Alguna version reciente de CDOSYS?
<!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=3&t=25985">viewtopic.php?f=3&t=25985</a><!-- l --> <!-- m --><a class="postlink" href="http://www.pctoledo.com.br/forum/viewtopic.php?f=4&t=9345&start=30">http://www.pctoledo.com.br/forum/viewto ... 5&start=30</a><!-- m --> <!-- m --><a class="postlink" href="http://www.pctoledo.com.br/forum/viewtopic.php?f=4&t=13638">http://www.pctoledo.com.br/forum/viewto ... =4&t=13638</a><!-- m --> <!-- m --><a class="postlink" href="http://www.pctoledo.com.br/forum/viewtopic.php?f=4&t=10764&p=61999">http://www.pctoledo.com.br/forum/viewto ... 64&p=61999</a><!-- m --> <!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=3&t=25962">viewtopic.php?f=3&t=25962</a><!-- l --> <!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=3&t=25614&start=0">viewtopic.php?f=3&t=25614&start=0</a><!-- l --> <!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=3&t=24079&start=15">viewtopic.php?f=3&t=24079&start=15</a><!-- l --> <!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=6&t=14663">viewtopic.php?f=6&t=14663</a><!-- l --> Saludos.
Alguna version reciente de CDOSYS?
Ya encontre donde esta la falla del prg de cdosys. Nunca entra al ciclo For nEle := 1 To Len( aAttach ) :AddAttachment := AllTrim( aAttach[ nEle ] ) Next y por ello no tomas los archivos indicados y separados por comas..
Alguna version reciente de CDOSYS?
<!-- m --><a class="postlink" href="http://fivetechsupport.com/forums/viewtopic.php?f=3&t=25962&start=0">http://fivetechsupport.com/forums/viewt ... 62&start=0</a><!-- m --> <!-- m --><a class="postlink" href="https://groups.google.com/forum/#!topic/harbour-users/Q5XoaghBQI8">https://groups.google.com/forum/#!topic ... 5XoaghBQI8</a><!-- m --> <!-- m --><a class="postlink" href="http://fontefivewin.site88.net/sobre/page/2/">http://fontefivewin.site88.net/sobre/page/2/</a><!-- m -->
Algunas Preguntas acerca TExcelScript de Vikthor
Hola a todos Quiero "exportar" algunos reportes, dbfs y archivos de texto a excel, checando comentarios de otros colegas y viendo algunos ejemplos, considero que la clase del Master Vikthor me ofrece todo lo necesario y hasta mas, claro, sin quitar merito alguno a las demas clases que tambien tienen lo suyo. Por lo que tengo estas dudas : - Baje la version 1.14 con fecha 14-Abr-2005 como ultima correcion/actualizacion, es esta la mas actual ?? - Se puede cambiar el path diferente a Mis Documentos, donde se generen los archivos xls ??? Gracias y Saludos
Algunas Preguntas acerca TExcelScript de Vikthor
Raymundo, Al menos esta fué la última versión que estuvo publicada en su sitio. Es la que uso.
Algunas Preguntas acerca TExcelScript de Vikthor
Jose, Gracias por el dato Entonces, manos a la obra ! <!-- s:wink: --><img src="{SMILIES_PATH}/icon_wink.gif" alt=":wink:" title="Wink" /><!-- s:wink: --> Saludos
Algunas cosas Interesantes con WMI
<!-- 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 --> Saludos a toda la Comunidad: <!-- 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 --> Pongo a su disposición algunas funciones que he encontrado investigando un poco con WMI, ojala y a alguien le pueda servir, Si alguin más las puede complementar que mejor para que tengamos un mejor conocimiento de las posibilidades que podemos tener con esta tecnología. [code:12tit60p]#Include "FIVEWIN&#46;CH" Funcion Main&#40;&#41; LOCAL oDatos LOCAL nFree&#58;= "" LOCAL oLoc&#58;= CreateObject&#40; "wbemScripting&#46;SwbemLocator" &#41; LOCAL objWMI&#58;= oLoc&#58;ConnectServer&#40;&#41; LOCAL oSistema&#58;= objWMI&#58;ExecQuery&#40;"Select * from Win32_PhysicalMedia"&#41; LOCAL oDisco&#58;= objWMI&#58;ExecQuery&#40;"Select * from Win32_LogicalDisk"&#41; LOCAL oParti&#58;= objWMI&#58;ExecQuery&#40;"Select * from CIM_DiskPartition"&#41; LOCAL oDisket&#58;= objWMI&#58;ExecQuery&#40;"Select * From Win32_LogicalDisk Where DeviceID = 'A&#58;'"&#41; LOCAL objUnd&#58;= objWMI&#58;ExecQuery&#40;"Select * from Win32_MappedLogicalDisk"&#41; LOCAL oUnd&#58;= objWMI&#58;ExecQuery&#40;"Select * from Win32_CDROMDrive"&#41; LOCAL oResolu&#58;= objWMI&#58;ExecQuery&#40;"Select * from Win32_DesktopMonitor"&#41; LOCAL oSistem&#58;= objWMI&#58;ExecQuery&#40;"Select * from Win32_OperatingSystem"&#41; LOCAL oUsers&#58;= objWMI&#58;ExecQuery&#40;"Select * from Win32_Account"&#41; LOCAL oServ&#58;= objWMI&#58;ExecQuery&#40;"Select * from Win32_Service Where Name = 'Themes'"&#41; LOCAL oTime&#58;= objWMI&#58;ExecQuery&#40;"Select * from Win32_LocalTime"&#41; LOCAL oJbs &#58;= oSrv&#58;ExecQuery&#40; "SELECT * FROM Win32_BaseBoard" &#41; FOR Each oDatos In oSistema MsgInfo&#40;"Serial de fabrica&#58; " + ALLTRIM&#40;cValToChar&#40;oDatos&#58;SerialNumber&#41;&#41;,"Numero de serie del disco duro"&#41; NEXT FOR Each oDatos In oDisco MsgInfo&#40;"Unidad&#58; " + ALLTRIM&#40;cValToChar&#40;oDatos&#58;Name&#41;&#41; + "\ Serial&#58; " + ALLTRIM&#40;cValToChar&#40;oDatos&#58;VolumeSerialNumber&#41;&#41;,"Unidad y serial lógico de las unidades de disco"&#41; NEXT FOR Each oDatos in oParti MsgInfo&#40;ALLTRIM&#40;cValToChar&#40;oDatos&#58;Name&#41;&#41; + " - Tamaño&#58; " +ALLTRIM&#40;cValToChar&#40;oDatos&#58;Size&#41;&#41; + " En&#58; " + ALLTRIM&#40;cValToChar&#40;oDatos&#58;SystemName&#41;&#41; + " - Tipo&#58; " + ALLTRIM&#40;cValToChar&#40;oDatos&#58;TYPE&#41;&#41;,"Particiones disponibles"&#41; NEXT FOR Each oDatos in oDisket nFree&#58;= oDatos&#58;FreeSpace IF VALTYPE&#40;nFree&#41; = "U" MsgInfo&#40;"No hay diskete en la unidad A&#58;\","Aviso del WMI de Windows"&#41; ELSE MsgStop&#40;"Hay un diskete en la unidad A&#58;\","Aviso del WMI de Windows"&#41; ENDIF NEXT FOR Each oDatos In objUnd MsgInfo&#40;"Device ID&#58; " + oDatos&#58;DeviceID +" Nombre&#58; " + oDatos&#58;Name +" Espacio Libre&#58; " + cValtoChar&#40;oDatos&#58;FreeSpace&#41; + " Tamaño&#58; " + cValtoChar&#40;oDatos&#58;Size&#41;,"Lista de unidades Mapeadas en Mi PC"&#41; NEXT FOR Each oDatos in oUnd MsgInfo&#40;"Unidad&#58; " + oDatos&#58;Drive + " " + "Nombre&#58; " + oDatos&#58;Caption,"Unidades de CD instaladas en el equipo"&#41; NEXT FOR Each oDatos in oResolu MsgInfo&#40;"Trabajando a Resolución de Alto&#58; " + cValToChar&#40;oDatos&#58;ScreenHeight&#41; + " y Ancho&#58; " + cValToChar&#40;oDatos&#58;ScreenWidth&#41;,"Resolucion de Panralla"&#41; NEXT FOR Each oDatos In oSistem MsgInfo&#40;oDatos&#58;InstallDate,"Fecha de Instalación de Windows XP"&#41; NEXT FOR Each oDatos in oSistem MsgInfo&#40;"Directorio de Windows es&#58; " + oDatos&#58;WindowsDirectory +" Directorio del Sistema es&#58; "+ oDatos&#58;SystemDirectory,"Directorio de Windows y del Sistema"&#41; NEXT FOR Each oDatos in oUsers MsgInfo&#40;cValToChar&#40;oDatos&#58;Name&#41; + " - " + cValToChar&#40;oDatos&#58;Caption&#41;,"Lista de Usuarios de Windows"&#41; NEXT MsgInfo&#40;"Deshabilitarndo los Themes en Windows XP"&#41; FOR Each oDatos in oServ oDatos&#58;StopService&#40;&#41; SysRefresh&#40;&#41; NEXT MsgInfo&#40;"Habilitando los Themes en Windows XP"&#41; FOR Each oDatos in oServ oDatos&#58;StartService&#40;&#41; SysRefresh&#40;&#41; NEXT FOR Each oDatos in oSistem MsgInfo&#40;oDatos&#58;Caption + " " + oDatos&#58;VERSION,"Sistemas operativos instalados en el PC"&#41; NEXT FOR Each oDatos in oTime MsgInfo&#40; "Día&#58; " + cValToChar&#40;oDatos&#58;DAY&#41; + CRLF +; "Día de la semana&#58; " + cValToChar&#40;oDatos&#58;DayOfWeek&#41; + CRLF +; "Hora&#58; " + cValToChar&#40;oDatos&#58;Hour&#41; + CRLF +; "Minutos&#58; " + cValToChar&#40;oDatos&#58;Minute&#41; + CRLF +; "Mes&#58; " + cValToChar&#40;oDatos&#58;MONTH&#41; + CRLF +; "Segundos&#58; " + cValToChar&#40;oDatos&#58;Second&#41; + CRLF +; "Semana en el mes&#58; " + cValToChar&#40;oDatos&#58;WeekInMonth&#41; + CRLF +; "Año&#58; " + cValToChar&#40;oDatos&#58;YEAR&#41;,"Dia, Hora, Mes y Año desde WMI"&#41; NEXT FOR EACH oDatos IN oJbs MsgInfo&#40;"El Número de Serie de la MotherBoard es&#58; "+Alltrim&#40;cValtoChar&#40;oJob&#58;SerialNumber&#41;&#41;,"Desde WMI"&#41; NEXT Return nil[/code:12tit60p] Un furte Abrazo y Saludos...
Algunas cosas Interesantes con WMI
BIEN CHIAPAS, ME AHORRASTE LA INVESTIGACION, Y SE PRODRIA SABER DONDE LO CONSULTASTE?
Algunas cosas Interesantes con WMI
Saludos al Bello estado de Veracruz: <!-- 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 --> Estimado Josemar.. . Todos estos datos lo he recopilado de: [url:1a6qng2u]http&#58;//www&#46;davphantom&#46;net/modulo&#46;asp?op=3[/url:1a6qng2u] Hay algunas cosillas más por ahi en esa pagina, pero algunas no me funcionaron y algunas otras no les tome mucha importancia... Revisa alomejor algomas te puede servir... Saludos..
Algunas cosas Interesantes con WMI
chiapas, ya vi el enlace y como dices hay buscar las cosas interesantes, gracias por el tip y le voy a ivestigar mas.
Algunas cosas Interesantes con WMI
[quote="cuatecatl82":1zys2cku]Pongo a su disposición algunas funciones que he encontrado investigando un poco con WMI, ojala y a alguien le pueda servir, Si alguin más las puede complementar que mejor para que tengamos un mejor conocimiento de las posibilidades que podemos tener con esta tecnología.[/quote:1zys2cku] Muchas gracias Víctor por seguir compartiendo con nosotros tus trabajos que siempre resultan tan útiles. [quote="cuatecatl82":1zys2cku]Un furte Abrazo y Saludos...[/quote:1zys2cku] Me quedo con el abrazo y los saludos, no sea que el "furte" resulte ser una grosería Chiapaneca <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: --> Yo nada más te mando un abrazote. Manuel Mercado
Algunas cosas Interesantes con WMI
[b:j6gjmgcu]Gracias Estimado Manuel Mercado:[/b:j6gjmgcu] [b:j6gjmgcu]Gracias por tus palabras[/b:j6gjmgcu], siempre he dicho que si algo valioso aprendes, o sabes es bueno compartirlo con todos los que te rodean, es posible que a alguien ayudes aunque sea con un granito de arena... Me gusta aprender y enseñar lo aprendido, si a alguien puedo ayudar con lo poco que se, será para mi un placer poderlo ayudar... Y que más que aportar un poquito a toda esta comunidad de compañeros fivewineros que tanto me han ayudado... Perdón por lo de "furte", la palabra correcta es "fuerte".. Saludos desde Chiapas.. <!-- s8) --><img src="{SMILIES_PATH}/icon_cool.gif" alt="8)" title="Cool" /><!-- s8) --> <!-- s8) --><img src="{SMILIES_PATH}/icon_cool.gif" alt="8)" title="Cool" /><!-- s8) -->
Algunas cosas Interesantes con WMI
there are many errors [code:3tukio3h] &#91;1&#93;&#58;Harbour&#46;Exe testinfo&#46;prg /m /n0 /w2 /es2 /iC&#58;\work\FWH\include /ic&#58;\work\xHarbour\Include /iinclude;c&#58;\work\BCC55\Bin\include;c&#58;\work\xHarbour\include;c&#58;\work\fwh\include;c&#58;\work\include; /oObj\testinfo&#46;c xHarbour Compiler build 1&#46;1&#46;0 &#40;SimpLex&#41; Copyright 1999-2007, http&#58;//www&#46;xharbour&#46;org http&#58;//www&#46;harbour-project&#46;org/ Compiling 'testinfo&#46;prg'&#46;&#46;&#46; testinfo&#46;prg&#40;3&#41; Error E0030 Syntax error&#58; "parse error at 'MAIN'" testinfo&#46;prg&#40;5&#41; Error E0001 Statement not allowed outside of procedure or function testinfo&#46;prg&#40;6&#41; Error E0001 Statement not allowed outside of procedure or function testinfo&#46;prg&#40;6&#41; Warning W0001 Ambiguous reference&#58; 'NFREE' testinfo&#46;prg&#40;7&#41; Error E0001 Statement not allowed outside of procedure or function testinfo&#46;prg&#40;7&#41; Warning W0001 Ambiguous reference&#58; 'OLOC' testinfo&#46;prg&#40;8&#41; Error E0001 Statement not allowed outside of procedure or function testinfo&#46;prg&#40;8&#41; Warning W0001 Ambiguous reference&#58; 'OLOC' testinfo&#46;prg&#40;8&#41; Warning W0001 Ambiguous reference&#58; 'OBJWMI' testinfo&#46;prg&#40;9&#41; Error E0001 Statement not allowed outside of procedure or function testinfo&#46;prg&#40;9&#41; Warning W0001 Ambiguous reference&#58; 'OBJWMI' testinfo&#46;prg&#40;9&#41; Warning W0001 Ambiguous reference&#58; 'OSISTEMA' testinfo&#46;prg&#40;10&#41; Error E0001 Statement not allowed outside of procedure or function testinfo&#46;prg&#40;10&#41; Warning W0001 Ambiguous reference&#58; 'OBJWMI' testinfo&#46;prg&#40;10&#41; Warning W0001 Ambiguous reference&#58; 'ODISCO' testinfo&#46;prg&#40;11&#41; Error E0001 Statement not allowed outside of procedure or function testinfo&#46;prg&#40;11&#41; Warning W0001 Ambiguous reference&#58; 'OBJWMI' testinfo&#46;prg&#40;11&#41; Warning W0001 Ambiguous reference&#58; 'OPARTI' testinfo&#46;prg&#40;12&#41; Error E0001 Statement not allowed outside of procedure or function testinfo&#46;prg&#40;12&#41; Warning W0001 Ambiguous reference&#58; 'OBJWMI' testinfo&#46;prg&#40;12&#41; Warning W0001 Ambiguous reference&#58; 'ODISKET' testinfo&#46;prg&#40;13&#41; Error E0001 Statement not allowed outside of procedure or function testinfo&#46;prg&#40;13&#41; Warning W0001 Ambiguous reference&#58; 'OBJWMI' testinfo&#46;prg&#40;13&#41; Warning W0001 Ambiguous reference&#58; 'OBJUND' testinfo&#46;prg&#40;14&#41; Error E0001 Statement not allowed outside of procedure or function testinfo&#46;prg&#40;14&#41; Warning W0001 Ambiguous reference&#58; 'OBJWMI' testinfo&#46;prg&#40;14&#41; Warning W0001 Ambiguous reference&#58; 'OUND' testinfo&#46;prg&#40;15&#41; Error E0001 Statement not allowed outside of procedure or function testinfo&#46;prg&#40;15&#41; Warning W0001 Ambiguous reference&#58; 'OBJWMI' testinfo&#46;prg&#40;15&#41; Warning W0001 Ambiguous reference&#58; 'ORESOLU' testinfo&#46;prg&#40;16&#41; Error E0001 Statement not allowed outside of procedure or function testinfo&#46;prg&#40;16&#41; Warning W0001 Ambiguous reference&#58; 'OBJWMI' testinfo&#46;prg&#40;16&#41; Warning W0001 Ambiguous reference&#58; 'OSISTEM' testinfo&#46;prg&#40;17&#41; Error E0001 Statement not allowed outside of procedure or function testinfo&#46;prg&#40;17&#41; Warning W0001 Ambiguous reference&#58; 'OBJWMI' testinfo&#46;prg&#40;17&#41; Warning W0001 Ambiguous reference&#58; 'OUSERS' testinfo&#46;prg&#40;18&#41; Error E0001 Statement not allowed outside of procedure or function testinfo&#46;prg&#40;18&#41; Warning W0001 Ambiguous reference&#58; 'OBJWMI' testinfo&#46;prg&#40;18&#41; Warning W0001 Ambiguous reference&#58; 'OSERV' testinfo&#46;prg&#40;19&#41; Error E0001 Statement not allowed outside of procedure or function testinfo&#46;prg&#40;19&#41; Warning W0001 Ambiguous reference&#58; 'OBJWMI' testinfo&#46;prg&#40;19&#41; Warning W0001 Ambiguous reference&#58; 'OTIME' testinfo&#46;prg&#40;20&#41; Error E0001 Statement not allowed outside of procedure or function testinfo&#46;prg&#40;20&#41; Warning W0001 Ambiguous reference&#58; 'OSRV' testinfo&#46;prg&#40;20&#41; Warning W0001 Ambiguous reference&#58; 'OJBS' testinfo&#46;prg&#40;23&#41; Warning W0001 Ambiguous reference&#58; 'ODATOS' testinfo&#46;prg&#40;23&#41; Warning W0001 Ambiguous reference&#58; 'OSISTEMA' testinfo&#46;prg&#40;24&#41; Error E0001 Statement not allowed outside of procedure or function testinfo&#46;prg&#40;24&#41; Warning W0001 Ambiguous reference&#58; 'ODATOS' testinfo&#46;prg&#40;25&#41; Error E0001 Statement not allowed outside of procedure or function testinfo&#46;prg&#40;29&#41; Warning W0001 Ambiguous reference&#58; 'ODATOS' testinfo&#46;prg&#40;29&#41; Warning W0001 Ambiguous reference&#58; 'ODISCO' testinfo&#46;prg&#40;30&#41; Error E0001 Statement not allowed outside of procedure or function testinfo&#46;prg&#40;30&#41; Warning W0001 Ambiguous reference&#58; 'ODATOS' testinfo&#46;prg&#40;30&#41; Warning W0001 Ambiguous reference&#58; 'ODATOS' testinfo&#46;prg&#40;31&#41; Error E0001 Statement not allowed outside of procedure or function testinfo&#46;prg&#40;35&#41; Warning W0001 Ambiguous reference&#58; 'ODATOS' testinfo&#46;prg&#40;35&#41; Warning W0001 Ambiguous reference&#58; 'OPARTI' testinfo&#46;prg&#40;36&#41; Error E0001 Statement not allowed outside of procedure or function testinfo&#46;prg&#40;36&#41; Warning W0001 Ambiguous reference&#58; 'ODATOS' testinfo&#46;prg&#40;36&#41; Warning W0001 Ambiguous reference&#58; 'ODATOS' testinfo&#46;prg&#40;36&#41; Warning W0001 Ambiguous reference&#58; 'ODATOS' testinfo&#46;prg&#40;36&#41; Warning W0001 Ambiguous reference&#58; 'ODATOS' testinfo&#46;prg&#40;37&#41; Error E0001 Statement not allowed outside of procedure or function testinfo&#46;prg&#40;41&#41; Warning W0001 Ambiguous reference&#58; 'ODATOS' testinfo&#46;prg&#40;41&#41; Warning W0001 Ambiguous reference&#58; 'ODISKET' testinfo&#46;prg&#40;42&#41; Error E0001 Statement not allowed outside of procedure or function testinfo&#46;prg&#40;42&#41; Warning W0001 Ambiguous reference&#58; 'ODATOS' testinfo&#46;prg&#40;42&#41; Warning W0001 Ambiguous reference&#58; 'NFREE' testinfo&#46;prg&#40;44&#41; Warning W0001 Ambiguous reference&#58; 'NFREE' testinfo&#46;prg&#40;45&#41; Error E0001 Statement not allowed outside of procedure or function testinfo&#46;prg&#40;47&#41; Error E0001 Statement not allowed outside of procedure or function testinfo&#46;prg&#40;48&#41; Error E0001 Statement not allowed outside of procedure or function testinfo&#46;prg&#40;50&#41; Error E0001 Statement not allowed outside of procedure or function testinfo&#46;prg&#40;54&#41; Warning W0001 Ambiguous reference&#58; 'ODATOS' testinfo&#46;prg&#40;54&#41; Warning W0001 Ambiguous reference&#58; 'OBJUND' testinfo&#46;prg&#40;55&#41; Error E0001 Statement not allowed outside of procedure or function testinfo&#46;prg&#40;55&#41; Warning W0001 Ambiguous reference&#58; 'ODATOS' testinfo&#46;prg&#40;55&#41; Warning W0001 Ambiguous reference&#58; 'ODATOS' testinfo&#46;prg&#40;55&#41; Warning W0001 Ambiguous reference&#58; 'ODATOS' testinfo&#46;prg&#40;55&#41; Warning W0001 Ambiguous reference&#58; 'ODATOS' testinfo&#46;prg&#40;56&#41; Error E0001 Statement not allowed outside of procedure or function testinfo&#46;prg&#40;60&#41; Warning W0001 Ambiguous reference&#58; 'ODATOS' testinfo&#46;prg&#40;60&#41; Warning W0001 Ambiguous reference&#58; 'OUND' testinfo&#46;prg&#40;61&#41; Error E0001 Statement not allowed outside of procedure or function testinfo&#46;prg&#40;61&#41; Warning W0001 Ambiguous reference&#58; 'ODATOS' testinfo&#46;prg&#40;61&#41; Warning W0001 Ambiguous reference&#58; 'ODATOS' testinfo&#46;prg&#40;62&#41; Error E0001 Statement not allowed outside of procedure or function testinfo&#46;prg&#40;66&#41; Warning W0001 Ambiguous reference&#58; 'ODATOS' testinfo&#46;prg&#40;66&#41; Warning W0001 Ambiguous reference&#58; 'ORESOLU' testinfo&#46;prg&#40;67&#41; Error E0001 Statement not allowed outside of procedure or function testinfo&#46;prg&#40;67&#41; Warning W0001 Ambiguous reference&#58; 'ODATOS' testinfo&#46;prg&#40;67&#41; Warning W0001 Ambiguous reference&#58; 'ODATOS' testinfo&#46;prg&#40;68&#41; Error E0001 Statement not allowed outside of procedure or function testinfo&#46;prg&#40;72&#41; Warning W0001 Ambiguous reference&#58; 'ODATOS' testinfo&#46;prg&#40;72&#41; Warning W0001 Ambiguous reference&#58; 'OSISTEM' testinfo&#46;prg&#40;73&#41; Error E0001 Statement not allowed outside of procedure or function testinfo&#46;prg&#40;73&#41; Warning W0001 Ambiguous reference&#58; 'ODATOS' testinfo&#46;prg&#40;74&#41; Error E0001 Statement not allowed outside of procedure or function testinfo&#46;prg&#40;78&#41; Warning W0001 Ambiguous reference&#58; 'ODATOS' testinfo&#46;prg&#40;78&#41; Warning W0001 Ambiguous reference&#58; 'OSISTEM' testinfo&#46;prg&#40;79&#41; Error E0001 Statement not allowed outside of procedure or function testinfo&#46;prg&#40;79&#41; Warning W0001 Ambiguous reference&#58; 'ODATOS' testinfo&#46;prg&#40;79&#41; Warning W0001 Ambiguous reference&#58; 'ODATOS' testinfo&#46;prg&#40;80&#41; Error E0001 Statement not allowed outside of procedure or function testinfo&#46;prg&#40;84&#41; Warning W0001 Ambiguous reference&#58; 'ODATOS' testinfo&#46;prg&#40;84&#41; Warning W0001 Ambiguous reference&#58; 'OUSERS' testinfo&#46;prg&#40;85&#41; Error E0001 Statement not allowed outside of procedure or function testinfo&#46;prg&#40;85&#41; Warning W0001 Ambiguous reference&#58; 'ODATOS' testinfo&#46;prg&#40;85&#41; Warning W0001 Ambiguous reference&#58; 'ODATOS' testinfo&#46;prg&#40;86&#41; Error E0001 Statement not allowed outside of procedure or function testinfo&#46;prg&#40;90&#41; Error E0001 Statement not allowed outside of procedure or function testinfo&#46;prg&#40;91&#41; Warning W0001 Ambiguous reference&#58; 'ODATOS' testinfo&#46;prg&#40;91&#41; Warning W0001 Ambiguous reference&#58; 'OSERV' testinfo&#46;prg&#40;92&#41; Error E0001 Statement not allowed outside of procedure or function testinfo&#46;prg&#40;92&#41; Warning W0001 Ambiguous reference&#58; 'ODATOS' testinfo&#46;prg&#40;93&#41; Error E0001 Statement not allowed outside of procedure or function testinfo&#46;prg&#40;94&#41; Error E0001 Statement not allowed outside of procedure or function testinfo&#46;prg&#40;98&#41; Error E0001 Statement not allowed outside of procedure or function testinfo&#46;prg&#40;99&#41; Warning W0001 Ambiguous reference&#58; 'ODATOS' testinfo&#46;prg&#40;99&#41; Warning W0001 Ambiguous reference&#58; 'OSERV' testinfo&#46;prg&#40;100&#41; Error E0001 Statement not allowed outside of procedure or function testinfo&#46;prg&#40;100&#41; Warning W0001 Ambiguous reference&#58; 'ODATOS' testinfo&#46;prg&#40;101&#41; Error E0001 Statement not allowed outside of procedure or function testinfo&#46;prg&#40;102&#41; Error E0001 Statement not allowed outside of procedure or function testinfo&#46;prg&#40;106&#41; Warning W0001 Ambiguous reference&#58; 'ODATOS' testinfo&#46;prg&#40;106&#41; Warning W0001 Ambiguous reference&#58; 'OSISTEM' testinfo&#46;prg&#40;107&#41; Error E0001 Statement not allowed outside of procedure or function testinfo&#46;prg&#40;107&#41; Warning W0001 Ambiguous reference&#58; 'ODATOS' testinfo&#46;prg&#40;107&#41; Warning W0001 Ambiguous reference&#58; 'ODATOS' testinfo&#46;prg&#40;108&#41; Error E0001 Statement not allowed outside of procedure or function testinfo&#46;prg&#40;112&#41; Warning W0001 Ambiguous reference&#58; 'ODATOS' testinfo&#46;prg&#40;112&#41; Warning W0001 Ambiguous reference&#58; 'OTIME' testinfo&#46;prg&#40;120&#41; Error E0001 Statement not allowed outside of procedure or function testinfo&#46;prg&#40;120&#41; Warning W0001 Ambiguous reference&#58; 'ODATOS' testinfo&#46;prg&#40;120&#41; Warning W0001 Ambiguous reference&#58; 'ODATOS' testinfo&#46;prg&#40;120&#41; Warning W0001 Ambiguous reference&#58; 'ODATOS' testinfo&#46;prg&#40;120&#41; Warning W0001 Ambiguous reference&#58; 'ODATOS' testinfo&#46;prg&#40;120&#41; Warning W0001 Ambiguous reference&#58; 'ODATOS' testinfo&#46;prg&#40;120&#41; Warning W0001 Ambiguous reference&#58; 'ODATOS' testinfo&#46;prg&#40;120&#41; Warning W0001 Ambiguous reference&#58; 'ODATOS' testinfo&#46;prg&#40;120&#41; Warning W0001 Ambiguous reference&#58; 'ODATOS' testinfo&#46;prg&#40;121&#41; Error E0001 Statement not allowed outside of procedure or function testinfo&#46;prg&#40;124&#41; Warning W0001 Ambiguous reference&#58; 'ODATOS' testinfo&#46;prg&#40;124&#41; Warning W0001 Ambiguous reference&#58; 'OJBS' testinfo&#46;prg&#40;125&#41; Error E0001 Statement not allowed outside of procedure or function testinfo&#46;prg&#40;125&#41; Warning W0001 Ambiguous reference&#58; 'OJOB' testinfo&#46;prg&#40;126&#41; Error E0001 Statement not allowed outside of procedure or function testinfo&#46;prg&#40;128&#41; Error E0001 Statement not allowed outside of procedure or function testinfo&#46;prg&#40;128&#41; Warning W0006 Procedure returns value 55 errors No code generated [/code:3tukio3h]