topic
stringlengths
1
63
text
stringlengths
1
577k
ALGORITMO PARA CREAR PLAN DE CUENTA CONTABLE
[quote="Armando":3va9d59k]José Luis: Si entendí bien, al menos lo que yo hago es, como te explicó hmpaquito, al armar el plan de cuentas primero debes dar de alta la cuenta de primer nivel 6 luego la de segundo nivel, validando que ya existe la del nivel inmediato superior, en este caso la 6 6-1 luego la de tercer nivel, validando que ya existe la del nivel inmediato superior, en este caso la 6-1 6-1-1 Y así sucesivamente Al registrar los movimientos o pólizas, debes validar que la cuenta que recibe el movimiento sea la de último nivel, recuerda que las de niveles superiores son acumulativas,en el ejemplo de arriba, sería la 6-1-1. cómo?, yo capturo los movimientos en una tabla temporal, al finalizar la captura de la póliza, valido que el importe del DEBE y HABER sean los mismos, es la regla de la partida doble. Si todo va bien, paso los movimientos de la tabla temporal a la tabla que conservará todas las pólizas del ejercicio fiscal. Espero te ayude en algo. Saludos[/quote:3va9d59k] Armando, por alli va el tiro, lo que debo determinar hasta q nivel van hacer acumulativas de forma basica y luego a partir del nivel X validar q la seleccionada es de movimiento, porque digo eso.? pues porque si existe una cuenta maestra nivel 1(ej. 6) que son las cuentas de mayor hasta donde tengo entendido, si creo una cuenta 6.1 y no hay mas inferiores, por decir 6.1.1, esta 6.1 no deberia permitir movimientos ya que ese seria un nivel 2 y son otros tipos de cuenta, por lo menos es lo que he visto en la contabilidad venezolana, no se si me equivoco en lo que digo ni como la manejarias tu o la de otros paises...gracias..saludos... <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: -->
ALGORITMO PARA CREAR PLAN DE CUENTA CONTABLE
José Luis: La regla es que todas las cuentas de último nivel son las únicas que reciben movimientos, las de nivel superior solo son acumulativas. Tomando en cuenta esta regla solo necesitas validar que los movimientos afecten cuentas de último nivel. En el ejemplo anterior solo la cuenta 6-1-1 podrá recibir movimientos, las superiores 6-1 y 6 solo serán acumulativas. Saludos
ALGORITMO PARA CREAR PLAN DE CUENTA CONTABLE
[quote="Armando":2wl7vfvr]José Luis: La regla es que todas las cuentas de último nivel son las únicas que reciben movimientos, las de nivel superior solo son acumulativas. Tomando en cuenta esta regla solo necesitas validar que los movimientos afecten cuentas de último nivel. En el ejemplo anterior solo la cuenta 6-1-1 podrá recibir movimientos, las superiores 6-1 y 6 solo serán acumulativas. Saludos[/quote:2wl7vfvr] Armando entiendo claramente tu punto y estoy de acuerdo, pero hasta lo que he visto en la contabilidad de venezuela hay ciertos niveles que no deberian aceptar movimientos aunque sea la ultima, o no se si estare equivocado, te pregunto y seguimos con tu ejemplo, si tengo una cuenta 6 y una cuenta 6.1, para ti la cuenta 6.1 es la que recibe los movimientos y la 6 obviamente es la acumulativa.? si tu respúesta es SI, entonces aqui hasta donde se, vuelvo y repito a menos que me equivoque, la cuenta 6.1 no podria recibir movimientos ya que en el nivel de plan de cuenta es una cuenta acumulativa, hay que crearle ajuro una cuenta 6.1.1...es lo que entiendo y donde deberia de validar a partir de que nivel de cuenta empiezan a recibir movimientos- voy a leer un poco un libro de contabilidad muy famoso aca y vere si aclaro ese punto, si estoty equivocado entonces sera un poco facil el control asi como tu lo dices...espero tu comentario o de algun colega venezolano que haya realizado algun modulo contable y que pueda aclarar la duda que expreso...gracias...saludos... <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: -->
ALGORITMO PARA CREAR PLAN DE CUENTA CONTABLE
José Luis: Desafortunadamente no conozco la contabilidad de tu país pero me parece que la contabilidad es universal, respecto a tu última pregunta donde piensas que debes abrir una cuenta 6-1-1 que será la que reciba los movimientos, NO, no necesariamente debe ser así, habrá cuentas que tengan solo dos niveles, otras necesitan tener tres niveles y seguramente habrá otras que deben abrir un cuarto nivel, eso depende el nivel de detalle que el área de finanzas quiere controlar. Por ejemplo, la cuenta de bancos seria mas o menos así: 1 Bancos 1-1 Banco del ahorro nacional 1-1-1 Moneda nacional 1-1-2 Moneda extranjera 1-2 Banco de la ilusión 1-2-1 Moneda nacional 1-2-2 Moneda extranjera Como ves, aquí solo es necesario un tercer nivel, pero en otra área, por ejemplo almacén 40 Almacenes 40-1 Almacén central 40-1-1 Producto terminado 40-1-1 Relojes 40-1-1-2 Para dama 40-1-2-3 Para caballero 40-2 Almacén del norte 40-2-1 Producto terminado 40-2-1 Relojes 40-2-1-2 Para dama 40-2-2-3 Para caballero Como ves en estas cuentas se necesitan 4 niveles y es válido. Saludos
ALGORITMO PARA CREAR PLAN DE CUENTA CONTABLE
Armando, con lo que expones me das la razon, que las cuentas de movimientos siempre estaran a partir de una nivel 3, y es lo que estoy aclarando en la validacion, aunque la contabilidad es algo universal, no para todos es igual, fijate que en tu ejemplo del almacen las cuentas 40 Almacenes -> ACUMULATIVA NIVEL 1 40-1 Almacén central -> ACUMULATIVA NIVEL 2 40-1-1 Producto terminado -> DE MOVIMIENTO NIVEL 3 40-1-1 Relojes -> ACUMULATIVA NIVEL 3 40-1-1-2 Para dama -> DE MOVIMIENTO NIVEL 4 40-1-2-3 Para caballero -> DE MOVIMIENTO NIVEL 4 lo que queria era aclarar mi duda de que nunca una cuenta de movimiento va ser de NIVEL 2, por eso el ejemplo de 6 y 6.1, gracias por tu aclaratoria e intercambio de conocimientos contables, aca dejo unas paginas que aclaran aun mas, cualquier duda estare escribiendo o si deseas compartir mi correo es <!-- e --><a href="mailto:joseluisysturiz@yahoo.com">joseluisysturiz@yahoo.com</a><!-- e --> saludos... <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: --> <!-- m --><a class="postlink" href="http://www.venezuelacuenta.com.ve/el-plan-de-cuentas-contable/">http://www.venezuelacuenta.com.ve/el-pl ... -contable/</a><!-- m --> <!-- m --><a class="postlink" href="https://es.wikipedia.org/wiki/Plan_de_cuentas">https://es.wikipedia.org/wiki/Plan_de_cuentas</a><!-- m -->
ALGORITMO PARA CREAR PLAN DE CUENTA CONTABLE
[quote="joseluisysturiz":1beo9be2]Armando, con lo que expones me das la razon, que las cuentas de movimientos siempre estaran a partir de una nivel 3, y es lo que estoy aclarando en la validacion, aunque la contabilidad es algo universal, no para todos es igual, fijate que en tu ejemplo del almacen las cuentas 40 Almacenes -> ACUMULATIVA NIVEL 1 40-1 Almacén central -> ACUMULATIVA NIVEL 2 40-1-1 Producto terminado -> DE MOVIMIENTO NIVEL 3 40-1-1 Relojes -> ACUMULATIVA NIVEL 3 40-1-1-2 Para dama -> DE MOVIMIENTO NIVEL 4 40-1-2-3 Para caballero -> DE MOVIMIENTO NIVEL 4 lo que queria era aclarar mi duda de que nunca una cuenta de movimiento va ser de NIVEL 2, por eso el ejemplo de 6 y 6.1, gracias por tu aclaratoria e intercambio de conocimientos contables, aca dejo unas paginas que aclaran aun mas, cualquier duda estare escribiendo o si deseas compartir mi correo es <!-- e --><a href="mailto:joseluisysturiz@yahoo.com">joseluisysturiz@yahoo.com</a><!-- e --> saludos... <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: --> <!-- m --><a class="postlink" href="http://www.venezuelacuenta.com.ve/el-plan-de-cuentas-contable/">http://www.venezuelacuenta.com.ve/el-pl ... -contable/</a><!-- m --> <!-- m --><a class="postlink" href="https://es.wikipedia.org/wiki/Plan_de_cuentas">https://es.wikipedia.org/wiki/Plan_de_cuentas</a><!-- m -->[/quote:1beo9be2] Hola buenos dias Ing. Jose Luis le paso el codigo de un modulo de alta de cuentas contables de 1 a 4 niveles de cuentas, espero que te ayude . [code=fw:1beo9be2]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br />*<span style="color: #00D7D7;">#Include</span> <span style="color: #ff0000;">"BtnGet.Ch"</span><br /><br /><span style="color: #00C800;">STATIC</span> S06, S08, S15<br /><span style="color: #00C800;">STATIC</span> oDlg<br /><span style="color: #00C800;">STATIC</span> cCuenta,cDescribe,nTCuenta,cCtaProv,nTProveedor,nTOperacion,lAp_SN,lIVA,lSNMov,cDesOpera<br /><span style="color: #00C800;">STATIC</span> cNombFM,cCurp,cDireccion,cCiudad,cRfc,cCp,nTelefono,nFax<br /><span style="color: #00C800;">STATIC</span> nNivel<br /><span style="color: #00C800;">STATIC</span> oGet,oSay, oBtn,lNuevo,lOk, oRad1, oRad2<br /><br /><br />Memvar S04, oMOpc, cNombUsua, cNombre<br /><br /><span style="color: #B900B9;">//------------------------------------------------------------------------------</span><br /><span style="color: #00C800;">FUNCTION</span> CATALOGO<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp;AltCat<span style="color: #000000;">&#40;</span>.F.,<span style="color: #ff0000;">"cCta"</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><br /><span style="color: #B900B9;">//------------------------------------------------------------------------------</span><br /><span style="color: #00C800;">FUNCTION</span> AltCat<span style="color: #000000;">&#40;</span>lPol,AltaCta<span style="color: #000000;">&#41;</span><br />&nbsp;<span style="color: #00C800;">LOCAL</span> oItem:=oMOpc<br /><br />&nbsp;<span style="color: #00C800;">PUBLIC</span> nNUMEMP, nMES, nANO<br /><br />&nbsp;oGet &nbsp; := Array<span style="color: #000000;">&#40;</span><span style="color: #000000;">15</span><span style="color: #000000;">&#41;</span><br />&nbsp;oSay &nbsp; := Array<span style="color: #000000;">&#40;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span><br />&nbsp;oBtn &nbsp; := Array<span style="color: #000000;">&#40;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp;nNivel := <span style="color: #000000;">0</span><br /><br />&nbsp;<span style="color: #00C800;">IF</span> lPol<br />&nbsp; &nbsp; &nbsp;cCuenta := AltaCta<br />&nbsp;<span style="color: #00C800;">ELSE</span><br />&nbsp; &nbsp; &nbsp;cCuenta := Space<span style="color: #000000;">&#40;</span><span style="color: #000000;">19</span><span style="color: #000000;">&#41;</span><br />&nbsp;<span style="color: #00C800;">ENDIF</span><br /><br />&nbsp;lAp_SN &nbsp; &nbsp; &nbsp;:= <span style="color: #000000;">&#40;</span>S04<span style="color: #000000;">&#41;</span>->AP_SEGNG<br />&nbsp;cDescribe &nbsp; := SPACE<span style="color: #000000;">&#40;</span><span style="color: #000000;">65</span><span style="color: #000000;">&#41;</span><br />&nbsp;nTCuenta &nbsp; &nbsp;:= <span style="color: #000000;">2</span><br />&nbsp;nTProveedor := <span style="color: #000000;">2</span><br />&nbsp;cCtaProv &nbsp; &nbsp;:= SPACE<span style="color: #000000;">&#40;</span><span style="color: #000000;">12</span><span style="color: #000000;">&#41;</span><br />&nbsp;nTOperacion := <span style="color: #000000;">0</span><br />&nbsp;cDesOpera &nbsp; := <span style="color: #ff0000;">""</span><br />&nbsp;lIVA &nbsp; &nbsp; &nbsp; &nbsp;:= .F.<br />&nbsp;lSNMov &nbsp; &nbsp; &nbsp;:= .F.<br />&nbsp;cNombFM &nbsp; &nbsp; := SPACE<span style="color: #000000;">&#40;</span><span style="color: #000000;">65</span><span style="color: #000000;">&#41;</span><br />&nbsp;cCurp &nbsp; &nbsp; &nbsp; := SPACE<span style="color: #000000;">&#40;</span><span style="color: #000000;">18</span><span style="color: #000000;">&#41;</span><br />&nbsp;cDireccion &nbsp;:= SPACE<span style="color: #000000;">&#40;</span><span style="color: #000000;">80</span><span style="color: #000000;">&#41;</span><br />&nbsp;cCiudad &nbsp; &nbsp; := SPACE<span style="color: #000000;">&#40;</span><span style="color: #000000;">36</span><span style="color: #000000;">&#41;</span><br />&nbsp;cRfc &nbsp; &nbsp; &nbsp; &nbsp;:= SPACE<span style="color: #000000;">&#40;</span><span style="color: #000000;">14</span><span style="color: #000000;">&#41;</span><br />&nbsp;cCp &nbsp; &nbsp; &nbsp; &nbsp; := SPACE<span style="color: #000000;">&#40;</span><span style="color: #000000;">14</span><span style="color: #000000;">&#41;</span><br />&nbsp;nTelefono &nbsp; := <span style="color: #000000;">0</span><br />&nbsp;nFax &nbsp; &nbsp; &nbsp; &nbsp;:= <span style="color: #000000;">0</span><br />&nbsp;lNuevo &nbsp; &nbsp; &nbsp;:= .F.<br /><br />&nbsp;S06 := Abre_Dbf<span style="color: #000000;">&#40;</span><span style="color: #000000;">6</span>,<span style="color: #000000;">6</span><span style="color: #000000;">&#41;</span> &nbsp; <span style="color: #B900B9;">// ABRE TIPOPERA.DBF</span><br />&nbsp;S08 := Abre_Dbf<span style="color: #000000;">&#40;</span><span style="color: #000000;">8</span>,<span style="color: #000000;">8</span><span style="color: #000000;">&#41;</span> &nbsp; <span style="color: #B900B9;">// ABRE CATCTAxA.DBF</span><br />&nbsp;S15 := Abre_Dbf<span style="color: #000000;">&#40;</span><span style="color: #000000;">15</span>,<span style="color: #000000;">15</span><span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// ABRE CATPROVD.DBF</span><br /><br />&nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">RESOURCE</span> <span style="color: #ff0000;">"CATALOGO"</span> <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Altas catálogo de cuentas"</span><br />&nbsp; <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">GET</span> &nbsp; oGet<span style="color: #000000;">&#91;</span><span style="color: #000000;">01</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">VAR</span> cCuenta &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">ID</span> <span style="color: #000000;">101</span> &nbsp; &nbsp; <span style="color: #0000ff;">OF</span> oDlg ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">PICTURE</span> <span style="color: #ff0000;">"@K ###################"</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">&#40;</span>ListCat<span style="color: #000000;">&#40;</span>@cCuenta,S08,<span style="color: #ff0000;">"cCuenta"</span>,oGet<span style="color: #000000;">&#91;</span><span style="color: #000000;">01</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">UPDATE</span> <span style="color: #0000ff;">VALID</span> VALCTA<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">GET</span> &nbsp; oGet<span style="color: #000000;">&#91;</span><span style="color: #000000;">02</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">VAR</span> cDescribe &nbsp; &nbsp;<span style="color: #0000ff;">ID</span> <span style="color: #000000;">102</span> &nbsp; &nbsp; <span style="color: #0000ff;">OF</span> oDlg <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;">VALID</span> V_DESCRIP<span style="color: #000000;">&#40;</span>cDescribe<span style="color: #000000;">&#41;</span><br />&nbsp; <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">RADIO</span> oGet<span style="color: #000000;">&#91;</span><span style="color: #000000;">03</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">VAR</span> nTCuenta &nbsp; &nbsp; <span style="color: #0000ff;">ID</span> <span style="color: #000000;">103</span>,<span style="color: #000000;">104</span> <span style="color: #0000ff;">OF</span> oDlg &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">UPDATE</span><br />&nbsp; <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">RADIO</span> oGet<span style="color: #000000;">&#91;</span><span style="color: #000000;">04</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">VAR</span> nTProveedor &nbsp;<span style="color: #0000ff;">ID</span> <span style="color: #000000;">105</span>,<span style="color: #000000;">106</span> <span style="color: #0000ff;">OF</span> oDlg &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">UPDATE</span><br />&nbsp;*oRad1:<span style="color: #000000;">aItems</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">SetText</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"QUE ONDA"</span><span style="color: #000000;">&#41;</span><br />&nbsp; <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">CHECKBOX</span> oGet<span style="color: #000000;">&#91;</span><span style="color: #000000;">05</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">VAR</span> lIVA &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">ID</span> <span style="color: #000000;">107</span> <span style="color: #0000ff;">OF</span> oDlg &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">//UPDATE</span><br />&nbsp; <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">CHECKBOX</span> oGet<span style="color: #000000;">&#91;</span><span style="color: #000000;">06</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">VAR</span> lSNMov &nbsp; &nbsp;<span style="color: #0000ff;">ID</span> <span style="color: #000000;">108</span> <span style="color: #0000ff;">OF</span> oDlg &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">WHEN</span> lAp_SN<br /><br />&nbsp; <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">GET</span> &nbsp; oGet<span style="color: #000000;">&#91;</span><span style="color: #000000;">07</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">VAR</span> nTOperacion &nbsp;<span style="color: #0000ff;">ID</span> <span style="color: #000000;">109</span> &nbsp; &nbsp; <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">PICTURE</span> <span style="color: #ff0000;">"9"</span> <span style="color: #0000ff;">WHEN</span> <span style="color: #00C800;">IF</span><span style="color: #000000;">&#40;</span>nTCuenta = <span style="color: #000000;">2</span> .OR. nTProveedor = <span style="color: #000000;">1</span>, .F., .T.<span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">&#40;</span>A_TOPERA<span style="color: #000000;">&#40;</span>@nTOperacion,S06<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">VALID</span> VTOPERA<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">SAY</span> &nbsp; oSay<span style="color: #000000;">&#91;</span><span style="color: #000000;">01</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">PROMPT</span> cDesOpera <span style="color: #0000ff;">ID</span> <span style="color: #000000;">150</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">PICTURE</span> <span style="color: #ff0000;">"@!"</span> <span style="color: #0000ff;">UPDATE</span><br /><br />&nbsp; <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">GET</span> &nbsp; oGet<span style="color: #000000;">&#91;</span><span style="color: #000000;">08</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">VAR</span> cNombFM &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">ID</span> <span style="color: #000000;">110</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">PICTURE</span> <span style="color: #ff0000;">"@!"</span> <span style="color: #0000ff;">UPDATE</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">WHEN</span> <span style="color: #00C800;">IF</span><span style="color: #000000;">&#40;</span>nTCuenta = <span style="color: #000000;">2</span> .OR. nTProveedor = <span style="color: #000000;">1</span>, .F., .T.<span style="color: #000000;">&#41;</span><br />&nbsp; <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">GET</span> &nbsp; oGet<span style="color: #000000;">&#91;</span><span style="color: #000000;">09</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">VAR</span> cCurp &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">ID</span> <span style="color: #000000;">111</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">PICTURE</span> <span style="color: #ff0000;">"@!"</span> <span style="color: #0000ff;">UPDATE</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">WHEN</span> <span style="color: #00C800;">IF</span><span style="color: #000000;">&#40;</span>nTCuenta = <span style="color: #000000;">2</span> .OR. nTProveedor = <span style="color: #000000;">1</span>, .F., .T.<span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">VALID</span> invStr<span style="color: #000000;">&#40;</span>cCurp<span style="color: #000000;">&#41;</span><br />&nbsp; <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">GET</span> &nbsp; oGet<span style="color: #000000;">&#91;</span><span style="color: #000000;">10</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">VAR</span> cDireccion &nbsp; <span style="color: #0000ff;">ID</span> <span style="color: #000000;">112</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">PICTURE</span> <span style="color: #ff0000;">"@!"</span> <span style="color: #0000ff;">UPDATE</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">WHEN</span> <span style="color: #00C800;">IF</span><span style="color: #000000;">&#40;</span>nTCuenta = <span style="color: #000000;">2</span> .OR. nTProveedor = <span style="color: #000000;">1</span>, .F., .T.<span style="color: #000000;">&#41;</span><br />&nbsp; <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">GET</span> &nbsp; oGet<span style="color: #000000;">&#91;</span><span style="color: #000000;">11</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">VAR</span> cCiudad &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">ID</span> <span style="color: #000000;">113</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">PICTURE</span> <span style="color: #ff0000;">"@!"</span> <span style="color: #0000ff;">UPDATE</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">WHEN</span> <span style="color: #00C800;">IF</span><span style="color: #000000;">&#40;</span>nTCuenta = <span style="color: #000000;">2</span> .OR. nTProveedor = <span style="color: #000000;">1</span>, .F., .T.<span style="color: #000000;">&#41;</span><br />&nbsp; <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">GET</span> &nbsp; oGet<span style="color: #000000;">&#91;</span><span style="color: #000000;">12</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">VAR</span> cRfc &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ID</span> <span style="color: #000000;">114</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">PICTURE</span> <span style="color: #ff0000;">"@!"</span> <span style="color: #0000ff;">UPDATE</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">WHEN</span> <span style="color: #00C800;">IF</span><span style="color: #000000;">&#40;</span>nTCuenta = <span style="color: #000000;">2</span> .OR. nTProveedor = <span style="color: #000000;">1</span>, .F., .T.<span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">VALID</span> V_RFC<span style="color: #000000;">&#40;</span>cRFC<span style="color: #000000;">&#41;</span><br />&nbsp; <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">GET</span> &nbsp; oGet<span style="color: #000000;">&#91;</span><span style="color: #000000;">13</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">VAR</span> cCp &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">ID</span> <span style="color: #000000;">115</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">PICTURE</span> <span style="color: #ff0000;">"@K #######"</span> <span style="color: #0000ff;">UPDATE</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">WHEN</span> <span style="color: #00C800;">IF</span><span style="color: #000000;">&#40;</span>nTCuenta = <span style="color: #000000;">2</span> .OR. nTProveedor = <span style="color: #000000;">1</span>, .F., .T.<span style="color: #000000;">&#41;</span><br />&nbsp; <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">GET</span> &nbsp; oGet<span style="color: #000000;">&#91;</span><span style="color: #000000;">14</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">VAR</span> nTelefono &nbsp; &nbsp;<span style="color: #0000ff;">ID</span> <span style="color: #000000;">116</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">PICTURE</span> <span style="color: #ff0000;">"@9"</span> <span style="color: #0000ff;">UPDATE</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">WHEN</span> <span style="color: #00C800;">IF</span><span style="color: #000000;">&#40;</span>nTCuenta = <span style="color: #000000;">2</span> .OR. nTProveedor = <span style="color: #000000;">1</span>, .F., .T.<span style="color: #000000;">&#41;</span><br />&nbsp; <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">GET</span> &nbsp; oGet<span style="color: #000000;">&#91;</span><span style="color: #000000;">15</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">VAR</span> nFax &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ID</span> <span style="color: #000000;">117</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">PICTURE</span> <span style="color: #ff0000;">"@9"</span> <span style="color: #0000ff;">UPDATE</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">WHEN</span> <span style="color: #00C800;">IF</span><span style="color: #000000;">&#40;</span>nTCuenta = <span style="color: #000000;">2</span> .OR. nTProveedor = <span style="color: #000000;">1</span>, .F., .T.<span style="color: #000000;">&#41;</span><br /><br />&nbsp;oGet<span style="color: #000000;">&#91;</span><span style="color: #000000;">01</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">bKeyDown</span> := <span style="color: #000000;">&#123;</span> |nKey| IIF<span style="color: #000000;">&#40;</span> nKey == VK_F2,<span style="color: #000000;">&#40;</span>oGet<span style="color: #000000;">&#91;</span><span style="color: #000000;">01</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">Assign</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>,Eval<span style="color: #000000;">&#40;</span> oGet<span style="color: #000000;">&#91;</span><span style="color: #000000;">01</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">bAction</span> <span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>,<span style="color: #ff0000;">""</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />&nbsp;oGet<span style="color: #000000;">&#91;</span><span style="color: #000000;">01</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">cToolTip</span> := <span style="color: #ff0000;">"Presiona F2"</span><br />&nbsp;oGet<span style="color: #000000;">&#91;</span><span style="color: #000000;">05</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">bKeyDown</span> := <span style="color: #000000;">&#123;</span> |nKey| IIF<span style="color: #000000;">&#40;</span> nKey == VK_F2,<span style="color: #000000;">&#40;</span>oGet<span style="color: #000000;">&#91;</span><span style="color: #000000;">05</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">Assign</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>,Eval<span style="color: #000000;">&#40;</span> oGet<span style="color: #000000;">&#91;</span><span style="color: #000000;">05</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">bAction</span> <span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>,<span style="color: #ff0000;">""</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />&nbsp;oGet<span style="color: #000000;">&#91;</span><span style="color: #000000;">05</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">cToolTip</span> := <span style="color: #ff0000;">"Presiona F2"</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">BUTTON</span> oBtn<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">ID</span> <span style="color: #000000;">201</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">ACTION</span> REG_DATO<span style="color: #000000;">&#40;</span>lPol<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">BUTTON</span> oBtn<span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">ID</span> <span style="color: #000000;">202</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">ACTION</span> oDlg:<span style="color: #000000;">END</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp;<span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span> <span style="color: #0000ff;">VALID</span> <span style="color: #000000;">&#40;</span>oItem:<span style="color: #000000;">Enable</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>,.T.<span style="color: #000000;">&#41;</span><br /><br />&nbsp;Close_Dbf<span style="color: #000000;">&#40;</span><span style="color: #000000;">6</span>,S06<span style="color: #000000;">&#41;</span><br /><br />&nbsp;<span style="color: #00C800;">IF</span> !lPol<br />&nbsp; &nbsp; &nbsp;Close_Dbf<span style="color: #000000;">&#40;</span><span style="color: #000000;">8</span>,S08<span style="color: #000000;">&#41;</span><br />&nbsp;<span style="color: #00C800;">ELSE</span><br />&nbsp; &nbsp; &nbsp;Close_Dbf<span style="color: #000000;">&#40;</span><span style="color: #000000;">8</span>,S08<span style="color: #000000;">&#41;</span><br />&nbsp;<span style="color: #00C800;">ENDIF</span><br /><br />&nbsp;Close_Dbf<span style="color: #000000;">&#40;</span><span style="color: #000000;">15</span>,S15<span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><br /><span style="color: #B900B9;">//------------------------------------------------------------------------------</span><br /><span style="color: #00C800;">STATIC</span> <span style="color: #00C800;">FUNCTION</span> VALCTA<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp;<span style="color: #00C800;">LOCAL</span> I, cCta:=SPACE<span style="color: #000000;">&#40;</span><span style="color: #000000;">16</span><span style="color: #000000;">&#41;</span>,xDig1,xDig2,xDig3,xDig4,xCtaDig,nPos1,nPos2,lProv :=.F.<br /><br />&nbsp;cCuenta := FORMATO1<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"cCuenta"</span>, cCuenta,.T.<span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// Despliega formato con guion en el get</span><br />&nbsp;cCta &nbsp; &nbsp;:= FORMATO1<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"cCuenta"</span>, cCuenta,.F.<span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// Despliega formato sin guion a buscar</span><br /><br />&nbsp;<span style="color: #B900B9;">// INICIA PROCESOS EN CAMPOS DE DIGITOS</span><br />&nbsp;* VALIDA SI SOBREPASA MAS DE X DIGITOS POR NIVEL DE CUENTAS SI MARCA ERROR DE <span style="color: #ff0000;">"*"</span><br /><br />&nbsp;<span style="color: #00C800;">FOR</span> I = <span style="color: #000000;">1</span> <span style="color: #0000ff;">TO</span> LEN<span style="color: #000000;">&#40;</span>cCuenta<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">IF</span> SUBS<span style="color: #000000;">&#40;</span>cCuenta, I, <span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span> == <span style="color: #ff0000;">"*"</span> .OR. I > LEN<span style="color: #000000;">&#40;</span>cCuenta<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Cuenta inválida "</span>+TRIM<span style="color: #000000;">&#40;</span>cCuenta<span style="color: #000000;">&#41;</span>,<span style="color: #ff0000;">"Confirme"</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cCuenta := SPACE<span style="color: #000000;">&#40;</span><span style="color: #000000;">19</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oGet<span style="color: #000000;">&#91;</span><span style="color: #000000;">01</span><span style="color: #000000;">&#93;</span>:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">RETURN</span> .F.<br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">ENDIF</span><br />&nbsp;END <span style="color: #00C800;">FOR</span><br /><br />&nbsp;* XXXX-XXXX-XXXX-XXXX<br /><br />&nbsp;xDig1 := Val<span style="color: #000000;">&#40;</span><span style="color: #0000ff;">SubStr</span><span style="color: #000000;">&#40;</span>cCuenta,<span style="color: #000000;">1</span>,<span style="color: #000000;">4</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />&nbsp;xDig2 := Val<span style="color: #000000;">&#40;</span><span style="color: #0000ff;">SubStr</span><span style="color: #000000;">&#40;</span>cCuenta,<span style="color: #000000;">6</span>,<span style="color: #000000;">4</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />&nbsp;xDig3 := Val<span style="color: #000000;">&#40;</span><span style="color: #0000ff;">SubStr</span><span style="color: #000000;">&#40;</span>cCuenta,<span style="color: #000000;">11</span>,<span style="color: #000000;">4</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />&nbsp;xDig4 := Val<span style="color: #000000;">&#40;</span><span style="color: #0000ff;">SubStr</span><span style="color: #000000;">&#40;</span>cCuenta,<span style="color: #000000;">16</span>,<span style="color: #000000;">4</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp;<span style="color: #00C800;">DO</span> <span style="color: #00C800;">CASE</span><br />&nbsp; &nbsp; <span style="color: #00C800;">CASE</span> xDig1 > <span style="color: #000000;">0</span> .AND. xDig2 = <span style="color: #000000;">0</span> .AND. xDig3 = <span style="color: #000000;">0</span> <span style="color: #B900B9;">// NIVEL 1</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nNivel := <span style="color: #000000;">1</span><br /><br />&nbsp; &nbsp; <span style="color: #00C800;">CASE</span> xDig1 > <span style="color: #000000;">0</span> .AND. xDig2 > <span style="color: #000000;">0</span> .AND. xDig3 = <span style="color: #000000;">0</span> <span style="color: #B900B9;">// NIVEL 2</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nNivel &nbsp;:= <span style="color: #000000;">2</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; xCtaDig := STRZERO<span style="color: #000000;">&#40;</span>xDig1,<span style="color: #000000;">4</span><span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">"0000"</span> + <span style="color: #ff0000;">"0000"</span> + <span style="color: #ff0000;">"0000"</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#40;</span>S08<span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span>DBSeek<span style="color: #000000;">&#40;</span>xCtaDig<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">IF</span> !EMPTY<span style="color: #000000;">&#40;</span>xDig2<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">IF</span> <span style="color: #000000;">&#40;</span>S08<span style="color: #000000;">&#41;</span>->TIPONAT = <span style="color: #ff0000;">'D'</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">'La cuenta tiene subcuentas, no puede ser de detalle'</span>,<span style="color: #ff0000;">"Confirme"</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">RETURN</span> .F.<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">ENDIF</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">ENDIF</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">IF</span> <span style="color: #000000;">&#40;</span>S08<span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span>!FOUND<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; <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">'La cuenta '</span>+Ext_xNiv<span style="color: #000000;">&#40;</span>xCtaDig<span style="color: #000000;">&#41;</span>+<span style="color: #ff0000;">' nivel '</span>+STR<span style="color: #000000;">&#40;</span>nNivel<span style="color: #000000;">&#41;</span>+<span style="color: #ff0000;">' no tiene antecedentes '</span>, <span style="color: #ff0000;">"Confirme"</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oGet<span style="color: #000000;">&#91;</span><span style="color: #000000;">01</span><span style="color: #000000;">&#93;</span>:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">RETURN</span> .F.<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">ENDIF</span><br /><br />&nbsp; &nbsp; <span style="color: #00C800;">CASE</span> xDig1 > <span style="color: #000000;">0</span> .AND. xDig2 > <span style="color: #000000;">0</span> .AND. xDig3 > <span style="color: #000000;">0</span> .AND. xDig4 = <span style="color: #000000;">0</span> <span style="color: #B900B9;">// NIVEL 3</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nNivel &nbsp;:= <span style="color: #000000;">3</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; xCtaDig := STRZERO<span style="color: #000000;">&#40;</span>xDig1,<span style="color: #000000;">4</span><span style="color: #000000;">&#41;</span> + STRZERO<span style="color: #000000;">&#40;</span>xDig2,<span style="color: #000000;">4</span><span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">"0000"</span> + <span style="color: #ff0000;">"0000"</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#40;</span>S08<span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span>DBSeek<span style="color: #000000;">&#40;</span>xCtaDig<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">IF</span> !EMPTY<span style="color: #000000;">&#40;</span>xDig2<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">IF</span> <span style="color: #000000;">&#40;</span>S08<span style="color: #000000;">&#41;</span>->TIPONAT = <span style="color: #ff0000;">'D'</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">'La cuenta tiene subcuentas, no puede ser de detalle'</span>,<span style="color: #ff0000;">"Confirme"</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">RETURN</span> .F.<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">ENDIF</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">ENDIF</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">IF</span> <span style="color: #000000;">&#40;</span>S08<span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span>!FOUND<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; <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">'La cuenta '</span>+Ext_xNiv<span style="color: #000000;">&#40;</span>xCtaDig<span style="color: #000000;">&#41;</span>+<span style="color: #ff0000;">' nivel '</span>+STR<span style="color: #000000;">&#40;</span>nNivel<span style="color: #000000;">&#41;</span>+<span style="color: #ff0000;">' no tiene antecedentes '</span>, <span style="color: #ff0000;">"Confirme"</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oGet<span style="color: #000000;">&#91;</span><span style="color: #000000;">01</span><span style="color: #000000;">&#93;</span>:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">RETURN</span> .F.<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">ENDIF</span><br /><br />&nbsp; &nbsp; <span style="color: #00C800;">CASE</span> xDig1 > <span style="color: #000000;">0</span> .AND. xDig2 > <span style="color: #000000;">0</span> .AND. xDig3 > <span style="color: #000000;">0</span> .AND. xDig4 > <span style="color: #000000;">0</span> &nbsp;<span style="color: #B900B9;">// NIVEL 4</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nNivel &nbsp;:= <span style="color: #000000;">4</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; xCtaDig := STRZERO<span style="color: #000000;">&#40;</span>xDig1,<span style="color: #000000;">4</span><span style="color: #000000;">&#41;</span> + STRZERO<span style="color: #000000;">&#40;</span>xDig2,<span style="color: #000000;">4</span><span style="color: #000000;">&#41;</span> + STRZERO<span style="color: #000000;">&#40;</span>xDig3,<span style="color: #000000;">4</span><span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">"0000"</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#40;</span>S08<span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span>DBSeek<span style="color: #000000;">&#40;</span>xCtaDig<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">IF</span> !EMPTY<span style="color: #000000;">&#40;</span>xDig3<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">IF</span> <span style="color: #000000;">&#40;</span>S08<span style="color: #000000;">&#41;</span>->TIPONAT = <span style="color: #ff0000;">'D'</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">'La cuenta tiene subcuentas, no puede ser de detalle'</span>,<span style="color: #ff0000;">"Confirme"</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">RETURN</span> .F.<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">ENDIF</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">ENDIF</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">IF</span> <span style="color: #000000;">&#40;</span>S08<span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span>!FOUND<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; <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">'La cuenta '</span>+Ext_xNiv<span style="color: #000000;">&#40;</span>xCtaDig<span style="color: #000000;">&#41;</span>+<span style="color: #ff0000;">' nivel '</span>+STR<span style="color: #000000;">&#40;</span>nNivel<span style="color: #000000;">&#41;</span>+<span style="color: #ff0000;">' no tiene antecedentes '</span>, <span style="color: #ff0000;">"Confirme"</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oGet<span style="color: #000000;">&#91;</span><span style="color: #000000;">01</span><span style="color: #000000;">&#93;</span>:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">RETURN</span> .F.<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">ENDIF</span><br />&nbsp; &nbsp; <span style="color: #00C800;">OTHERWISE</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">RETURN</span> .F.<br />&nbsp;<span style="color: #00C800;">ENDCASE</span><br /><br />&nbsp;<span style="color: #000000;">&#40;</span>S08<span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span>DBSeek<span style="color: #000000;">&#40;</span>cCta<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp;<span style="color: #00C800;">IF</span> <span style="color: #000000;">&#40;</span>S08<span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span>Found<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp;cDescribe &nbsp; := <span style="color: #000000;">&#40;</span>S08<span style="color: #000000;">&#41;</span>->DESCRIP<br />&nbsp; &nbsp; &nbsp;nTCuenta &nbsp; &nbsp;:= <span style="color: #00C800;">IF</span><span style="color: #000000;">&#40;</span>AllTrim<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#40;</span>S08<span style="color: #000000;">&#41;</span>->TIPONAT<span style="color: #000000;">&#41;</span> == <span style="color: #ff0000;">"D"</span> ,<span style="color: #000000;">1</span>,<span style="color: #000000;">2</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp;nTProveedor := <span style="color: #00C800;">IF</span><span style="color: #000000;">&#40;</span>AllTrim<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#40;</span>S08<span style="color: #000000;">&#41;</span>->TIPOPRV<span style="color: #000000;">&#41;</span> == <span style="color: #ff0000;">"C"</span> ,<span style="color: #000000;">1</span>,<span style="color: #000000;">2</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp;nTOperacion := <span style="color: #000000;">&#40;</span>S08<span style="color: #000000;">&#41;</span>->TIPOPERA<br />&nbsp; &nbsp; &nbsp;lIVA &nbsp; &nbsp; &nbsp; &nbsp;:= <span style="color: #000000;">&#40;</span>S08<span style="color: #000000;">&#41;</span>->AP_IVA<br />&nbsp; &nbsp; &nbsp;lSNMov &nbsp; &nbsp; &nbsp;:= <span style="color: #000000;">&#40;</span>S08<span style="color: #000000;">&#41;</span>->MOVSN<br /><br />&nbsp; &nbsp; &nbsp;*<span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span>nTProveedor<span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp;<span style="color: #00C800;">DO</span> <span style="color: #00C800;">CASE</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">CASE</span> <span style="color: #000000;">&#40;</span>S08<span style="color: #000000;">&#41;</span>->NIVSUM = <span style="color: #000000;">1</span> .AND. <span style="color: #000000;">&#40;</span>S08<span style="color: #000000;">&#41;</span>->TIPONAT == <span style="color: #ff0000;">"D"</span> <span style="color: #B900B9;">//.AND. (S08)->TIPOPRV == "P"</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nPos1 := <span style="color: #000000;">0</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nPos2 := <span style="color: #000000;">1</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; lProv := .T.<br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">CASE</span> <span style="color: #000000;">&#40;</span>S08<span style="color: #000000;">&#41;</span>->NIVSUM = <span style="color: #000000;">2</span> .AND. <span style="color: #000000;">&#40;</span>S08<span style="color: #000000;">&#41;</span>->TIPONAT == <span style="color: #ff0000;">"D"</span> <span style="color: #B900B9;">//.AND. (S08)->TIPOPRV == "P"</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nPos1 := <span style="color: #000000;">3</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nPos2 := <span style="color: #000000;">5</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; lProv := .T.<br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">CASE</span> <span style="color: #000000;">&#40;</span>S08<span style="color: #000000;">&#41;</span>->NIVSUM = <span style="color: #000000;">3</span> .AND. <span style="color: #000000;">&#40;</span>S08<span style="color: #000000;">&#41;</span>->TIPONAT == <span style="color: #ff0000;">"D"</span> <span style="color: #B900B9;">//.AND. (S08)->TIPOPRV == "P"</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nPos1 := <span style="color: #000000;">7</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nPos2 := <span style="color: #000000;">9</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; lProv := .T.<br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">CASE</span> <span style="color: #000000;">&#40;</span>S08<span style="color: #000000;">&#41;</span>->NIVSUM = <span style="color: #000000;">4</span> .AND. <span style="color: #000000;">&#40;</span>S08<span style="color: #000000;">&#41;</span>->TIPONAT == <span style="color: #ff0000;">"D"</span> <span style="color: #B900B9;">//.AND. (S08)->TIPOPRV == "P"</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nPos1 := <span style="color: #000000;">11</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nPos2 := <span style="color: #000000;">13</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; lProv := .T.<br />&nbsp; &nbsp; &nbsp;<span style="color: #00C800;">ENDCASE</span><br /><br />&nbsp; &nbsp; &nbsp;<span style="color: #00C800;">IF</span> lProv<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#40;</span>S15<span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span>DBSeek<span style="color: #000000;">&#40;</span><span style="color: #00C800;">IF</span><span style="color: #000000;">&#40;</span>lProv, SUBS<span style="color: #000000;">&#40;</span>cCta,nPos1,<span style="color: #000000;">2</span><span style="color: #000000;">&#41;</span>,<span style="color: #ff0000;">""</span><span style="color: #000000;">&#41;</span>+<span style="color: #00C800;">IF</span><span style="color: #000000;">&#40;</span>lProv, SUBS<span style="color: #000000;">&#40;</span>cCta,nPos2,<span style="color: #000000;">4</span><span style="color: #000000;">&#41;</span>,<span style="color: #ff0000;">""</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cNombFM &nbsp; &nbsp;:= <span style="color: #00C800;">IF</span><span style="color: #000000;">&#40;</span>nTProveedor=<span style="color: #000000;">1</span>,<span style="color: #000000;">&#40;</span>S08<span style="color: #000000;">&#41;</span>->DESCRIP ,<span style="color: #000000;">&#40;</span>S15<span style="color: #000000;">&#41;</span>->NOMPROV<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cCurp &nbsp; &nbsp; &nbsp;:= <span style="color: #00C800;">IF</span><span style="color: #000000;">&#40;</span>nTProveedor=<span style="color: #000000;">1</span>,<span style="color: #000000;">&#40;</span>S08<span style="color: #000000;">&#41;</span>->C_U_R_P ,<span style="color: #000000;">&#40;</span>S15<span style="color: #000000;">&#41;</span>->C_U_R_P<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cDireccion := <span style="color: #00C800;">IF</span><span style="color: #000000;">&#40;</span>nTProveedor=<span style="color: #000000;">1</span>,<span style="color: #000000;">&#40;</span>S08<span style="color: #000000;">&#41;</span>->DIRECCIO,<span style="color: #000000;">&#40;</span>S15<span style="color: #000000;">&#41;</span>->DIRECCIO<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cCiudad &nbsp; &nbsp;:= <span style="color: #00C800;">IF</span><span style="color: #000000;">&#40;</span>nTProveedor=<span style="color: #000000;">1</span>,<span style="color: #000000;">&#40;</span>S08<span style="color: #000000;">&#41;</span>->CIUDAD &nbsp;,<span style="color: #000000;">&#40;</span>S15<span style="color: #000000;">&#41;</span>->CIUDAD<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cRfc &nbsp; &nbsp; &nbsp; := <span style="color: #00C800;">IF</span><span style="color: #000000;">&#40;</span>nTProveedor=<span style="color: #000000;">1</span>,<span style="color: #000000;">&#40;</span>S08<span style="color: #000000;">&#41;</span>->R_F_C &nbsp; ,<span style="color: #000000;">&#40;</span>S15<span style="color: #000000;">&#41;</span>->R_F_C<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cCp &nbsp; &nbsp; &nbsp; &nbsp;:= <span style="color: #00C800;">IF</span><span style="color: #000000;">&#40;</span>nTProveedor=<span style="color: #000000;">1</span>,<span style="color: #000000;">&#40;</span>S08<span style="color: #000000;">&#41;</span>->CODPOST ,<span style="color: #000000;">&#40;</span>S15<span style="color: #000000;">&#41;</span>->CODPOST<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nTelefono &nbsp;:= <span style="color: #00C800;">IF</span><span style="color: #000000;">&#40;</span>nTProveedor=<span style="color: #000000;">1</span>,<span style="color: #000000;">&#40;</span>S08<span style="color: #000000;">&#41;</span>->TELEFONO,<span style="color: #000000;">&#40;</span>S15<span style="color: #000000;">&#41;</span>->TELEFONO<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nFax &nbsp; &nbsp; &nbsp; := <span style="color: #00C800;">IF</span><span style="color: #000000;">&#40;</span>nTProveedor=<span style="color: #000000;">1</span>,<span style="color: #000000;">&#40;</span>S08<span style="color: #000000;">&#41;</span>->TELEFFAX,<span style="color: #000000;">&#40;</span>S15<span style="color: #000000;">&#41;</span>->TELEFFAX<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp;<span style="color: #00C800;">ENDIF</span><br /><br />&nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#40;</span>S06<span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span>DBSeek<span style="color: #000000;">&#40;</span>STR<span style="color: #000000;">&#40;</span>nTOperacion,<span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp;cDesOpera &nbsp; := <span style="color: #000000;">&#40;</span>S06<span style="color: #000000;">&#41;</span>->DESCRIP<br />&nbsp; &nbsp; &nbsp;lNuevo &nbsp; &nbsp; &nbsp;:= .F.<br />&nbsp;<span style="color: #00C800;">ELSE</span><br />&nbsp; &nbsp; &nbsp;lNuevo &nbsp; &nbsp; &nbsp;:= .T.<br />&nbsp;<span style="color: #00C800;">ENDIF</span><br /><br />&nbsp;AEval<span style="color: #000000;">&#40;</span> oGet,<span style="color: #000000;">&#123;</span>|o| o:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br />&nbsp;AEval<span style="color: #000000;">&#40;</span> oSay,<span style="color: #000000;">&#123;</span>|o| o:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp;<span style="color: #0000ff;">Release</span> I, cCta, xDig1, xDig2, xDig3, xCtaDig<br /><span style="color: #00C800;">RETURN</span> <span style="color: #000000;">&#40;</span>.T.<span style="color: #000000;">&#41;</span><br /><br /><span style="color: #B900B9;">//------------------------------------------------------------------------------</span><br /><span style="color: #00C800;">STATIC</span> <span style="color: #00C800;">FUNCTION</span> V_DESCRIP<span style="color: #000000;">&#40;</span>cDescribe<span style="color: #000000;">&#41;</span><br />&nbsp;cNombFM := cDescribe<br /><br />&nbsp;oGet<span style="color: #000000;">&#91;</span><span style="color: #000000;">07</span><span style="color: #000000;">&#93;</span>:<span style="color: #0000ff;">REFRESH</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">RETURN</span> <span style="color: #000000;">&#40;</span>.T.<span style="color: #000000;">&#41;</span><br /><br /><br /><span style="color: #B900B9;">//------------------------------------------------------------------------------</span><br /><span style="color: #00C800;">STATIC</span> <span style="color: #00C800;">FUNCTION</span> VTOPERA<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp;<span style="color: #00C800;">LOCAL</span> lRet := .T., cCta:=SPACE<span style="color: #000000;">&#40;</span><span style="color: #000000;">16</span><span style="color: #000000;">&#41;</span>,nPos1,nPos2,lProv<br /><br />&nbsp;cCta &nbsp; &nbsp;:= FORMATO1<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"cCuenta"</span>, cCuenta,.F.<span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// Despliega formato sin guion a buscar</span><br /><br />&nbsp;<span style="color: #00C800;">DO</span> <span style="color: #00C800;">CASE</span><br />&nbsp; &nbsp; <span style="color: #00C800;">CASE</span> nNivel = <span style="color: #000000;">1</span> .AND. nTCuenta = <span style="color: #000000;">1</span> .AND. nTProveedor = <span style="color: #000000;">2</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nPos1 := <span style="color: #000000;">0</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nPos2 := <span style="color: #000000;">1</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; lProv := .T.<br />&nbsp; &nbsp; &nbsp;<span style="color: #00C800;">CASE</span> nNivel = <span style="color: #000000;">2</span> .AND. nTCuenta = <span style="color: #000000;">1</span> .AND. nTProveedor = <span style="color: #000000;">2</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nPos1 := <span style="color: #000000;">3</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nPos2 := <span style="color: #000000;">5</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; lProv := .T.<br />&nbsp; &nbsp; &nbsp;<span style="color: #00C800;">CASE</span> nNivel = <span style="color: #000000;">3</span> .AND. nTCuenta = <span style="color: #000000;">1</span> .AND. nTProveedor = <span style="color: #000000;">2</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nPos1 := <span style="color: #000000;">7</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nPos2 := <span style="color: #000000;">9</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; lProv := .T.<br />&nbsp; &nbsp; &nbsp;<span style="color: #00C800;">CASE</span> nNivel = <span style="color: #000000;">4</span> .AND. nTCuenta = <span style="color: #000000;">1</span> .AND. nTProveedor = <span style="color: #000000;">2</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nPos1 := <span style="color: #000000;">11</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nPos2 := <span style="color: #000000;">13</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; lProv := .T.<br />&nbsp;<span style="color: #00C800;">ENDCASE</span><br /><br />&nbsp;<span style="color: #00C800;">IF</span> lProv .AND. nTCuenta = <span style="color: #000000;">1</span> .AND. nTProveedor = <span style="color: #000000;">2</span><br />&nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#40;</span>S15<span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span>DBSeek<span style="color: #000000;">&#40;</span><span style="color: #00C800;">IF</span><span style="color: #000000;">&#40;</span>lProv, SUBS<span style="color: #000000;">&#40;</span>cCta,nPos1,<span style="color: #000000;">2</span><span style="color: #000000;">&#41;</span>,<span style="color: #ff0000;">""</span><span style="color: #000000;">&#41;</span>+<span style="color: #00C800;">IF</span><span style="color: #000000;">&#40;</span>lProv, SUBS<span style="color: #000000;">&#40;</span>cCta,nPos2,<span style="color: #000000;">4</span><span style="color: #000000;">&#41;</span>,<span style="color: #ff0000;">""</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; ** cNombFM &nbsp; &nbsp; := <span style="color: #000000;">&#40;</span>S15<span style="color: #000000;">&#41;</span>->NOMPROV &nbsp; &nbsp;<span style="color: #B900B9;">// &nbsp;porque aquí lo borra...tengo que checar ese detalle...!</span><br />&nbsp; &nbsp; &nbsp;cCurp &nbsp; &nbsp; &nbsp;:= <span style="color: #000000;">&#40;</span>S15<span style="color: #000000;">&#41;</span>->C_U_R_P<br />&nbsp; &nbsp; &nbsp;cDireccion := <span style="color: #000000;">&#40;</span>S15<span style="color: #000000;">&#41;</span>->DIRECCIO<br />&nbsp; &nbsp; &nbsp;cCiudad &nbsp; &nbsp;:= <span style="color: #000000;">&#40;</span>S15<span style="color: #000000;">&#41;</span>->CIUDAD<br />&nbsp; &nbsp; &nbsp;cRfc &nbsp; &nbsp; &nbsp; := <span style="color: #000000;">&#40;</span>S15<span style="color: #000000;">&#41;</span>->R_F_C<br />&nbsp; &nbsp; &nbsp;cCp &nbsp; &nbsp; &nbsp; &nbsp;:= <span style="color: #000000;">&#40;</span>S15<span style="color: #000000;">&#41;</span>->CODPOST<br />&nbsp; &nbsp; &nbsp;nTelefono &nbsp;:= <span style="color: #000000;">&#40;</span>S15<span style="color: #000000;">&#41;</span>->TELEFONO<br />&nbsp; &nbsp; &nbsp;nFax &nbsp; &nbsp; &nbsp; := <span style="color: #000000;">&#40;</span>S15<span style="color: #000000;">&#41;</span>->TELEFFAX<br /><br />&nbsp; &nbsp; &nbsp;AEval<span style="color: #000000;">&#40;</span> oGet,<span style="color: #000000;">&#123;</span>|o| o:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br />&nbsp;<span style="color: #00C800;">ENDIF</span><br /><br />&nbsp;DbSelectArea<span style="color: #000000;">&#40;</span>S06<span style="color: #000000;">&#41;</span><br /><br />&nbsp;<span style="color: #000000;">&#40;</span>S06<span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span>DbSeek<span style="color: #000000;">&#40;</span>STR<span style="color: #000000;">&#40;</span>nTOperacion,<span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp;<span style="color: #00C800;">IF</span> FOUND<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp;nTOperacion := <span style="color: #000000;">&#40;</span>S06<span style="color: #000000;">&#41;</span>->CVETIPO<br />&nbsp; &nbsp; &nbsp;cDesOpera &nbsp; := <span style="color: #000000;">&#40;</span>S06<span style="color: #000000;">&#41;</span>->DESCRIP<br />&nbsp;<span style="color: #00C800;">ELSE</span><br />&nbsp; &nbsp; &nbsp;MsgAlert<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"No existe tipo de operación"</span>,<span style="color: #ff0000;">"Confirme"</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp;lRet := .F.<br />&nbsp;<span style="color: #00C800;">ENDIF</span><br /><br />&nbsp;oGet<span style="color: #000000;">&#91;</span><span style="color: #000000;">05</span><span style="color: #000000;">&#93;</span>:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp;oGet<span style="color: #000000;">&#91;</span><span style="color: #000000;">06</span><span style="color: #000000;">&#93;</span>:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">RETURN</span> <span style="color: #000000;">&#40;</span>lRet<span style="color: #000000;">&#41;</span><br /><br /><span style="color: #B900B9;">//------------------------------------------------------------------------------</span><br /><span style="color: #00C800;">STATIC</span> <span style="color: #00C800;">FUNCTION</span> V_RFC<span style="color: #000000;">&#40;</span>RFCf<span style="color: #000000;">&#41;</span><br />&nbsp;<span style="color: #00C800;">LOCAL</span> I := <span style="color: #000000;">0</span>, lRet:=.T.<br /><br />&nbsp;<span style="color: #00C800;">IF</span> RFCf = <span style="color: #ff0000;">" "</span><br />&nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"El primer digito del RFC deber ser una letra"</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp;lRet := .F.<br />&nbsp;<span style="color: #00C800;">ELSE</span><br />&nbsp; &nbsp; &nbsp;<span style="color: #00C800;">FOR</span> I = <span style="color: #000000;">1</span> <span style="color: #0000ff;">TO</span> LEN<span style="color: #000000;">&#40;</span>RFCf<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">IF</span> SUBS<span style="color: #000000;">&#40;</span>RFCf,I,<span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span> == <span style="color: #ff0000;">"-"</span> .OR. SUBS<span style="color: #000000;">&#40;</span>RFCf,I<span style="color: #000000;">-1</span>,<span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span> == <span style="color: #ff0000;">" "</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Favor de no teclear guion o dejar espacios en blanco"</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;lRet := .T.<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">ENDIF</span><br />&nbsp; &nbsp; &nbsp;<span style="color: #00C800;">NEXT</span><br />&nbsp;<span style="color: #00C800;">ENDIF</span><br /><br />&nbsp;oGet<span style="color: #000000;">&#91;</span><span style="color: #000000;">11</span><span style="color: #000000;">&#93;</span>:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp;<span style="color: #0000ff;">Release</span> I<br /><span style="color: #00C800;">RETURN</span> <span style="color: #000000;">&#40;</span>.T.<span style="color: #000000;">&#41;</span><br /><br /><span style="color: #B900B9;">//------------------------------------------------------------------------------</span><br /><span style="color: #00C800;">STATIC</span> <span style="color: #00C800;">FUNCTION</span> invStr<span style="color: #000000;">&#40;</span> __cTexto <span style="color: #000000;">&#41;</span><br />&nbsp;<span style="color: #00C800;">LOCAL</span> aText1, cNew, n, cTemp, g, x<br /><br />&nbsp;aText1 = ARRAY <span style="color: #000000;">&#40;</span>LEN <span style="color: #000000;">&#40;</span> __cTexto <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp;cNew = <span style="color: #ff0000;">""</span><br /><br />&nbsp;<span style="color: #00C800;">FOR</span> n = <span style="color: #000000;">1</span> <span style="color: #0000ff;">TO</span> LEN<span style="color: #000000;">&#40;</span> __cTexto <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; cTemp = <span style="color: #0000ff;">LEFT</span><span style="color: #000000;">&#40;</span> __cTexto, n <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; aText1<span style="color: #000000;">&#91;</span> n <span style="color: #000000;">&#93;</span> = <span style="color: #0000ff;">RIGHT</span><span style="color: #000000;">&#40;</span> cTemp, <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span>aText1<span style="color: #000000;">&#91;</span> n <span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span><br />&nbsp;<span style="color: #00C800;">NEXT</span> n<br /><br />&nbsp;x = <span style="color: #000000;">1</span><br /><br />&nbsp;<span style="color: #00C800;">FOR</span> g = LEN<span style="color: #000000;">&#40;</span> __cTexto <span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">TO</span> <span style="color: #000000;">1</span> STEP <span style="color: #000000;">-1</span><br />&nbsp; &nbsp; &nbsp;cNew = &nbsp;aText1<span style="color: #000000;">&#91;</span> x <span style="color: #000000;">&#93;</span> + cNew<br />&nbsp; &nbsp; &nbsp;x = x + <span style="color: #000000;">1</span><br /><br />&nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span>cNew<span style="color: #000000;">&#41;</span><br />&nbsp;<span style="color: #00C800;">NEXT</span> g<br /><br />&nbsp;<span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span>cNew<span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">RETURN</span> <span style="color: #000000;">&#40;</span>.t.<span style="color: #000000;">&#41;</span><br /><br /><span style="color: #B900B9;">//------------------------------------------------------------------------------</span><br /><span style="color: #00C800;">STATIC</span> <span style="color: #00C800;">FUNCTION</span> REG_DATO<span style="color: #000000;">&#40;</span>lPol<span style="color: #000000;">&#41;</span><br />&nbsp;<span style="color: #00C800;">LOCAL</span> cCta, nRecno1,nRecno2, lProv:=.F., nPos1,nPos2<br /><br />&nbsp;nRecno1:= <span style="color: #000000;">&#40;</span>S08<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 />&nbsp;nRecno2:= <span style="color: #000000;">&#40;</span>S15<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 />&nbsp;cCta &nbsp; := FORMATO1<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"cCuenta"</span>, cCuenta,.F.<span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// Despliega formato sin guion a buscar</span><br /><br />&nbsp;<span style="color: #000000;">&#40;</span>S08<span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span>DBSeek<span style="color: #000000;">&#40;</span>cCta<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp;* XXXX-XXXX-XXXX-XXXX<br />&nbsp;* <span style="color: #000000;">1</span> &nbsp; &nbsp;<span style="color: #000000;">5</span> &nbsp; &nbsp;<span style="color: #000000;">9</span> &nbsp; &nbsp;<span style="color: #000000;">13</span><br /><br />&nbsp;<span style="color: #00C800;">DO</span> <span style="color: #00C800;">CASE</span><br />&nbsp; &nbsp; <span style="color: #00C800;">CASE</span> nNivel = <span style="color: #000000;">1</span> .AND. nTCuenta = <span style="color: #000000;">1</span> .AND. nTProveedor = <span style="color: #000000;">2</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nPos1 := <span style="color: #000000;">0</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nPos2 := <span style="color: #000000;">1</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; lProv := .T.<br />&nbsp; &nbsp; <span style="color: #00C800;">CASE</span> nNivel = <span style="color: #000000;">2</span> .AND. nTCuenta = <span style="color: #000000;">1</span> .AND. nTProveedor = <span style="color: #000000;">2</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nPos1 := <span style="color: #000000;">3</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nPos2 := <span style="color: #000000;">5</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; lProv := .T.<br />&nbsp; &nbsp; <span style="color: #00C800;">CASE</span> nNivel = <span style="color: #000000;">3</span> .AND. nTCuenta = <span style="color: #000000;">1</span> .AND. nTProveedor = <span style="color: #000000;">2</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nPos1 := <span style="color: #000000;">7</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nPos2 := <span style="color: #000000;">9</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; lProv := .T.<br />&nbsp; &nbsp; <span style="color: #00C800;">CASE</span> nNivel = <span style="color: #000000;">4</span> .AND. nTCuenta = <span style="color: #000000;">1</span> .AND. nTProveedor = <span style="color: #000000;">2</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nPos1 := <span style="color: #000000;">11</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nPos2 := <span style="color: #000000;">13</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; lProv := .T.<br />&nbsp;<span style="color: #00C800;">ENDCASE</span><br /><br />&nbsp;<span style="color: #00C800;">IF</span> lNuevo <span style="color: #B900B9;">// Si agrega nuevo registro</span><br />&nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#40;</span>S08<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 /><br />&nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#40;</span>S08<span style="color: #000000;">&#41;</span>->FECALTA := DATE<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#40;</span>S08<span style="color: #000000;">&#41;</span>->REGHORA := AMPM<span style="color: #000000;">&#40;</span>TIME<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#40;</span>S08<span style="color: #000000;">&#41;</span>->NICKUSUA:= cNombUsua<br />&nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#40;</span>S08<span style="color: #000000;">&#41;</span>->NOMBUSUA:= cNombre<br />&nbsp;<span style="color: #00C800;">ELSE</span><br />&nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#40;</span>S08<span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span>DBGoTo<span style="color: #000000;">&#40;</span>nRecno1<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />&nbsp;<span style="color: #00C800;">ENDIF</span><br /><br />&nbsp;<span style="color: #00C800;">IF</span> !OCUPADO<span style="color: #000000;">&#40;</span>S08<span style="color: #000000;">&#41;</span> &nbsp;<span style="color: #B900B9;">// Bloquea registro</span><br />&nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#40;</span>S08<span style="color: #000000;">&#41;</span>->CUENTAS &nbsp; := cCta<br />&nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#40;</span>S08<span style="color: #000000;">&#41;</span>->NIVSUM &nbsp; &nbsp;:= nNivel<br />&nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#40;</span>S08<span style="color: #000000;">&#41;</span>->DESCRIP &nbsp; := cDescribe<br />&nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#40;</span>S08<span style="color: #000000;">&#41;</span>->TIPONAT &nbsp; := <span style="color: #00C800;">IF</span><span style="color: #000000;">&#40;</span>nTCuenta &nbsp; &nbsp;== <span style="color: #000000;">1</span>, <span style="color: #ff0000;">"D"</span>, <span style="color: #ff0000;">"A"</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#40;</span>S08<span style="color: #000000;">&#41;</span>->GRUPOCTA &nbsp;:= <span style="color: #000000;">0</span><br />&nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#40;</span>S08<span style="color: #000000;">&#41;</span>->TIPOPRV &nbsp; := <span style="color: #00C800;">IF</span><span style="color: #000000;">&#40;</span>nTProveedor == <span style="color: #000000;">1</span>, <span style="color: #ff0000;">"C"</span>, <span style="color: #ff0000;">"P"</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#40;</span>S08<span style="color: #000000;">&#41;</span>->TIPOPERA &nbsp;:= nTOperacion<br />&nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#40;</span>S08<span style="color: #000000;">&#41;</span>->AP_SN &nbsp; &nbsp; := <span style="color: #000000;">&#40;</span>S04<span style="color: #000000;">&#41;</span>->AP_SEGNG &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// Temporal, mientras se termine de programar... \\</span><br />&nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#40;</span>S08<span style="color: #000000;">&#41;</span>->AP_IVA &nbsp; &nbsp;:= lIVA<br />&nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#40;</span>S08<span style="color: #000000;">&#41;</span>->MOVSN &nbsp; &nbsp; := lSNMov <span style="color: #B900B9;">//IF((S04)->AP_SEGNG, .T., .F.) // Temporal, mientras se termine de programar... \\</span><br />&nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#40;</span>S08<span style="color: #000000;">&#41;</span>->NOMBRE &nbsp; &nbsp;:= cNombFM<br />&nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#40;</span>S08<span style="color: #000000;">&#41;</span>->C_U_R_P &nbsp; := cCurp<br />&nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#40;</span>S08<span style="color: #000000;">&#41;</span>->DIRECCIO &nbsp;:= cDireccion<br />&nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#40;</span>S08<span style="color: #000000;">&#41;</span>->CIUDAD &nbsp; &nbsp;:= cCiudad<br />&nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#40;</span>S08<span style="color: #000000;">&#41;</span>->R_F_C &nbsp; &nbsp; := cRfc<br />&nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#40;</span>S08<span style="color: #000000;">&#41;</span>->CODPOST &nbsp; := cCp<br />&nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#40;</span>S08<span style="color: #000000;">&#41;</span>->TELEFONO &nbsp;:= nTelefono<br />&nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#40;</span>S08<span style="color: #000000;">&#41;</span>->TELEFFAX &nbsp;:= nFax<br /><br />&nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#40;</span>S08<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><br />&nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#40;</span>S08<span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span>DbUnlock<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />&nbsp;<span style="color: #00C800;">ENDIF</span><br /><br />&nbsp;<span style="color: #000000;">&#40;</span>S15<span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span>DBSeek<span style="color: #000000;">&#40;</span><span style="color: #00C800;">IF</span><span style="color: #000000;">&#40;</span>lProv, SUBS<span style="color: #000000;">&#40;</span>cCta,nPos1,<span style="color: #000000;">2</span><span style="color: #000000;">&#41;</span>,<span style="color: #ff0000;">""</span><span style="color: #000000;">&#41;</span>+<span style="color: #00C800;">IF</span><span style="color: #000000;">&#40;</span>lProv, SUBS<span style="color: #000000;">&#40;</span>cCta,nPos2,<span style="color: #000000;">4</span><span style="color: #000000;">&#41;</span>,<span style="color: #ff0000;">""</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp;<span style="color: #00C800;">IF</span> lNuevo .AND. nTCuenta = <span style="color: #000000;">1</span> .AND. nTProveedor = <span style="color: #000000;">2</span> <span style="color: #B900B9;">// Si agrega nuevo registro</span><br />&nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#40;</span>S15<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;<span style="color: #00C800;">ELSE</span><br />&nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#40;</span>S15<span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span>DBGoTo<span style="color: #000000;">&#40;</span>nRecno2<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />&nbsp;<span style="color: #00C800;">ENDIF</span><br /><br />&nbsp;<span style="color: #00C800;">IF</span> !OCUPADO<span style="color: #000000;">&#40;</span>S15<span style="color: #000000;">&#41;</span> .AND. nTCuenta = <span style="color: #000000;">1</span> .AND. nTProveedor = <span style="color: #000000;">2</span> .AND. lProv <span style="color: #B900B9;">// Bloquea</span><br />&nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#40;</span>S15<span style="color: #000000;">&#41;</span>->SUBCTA &nbsp; := <span style="color: #00C800;">IF</span><span style="color: #000000;">&#40;</span>lProv, SUBS<span style="color: #000000;">&#40;</span>cCta,nPos1,<span style="color: #000000;">2</span><span style="color: #000000;">&#41;</span>,<span style="color: #ff0000;">""</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#40;</span>S15<span style="color: #000000;">&#41;</span>->CTAPROV &nbsp;:= <span style="color: #00C800;">IF</span><span style="color: #000000;">&#40;</span>lProv, SUBS<span style="color: #000000;">&#40;</span>cCta,nPos2,<span style="color: #000000;">4</span><span style="color: #000000;">&#41;</span>,<span style="color: #ff0000;">""</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#40;</span>S15<span style="color: #000000;">&#41;</span>->NOMPROV &nbsp;:= cNombFM<br />&nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#40;</span>S15<span style="color: #000000;">&#41;</span>->C_U_R_P &nbsp;:= cCurp<br />&nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#40;</span>S15<span style="color: #000000;">&#41;</span>->DIRECCIO := cDireccion<br />&nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#40;</span>S15<span style="color: #000000;">&#41;</span>->CIUDAD &nbsp; := cCiudad<br />&nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#40;</span>S15<span style="color: #000000;">&#41;</span>->R_F_C &nbsp; &nbsp;:= cRfc<br />&nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#40;</span>S15<span style="color: #000000;">&#41;</span>->CODPOST &nbsp;:= cCp<br />&nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#40;</span>S15<span style="color: #000000;">&#41;</span>->TELEFONO := nTelefono<br />&nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#40;</span>S15<span style="color: #000000;">&#41;</span>->TELEFFAX := nFax<br /><br />&nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#40;</span>S15<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><br />&nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#40;</span>S15<span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span>DbUnlock<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />&nbsp;<span style="color: #00C800;">ENDIF</span><br /><br />&nbsp;cCuenta &nbsp; &nbsp; := Space<span style="color: #000000;">&#40;</span><span style="color: #000000;">19</span><span style="color: #000000;">&#41;</span><br />&nbsp;cDescribe &nbsp; := SPACE<span style="color: #000000;">&#40;</span><span style="color: #000000;">65</span><span style="color: #000000;">&#41;</span><br />&nbsp;nTCuenta &nbsp; &nbsp;:= <span style="color: #000000;">2</span><br />&nbsp;nTProveedor := <span style="color: #000000;">2</span><br />&nbsp;cCtaProv &nbsp; &nbsp;:= SPACE<span style="color: #000000;">&#40;</span><span style="color: #000000;">12</span><span style="color: #000000;">&#41;</span><br />&nbsp;nTOperacion := <span style="color: #000000;">0</span><br />&nbsp;lIVA &nbsp; &nbsp; &nbsp; &nbsp;:= .F.<br />&nbsp;lSNMov &nbsp; &nbsp; &nbsp;:= .F.<br />&nbsp;cDesOpera &nbsp; := <span style="color: #ff0000;">""</span><br />&nbsp;cNombFM &nbsp; &nbsp; := SPACE<span style="color: #000000;">&#40;</span><span style="color: #000000;">65</span><span style="color: #000000;">&#41;</span><br />&nbsp;cCurp &nbsp; &nbsp; &nbsp; := SPACE<span style="color: #000000;">&#40;</span><span style="color: #000000;">18</span><span style="color: #000000;">&#41;</span><br />&nbsp;cDireccion &nbsp;:= SPACE<span style="color: #000000;">&#40;</span><span style="color: #000000;">80</span><span style="color: #000000;">&#41;</span><br />&nbsp;cCiudad &nbsp; &nbsp; := SPACE<span style="color: #000000;">&#40;</span><span style="color: #000000;">36</span><span style="color: #000000;">&#41;</span><br />&nbsp;cRfc &nbsp; &nbsp; &nbsp; &nbsp;:= SPACE<span style="color: #000000;">&#40;</span><span style="color: #000000;">14</span><span style="color: #000000;">&#41;</span><br />&nbsp;cCp &nbsp; &nbsp; &nbsp; &nbsp; := SPACE<span style="color: #000000;">&#40;</span><span style="color: #000000;">14</span><span style="color: #000000;">&#41;</span><br />&nbsp;nTelefono &nbsp; := <span style="color: #000000;">0</span><br />&nbsp;nFax &nbsp; &nbsp; &nbsp; &nbsp;:= <span style="color: #000000;">0</span><br /><br />&nbsp;AEval<span style="color: #000000;">&#40;</span> oGet,<span style="color: #000000;">&#123;</span>|o| o:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp;<span style="color: #00C800;">IF</span> lPol<br />&nbsp; &nbsp; &nbsp;oDlg:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp;<span style="color: #00C800;">ELSE</span><br />&nbsp; &nbsp; oGet<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">SetFocus</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; oBtn<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">oJump</span> := oGet<span style="color: #000000;">&#91;</span><span style="color: #000000;">01</span><span style="color: #000000;">&#93;</span><br />&nbsp; * oDlg:<span style="color: #000000;">SetFocus</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp;<span style="color: #00C800;">ENDIF</span><br /><br />&nbsp;<span style="color: #0000ff;">Release</span> cCta, nRecno1, nRecno2<br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><br /><span style="color: #B900B9;">//------------------------------------------------------------------------------</span><br /><span style="color: #00C800;">STATIC</span> <span style="color: #00C800;">FUNCTION</span> ListCat<span style="color: #000000;">&#40;</span>Ctaf,S08,VarCta,oGetCpo<span style="color: #000000;">&#41;</span><br />&nbsp;<span style="color: #00C800;">LOCAL</span> lRet:= .T.<br /><br />&nbsp;<span style="color: #00C800;">Default</span> oGetCpo := <span style="color: #00C800;">NIL</span><br /><br />&nbsp;<span style="color: #00C800;">IF</span> SelCta<span style="color: #000000;">&#40;</span>Ctaf,S08<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp;<span style="color: #00C800;">DO</span> <span style="color: #00C800;">CASE</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">CASE</span> VarCta = <span style="color: #ff0000;">"cCuenta"</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cCuenta := Ext_xNiv<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#40;</span>S08<span style="color: #000000;">&#41;</span>->CUENTAS<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp;<span style="color: #00C800;">ENDCASE</span><br />&nbsp;<span style="color: #00C800;">ENDIF</span><br /><br />&nbsp;oGetCpo:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp;<span style="color: #0000ff;">Release</span> oDLbx1, oLbx1, cCta2<br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><br /><span style="color: #B900B9;">//------------------------------------------------------------------------------</span><br /><span style="color: #00C800;">STATIC</span> <span style="color: #00C800;">FUNCTION</span> A_TOPERA<span style="color: #000000;">&#40;</span>nTOpera,S06<span style="color: #000000;">&#41;</span><br />&nbsp;<span style="color: #00C800;">LOCAL</span> oDLbx1, oLbx1, lSel := .F.<br /><br />&nbsp;DbSelectArea<span style="color: #000000;">&#40;</span>S06<span style="color: #000000;">&#41;</span><br /><br />&nbsp;<span style="color: #000000;">&#40;</span>S06<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><br /><br />&nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDLbx1 <span style="color: #0000ff;">RESOURCE</span> <span style="color: #ff0000;">"VCATALAG"</span> <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Catálogo tipo de operación"</span><br />&nbsp; <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">LISTBOX</span> oLbx1 FIELDS STR<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#40;</span>S06<span style="color: #000000;">&#41;</span>->CVETIPO<span style="color: #000000;">&#41;</span>, SUBS<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#40;</span>S06<span style="color: #000000;">&#41;</span>->DESCRIP,<span style="color: #000000;">1</span>,<span style="color: #000000;">36</span><span style="color: #000000;">&#41;</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;HEADER <span style="color: #ff0000;">"Tipo"</span>, <span style="color: #ff0000;">"Descripción"</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;SIZES <span style="color: #000000;">85</span>,<span style="color: #000000;">200</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">ALIAS</span> <span style="color: #000000;">&#40;</span>S06<span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span><span style="color: #0000ff;">ALIAS</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">ID</span> <span style="color: #000000;">101</span> <span style="color: #0000ff;">OF</span> oDLbx1<br /><br />&nbsp; oLbx1:<span style="color: #000000;">lCellStyle</span> := .T.<br />&nbsp; oLbx1:<span style="color: #000000;">bLogicLen</span> &nbsp;:= <span style="color: #000000;">&#123;</span>||<span style="color: #000000;">&#40;</span>S06<span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span>OrdKeyCount<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;oLbx1:<span style="color: #000000;">lAdjLastCol</span>:= .F.<br />&nbsp; oLbx1:<span style="color: #000000;">nClrForeHead</span>:= CLR_RED<br />&nbsp; oLbx1:<span style="color: #000000;">bLDblClick</span> &nbsp;:= <span style="color: #000000;">&#123;</span>||oDLbx1:<span style="color: #000000;">END</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#125;</span><br />&nbsp; oLbx1:<span style="color: #000000;">bKeyDown</span> &nbsp; &nbsp;:= <span style="color: #000000;">&#123;</span>| nKey| <span style="color: #00C800;">IF</span><span style="color: #000000;">&#40;</span>nKey = VK_RETURN, <span style="color: #000000;">&#40;</span>lSel:=.T.,oDLbx1:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>,<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#125;</span><br /><br />&nbsp;<span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDLbx1<br /><br />&nbsp;<span style="color: #00C800;">IF</span> lSel<br />&nbsp; &nbsp; &nbsp;nTOperacion := <span style="color: #000000;">&#40;</span>S06<span style="color: #000000;">&#41;</span>->CVETIPO<br />&nbsp; &nbsp; &nbsp;cDesOpera &nbsp; := <span style="color: #000000;">&#40;</span>S06<span style="color: #000000;">&#41;</span>->DESCRIP<br />&nbsp;<span style="color: #00C800;">ENDIF</span><br /><br />&nbsp;oGet<span style="color: #000000;">&#91;</span><span style="color: #000000;">05</span><span style="color: #000000;">&#93;</span>:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp;oGet<span style="color: #000000;">&#91;</span><span style="color: #000000;">06</span><span style="color: #000000;">&#93;</span>:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp;<span style="color: #0000ff;">Release</span> oDLbx1, oLbx1<br /><span style="color: #00C800;">RETURN</span> <span style="color: #000000;">&#40;</span>lSel<span style="color: #000000;">&#41;</span></div>[/code:1beo9be2] Saludos ing. Jose Luis y buen dia a todos. Atte: Adriano C. C.
ALGORITMO PARA CREAR PLAN DE CUENTA CONTABLE
Buen dia ACC, gracias por tu ayuda, reviso lo enviado y luego comento o pregunto por alguna duda, que seguro la habra, jeje..gracias...saudos... <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: -->
ALGORITMO PARA CREAR PLAN DE CUENTA CONTABLE
Buenos días. Yo utilizo de la siguiente manera. 1.- Una tabla para aa estructura del plan de cuentas la estructura de la tabla es. codigo, nombre, digitos ejemplo. codigo = 1 nombre = titulo digitos = 1 codigo = 2 nombre = grupo digitos = 2 codigo = 3 nombre = subgrupo digitos = 4 codigo = 4 nombre = cuentas nivel 1 digitos = 6 codigo = 5 nombre = cuentas nivel 2 digitos = 8 etc. 2.- Plan de cuentas su estructura es. cuenta,nombre,nivel(aquí va la estructura),movimientos,mayor , ejemplo cuenta = 1 nombre = Activo nivel = 1 movimientos = N mayor = (va en blanco) cuenta = 11 nombre = Activo Corriente nivel = 2 movimientos = N mayor = 1 cuenta = 1101 nombre = Efectivo o equivalente nivel = 3 movimientos = N mayor = 11 cuenta = 110101 nombre = Bancos nivel = 4 movimientos = N mayor = 1101 cuenta = 11010101 nombre = Nombre del banco nivel = 5 movimientos = S mayor = 110101 Desde la cuenta de nivel 4 ya puedes hacerle de movimientos con esta manera puedes estructurar el plan de cuentas de acuerdo a cada empresa ya que se manejan cada una de forma diferente, con la estructura controlas todo el tema, espero haberme explicado, puedes contactarme a <!-- e --><a href="mailto:oscarfmaldonado@hotmail.com">oscarfmaldonado@hotmail.com</a><!-- e --> Saludos, Oscar
ALGORITMO PARA CREAR PLAN DE CUENTA CONTABLE
Jose Luis Buenos días Aqui en Colombia los diferentes niveles de las cuentas tienen nombre, así: 1 (1 Dígito - Clase) 11 (2 Dígitos - Grupo) 1105 (4 Dígitos - Cuentas) 110501 (6 Dígitos - SubCuentas) 11050101 (8 Dígitos - Auxiliares) Y simplemente cuando cuando hago la validación en la digitación, hago el filtro por las subcuentas o las auxiliares. Esta consulta que me permite determinar si la subcuenta tiene cuentas auxiliares asignadas: [code=fw:3iecr1nr]<div class="fw" id="{CB}" style="font-family: monospace;"><br />cons = <span style="color: #ff0000;">"SELECT count(*) AS nro_aux FROM plan WHERE subs(cuenta,1,6)='110505' AND tipo_cuenta='A'"</span>;<br /> </div>[/code:3iecr1nr]
ALGORITMO PARA CREAR PLAN DE CUENTA CONTABLE
EasySoft, me diste una buena idea con eso de en cada cuenta decir cual es el nivel superior si lo hay, asi no habria que validar tanto y Leandro lo de tu consulta tambien esta muy buena, ire armando poco a poco mi modulo del catalogo de cuentas y cualquier duda por aca estare de nuevo, sigo abierto a ideas, luego publicare la mia si creo alguna hibrida con todas las sugerencias...mi otra consulta fue...es mejor usar el maestro de cuentas dentro de un browse o un tree o una mezcla de ambos.? gracias...saludos...
ALGORITMO PARA CREAR PLAN DE CUENTA CONTABLE
Hola José Luis. Algunos de los colegas ya la han expuesto de forma similar (o igual) a como lo hago yo. En la tabla del plan de cuentas creo un campo "NV", ("AUX", "UNV" o "MOV") para identificar si la codificación es de ultimo nivel (auxiliar, detalle, o movimiento). Con esto, a partir de la cuenta de Mayor (4 digitos), los siguientes niveles son subcuentas y pueden establecerse como ctas de movimiento, segun los requerimientos de Contabilidad o Finanzas, como en los siguiente ejemplos. 6 61 Ejemplo1: [code=fw:2s1m1omf]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #000000;">6101</span>            Gastos de Administracion <span style="color: #B900B9;">//Cta de Mayor (acumulativa)</span><br /><span style="color: #000000;">61010001</span>        Salarios          <span style="color: #B900B9;">// auxiliar o ultimo nivel</span><br /><span style="color: #000000;">61010002</span>        Vacaciones     <span style="color: #B900B9;">// auxiliar o ultimo nivel</span><br />etc....<br /><span style="color: #000000;">&#40;</span>En este caso el nivel <span style="color: #000000;">2</span> esta definido como cuenta de movimiento<span style="color: #000000;">&#41;</span><br /><br />Ejemplo2:<br /><span style="color: #000000;">6101</span>            Gastos de Administracion <span style="color: #B900B9;">//Cta de Mayor  (acumulativa)</span><br /><span style="color: #000000;">61010001</span>        Costo del Personal  <span style="color: #B900B9;">// sub-cuenta  (acumulativa)</span><br /><span style="color: #000000;">610100010001</span>        Salarios          <span style="color: #B900B9;">// auliliar o ultimo nivel</span><br /><span style="color: #000000;">610100010002</span>        Vacaciones     <span style="color: #B900B9;">// auxiliar o ultimo nivel</span><br />etc...<br /><span style="color: #000000;">&#40;</span>En este caso el nivel <span style="color: #000000;">3</span> esta definido como cuenta de movimiento<span style="color: #000000;">&#41;</span><br /> </div>[/code:2s1m1omf] Saludos.
ALGORITMO PARA CREAR PLAN DE CUENTA CONTABLE
[quote="FranciscoA":3f1mr650]Hola José Luis. Algunos de los colegas ya la han expuesto de forma similar (o igual) a como lo hago yo. En la tabla del plan de cuentas creo un campo "NV", ("AUX", "UNV" o "MOV") para identificar si la codificación es de ultimo nivel (auxiliar, detalle, o movimiento). Con esto, a partir de la cuenta de Mayor (4 digitos), los siguientes niveles son subcuentas y pueden establecerse como ctas de movimiento, segun los requerimientos de Contabilidad o Finanzas, como en los siguiente ejemplos. 6 61 Ejemplo1: [code=fw:3f1mr650]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #000000;">6101</span>            Gastos de Administracion <span style="color: #B900B9;">//Cta de Mayor (acumulativa)</span><br /><span style="color: #000000;">61010001</span>        Salarios          <span style="color: #B900B9;">// auxiliar o ultimo nivel</span><br /><span style="color: #000000;">61010002</span>        Vacaciones     <span style="color: #B900B9;">// auxiliar o ultimo nivel</span><br />etc....<br /><span style="color: #000000;">&#40;</span>En este caso el nivel <span style="color: #000000;">2</span> esta definido como cuenta de movimiento<span style="color: #000000;">&#41;</span><br /><br />Ejemplo2:<br /><span style="color: #000000;">6101</span>            Gastos de Administracion <span style="color: #B900B9;">//Cta de Mayor  (acumulativa)</span><br /><span style="color: #000000;">61010001</span>        Costo del Personal  <span style="color: #B900B9;">// sub-cuenta  (acumulativa)</span><br /><span style="color: #000000;">610100010001</span>        Salarios          <span style="color: #B900B9;">// auliliar o ultimo nivel</span><br /><span style="color: #000000;">610100010002</span>        Vacaciones     <span style="color: #B900B9;">// auxiliar o ultimo nivel</span><br />etc...<br /><span style="color: #000000;">&#40;</span>En este caso el nivel <span style="color: #000000;">3</span> esta definido como cuenta de movimiento<span style="color: #000000;">&#41;</span><br /> </div>[/code:3f1mr650] Saludos.[/quote:3f1mr650] Saludos Francisco, si creo que con todo el aporte expuesto esta mas que claro, con esto creo tengo para trabajar en mi plan de cuenta que considero era mi piedra de tranca para iniciar el modulo contable, cualquier duda, que espero no salga ninguna en base al catalogo de cuentas, estare de nuevo por aca...gracias..saludos... <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: -->
ALGORITMO PARA CREAR PLAN DE CUENTA CONTABLE
Francisco: Con todo respeto, creo que no es necesario el campo NV AUX o MOV. Saludos
ALGORITMO PARA CREAR PLAN DE CUENTA CONTABLE
[quote="Armando":x7wp44m8]Francisco: Con todo respeto, creo que no es necesario el campo NV AUX o MOV. Saludos[/quote:x7wp44m8] Armando, imagino que lo hace para a la hora de un reporte o calculo saber mas rapidamente cuales son las cuentas de detalles o movimientos y asi llevar el resultado a la cuenta acumulativa, fijate que hay un colega que en su estructura ya coloca a que cuenta superior pertenece una cuenta hasta que se llega a la mas alta de nivel 1 que asumo pertenecera a ella misma y obviamente es acumulativa, el principio de todos las formas expuesta es casi el mismo, con una pequeña diferencia, que muchos toman las cuentas de movimientos a partir del nivel 4, pero puede suceder que una cuenta de nivel 3 sea de detalle, es lo que expuse al principio y era mi gran duda, a partir de que nivel de cuenta estas son de detalles o movimientos.? y en eso si encuentro diferencia, parto de principio que las cuentas de movimientos o detalles son a partir de un nivel 3, pero todo dependera del tipo de empresa y de las normas de cada pais, saludos... <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: -->
ALGORITMO PARA CREAR PLAN DE CUENTA CONTABLE
José Luis: Una vuelta más a la tuerca, la cantidad de niveles, al menos en mi país, no la fija las normas del país, la fijan las necesidades de control de cada empresa, otra cosa más, no necesariamente todas las cuentas de tercer o cuarto nivel son de detalle, puede ser que unas cuentas de tercer nivel sean de detalle y otras de cuarto o quinto nivel sean las de detalle. Por ejemplo la cuenta de BANCOS puede ser así 10 Bancos (Acumulativa) 10-1 Banco de la ilusión (De movimientos) 10-2 Banco del ahorro (De movimientos) Observa que el nivel dos es la de movimientos, pero en este otro ejemplo: 40 Almacenes (Acumulativa) 40-1 Almacén General (Acumulativa) 40-1-1 Producto terminado (Acumulativa) 40-1-1-1 Primer producto (De movimientos) 40-1-2 Materia prima (Acumulativa) 40-1-2-1 Primera materia prima (De movimientos) Aquí la de movimientos es la del cuarto nivel. Depende de las necesidades de cada empresa, no de las normas. Saludos
ALGORITMO PARA CREAR PLAN DE CUENTA CONTABLE
Super entendido Armando, solo que tenemos conceptos de NIVELES diferente, en tu ejemplo y de los demas colegas aunque no lo parezca, siempre las cuentas de movimientos EMPIEZAN A PARTIR DEL NIVEL 3 en adelante, porque lo digo.? fijate tu dices que la cuenta 10 Bancos es la acumulativa y que la cuenta 10.1 es la de movimiento, y todo es esta muy bien...pero para mi analisis y forma de ver la contabilidad, 10 Bancos no es NIVEL 1, sino nivel 2, ya que deberia de pertenecer a una cuenta 1 que es la cuenta de MAYOR y a esa si es la que determino como NIVEL 1, no se si es mi forma de ver el vaso medio lleno o medio vacio, pero es la logica que le veo, entonce tu ejemplo seria: 1 - ACTIVO(por decir algo) -> CUENTA DE MYOR ACUMULATIVA - NIVEL 1 10.1 BANCO -> CUENTA ACUMULATIVA QUE PERTENECE A LA CTA 1 - NIVEL 2 10.1.1 Banco de la ilusion -> CUENTA DE MOVIMIENTO QUE PERTENECE A LA CTA 10.1 - NIVEL 3 por eso digo que pareciera que no todos los paises manejan la contabilidad de la misma manera o yo le esto viendo 5 patas al gato, al fin para que no crean que tenemos una polemica, el punto es que en mi caso las cuentas de movimientos empeizan a partir de NIVEL 3 considerando la estrructura del plan(catalogo) de cuenta, igual cualquier comentario a añadir sera bien recibido en bien de todos los que leen este tema, sigo abierto a conversacion, saludos... <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: -->
ALGORITMO PARA CREAR PLAN DE CUENTA CONTABLE
JoseLuis Coincido con francisco que manejas un Tipo de Cuenta por cada cuenta contable es decir que cada cuenta la califique como padre e hijo, padre=acumulativo y el hijo=movimiento Cada vez que quieras crear una cuenta contable nueva haces un softseek de la cuenta que estas digitando y le haces un softseek a la tabla con la cta digitada si encuentra y verificas el tipo de cuenta y si es Padre le permites que continue llenando los demas datos pero si es hijo le mandas un msje indicandole que ya existe una cuenta hijo que para continuar cuenta cambiar la cuenta hijo a padre para continuar con la alta.
ALGORITMO PARA CREAR PLAN DE CUENTA CONTABLE
José Luis: Para nada es una polémica, es una tormenta de ideas de donde debe salir algo bueno. Si quieres ser muy purista lo que me dices es correcto, agregar ese primer nivel obliga al usuario a teclear un nivel más, la alternativa es que identifiques a las cuentas como P=Pasivo, C=Capital, etc etc. necesario para el armado de los Estados Financieros, así le quitas un nivel a tu catálogo y al usuario, pero ya es tu decisión. Saludos
ALGORITMO PARA CREAR PLAN DE CUENTA CONTABLE
En España, según mi análisis, si existe la necesidad de tener un nivel de "detalle" y un máximo nivel de "balance", para indicar qué cuentas pueden recibir movimientos y cuáles acumulados siguiendo el proceso de hijo -> padre tal y como lo habéis hablado de una u otra forma dependiendo del pais Cuando hice mi programa de contabilidad, hace ya, tenía dos variables, una que contenía el nivel de la cuenta de movimientos ( por ejemplo 8 : 57200001 [ Banco 1 ] ), y otra con el máximo del nivel de cuentas de balance ( este nivel me lo ofrecia el análisis de los balances oficiales, y ver por ejemplo que si utilizaban en los balances una cuenta 4201, eso me decia que nunca podría utilizar una cuenta de nivel 4 en las cuentas de movimientos ). Además en mi fichero de cuentas contables tenía tenía un campo que era NIVEL, cuyo valor era Len( AllTrim( campo_codigo_de_cuenta ) ), para asi poder ordenar el fichero más fácilmente.
ALGORITMO PARA CREAR PLAN DE CUENTA CONTABLE
[quote="Armando":30czhsbn]José Luis: Para nada es una polémica, es una tormenta de ideas de donde debe salir algo bueno. Si quieres ser muy purista lo que me dices es correcto, agregar ese primer nivel obliga al usuario a teclear un nivel más, la alternativa es que identifiques a las cuentas como P=Pasivo, C=Capital, etc etc. necesario para el armado de los Estados Financieros, así le quitas un nivel a tu catálogo y al usuario, pero ya es tu decisión. Saludos[/quote:30czhsbn] Armando, como dices es bueno tener una platica de CONOCIMIENTO PROFESIONAL sobre un tema de un tipo de modulo o sistema muy importante en un sistema administrativo o independiente, a veces no es cuestion de uno querer hacerlo de esta o aquella forma, si no del que al final tiene la ultima palabra...EL CLIENTE, uno puede "sugerir" porque como analista y programadores que somos vemos la mejor forma de hacer las cosas, pero al cliente...aqui se dice el cliente..."si pago como tu dieces entonces lo haces como yo quiera", no hay de otra, ya vamos viendo que entre todos podemos crear un modulo sencillo, generico, practico y funcional disponible para el foro, y cada quien lo adapte a sus propias necesidades si no cumple al 100% sus requerimientos...saludos... <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: -->
ALGORITMO PARA CREAR PLAN DE CUENTA CONTABLE
[quote="cnavarro":3lvtnval]En España, según mi análisis, si existe la necesidad de tener un nivel de "detalle" y un máximo nivel de "balance", para indicar qué cuentas pueden recibir movimientos y cuáles acumulados siguiendo el proceso de hijo -> padre tal y como lo habéis hablado de una u otra forma dependiendo del pais Cuando hice mi programa de contabilidad, hace ya, tenía dos variables, una que contenía el nivel de la cuenta de movimientos ( por ejemplo 8 : 57200001 [ Banco 1 ] ), y otra con el máximo del nivel de cuentas de balance ( este nivel me lo ofrecia el análisis de los balances oficiales, y ver por ejemplo que si utilizaban en los balances una cuenta 4201, eso me decia que nunca podría utilizar una cuenta de nivel 4 en las cuentas de movimientos ). Además en mi fichero de cuentas contables tenía tenía un campo que era NIVEL, cuyo valor era Len( AllTrim( campo_codigo_de_cuenta ) ), para asi poder ordenar el fichero más fácilmente.[/quote:3lvtnval] Saludos Navarro, como dice tu aporte y es la logica natural debemos controlar un nivel acumulativo(padre) y lo(s) niveles de movimientos o detalles(hijo), hay quien en el mismo registro usa un campo que considero buenisimo que es a que cuenta superior pertenece la cuenta en si, si no es cuenta de nivel 1que ya no tendria cuenta superior. Otro colega coloca en el miesmo registro que tipo de cuenta es, ACUMULATIVA o MOVIMIENTO. todo es valido para evitar que el usuario nos heche una broma y seamos nosotros los que tengamos e control del sistema y hacerlo lo mas estable y menos vulnarable. Hay otro que tambien tiene una buenisima idea de en una consulta hacer la busqueda de esa cuenta dentro de otra cuenta, si la encuantra, entonces es una cuenta acumulativa ya que posee cuenta de movimiento o detalles, hay muchas buenas idea. Tratare tomar lo mejor de cada sugerencia y hacer un hibrido y luego publicarlo. Lo que si veo es que nadie a respondido a mi pregunta sobre: si es mejor usar el plan(catalogo) de cuenta dentro de un BROWSE o en un TREE, ya que por la gestion de padre->hijo parece que lo del TREE seria una buena idea...pero no se si mas adelante esto no sea funcional y sea mejor el BROWSE, por eso pregunte a los que ya han realiazdo sus sistemas contables...gracias...saludos... <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: -->
ALGORITMO PARA CREAR PLAN DE CUENTA CONTABLE
[quote="leandro":v3lr8hf1]Jose Luis Buenos días Aqui en Colombia los diferentes niveles de las cuentas tienen nombre, así: 1 (1 Dígito - Clase) 11 (2 Dígitos - Grupo) 1105 (4 Dígitos - Cuentas) 110501 (6 Dígitos - SubCuentas) 11050101 (8 Dígitos - Auxiliares) Y simplemente cuando cuando hago la validación en la digitación, hago el filtro por las subcuentas o las auxiliares. Esta consulta que me permite determinar si la subcuenta tiene cuentas auxiliares asignadas: [code=fw:v3lr8hf1]<div class="fw" id="{CB}" style="font-family: monospace;"><br />cons = <span style="color: #ff0000;">"SELECT count(*) AS nro_aux FROM plan WHERE subs(cuenta,1,6)='110505' AND tipo_cuenta='A'"</span>;<br /> </div>[/code:v3lr8hf1][/quote:v3lr8hf1] Leandro probe tu idea de la consulta pero de esta manera SELECT * FROM `tbl_plan_cta` WHERE `id_cta` LIKE '110505%' asi solo mando la cuenta no importando el tamaño, si hay alguna coincidencia, entonces 110505 es una cuenta acumulativa y no puede recibir movimientos, gracias por la idea, saludos... <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: -->
ALGORITMO PARA CREAR PLAN DE CUENTA CONTABLE
Me aporto un poco del tema y aprovecho para lanzar esta idea que me viene rondando hace tiempo. Soy Contador Público y Programador Autodidacta, a raíz de tantos líos y limitaciones con los sistemas contables, decide hace mucho tiempo crear mi propia aplicación y diseñarla con base a mis necesidades como contador y no como programador o ingeniero. Me viene rondando la idea hace mucho tiempo cuando alguna vez en la universidad vi una clase sobre la CONTABILIDAD MATRICIAL. Ahora que tengo mucha mas experiencia y un poco mas de tiempo, pienso desarrollar la idea que rompe con los esquemas de la PARTIDA DOBLE que conocemos y del manejo de las cuentas que estamos acostumbrados. (no se si hay algún aplicativo o paquete contable desarrollado con el principio de MATRICES) Un pequeño ejemplo: [img:3q35zwrk]http&#58;//www&#46;hymplus&#46;com/imagenes/foro/Ejemplo&#46;png[/img:3q35zwrk] Espero compartir mis experiencias con este proyecto y porque no recibir ayuda de esta comunidad de fiweneros.
ALGORITMO PARA CREAR PLAN DE CUENTA CONTABLE
También había visto eso hace tiempo también ( entendiendo que en España también se utiliza la "partida doble" ) Actualmente desarrollar eso con un hash podría ser también muy interesante Si siguiese en el tema, seguro que lo intentaría
ALGORITMO PARA CREAR PLAN DE CUENTA CONTABLE
[quote="joseluisysturiz":1rxii4qy]Super entendido Armando, solo que tenemos conceptos de NIVELES diferente, en tu ejemplo y de los demas colegas aunque no lo parezca, siempre las cuentas de movimientos EMPIEZAN A PARTIR DEL NIVEL 3 en adelante, porque lo digo.? fijate tu dices que la cuenta 10 Bancos es la acumulativa y que la cuenta 10.1 es la de movimiento, y todo es esta muy bien...pero para mi analisis y forma de ver la contabilidad, 10 Bancos no es NIVEL 1, sino nivel 2, ya que deberia de pertenecer a una cuenta 1 que es la cuenta de MAYOR y a esa si es la que determino como NIVEL 1, no se si es mi forma de ver el vaso medio lleno o medio vacio, pero es la logica que le veo, entonce tu ejemplo seria: 1 - ACTIVO(por decir algo) -> CUENTA DE MYOR ACUMULATIVA - NIVEL 1 10.1 BANCO -> CUENTA ACUMULATIVA QUE PERTENECE A LA CTA 1 - NIVEL 2 10.1.1 Banco de la ilusion -> CUENTA DE MOVIMIENTO QUE PERTENECE A LA CTA 10.1 - NIVEL 3 por eso digo que pareciera que no todos los paises manejan la contabilidad de la misma manera o yo le esto viendo 5 patas al gato, al fin para que no crean que tenemos una polemica, el punto es que en mi caso las cuentas de movimientos empeizan a partir de NIVEL 3 considerando la estrructura del plan(catalogo) de cuenta, igual cualquier comentario a añadir sera bien recibido en bien de todos los que leen este tema, sigo abierto a conversacion, saludos... <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: -->[/quote:1rxii4qy] Hola buenas tardes Ing. Jose Luis espero sea de ayuda de crear tus propios campos para darte una idea de como tengo mi base de datos por campos: CUENTAS->Longitud 19 Tus cuentas contables de 1 a 4 niveles de cuentas XXXX-XXXX-XXXX-XXXX DESCRIPCUENTA ->Longitud 65 Tu descripcion de la cuenta NIVSUM-> Niveles de sumatoria por cada cuenta que creas segun tu nivel....1,2,3,4 y en tu algoritmo que sume el nivel 1 como acumulitiva, subcta, subsubcta...etc TIPONAT->Tipo de naturaleza si "A" es acumulativo o "D " a detalle de movimientos. GRUPOCTA->Se refiere si es Activo o Pasivo Espero darte mas ideas... CUENTAS DESCRIPCIONCUENTA NIVSUM TIPONAT GRUPOCTA 2010000000000000 PROVEEDORES 1 A 2 2010000100000000 PROVEEDOR MON NAC 2 A 2 2010000100010000 PROVEEDOR PERSONA MORAL 3 A 2 2010000100010001 BEPENSA DEL CARIBE SA DE CV 4 D 2 2010000200010000 PROVEEDOR PERSONA FISICA 3 A 2 2010000200010001 JUAN PEREZ CASIMIRO 4 D 2 Saludos Ing. Jose Luis Atte: Adriano C. C.
ALGORITMO PARA CREAR PLAN DE CUENTA CONTABLE
[quote="cnavarro":3il6nr9e]También había visto eso hace tiempo también ( entendiendo que en España también se utiliza la "partida doble" ) Actualmente desarrollar eso con un hash podría ser también muy interesante Si siguiese en el tema, seguro que lo intentaría[/quote:3il6nr9e] Navarro, me quitastes la palabra de la boca, iba decir lo mismo que eso es un HASH y se ve bastante logico para usar, habria que ir haciendo pruebas a ver como sale mas que todo para los reportes y balances.
ALGUIEN A REALIZADO ALGO PARA VeriFone VX680
Saludos, queria saber si alguien ha desarrolado algo para VeriFone VX680 con FWH o con algun otro lenguaje.? acepto sugerencias, experiencias, alternativas, etc...gracias... <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: -->
ALGUIEN A REALIZADO ALGO PARA VeriFone VX680
Jose Luis, buen dia Es para un banco en especial ? yo lo hice para banorte
ALGUIEN A REALIZADO ALGO PARA VeriFone VX680
[quote="VitalJavier":27vcmtnl]Jose Luis, buen dia Es para un banco en especial ? yo lo hice para banorte[/quote:27vcmtnl] No me dijeron nada sobre algun banco especifico, imagino deberia ser para cualquier banco ya que me lo esta pidiendo un comercio...con que lenguaje trabajastes.? puedes darme alguna orientacion de por donde empezar y las herramientas o utlidades necesarias para desarrollar algo para este dispositivo.? si tienes algunas pantallas o algo que me de ideas, si quieres puedes escribir a mi privador... <!-- e --><a href="mailto:joseluisysturiz@yahoo.com">joseluisysturiz@yahoo.com</a><!-- e -->, gracias... <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: -->
ALGUIEN ME LO ACLARE :
Estoy recien implementando de 16 a 32 bits,, de FIVEWIN a FIVEWIN para Harbour xHarbour tengo las siguiente dudas: cual es la diferencia tecnica entre 16 bit y 32 bit harbour acepta los DATABASE que se usan en FIVEWIN las clases de terceros TSBROWSE,TSBUTTON y SSAY y demas se pueden incorporar en 32 Bits o con las clases que trae FWH27 basta y sobra para hacer buenas presentaciones GRACIAS
ALGUIEN ME LO ACLARE :
Amigo, FWH utiliza las mismas bases que Fivewin, indices NTX y CDX y anda algo por allí para los SIX, además te permite mediante un driver utilizar local server de Advantage, lo que te permitirá hacer programas cliente/servidor para hasta cinco equipos sin gastar un céntimo y por otros medios utilizar MySQL, SQLServer, PGSql y otras bases. Las clases que mencionas funcionan con harbour y xharbour, y también es cierto que en FWH puedes encontrar otras que mas o menos logran el mismo efecto. De todos modos lo importante es que las que usas podrás usarlas con FWH simplemente recompilando su código fuente. TSButton en particular adolece de algún problema con bitmaps múltiples, pero a parte de eso anda excelente. Las clases que mencionas las encontrarás en el foro de Utilidades, ya listas para usar con [x]Harbour. Una vez que te pases a FWH, verás en realidad todas sus ventajas, en lo que refiere al aspecto de tu programa y en cuanto a su integración a windows. Mucha suerte con tu adaptación, que te sea leve, estoy a tus órdenes.
ALGUIEN ME LO ACLARE :
Añadiendo al comentario de José: Siempre pensá un paso mas adelante, ahora solo pasas a FWH... en un futuro a mysql, sql, etc. O sea, opinion nada mas, anda pensando en armar el sistema para que te sea facil luego pasar de DBF a tablas <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) -->
ALGUIEN ME PUEDE AYUDAR CON LOS MENUS TIPO XP
utilizo FWH 2.7 nov,2005 y xharbour 0.99.5 al compilar lor programas prg y dejando los obj originales ( gradfill y menus ) me manda el error unresolved external hb_stack referenced from menus.obj luego intente compliar los archivos .c gradfill y menus pero al compilar menus.c manda el siguiente error: declaration syntax error menus.c (23) A CONTINUACION MUESTRO LA FORMA DE COMPILAR @ECHO ON CLS ECHO Compiling... set hdir=c:\xharbour set bcdir=c:\bcc55 c:\xharbour\bin\harbour %1 /n /i..\include;c:\xharbour\include;c:\bcc55\include;c:\fwh\include /w /p %2 %3 > clip.log c:\xharbour\bin\harbour menu.prg /n /i..\include;c:\xharbour\include;c:\bcc55\include;c:\fwh\include /w /p %2 %3 >> clip.log c:\xharbour\bin\harbour mru.prg /n /i..\include;c:\xharbour\include;c:\bcc55\include;c:\fwh\include /w /p %2 %3 >> clip.log c:\xharbour\bin\harbour menuitem.prg /n /i..\include;c:\xharbour\include;c:\bcc55\include;c:\fwh\include /w /p %2 %3 >> clip.log c:\xharbour\bin\harbour pdmenu.prg /n /i..\include;c:\xharbour\include;c:\bcc55\include;c:\fwh\include /w /p %2 %3 >> clip.log @type clip.log pause cls echo -O2 -e%1.exe -Ic:\xharbour\include;c:\bcc55\include %1.c > b32.bc echo -O2 -e%1.exe -Ic:\xharbour\include;c:\bcc55\include menu.c >> b32.bc echo -O2 -e%1.exe -Ic:\xharbour\include;c:\bcc55\include mru.c >> b32.bc echo -O2 -e%1.exe -Ic:\xharbour\include;c:\bcc55\include menuitem.c >> b32.bc echo -O2 -e%1.exe -Ic:\xharbour\include;c:\bcc55\include pdmenu.c >> b32.bc echo -O2 -e%1.exe -Ic:\xharbour\include;c:\bcc55\include menus.c >> b32.bc echo -O2 -e%1.exe -Ic:\xharbour\include;c:\bcc55\include gradfill.c >> b32.bc c:\bcc55\bin\bcc32 -M -c @b32.bc :ENDCOMPILE pause IF EXIST %1.rc c:\bcc55\bin\brc32 -r %1 echo c:\bcc55\lib\c0w32.obj + > b32.bc echo %1.obj + >> b32.bc echo menu.obj + >> b32.bc echo Mru.obj + >> b32.bc echo gradfill.obj + >> b32.bc echo menus.obj + >> b32.bc echo menuitem.obj + >> b32.bc echo pdmenu.obj, + >> b32.bc echo %1.exe, + >> b32.bc echo %1.map, + >> b32.bc echo c:\fwh\lib\FiveH.lib c:\fwh\lib\FiveHC.lib + >> b32.bc echo %hdir%\lib\rtl.lib + >> b32.bc echo %hdir%\lib\vm.lib + >> b32.bc echo %hdir%\lib\gtwin.lib + >> b32.bc echo %hdir%\lib\lang.lib + >> b32.bc echo %hdir%\lib\macro.lib + >> b32.bc echo %hdir%\lib\rdd.lib + >> b32.bc echo %hdir%\lib\dbfntx.lib + >> b32.bc echo %hdir%\lib\dbfcdx.lib + >> b32.bc echo %hdir%\lib\dbffpt.lib + >> b32.bc echo %hdir%\lib\hbsix.lib + >> b32.bc echo %hdir%\lib\debug.lib + >> b32.bc echo %hdir%\lib\common.lib + >> b32.bc echo %hdir%\lib\pp.lib + >> b32.bc echo %hdir%\lib\codepage.lib + >> b32.bc echo c:\bcc55\lib\cw32.lib + >> b32.bc echo c:\bcc55\lib\import32.lib + >> b32.bc echo c:\bcc55\lib\psdk\odbc32.lib + >> b32.bc echo c:\bcc55\lib\psdk\nddeapi.lib + >> b32.bc echo c:\bcc55\lib\psdk\iphlpapi.lib + >> b32.bc echo c:\bcc55\lib\psdk\rasapi32.lib, >> b32.bc IF EXIST %1.res echo %1.res >> b32.bc c:\bcc55\bin\ilink32 -Gn -aa -Tpe -s @b32.bc _________________________________________________________________ Crea tu propia página de enrada con[/size][/size][/size] todo lo que te gusta <!-- m --><a class="postlink" href="http://live.com">http://live.com</a><!-- m -->
ALGUIEN ME PUEDE AYUDAR CON LOS MENUS TIPO XP
Marco, <!-- m --><a class="postlink" href="http://fivetechsoft.com/forums/viewtopic.php?t=3974">http://fivetechsoft.com/forums/viewtopic.php?t=3974</a><!-- m -->
ALGUIEN ME PUEDE AYUDAR CON LOS MENUS TIPO XP
hola crea un bat con lo siguiente para compitar Def ="__HARBOUR__;HB_API_MACROS;HB_FM_STATISTICS_OFF" c:\bcc55\bin\bcc32 -M -c -D__HARBOUR__ -Id:\Harbour\include;c:\bcc55\include;d:\fwh\include %1.c [b:1iu4kttw]Ojo el Def es importante[/b:1iu4kttw] Saludos ARturo
ALGUIEN SABRA:::
COLEGAS,, ALGUIEN SABRA COMO DEJAR UNA WINDOW SOLAMENTE CON LOS BOTONES MINIMIZAR, MAXIM,,, Y CERRAR... OSEA QUITAR EL ICONO DE LA VENTANA Y EL MENU Q SE GENERA AHI;; GRACIAS
ALGUIEN SABRA:::
Hola: he aqui un codigo sencillo que hace lo que pides. [code=fw:3n9lxjbd]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br /><span style="color: #00D7D7;">#Include</span> <span style="color: #ff0000;">"FiveWin.Ch"</span><br /><br /><span style="color: #00C800;">FUNCTION</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">LOCAL</span> oWnd, oFont, oBmp, oMan, oBar, oOut<br /><br />REQUEST DBFCDX, OrdKeyNo, OrdKeyCount<br />RddSetDefault<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"DBFCDX"</span><span style="color: #000000;">&#41;</span><br /><br />SET CENTURY <span style="color: #0000ff;">ON</span><br />SET DATE FRENCH<br />SET DELETED <span style="color: #0000ff;">ON</span><br /><br /><span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span>    oFont <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"Sagoe UI"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">-12</span><br /><span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">CURSOR</span> oMan <span style="color: #0000ff;">RESOURCE</span> <span style="color: #ff0000;">"MANO"</span><br /><span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BRUSH</span>  oBrs   <span style="color: #0000ff;">COLOR</span> nRGB<span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span>,<span style="color: #000000;">0</span>,<span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span><br />SET _3DLOOK <span style="color: #0000ff;">ON</span><br /><span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"TITULO"</span> <span style="color: #0000ff;">BRUSH</span> oBrs<br /><br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTONBAR</span>  oBar <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">70</span>,<span style="color: #000000;">47</span> TOP 3D  <span style="color: #0000ff;">OF</span> oWnd <span style="color: #0000ff;">CURSOR</span> oMan<br />          <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTON</span>  <span style="color: #0000ff;">RESOURCE</span> <span style="color: #ff0000;">"SALIR"</span> <span style="color: #0000ff;">OF</span> oBar NOBORDER GROUP ;<br />          TOOLTIP <span style="color: #ff0000;">" Salir del Sistema "</span> <span style="color: #0000ff;">ACTION</span> oWnd:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   @ <span style="color: #000000;">-1</span>, <span style="color: #000000;">2</span> OUTLOOK oOut <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">110</span>, oWnd:<span style="color: #000000;">nHeight</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>  <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">FONT</span> oFont <span style="color: #0000ff;">OF</span> oWnd<br />      <span style="color: #0000ff;">DEFINE</span> GROUP <span style="color: #0000ff;">OF</span> OUTLOOK oOut <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Procesos"</span><br />             <span style="color: #0000ff;">DEFINE</span> BITMAP <span style="color: #0000ff;">OF</span> OUTLOOK oOut <span style="color: #0000ff;">PROMPT</span>  <span style="color: #ff0000;">"Resumen Vtas"</span>  <span style="color: #0000ff;">ACTION</span> Cierre<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> ;<br />             <span style="color: #0000ff;">RESOURCE</span> <span style="color: #000000;">3</span> <span style="color: #0000ff;">MESSAGE</span> <span style="color: #ff0000;">" Cierre de Ventas Sucursales "</span> ;<br />            TOOLTIP <span style="color: #ff0000;">" Resumen de Ventas por Sucursal "</span><br />     <span style="color: #0000ff;">DEFINE</span> GROUP <span style="color: #0000ff;">OF</span> OUTLOOK oOut <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"..."</span><br /><br />          oWnd:<span style="color: #000000;">oMsgBar</span>:<span style="color: #000000;">DateOn</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />          oWnd:<span style="color: #000000;">oBar</span>:<span style="color: #000000;">bRClicked</span> = <span style="color: #000000;">&#123;</span> || MsgStop<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"NO REALIZAR ACCION"</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br /><br /><br />   <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <span style="color: #0000ff;">MAXIMIZED</span> <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">PAINT</span> <span style="color: #000000;">&#40;</span> PalBmpDraw<span style="color: #000000;">&#40;</span> hDC, ;<br />                                 <span style="color: #000000;">&#40;</span> oWnd:<span style="color: #000000;">nHeight</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> / <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span> - <span style="color: #000000;">&#40;</span> oBit:<span style="color: #000000;">nHeight</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> / <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span> - <span style="color: #000000;">50</span>, ;<br />                                 <span style="color: #000000;">&#40;</span> oWnd:<span style="color: #000000;">nWidth</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>  / <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span> - <span style="color: #000000;">&#40;</span> oBit:<span style="color: #000000;">nWidth</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>  / <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span>, oBit:<span style="color: #000000;">hBitmap</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <br />oFont:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />DBCLOSEALL<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />SET RESOURCES <span style="color: #0000ff;">TO</span><br />FreeResources<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #0000ff;">RELEASE</span> oWnd, oFont<br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">Nil</span><br /><br /> </div>[/code:3n9lxjbd] no se como colocar imagenes, pero es lo que necesitas. saludos desde Chile
ALGUIEN TIENE
Alguien tiene una rutina que permita cambiar un Bitmap en la pantalla principal de un menu,, en tiempo de ejecucion.. un bitmap q sea usado por el usuario,, o alguien sabe como hacerla GRACIAS es para darle un cache al sistema
ALGUIEN TIENE
[code:upshl4xm] DEFINE BITMAP oBmpLogo FILE "milogo&#46;bmp" oWnd&#58;bPainted = &#123; | hDC | If&#40; oBmpLogo != nil,; PalBmpDraw&#40; hDC,; oWnd&#58;nHeight&#40;&#41; / 2 - ; oBmpLogo&#58;nHeight&#40;&#41; / 2 - 50,; oWnd&#58;nWidth&#40;&#41; / 2 - ; oBmpLogo&#58;nWidth&#40;&#41; / 2,; oBmpLogo&#58;hBitmap &#41;,&#41; &#125; [/code:upshl4xm] Para cambiar de bitmap sólo tienes que hacer oBmpLogo:End() y volver a ejecutar DEFINE BITMAP oBmpLogo FILE "otro.bmp" con otro nombre de fichero.
ALGUIEN USA TXTPREVIEW
BUENAS TARDES FORO, TENGO UN PROBLEMA CON LA CLASE TXTPREVIEW, EN RESUMEN YA NO USO EL PREV.DLL QUE LLAMABA LA CLASE, ESOS RECURSOS LOS HE AGREGADO A MI RC, PERO HE TENIDO UN RARO COMPORTAMIENTO DE LA CLASE COMO QUE EL MOVERSE POR LA BARRA DE DESPLAZAMIENTO AL LADO DERECHO EL CONTENIDO SIMPLEMENTE DESAPARECE, ES COMO SI MOSTRARA UNA HOJA BLANCO; Y LO MAS CURIOSO ES QUE ESET PROBLEMA SOLO LO TENOG EN PC CON S.O XP Y APLICACIONES EN 32 BITS, YA UQE LA MISMA APLICACION CORRIENDO EN WIN98 NO MUESTRA EL PROBLEMA ANTES MENCIONADO. ALGUIEN QUE ESTE USANDO ACTUALMENTE LA CLASE O MEJOR AUN QUE LA ESTE USANDO (DLL) DENTRO DEL RC, LE AGRADECERIA MUCHISMO SI ME DA UNA AYUDA. GRACIAS
ALGUIEN USA TXTPREVIEW
Holá, Puedes hablar directamente con el autor: <!-- e --><a href="mailto:ednaldo.rolim@yahoo.com.br">ednaldo.rolim@yahoo.com.br</a><!-- e --> saludos
ALGUIEN USA TXTPREVIEW
Hola Llegaste a solucionar el problema?, alguien con un problema similar lo solucionó? Gracias
ALGUN EJEMPLO DE COMO USAR CHARTFX DESDE DLL
AMIGOS TIENEN ALGUN EJEMPLO DE COMO USAR RMChart.dll RCHARTFX DESDE EL DLL NO DESDE EL OCX CON ACTIVEX POR Q MI VERSION DE FW NO LO SOPORTA <!-- m --><a class="postlink" href="http://rmchart.com/rmc/downloads/setup/setup.exe">http://rmchart.com/rmc/downloads/setup/setup.exe</a><!-- m --> GRACIAS POR LA AYUDA
ALGUN EJEMPLO DE COMO USAR CHARTFX DESDE DLL
Vladimir, En rmchartvb.bas tienes las declaraciones de todas las funciones que exporta la DLL. Tendrias que portar esas declaraciones desde visual basic a FiveWin usando DLL FUNCTION ...
ALGUN ID PARA DESARROLLO...
FiveWiners Tengo problemas con Xmate, y necesito con URGENCIA recompilar mi app, me pueden recomendar algún ID para desarrollar mis aplicaciones que sea similar al xmate, idealmente si me pueden ayudar tambien con la configuración para compilar y llegar al ejecutable del nuevo ID. muy agradecido... salu2
ALGUN ID PARA DESARROLLO...
Hola amigo, buenas tardes, usa VeRCE 5.0 y Pelles C, los dos excelentes para tus aplicaciones y dialogos. Saludos y buen dia . Atte: Adrian C. C.
ALGUN ID PARA DESARROLLO...
[quote="ACC69":evav7dli]Hola amigo, buenas tardes, usa VeRCE 5.0 y Pelles C, los dos excelentes para tus aplicaciones y dialogos. Saludos y buen dia . Atte: Adrian C. C.[/quote:evav7dli] Gracias por tu ayuda.. descargue pelles c, pero no logro echarlo a caminar, como agrego mis prg y rc al proyecto para compilar?? tendras algún manual (ojala en español) o pasos a seguir para lograr compilar. muchas gracias. M.
ALGUN ID PARA DESARROLLO...
[quote="macato":3mouvx60][quote="ACC69":3mouvx60]Hola amigo, buenas tardes, usa VeRCE 5.0 y Pelles C, los dos excelentes para tus aplicaciones y dialogos. Saludos y buen dia . Atte: Adrian C. C.[/quote:3mouvx60] Gracias por tu ayuda.. descargue pelles c, pero no logro echarlo a caminar, como agrego mis prg y rc al proyecto para compilar?? tendras algún manual (ojala en español) o pasos a seguir para lograr compilar. muchas gracias. M.[/quote:3mouvx60] Hola Macato,para agregar prg y recursos, tienes que usar VeRCE 5.0 que seguro lo encontraras en utilidades y para tu codigo de editor, usa ConTEXT, muy bueno el editor. Saludos
ALGUN ID PARA DESARROLLO...
Que tal colega, usa verce te lo recomiendo ampliamente, te dejo el link con la version más reciente y la cual uso sin problemas, para genererar exe´s tipo consola o ide, librerias dll y muchas cosas más, muy configurable y atractivo, y sobre todo creado con Fivewin... Trabajo de mi estimados colegas William Morales Martinez y Juan Carlos Salinas Ojeda. <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: --> <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: --> <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: --> [url:jg3z8ajq]http&#58;//incos&#46;sytes&#46;net/downloads/verce&#46;rar[/url:jg3z8ajq]
ALGUN ID PARA DESARROLLO...
La nueva version de verce la bajas de <!-- m --><a class="postlink" href="http://wmormar.blogspot.com/">http://wmormar.blogspot.com/</a><!-- m --> Luis
ALGUN ID PARA DESARROLLO...
Hoal ... Pudiste resolver lo de xMate ... caso contrario te envio el que tengo y me funciona ...
ALLTRIM
Should ALLTRIM delete ASC 10 + ASC 13, too. If yes I think in Harbour for PPC this might not be the case. Thanks in advance Otto
ALLTRIM
[quote="Otto":2b0yh8w9]Should ALLTRIM delete ASC 10 + ASC 13, too.[/quote:2b0yh8w9] No. EMG
ALLTRIM
Hello Otto: [quote="Otto":27bqnvff]Should ALLTRIM delete ASC 10 + ASC 13, too. If yes I think in Harbour for PPC this might not be the case.[/quote:27bqnvff]Clipper, xHarbour and Harbour_ce give same results: ?Len(AllTrim( "123"+CRLF)) //returns 5 ?Len(AllTrim( " "+CRLF)) // returns 0 Best regards. Manuel Mercado
ALLTRIM
Hello Manuel, hello Enrico, thank you for your help. Best regards, Otto
ALLTRIM
[quote="mmercado":22qsl45a]?Len(AllTrim( " "+CRLF)) // returns 0[/quote:22qsl45a] I wasn't aware of such behavior. It looks more like a Clipper bug, inherited from [x]Harbour, to me. EMG
ALSO for BACKSTAGE
How I can create a dialog into backstage at right ?
ALSO for BACKSTAGE
Silvio, Try to use a non modal one
ALSO for BACKSTAGE
yes I wish and l'd like insert a dialog as this: [img:1witosre]http&#58;//img837&#46;imageshack&#46;us/img837/9479/ribbonbackstageview&#46;jpg[/img:1witosre]
ALSO for BACKSTAGE
I TRY THIS BUT NOT RUN OK [code=fw:7isd4y6e]<div class="fw" id="{CB}" style="font-family: monospace;"><br />ANTONIO,<br /><br />I MADE <br /><br /><br />&nbsp;<span style="color: #00C800;">Local</span> oBackBtn<br />&nbsp; &nbsp;<span style="color: #00C800;">Local</span> oBackstage<br />&nbsp; &nbsp;<span style="color: #00C800;">Local</span> aClrMenu1 := <span style="color: #000000;">&#123;</span> <span style="color: #000000;">&#123;</span> <span style="color: #000000;">0.5</span>, RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">69</span>, <span style="color: #000000;">124</span>, <span style="color: #000000;">188</span> <span style="color: #000000;">&#41;</span>, RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">41</span>, <span style="color: #000000;">93</span>, <span style="color: #000000;">171</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span>, <span style="color: #000000;">&#123;</span> <span style="color: #000000;">0.5</span>, RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">26</span>, <span style="color: #000000;">64</span>, <span style="color: #000000;">136</span> <span style="color: #000000;">&#41;</span>, RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">56</span>, <span style="color: #000000;">135</span>, <span style="color: #000000;">191</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">Local</span> aClrMenu2 := <span style="color: #000000;">&#123;</span> <span style="color: #000000;">&#123;</span> <span style="color: #000000;">0.5</span>, RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">123</span>, <span style="color: #000000;">178</span>, <span style="color: #000000;">236</span> <span style="color: #000000;">&#41;</span>, RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">71</span>, <span style="color: #000000;">126</span>, <span style="color: #000000;">205</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span>, <span style="color: #000000;">&#123;</span> <span style="color: #000000;">0.5</span>, RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">17</span>, <span style="color: #000000;">78</span>, <span style="color: #000000;">175</span> <span style="color: #000000;">&#41;</span>, RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">128</span>, <span style="color: #000000;">225</span>, <span style="color: #000000;">255</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">Local</span> &nbsp;aMenuRibbon := <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"Favoriti"</span>,<span style="color: #ff0000;">"Hardware"</span>,<span style="color: #ff0000;">"Software"</span>,<span style="color: #ff0000;">"Manuali"</span>,<span style="color: #ff0000;">"Prestiti"</span>,<span style="color: #ff0000;">"Magazzino"</span>,<span style="color: #ff0000;">"Utilità"</span>,<span style="color: #ff0000;">"Aiuto"</span> <span style="color: #000000;">&#125;</span><br /><br /><br />&nbsp; <span style="color: #00C800;">if</span> ::<span style="color: #000000;">obar</span> != <span style="color: #00C800;">nil</span><br />&nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">obar</span>:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">obar</span> = <span style="color: #00C800;">nil</span><br />&nbsp; &nbsp; <span style="color: #00C800;">endif</span><br /><br /><br />&nbsp; &nbsp;::<span style="color: #000000;">obar</span>:=TRibbonBar<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;">oWndMain</span>, aMenuRibbon,,,,<span style="color: #000000;">125</span>,<span style="color: #000000;">26</span> <span style="color: #000000;">&#41;</span><br /><br /><br />&nbsp; &nbsp;::<span style="color: #000000;">obar</span>:<span style="color: #000000;">nLeftMargin</span> = <span style="color: #000000;">85</span><br />&nbsp; &nbsp;::<span style="color: #000000;">obar</span>:<span style="color: #000000;">CalcPos</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; oBackBtn = TRBtn<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;">4</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">70</span>, <span style="color: #000000;">20</span>, <span style="color: #ff0000;">"./../bitmaps/rbnmenu.bmp"</span>, <span style="color: #000000;">&#123;</span> || ::<span style="color: #000000;">obar</span>:<span style="color: #000000;">Backstage</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span>, ::<span style="color: #000000;">obar</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; ,,,,,, .T., .T.,,,,,, <span style="color: #B900B9;">/*"POPUP"*/</span> , oBackstage,,,,,,,,,,,,, aClrMenu1, nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">125</span>, <span style="color: #000000;">172</span>, <span style="color: #000000;">215</span> <span style="color: #000000;">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">65</span>, <span style="color: #000000;">106</span>, <span style="color: #000000;">189</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br /><br />&nbsp; &nbsp;Add GROUP....<br /><br /><br />&nbsp;<span style="color: #B900B9;">//BACKSTAGE</span><br /><br />&nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> BACKSTAGE oBackstage MAINWIDTH <span style="color: #000000;">300</span><br />&nbsp; &nbsp; <span style="color: #0000ff;">DEFINE</span> BSSELECT <span style="color: #0000ff;">OF</span> oBackstage <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Test1"</span> <span style="color: #0000ff;">ACTION</span> nBackstage1<span style="color: #000000;">&#40;</span>oBackstage<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; <span style="color: #0000ff;">DEFINE</span> BSSELECT <span style="color: #0000ff;">OF</span> oBackstage <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Test2"</span> <span style="color: #0000ff;">ACTION</span> <span style="color: #0000ff;">Msginfo</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Test2"</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; SET BACKSTAGE oBackstage <span style="color: #0000ff;">TO</span> ::<span style="color: #000000;">oBar</span><br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">Self</span><br /><br /><br /><br /><span style="color: #00C800;">Function</span> nBackstage1<span style="color: #000000;">&#40;</span>oBackstage<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">Local</span> oDlgBack1<br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> &nbsp;oDlgBack1 <span style="color: #0000ff;">OF</span> oBackstage<br /><br />&nbsp; &nbsp;@<span style="color: #000000;">10</span>,<span style="color: #000000;">2</span> <span style="color: #0000ff;">say</span> <span style="color: #ff0000;">"test"</span> <span style="color: #0000ff;">of</span> &nbsp;oDlgBack1<br /><br /><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> &nbsp;oDlgBack1 <span style="color: #0000ff;">NOWAIT</span><br />&nbsp; <span style="color: #00C800;">Return</span> <span style="color: #00C800;">NIL</span></div>[/code:7isd4y6e]
ALSO for BACKSTAGE
Perhaps I found I try simply @5,55 say "TEST " of oBackstage @ 26, 75 BITMAP obmpBack FILE ".\bitmaps\blue.bmp" ; of oBackstage TRANSPARENT NOBORDER Only How calc the right position of oBackstage to insert a bitmap on the bottom angle ? [img:2y0z4tby]http&#58;//img149&#46;imageshack&#46;us/img149/4796/ggggmq&#46;jpg[/img:2y0z4tby]
ALT + 0 en TESTDLG2.PRG no funciona.
Master en TESTDLG2.PRG porque cuando pulso ALT + O, usando LOOK 2007 no funciona? Sin LOOK 2007 funciona perfecto el uso de ALT + O ó ALT + T. Que hacer para que funcione? gracias, saludos. [code=fw:3q8s050e]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #B900B9;">// Building an application just with a DialogBox</span><br /><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><br /><span style="color: #00C800;">static</span> oDlg<br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">// local oDlg</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;">6</span>, <span style="color: #000000;">6</span> <span style="color: #0000ff;">TO</span> <span style="color: #000000;">20</span>, <span style="color: #000000;">60</span> <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Hello World!"</span><br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">2</span>, <span style="color: #000000;">2</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"&Hello"</span> <span style="color: #0000ff;">OF</span> oDlg ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">&#40;</span> MsgAbout<span style="color: #000000;">&#40;</span> FWVERSION, FWCOPYRIGHT <span style="color: #000000;">&#41;</span>, _SetMenu<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;">4</span>, <span style="color: #000000;">2</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"&Bye!"</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">ACTION</span> oDlg:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">VALID</span> MsgYesNo<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Want to end ?"</span> <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">function</span> _SetMenu<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 <span style="color: #000000;">2007</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"&One"</span> &nbsp;<span style="color: #0000ff;">ACTION</span> <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"One"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"&Two"</span> &nbsp;<span style="color: #0000ff;">ACTION</span> <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Two"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #0000ff;">ENDMENU</span><br /><br />&nbsp; &nbsp;oDlg:<span style="color: #000000;">SetMenu</span><span style="color: #000000;">&#40;</span> oMenu <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br />procedure AppSys &nbsp;<span style="color: #B900B9;">// &nbsp;XBase++ requirement</span><br /><br /><span style="color: #00C800;">return</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br />&nbsp;</div>[/code:3q8s050e]
ALT + 0 en TESTDLG2.PRG no funciona.
Up
ALT + 0 en TESTDLG2.PRG no funciona.
Up
ALT + E
ciao, a tutti, uso fw2.7 con xHarbour 0.99.70, in una tabella twbrowse intercetto la pressione del tasto invio su un campo con il seguente blocco di codice: oBrw:bKeyDown := {| nKey, nFlags | If((nKey == VK_RETURN,.....},)), .t.)} per compatibilità con un vecchio programma clipper devo fare la stessa cosa col tasto ALT + E, VK_ALT_E non è definito in vkey.ch e in nessun altro file include e #define K_ALT_E 274 del vecchio clipper non funziona. dove posso trovare la definizione funzionante di tutte le combinazioni di tasti come in inkey.ch di clipper? ciao, marzio
ALT + E
Non esistono tali combinazioni in Windows. Però esiste la definizione del tasto ALT da solo ed è VK_MENU. Purtroppo non è possibile, in generale, intercettare questo tasto con le FWH perciò ti consiglio di utilizzare il CTRL al suo posto: [code:10pdvzru]IF nKey = ASC&#40; "E" &#41; &#46;AND&#46; GETKEYSTATE&#40; VK_CONTROL &#41; &#46;&#46;&#46; ENDIF[/code:10pdvzru] EMG
ALT + E
grazie enrico, VK_MENU funziona col tasto Alt Gr + E mentre con l'Alt di sinistra non va. come ho scritto è per compatibilità con un vecchio programma. gli utenti sono abituati ad usare alt + e. ciao, marzio
ALT + Tecla ??????
Boa tarde, Como eu faço, pra Combinar teclar No FwH, tipo quero usar: ALT+P.....em um Browse........ @braços Ale
ALT + Tecla ??????
<!-- m --><a class="postlink" href="http://www.fivewin.com.br/exibedicas.asp?id=220">http://www.fivewin.com.br/exibedicas.asp?id=220</a><!-- m --> Regards, saludos.
ALT + Tecla ??????
[quote="karinha":3f83j1ua]http://www.fivewin.com.br/exibedicas.asp?id=220 Regards, saludos.[/quote:3f83j1ua] Gracias Amigo, Funcionu perfeitamente. @braços Ale
ALT key (pressed alone) on dialogs
Hi all, This issue I have also posted on xHB NG, without any reply (yet) I have noticed a strange behaviour of the ALT key if pressed alone on a dialog. It is somehow related with the system menu (Move/Close) but then it is not pop up the system menu and still have to press SPACE key after the ALT key. The strangest behaviour is that it makes all the TSBUTTONS in the dialog go bananas! They lose their colors and their bitmaps, and have to move the cursor over them one by one to make then reshow in normal color and redisplay their bitmaps. I do not find this behaviour normal, and did not expect that ALT key alone would have any kind of effect, except for windows, where the menus are activated. Any advise would be appreciated. Kind regards to all Evans
ALT key (pressed alone) on dialogs
This is the normal ALT key behavior (check with other apps). I don't use TSButtons and never see that strange effect on the FWH standard BtnBmp. That's why I think that it might be a bug of TSButtons. EMG
ALT key (pressed alone) on dialogs
[quote="EnricoMaria":3rbf60k9]This is the normal ALT key behavior (check with other apps). I don't use TSButtons and never see that strange effect on the FWH standard BtnBmp. That's why I think that it might be a bug of TSButtons. EMG[/quote:3rbf60k9] It also happens to CLASS TDBtnBmp (dbutton) Both SBUTTONs and DBUTTONs, are discolored in the dialogs and lose their bitmaps... Perhaps MANUEL MERCADO and SANTIAGO PEREZ MARQUEZ can help, if the read this ... Thanks anyway... I thought it only activated the system menu on windows, but you're right (again of course), it activates them on dialogs too. The problem is the discoloring... and loss of the bitmaps...
ALT key (pressed alone) on dialogs
You might need of an updated version of that third party buttons. EMG
ALT key (pressed alone) on dialogs
Evans, Its fixed. Its a bug on the build that you are using. I email you the new files.
ALT key (pressed alone) on dialogs
Please send to me also. Thanks Mike.
ALT key (pressed alone) on dialogs
Hello, Listen - I'm getting a bit worried here! There seems to be a great many message threads being started recently (since the February 2006 Build) which detail 'minor' bugs and 'fixes' for them. I assume that all of these 'fixes' will be contained in the next release of FWH <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: --> I mean - I hope that I am not making changes to the FWH source (to incorporate these 'fixes' only to find that they have dissapeared after the installation of latest version of FWH <!-- s:twisted: --><img src="{SMILIES_PATH}/icon_twisted.gif" alt=":twisted:" title="Twisted Evil" /><!-- s:twisted: --> Regards, Dale.
ALT key (pressed alone) on dialogs
Dale, > I assume that all of these 'fixes' will be contained in the next release of FWH Yes <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) -->
ALT key (pressed alone) on dialogs
I am sorry to pick in , but have you read the thread regarding xbrowse , bpasteof and using vscroll barr to append ? I am convinced that it is a bug , very easy to see with testxbrowse as described. Frank
ALT key (pressed alone) on dialogs
Frank, We will review it asap,
ALT key (pressed alone) on dialogs
[quote="Antonio Linares":1emsk257]Evans, Its fixed. Its a bug on the build that you are using. I email you the new files.[/quote:1emsk257] Antonio I have the same bug with Tsbutton and ALT key and i use xhb commercial. What has to be changed ? Richard
ALT key (pressed alone) on dialogs
Evans: In tsButton you must use de tsbutton.ch before Fivewin.ch and in the resource declaration the button must be OwnerDraw. The tsbutton.lib must be before the FWH´s libs. Please taste and tell me if everything go ok. Sorry for my Indian English. Best regards Ruben Fernandez.
ALT key (pressed alone) on dialogs
Richard, Basically this is the missing call: [code:rr1o8bbz] METHOD HandleEvent&#40; nMsg, nWParam, nLParam &#41; CLASS TButtonBmp local nResult do case case nMsg == WM_UPDATEUISTATE // Buttons were erased when pressing ALT nResult = Super&#58;HandleEvent&#40; nMsg, nWParam, nLParam &#41; &#58;&#58;Refresh&#40;&#41; return nResult endcase return Super&#58;HandleEvent&#40; nMsg, nWParam, nLParam &#41; [/code:rr1o8bbz]
ALT key (pressed alone) on dialogs
[quote="Antonio Linares":1c2risdp]Richard, Basically this is the missing call: [code:1c2risdp] METHOD HandleEvent&#40; nMsg, nWParam, nLParam &#41; CLASS TButtonBmp local nResult do case case nMsg == WM_UPDATEUISTATE // Buttons were erased when pressing ALT nResult = Super&#58;HandleEvent&#40; nMsg, nWParam, nLParam &#41; &#58;&#58;Refresh&#40;&#41; return nResult endcase return Super&#58;HandleEvent&#40; nMsg, nWParam, nLParam &#41; [/code:1c2risdp][/quote:1c2risdp] Antonio, Thank you It works OK now If anyone needs to change the tsbutton class, do not forget to add the following #define WM_UPDATEUISTATE 0x0128 Richard
ALT key (pressed alone) on dialogs
[quote="Antonio Linares":3mbdu1zv]Evans, Its fixed. Its a bug on the build that you are using. I email you the new files.[/quote:3mbdu1zv] Antonio Thanks for the fix provided. It works fine now. Saludos, Evans
ALT key (pressed alone) on dialogs
Good Morning All, Just a short message to say thank you to Antonio - the new March 2006 Build of FWH contains ALL of the little 'bug fixes' and 'updates' that I was so worried about. Works perfectly! Thanks, Dale.
ALT key (pressed alone) on dialogs
Dale, glad to know its ok <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) -->
AMD Athlon 64 & WinXP
Hi ! One customer bought a new PC with AMD Athlon 64 & XP . He said that my application hangs up at worktime . Most bad situations - closing mdichild window . And if close with mouse cursor on window "close" at right top of window . Pressing Esc - sometime works fine , sometimes hangs up . With others PCs application is working fine . Application is running on Win2000 server shared directory , RDD - CDX . What you can say about that ? BCC 5.5 , xHarbour from CVS , FiveWin 2.5 of 2004 year . With best regards ! Rimantas .
AMD Athlon 64 & WinXP
Rimantas, We use AMD 64 bits (3400+) and it works excellent with FWH, etc. Do you have a demo of your app we may download to test it ?
AMD Athlon 64 & WinXP
[quote="Antonio Linares":ij40l2ji] We use AMD 64 bits (3400+) and it works excellent with FWH, etc. Do you have a demo of your app we may download to test it ?[/quote:ij40l2ji] Hello Antonio ! Sorry , but I can't to do demo . Of course , my mdichilds are related to my others functions . At first , in most of them I use browse ( Hernan's ) and then user close window , application is saving columns sizes and places of this browse for this user and windows coords . I have one a big class for my needs , where I'm openning mdichilds and browses , folders and browses in folders . My source of standard windows bValid looks that: [code:ij40l2ji] &#58;&#58;oWnd&#58;bValid &#58;= &#123; || &#40; &#58;&#58;End&#40;&#41;, &#46;t&#46; &#41; &#125; METHOD End&#40;&#41; CLASS TMyBasic local cCrg &#58;= &#58;&#58;cCargo local n &#58;= m &#58;= z &#58;= 0 local oWnd local lRest &#58;= &#46;f&#46; local aCols &#58;= &#123;&#125; if &#58;&#58;bEnd !=NIL // own bEnd codeblock if it's needful to do something before eval&#40; &#58;&#58;bEnd &#41; endif if &#58;&#58;oWnd != NIL if &#58;&#58;lEnv if wind_save&#40; &#58;&#58;cCargo, &#58;&#58;oWnd &#41; // saving windows coords for n &#58;= 1 to len&#40; &#58;&#58;aBrwID &#41; // array of browse objects aCols &#58;= &#123;&#125; for m &#58;= 1 to len&#40; &#58;&#58;aHdrs&#91; n &#93; &#41; z &#58;= ascan&#40; &#58;&#58;aHdrs&#91; n &#93;, &#58;&#58;aColHdr&#91; n &#93;&#91; m &#93; &#41; aadd&#40; aCols, &#123; m, z &#125; &#41; next wbrw_save&#40; &#58;&#58;cCargo, &#58;&#58;aBrwID&#91; n &#93;, &#58;&#58;oBrw&#91; n &#93;, aCols &#41; // saving columns places and sizes for browse and user if &#58;&#58;aOrdCnd&#91; n &#93; # NIL &#46;and&#46; &#58;&#58;aOrdCnd&#91; n, 1 &#93; &#58;&#58;BrwOrdRem&#40; n &#41; // removing temporary index filess endif next endif endif if IsZoomed&#40; &#58;&#58;oWnd&#58;hWnd &#41; == &#46;t&#46; &#46;and&#46; &#58;&#58;lFld lRest &#58;= &#46;t&#46; &#58;&#58;oWnd&#58;Hide&#40;&#41; &#58;&#58;oWnd&#58;Restore&#40;&#41; endif &#58;&#58;LstFcs&#40;&#41; else MsgInf&#40; "Can't detec window !", 2 &#41; endif if &#58;&#58;bEndPst !=NIL eval&#40; &#58;&#58;bEndPst &#41; endif &#58;&#58;lEnd &#58;= &#46;t&#46; oApp&#58;OpWd&#40; cCrg,, 2 &#41; // removing mdi child object from object repository &#46; if &#58;&#58;nWd == 1 // if i's mdichild &#40; it can be also dialog &#41; do while PostMessage&#40; &#58;&#58;oWnd&#58;hWnd, WM_CLOSE &#41; # 1 enddo endif Self &#58;= NIL if lRest &#46;and&#46; len&#40; wndMain&#40;&#41;&#58;oWndClient&#58;aWnd &#41; > 0 wndMain&#40;&#41;&#58;oWndClient&#58;PrevWindow&#40;&#41; wndMain&#40;&#41;&#58;oWndClient&#58;GetActive&#40;&#41;&#58;Maximize&#40;&#41; endif return&#40; NIL &#41; [/code:ij40l2ji] I can send to you the full source of and some data . So you can build appl. in your PC . Is that way fit to you ? It take about 1.5 Mb of zip . With best regards ! Rimantas .
AMD Athlon 64 & WinXP
Hello again ! I did here some changes and that worked . I don't know why . [code:1htwxxeh] &#58;&#58;oWnd&#58;bValid &#58;= &#123; || &#40; &#58;&#58;End&#40;&#41;, &#46;t&#46; &#41; &#125; METHOD End&#40;&#41; CLASS TMyBasic local cCrg &#58;= &#58;&#58;cCargo local n &#58;= m &#58;= z &#58;= 0 local oWnd local aCols &#58;= &#123;&#125; if &#58;&#58;bEnd !=NIL eval&#40; &#58;&#58;bEnd &#41; endif if &#58;&#58;oWnd != NIL if &#58;&#58;lEnv MsgWait&#40; "Please , one moment &#46;&#46;&#46; ",, &#46;01 &#41; if wind_save&#40; &#58;&#58;cCargo, &#58;&#58;oWnd &#41; // saving windows coords for n &#58;= 1 to len&#40; &#58;&#58;aBrwID &#41; // array of browse objects aCols &#58;= &#123;&#125; for m &#58;= 1 to len&#40; &#58;&#58;aHdrs&#91; n &#93; &#41; z &#58;= ascan&#40; &#58;&#58;aHdrs&#91; n &#93;, &#58;&#58;aColHdr&#91; n &#93;&#91; m &#93; &#41; aadd&#40; aCols, &#123; m, z &#125; &#41; next wbrw_save&#40; &#58;&#58;cCargo, &#58;&#58;aBrwID&#91; n &#93;, &#58;&#58;oBrw&#91; n &#93;, aCols &#41; if &#58;&#58;aOrdCnd&#91; n &#93; # NIL &#46;and&#46; &#58;&#58;aOrdCnd&#91; n, 1 &#93; &#58;&#58;BrwOrdRem&#40; n &#41; // removing temporary index filess endif next endif endif &#58;&#58;LstFcs&#40;&#41; else MsgInf&#40; "Can't detec window !", 2 &#41; endif if &#58;&#58;bEndPst !=NIL eval&#40; &#58;&#58;bEndPst &#41; endif &#58;&#58;lEnd &#58;= &#46;t&#46; if &#58;&#58;nWd == 1 do while PostMessage&#40; &#58;&#58;oWnd&#58;hWnd, WM_CLOSE &#41; # 1 enddo endif MsgWait&#40; "Please , one moment &#46;&#46;&#46; ",, &#46;01 &#41; oApp&#58;OpWd&#40; cCrg,, 2 &#41; Self &#58;= NIL return&#40; NIL &#41; [/code:1htwxxeh] Simply I added MsgWait( ) function . Now it works OK . The interval of MsgWait() is very shortly - .01 of second . I decided to add this function , because if I check sources ( that ussually I'm doing with MsgInfo() ) , then all is working OK . So it comes an idea to the mind , that here it's needful something similar to time delay . Maybe you have some ideas , why this delay helped to me ? With best regards ! Rimantas
AMD Athlon 64 & WinXP
Rimantas, The AMD 64 is a very fast machine. Maybe it needs some time to peform some operations and the function call helped there. Glad to know you solved it <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) -->
AMD Athlon 64 & WinXP
[quote="Antonio Linares":ecmz54ww] The AMD 64 is a very fast machine. Maybe it needs some time to peform some operations and the function call helped there. Glad to know you solved it <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) -->[/quote:ecmz54ww] Hello Antonio ! Can you advice , what function I can use instead MsgWait . I don't want to see that short "blink" of dissapering MsgWait() function . With best regards !
AMD Athlon 64 & WinXP
SysWait() EMG
AMD Athlon 64 & WinXP
You may try with SysRefresh() also.
AMD Athlon 64 & WinXP
[quote="Antonio Linares":3ptm6ina]You may try with SysRefresh() also.[/quote:3ptm6ina] Thank you , Antonio and Enrico ! I choosed SysWait() . It seems that this is working fine . With best regards !
AMD Dual-Core Optimizer utility synchronizes TSC
Hello! Maybe this is helpful for AMD Dual Core CPU owners <!-- m --><a class="postlink" href="http://www.theinquirer.net/default.aspx?article=32790">http://www.theinquirer.net/default.aspx?article=32790</a><!-- m --> [quote:2owwfzkl] Intended for all owners of dual-core processors, AMD Dual-Core Optimizer is a piece of software that allegedly improves gaming performance by bypassing Windows' API in some specific situations. This utility helps that software access the RDTSC instruction directly, in order to correct the Time Stamp Counter on separate cores. It effectively keeps both cores working in parallel and reduces the differing video performance effects, or any other flaws that relate to timing situations in dual-core or upcoming multicore processors. [/quote:2owwfzkl] <!-- m --><a class="postlink" href="http://www.amd.com/us-en/assets/content_type/utilities/TscSync.zip">http://www.amd.com/us-en/assets/content ... scSync.zip</a><!-- m --> [quote:2owwfzkl] AMD Dual-Core Optimizer utility synchronizes Time Stamp Counter (TSC) MSRs on AMD Dual-Core Processors. --- This software installs and operates under the following operating systems * MicrosoftR WindowsR 2000 * MicrosoftR WindowsR XP * Microsoft Windows XP Professional x64 Edition * Microsoft Windows Server 2003 32-bit * Microsoft Windows Server 2003 64-bit [/quote:2owwfzkl] It seems that this utility is related to KB896256 ... <!-- m --><a class="postlink" href="http://support.microsoft.com/kb/896256/en-us">http://support.microsoft.com/kb/896256/en-us</a><!-- m --> [quote:2owwfzkl] Computers that are equipped with multiple processors that support processor power management features, such as Advanced Configuration and Power Interface (ACPI) processor performance states, require Microsoft Windows XP Service Pack 2 (SP2). Additional updates are available to optimize performance and behavior on computers that are running Windows XP SP2. Without these updates, computers that are equipped with these power management-capable, mobile, dual-core processors may experience decreased performance or unexpected behavior. *Note* This problem also applies to x64-based versions of Microsoft Windows Server 2003. [/quote:2owwfzkl] <!-- m --><a class="postlink" href="http://groups.google.com/group/alt.comp.hardware.overclocking.amd/browse_frm/thread/67ebeba6d123a8af/">http://groups.google.com/group/alt.comp ... 6d123a8af/</a><!-- m --> [quote:2owwfzkl] Microsoft updated hotfix 896296 (<!-- m --><a class="postlink" href="http://support.microsoft.com/kb/896256/">http://support.microsoft.com/kb/896256/</a><!-- m -->) in June 2006 from v3 to v3.1 (possibly to do with AMD AM2 and/or Intel Conroe support). They seem also to have removed the download and reverted to the original release policy of making people contact Microsoft support and hand over their credit card details and their first-born before Microsoft will deign to consider whether or not they will make it available. [/quote:2owwfzkl] [quote:2owwfzkl] Since one of the things the 896256 hotfix addressed was applications directly accessing the TSC it may be that hotfix is now redundant with these two releases. I have yet to test this myself but early indications from someone who has installed the Dual Core Processor Driver 1.3.2 and the Dual-Core Optimizer but not the hotfix would indicate this may well be the case. [/quote:2owwfzkl] Roman
AMIGO RENE FLORES
Estimado Rene en realidad estaba por escribirte,, asi me lo habia recomendado mi amigo miguel rivera, en este foro. se agradece el .bat para generar la LIB q necesito,, pero sabes el problema no es generar la LIB,, lo hago con verce y funciona super.. mi problema puntual es que al compilar el PRG de TSBROWSE me advierte un warning o peligro,, en un archivo scroll.c y he ahi mi dilema,, aunque la lib funciona no me da 100% confianza de usar,, por eso,, quizas tu la tengas o la uses, o tengas los PRG de otra version de TSBROWSE.. la que baje de la red es la Tsbrowse7.0 quizas en una menor,, pero no he encontrado una en internet.. Lo.. otro y abusando de tu gentileza,, conoces algun manual de xharbour en español,, porque la realidad no he visto nada referente,, como un NG que existia en clipper.. por tu tiempo.. muchas gracias Ahh.. que version usas tu:: de FWH y xHarbour
AMIGO RENE FLORES
Es un WARNING, es una advertencia solamente, no pasa absolutamente nada en la ejecucion del programa, si quieres quitar los warnings quita el switch /W de la compilacion y listo..... Simpelmente es un recordatorio que dice.... definiste una variable, pero no la usas... eso es el warning que te marca.
ANDROID
Hola a todos. Esta pregunta es para Antonio. Quiero desarrollar para Android, pero se puede conectar a mysql?, yo tengo varias aplicaciones desarrolladas en Xharbour pero me interesa mucho android por que tengo algunas ideas, pero si necesito de una aplicación en android que conecte a mysql e interactue con las aplicacioncitas que ya tengo hechas en xharbour. Será esto posible si es posible cual es el costo y si ya exista algún manual. Atentamente Julio Ponce