topic stringlengths 1 63 | text stringlengths 1 577k ⌀ |
|---|---|
COPY FILE issue | Is there a way to copy a file that has a comma "," in the file name.
With COPY FILE &cSource TO &cDest I get a DOS Error 123.
I cannot control the original filename so I have to somehow work with the "," in the filename.
I will also need to be able to delete this file without generating an error. |
COPY FILE issue | You might try
COPY FILE (cSource) TO (cDest)
or maybe
filecopy( cSource, cDest ) |
COPY FILE issue | Hi Gale,
Same error <!-- s:( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":(" title="Sad" /><!-- s:( --> |
COPY FILE issue | I wonder if the error is in source or destination definition. Can you change the destination name to one without comma?
COPY FILE (cSource) TO ('test.tst')
If it can copy to normal filename without error then you might have a work around.
Maybe filemove( cSource, 'test.tst' ) |
COPY FILE issue | Jeff, I don't have xharbour available to test with but the following code works in harbour.
[code=fw:2erxnqn1]<div class="fw" id="{CB}" style="font-family: monospace;"><br />procedure main<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #0... |
COPY FILE issue | Thanks Robb ... unfortunately with xharbour I get "Copy Failed" <!-- s:( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":(" title="Sad" /><!-- s:( --> |
COPY FILE issue | [code=fw:qk204fb0]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">static</span> cTarget := <span style="color: #ff0000;">"c:<span style="color: #000000;">\F</span>ive"</span><br /><br /><span style="color: #00C800;">function</span> CopyFiles<span style="color: #000000;">... |
COPY FILE issue | Jeff
I know with Sql you can put things in brackets .. perhaps
Copy file ( "[Some,File]" ) to ( "[ Some,Where ]" ) .. untested .. just a shot in the dark.
Rick Lipkin |
COPY FILE issue | [quote="Jeff Barnes":3l8z6pg6]Is there a way to copy a file that has a comma "," in the file name.
With COPY FILE &cSource TO &cDest I get a DOS Error 123.
I cannot control the original filename so I have to somehow work with the "," in the filename.
I will also need to be able to delete this file without generati... |
COPY FILE issue | Thanks everyone. I got it working <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) --> |
COPY SQLTABLE from 1 SERVER to ANOTHER | Hi,
How can i copy one table from a database located on one server to another database located on an other server .
Thanks for your help and samples ,
Philippe |
COPY SQLTABLE from 1 SERVER to ANOTHER | Very easy if you use FWH built-in MySql library.
[code=fw:gm0l8mma]<div class="fw" id="{CB}" style="font-family: monospace;"><br />oServer1 := maria_Connect<span style="color: #000000;">(</span> .... <span style="color: #000000;">)</span><br />oServer2 := maria_Connect<span style="color: #000000;">(</span>... |
COPY SQLTABLE from 1 SERVER to ANOTHER | Thanks for this answer but i 'll a sample for Microsoft MS SQL Server .
Thanks
Philippe |
COPY TO SDF | Desde hace años, tengo una aplicación de recibos (primero con Clipper y ahora Clipper+FW23, que prepara un fichero txt, según la norma CSB19, para su cobro a través de Bancos.
Hasta ahora ningún problema, pero un cliente que lo utiliza, me dice que su banco ha detectado un error, porque en la última línea del fichero... |
COPY TO SDF | Manuel,
Prueba a quitarle el último byte de esta forma:
cTemp = MemoRead( <nombre_fichero> )
MemoWrit( <nombre_fichero>, SubStr( cTemp, 1, Len( cTemp ) - 1 ) ) |
COPY TO SDF | Antonio, eres un monstruo. Ha funcionado perfectamente.
Un saludo
Manuel |
COPY TO SDF | Hola Manuel,
precisamente estoy haciendo una aplicación de recibos y el cliente me ha pedido poder generar un fichero para las domiciliaciones. Creo que se trata de la norma bancaria 19 ¿Podrías orientarme sobre la estructura del fichero o donde encontrar documentación?
Un saludo,
Manuel Aranda |
COPY TO SDF | Manuel,
De esta dirección, puedes bajarte el cuardeno CSB-19
<!-- m --><a class="postlink" href="http://comercios.lacaixa.es/Canales/Contenido/0,1059,1-26-486-1,00.html">http://comercios.lacaixa.es/Canales/Con ... -1,00.html</a><!-- m -->
En el se detallan como tiene que ir el fichero. Léetelo y si quieres despues h... |
COPY TO SDF | Muchas gracias Manuel por tu información y disposición a ayudarme. Me lo bajo y ya hablaremos si es caso.
Un saludo,
Manuel Aranda |
COPY TO oddness | The code snippet below gave me a surprising result. The 2nd file() returns .f.. This would only happen if 'set default' isn't respected. In Clipper, a similar code would've return .t..
Test environment: FWH10.5, xHarbour 1.2.1 r6714, BCC 5.82
Could anyone else confirm that they experience this too please?
[code=fw... |
COPY TO oddness | Oddly enough, when I compile the program as a xHarbour console program, I get the correct result. Only when I linked-in FWH10.5 will I get the error. Anyone has any suggestion?
Just in case it helps, this is the batch file that I'm using.
[code=fw:3h4g9rn9]<div class="fw" id="{CB}" style="font-family: monospace;"><b... |
COPY TO oddness | Just to rule out a possibility, I checked the ppo between console and windows program. Seems COPY TO are pre-processed to the same syntax. Running out of idea here |
COPY TO oddness | As a last resort, I downloaded an older binary from <!-- m --><a class="postlink" href="http://downloads.sourceforge.net/xharbour/xharbour-1.20.01.bin.w32.bcc32.5.82.zip">http://downloads.sourceforge.net/xharbo ... 2.5.82.zip</a><!-- m --> and that seem to solve the problem. Not ideal, but being the only programmer her... |
COPY TO oddness | Hello
[b:1ffylx8r]xHarbour Compiler build 1.2.1 (SimpLex) (Rev. 6714)
Copyright 1999-2010, <!-- m --><a class="postlink" href="http://www.xharbour.org">http://www.xharbour.org</a><!-- m --> <!-- m --><a class="postlink" href="http://www.harbour-project.org/">http://www.harbour-project.org/</a><!-- m -->[/b:1ffylx8r]
... |
COPY TO oddness | Yes, that's the bug that I encountered. The 2nd file() is returning .f., not the expected .t.. Thank you for the test Patricio. At least I now know it's not something that happens just to me. |
COPY TO oddness | I have also experienced COPY TO failing unexpectedly
I concluded it was a xhb compiler bug and worked around it
Using xHb build 1.21 intl simplex rev 6406 |
COPY TO oddness | Hi Peter,
I initially thought it was a bug in xHarbour but when I created a console program to make my case I get the correct result. When I linked it with FWH, I get the wrong result. Since COPY TO is pre-processed into __dbCopy() I tried grepping for that in FWH's source but none was found.
To further confuse th... |
COPY TO oddness | The problem is in xHarbour and it's there with or without FWH. I'm going to look at it.
EMG |
COPY TO oddness | Thanks Enrico! <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) --> Finding the source of this bug and fixing it is beyond my capability |
COPY TO oddness | Any update on this Enrico? |
COPY TO oddness | Unfortunately not. Fixing that bug would create another serious path incompatibility that I'm not able to solve. We have to wait for anybody else to fix it, sorry.
EMG |
COPY TO oddness | Thank you for the update Enrico <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) --> |
COPY TO oddness | Does this issue still exist in latest xHarbour?
TIA |
COPY TO oddness | Try with this:
In your code use:
[b:30sdv7cj]copy to (cTmp+".dbf")[/b:30sdv7cj]
instead of:
copy to (cTmp) |
COPY TO oddness | [quote="hua":152c9j6p]Does this issue still exist in latest xHarbour?
TIA[/quote:152c9j6p]
Yes. <!-- s:-( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":-(" title="Sad" /><!-- s:-( -->
EMG |
COPY TO oddness | @Verhoven - thanks for the reply but I'm not looking for a workaround. I was hoping that the bug is squashed so I don't have to alway remember not to upgrade my xHarbour
@Enrico - thanks for the feedback. That's unfortunate to hear <!-- s:( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":(" title="Sad" /><!-- s:( --> |
COPY TO oddness | I think that the solution i wrote is not workaround. Why?:
This code is inexact and inconsistent:
copy to (cTmp)
? file(cTmp+".dbf")
Because in the firt line you refer a file only using the variable cTmp and in the second line you add the extension ".dbf". Did you try with "? file(cTmp)... |
COPY TO oddness | [quote="Verhoven":1vs2hfdm]Try with this:
In your code use:
[b:1vs2hfdm]copy to (cTmp+".dbf")[/b:1vs2hfdm]
instead of:
copy to (cTmp)[/quote:1vs2hfdm]
Just tried: no change.
EMG |
COPY TO oddness | [quote="Verhoven":3tufmhez]I think that the solution i wrote is not workaround. Why?:
This code is inexact and inconsistent:
copy to (cTmp)
? file(cTmp+".dbf")
Because in the firt line you refer a file only using the variable cTmp and in the second line you add the extension ".dbf". Did ... |
COPY falla en XP cuando son muchos | Esto me ha sucedido desde siempre.En un directorio tengo en existencia cerca de 4 mil archivos Tif por dia, estas imagenes las muevo a otra carpeta cuando ya no se necesitan.Resulta que de cada 400 imagenes que yo intento copiar y luego borrar... 2 ó 3 ni se copian, ni se borran.Actualmente lo tengo asiCOPY FILE ( cImg... |
COPY falla en XP cuando son muchos | Hola, haces asi, que funcionara.[code:20attgk6]
COPYFILE( "C:\PIZZAS\CLIENTES.DBF", "C:\PIZZAS\COPIA\CLIENTES.DBF", .F. )
[/code:20attgk6] |
COPY falla en XP cuando son muchos | Tambien halle este post de JamesCopyFile( cSource, cTarget ) DLL32 FUNCTION CopyFile( cExFile AS LPSTR, cNewFile AS LPSTR, lFailIfEx AS LONG ); AS BOOL PASCAL FROM "CopyFileA" LIB "Kernel32.dll" Gracias,voy a probar. |
CORRIENDO 2 EXE A LA VEZ | compañeros:
necesito desde mi EXe llamar a otro EXE mediante Winexec, pero antes de llamarlo [b:1i0ekdkq]quiero saber si ya está corriendo[/b:1i0ekdkq]. ¿como lo puedo saber?
Intenté con la función GetTasks(), haciendo esto:
funct llamarfun
if AScan( GetTasks(), 'post-it.exe') == 0
winexec('.\post-it\post-it.exe')... |
CORRIENDO 2 EXE A LA VEZ | [code:2rmm3qkk]
IF IsExeRunning(cFileName(GetModuleFileName(GetInstance()))) msgalert("Program already running!"+CRLF+"This program cannot be started more than one instance!")
QUIT
ENDIF
[/code:2rmm3qkk] |
CORRUPCIÓN EN MEMO FILE | Alguien sabe como puedo solucionar una corrupción en un fichero memo.
dbfcdx
saludos |
CORRUPCIÓN EN MEMO FILE | Que versión/build de Harbour/xHarbour usas ? |
CORRUPCIÓN EN MEMO FILE | [quote="Antonio Linares":3q3c50vv]Que versión/build de Harbour/xHarbour usas ?[/quote:3q3c50vv]
Hola antonio uso fw25, pero el problema no es del compilador, necesito saber si conoceis de algún programa que me regenere los indices del fpt.
gracias. |
COlor en las columnas con twbrowse | No puedo darle colores distintos a las columnas, utilizo el twbrowse,, alguna sugerencia??Salu2 |
COlor en las columnas con twbrowse | Solucionado.,. sorry..oLbxR:bTextColor := { |nRow,nCol|ColorRegComVen(nCol))}Function ColorRegComVen(nCol)DO CASE CASE nCol = 1 .OR. nCol = 4 .OR. nCol = 9 // fecha y ruc Return CLR_GREEN CASE nCol = 2 // valores Return CLR_HBLUE CASE nCol = 3 //... |
COnversion de cadena a numero | Buenas, tengo un campo cadena de un fichero dbf funcionando en entorno Windows donde los usuarios graban una tasa (numerico con 2 decimales) de la siguiente forma:
3.22
2.10
...
Utilizando la funcion: val( campo ) me devuelve un valor numerico con 2 decimales.
Pero, desde FWPPC me devuelve 0 y creo que es por el . dec... |
COnversion de cadena a numero | Juan José,
Este código funciona correctamente en FWPPC:
MsgInfo( Val( "3.22" ) )
> La funcion MsgYsNo me sale en Ingles ¿Que estoy haciendo mal?
MsgYesNo() admite dos parámetros:
MsgYesNo( "¿ Desea finalizar ?", "Seleccione" ) |
COnversion de cadena a numero | Antonio, MsgYesno, se como funciona, pero el caso es que el dialogo me aparece en ingles y creo que todo mi problema está en que no se como decirle a la aplicacion que funciones en castellano.
Juanjosé |
COnversion de cadena a numero | Juan José,
El diálogo te saldrá en inglés si usas un Pocket PC con idioma inglés, ya que MsgYesNo() usa una función propia del API de Windows. Configura el idioma de tu Pocket PC.
Otra opción es crear tu mismo un diálogo semejante al de MsgYesNo(). |
COnversion de cadena a numero | Tengo lo siguiente en el programa:
SET DELETED ON
SET DATE TO ITALIAN
SET SOFTSEEK ON
SET CENTURY ON
SET EPOCH TO 2000
SET SOFTSEEK ON
HB_LANGSELECT( "ESWIN" )
HB_SetCodePage("ESWIN") // Para ordenación (arrays, cadenas, etc..)
HB_LangSelect('ES') ... |
CP 852 | Hi to all <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) -->
I want to use CP 852 in my FW/Harbour program. I use:
HB_CdpSelect ("HR852")
but not all characters are displayed correctly.
Regards, NB |
CP 852 | <!-- m --><a class="postlink" href="http://harbourlanguage.blogspot.com/2010/06/harbour-codepage.html">http://harbourlanguage.blogspot.com/201 ... epage.html</a><!-- m --> |
CP 852 | Thanks Antonio, I know this text, but it doesn't help me. I will try to explain the problem. In plain Harbour, this program use CP 852 codepage:
[code=fw:3ag4zur9]<div class="fw" id="{CB}" style="font-family: monospace;">REQUEST HB_CODEPAGE_HR852<br /><br /><span style="color: #00C800;">function</span> Main<span style... |
CP 852 | [code=fw:3htevqcm]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"fivewin.ch"</span><br /><br />REQUEST HB_CODEPAGE_HR852<br /><br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">(</span><span st... |
CP 852 | Thank you, although I wrote too simple example <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) -->)
How do I create GET of such variables?
Regards, NB |
CPU al 100% | Antonio, a que puede ser debido que cuando consulto el rendimiento tanto los programas compilados con harbour y fwh25 y los antiguos hechos con versiones mas antiguas de fw20 y clipper me de que el uso de la CPU este al 100% y no baja, osea se mantiene durante todo el uso del programa. No es que funcionen mal puesto qu... |
CPU al 100% | Andrés,
Con Clipper sería algo más normal, ya que se usa la capa de wow (windows on windows) para ejecutar 16 bits en 32 bits.
Con Harbour no debería ocurrir. Usas algún bucle principal desde donde llames a SysRefresh() ? |
CPU al 100% | Antonio me he dado cuenta que eso solo le pasa cuando gestiono la base de datos el tcbrowse lo paro con un: [code:vmh5ht62]
ACTIVATE WINDOW oWndEdit MAXIMIZED ;
ON RESIZE oSpl:AdjRight();
VALID ( lExit:= .T. , .T. )
//? "si no sale... |
CPU al 100% | Andrés,
La ventana oWndEdit es una ventana MDI child ? |
CPU al 100% | Sí, depende de la principal.
[code:1cwdifp3]
DEFINE FONT oFont NAME "Ms Sans Serif" SIZE 0,-8
DEFINE WINDOW oWndEdit MDICHILD OF oWnd TITLE x_tit //Ventana child de la principal oWnd FROM 2, 2 TO 20, 50
DEFINE BUTTONBAR oBar SIZE 50,40 _3d OF oWndEdit
[/code:1cwdifp3] |
CPU al 100% | Andrés,
Este código no es necesario en absoluto:
[code:31sftcc8]
DO WHILE ! lExit
SysWait(.1)
ENDDO
[/code:31sftcc8]
una ventana MDI child es siempre no modal. Dices que se cierra la base de datos, y es normal, puesto que has de cerrar la base de datos cuando se cierre la ventana y no antes:
ACTIVATE W... |
CPU al 100% | Indudablemente este es el motivo, cuando quito el syswait el consumo del procesador oscila entre los 40% y el 85% pero no se posiciona como antes al 100%. El problema es que es heredado de la programcion del antiguo clipper y de esta manera me evitaba modelar mucho codigo. Voy a ver como lo soluciono.
Gracias Antonio |
CPU core | To all,
How can we detect the number of cores and how to bind an Fivewin-exe to a certain core.
Thanks in advance
Otto |
CPU core | Otto,
Not sure if this may help:
[url:2xvcsvxf]https://technet.microsoft.com/en-us/magazine/ee851672.aspx[/url:2xvcsvxf] |
CRAR ARCHIVO PLANO SIN USAR TDOSPRN | Estimados, alguno me podria indicar como crear un archivo de texto sin ocupar TDOSPRN
Muchas gracias! |
CRAR ARCHIVO PLANO SIN USAR TDOSPRN | yo lo hago así :
function creatxt()
local cFile := " c:\nombre.txt"
local cText:= ""
cText += " lo que quieras en la linea 1 " +CRLF
cText += " lo que quieras en la linea 2 " +CRLF
........
memoWrite( MEMOWRIT( cFile, cText, .f. )
return nil |
CRAR ARCHIVO PLANO SIN USAR TDOSPRN | Ozono:
Otra opción es usar las funciones
FCREATE()
FWRITE()
FCLOSE()
Échales una mirada.
Saludos |
CRAR ARCHIVO PLANO SIN USAR TDOSPRN | Ozono:
Encontré un ejemplo
[code=fw:rdj0s11h]<div class="fw" id="{CB}" style="font-family: monospace;"><br /> nHandle := FCreate<span style="color: #000000;">(</span>cFile,FC_NORMAL<span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">IF</span> nHandle <= <... |
CRC of a file | How can I find out the CRC of a file without loading it into a variable ? |
CRC of a file | Dear Yuri,
You can use FWH function nFileCRC( cFileName [, lJumpFirst32bytesForDBFs] ) |
CRC of a file | Thank you, Antonio! |
CRC8 | Hola de nuevo
En relación a la factura electrónica y su comunicación a las Haciendas vascas necesito generar un CRC8 para validar el código identificativo y el QR que debemos insertar en la factura.
Todo lo que encuentro es para CRC16 ó CRC32 y no me sirve.
La administración ha publicado un código de CRC8 en java y nec... |
CRC8 | [code=fw:2klokmb3]<div class="fw" id="{CB}" style="font-family: monospace;"><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;">(</span><span style="color: #000000;">)</span><br... |
CRC8 | Thank you very much Mr. Rao, it works perfectly!!! |
CREACDOR DE REPORTE FIVEWIN IMPRIMIR TAMAÑO DE HOJA LEGAL | Hola amigos, me gustaría saber como puedo imprimir en una hoja legal, un reporte de nómina de empleados, ya que la hoja 8 1/2 x 11 en horizonta no me cabe.
Gracias,
Juan Fco.
Rep. Dom. |
CREACDOR DE REPORTE FIVEWIN IMPRIMIR TAMAÑO DE HOJA LEGAL | Prueba con oPrn:SetPage( 5 ) // Legal 8 1/2 x 14 in
Saludos |
CREACDOR DE REPORTE FIVEWIN IMPRIMIR TAMAÑO DE HOJA LEGAL | No me funciono le puse OPRN:SETPAG(5) Y después use OREPORT:SETPAGE(5), esta última es la que usa el creador de reporte.
Gracias,
Juan Fco. |
CREACDOR DE REPORTE FIVEWIN IMPRIMIR TAMAÑO DE HOJA LEGAL | Hola, con REPORT oReport, intenta asi:
[code=fw:264pnenz]<div class="fw" id="{CB}" style="font-family: monospace;"> PrnSetSize<span style="color: #000000;">(</span><span style="color: #000000;">2160</span>,<span style="color: #000000;">3560</span><span style="color: #000000;">)</span> <span style="color: #... |
CREACDOR DE REPORTE FIVEWIN IMPRIMIR TAMAÑO DE HOJA LEGAL | Hermano, muchas gracias, así llo resolvi.
Bendiciones,
Juan Fco.
|Rep. Dom |
CREAR ARCHIVO DE TEXTO | Amigos al hacer esto:
oPrn:=TDosPrn():New( "ARCHIVO.TXT" )
oPrn:Say(1,1,"HOLA;QUE TAL" )
oPrn:End()
el resultado es HOLA;QUE TAL y (al final me aparece un cuadradito) |
CREAR ARCHIVO DE TEXTO | Jose,
Edita el fichero de texto con un editor hexadecimal y comprueba que byte tiene al final |
CREAR ARCHIVO DE TEXTO | Yo lo hago asi:
[code=fw:2iqkf33y]<div class="fw" id="{CB}" style="font-family: monospace;"><br /> cFileTxt := <span style="color: #ff0000;">"texto.txt"</span><br /> <br /> nHandle:= FCREATE<span style="color: #000000;">(</span> cFileTxt <span style="color: #000000;">)</span><br /> FWRI... |
CREAR CODIGO EN DLL PARA USAR CON VBA EXCEL | Estoy necesitando crar un archivo dll con codigo ejecutable, que luego pueda abrir en VBA de Excel, la idea es que esa dll me permita leer y grabar registros en un archivo DBFNTX (para que actualice los indices, ppalmente).
Esto es Posible ?, y si lo es, como armo la dll ? |
CREAR SELECT CON DATOS DE OTRO SELECT O SELECT ANIDADOS | Saludos, estoy usando MYSQL y la clase TDolphin y se me presenta el siguiente caso, tengo 2 tablas, una donde tengo maestro de clientes, y otra donde hay movimientos de esos
clientes, cada cliente puede tener N cantidad de movimientos, el punto esta en lo siguiente, hago un select de la tabla de maestro de clientes qu... |
CREAR SELECT CON DATOS DE OTRO SELECT O SELECT ANIDADOS | Jose Luis,prueba a adaptar este codigo MySql.
[code=fw:1noxjg3j]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #0000ff;">SELECT</span> Codigo,nombre,fecha,debe,haber <span style="color: #0000ff;">FROM</span> transacc <br /><span style="color: #0000ff;">WHERE</span> codigo IN<br />&n... |
CREAR SELECT CON DATOS DE OTRO SELECT O SELECT ANIDADOS | joseluisysturiz,
Haber si entendi, por ejemplo.
Cliente con campos
Cliente
Calle
Numero
Etc
Detalle de clientes
Cliente
Cargos
Abonos
Fecha
Etc
[code=fw:2bjsmpdb]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #0000ff;">SELECT</span> a.cliente, a.calle, a.numero, b.ca... |
CREAR SELECT CON DATOS DE OTRO SELECT O SELECT ANIDADOS | Francisco, esa idea fuera buena si los codigos fuesen fijos y limitados, pero el select de clientes varia en cantidad de clientes y diferentes codigos dependiendo del filtro que haya hecho el usuario, por eso es que use los do while !eof() para que en base a el recorrido que voy haciendo, voy buscando los movimientos ... |
CREAR SELECT CON DATOS DE OTRO SELECT O SELECT ANIDADOS | Jose Luis:
[color=#FF0000:sch4ah9k]WHERE codigo='1210004099' OR codigo='1210003099') ; //aqui tu condicion[/color:sch4ah9k]
Es solo un ejemplo; es aqui donde vas a poner la condicion de filtrado de tu tabla de clientes, sobre cuyo filtro se mostrarán los datos de tu tabla de transacciones de clientes. Es decir, solo ... |
CREAR SELECT CON DATOS DE OTRO SELECT O SELECT ANIDADOS | Willian, doy un ejemplo de los datos que pueden suceder, ya que no es sobre un solo registro sino de varios clientes:
Ejemplo, en el select de cliente basado en un filtro obtuve:
ccod_cliente nombre
001 cliente 1
002 cliente 2
003 cliente 3
etc, etc, etc
ahora en un... |
CREAR SELECT CON DATOS DE OTRO SELECT O SELECT ANIDADOS | Jose Luiz,
Puedes crear indices en las tablas y en los campos donde tu haces las busquedas. |
CREAR SELECT CON DATOS DE OTRO SELECT O SELECT ANIDADOS | FranciscoA,
El condicional lo puedes aplicar segun tus necesidades, me refiero puedes filtar por detalle y tambien por el maestro de catalogos. Es cuestion de jugarle con los campos...
joseluisysturiz,
Efectivamente puedes hacer lo que requieres segun lo comentado en los post, pero, no he entendido bien la idea, aun... |
CREAR SELECT CON DATOS DE OTRO SELECT O SELECT ANIDADOS | [quote="wmormar":3f1lbtn8]FranciscoA,
El condicional lo puedes aplicar segun tus necesidades, me refiero puedes filtar por detalle y tambien por el maestro de catalogos. Es cuestion de jugarle con los campos...
[/quote:3f1lbtn8]
Hola William, tienes toda la razón. Hice los cambios pertinentes y funciona perfectamente.... |
CREAR SELECT CON DATOS DE OTRO SELECT O SELECT ANIDADOS | [quote="wmormar":237vbu8a]FranciscoA,
El condicional lo puedes aplicar segun tus necesidades, me refiero puedes filtar por detalle y tambien por el maestro de catalogos. Es cuestion de jugarle con los campos...
joseluisysturiz,
Efectivamente puedes hacer lo que requieres segun lo comentado en los post, pero, no he en... |
CREAR SELECT CON DATOS DE OTRO SELECT O SELECT ANIDADOS | Jose Luis.
He creado esta consulta, basada en el ejemplo de William, que deberia funcionar. Solo agregale las ' ,", + y ; donde correspondan, y las adaptaciones que estimes necesarias. (Es solo un codigo ejemplo)
[code=fw:1gsjtz0w]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #0000ff;"... |
CREAR SELECT CON DATOS DE OTRO SELECT O SELECT ANIDADOS | jose luis
prueba asi
SELECT id,campo1,campo2,campo3,campo4 FROM movimientos WHERE id IN (SELECT id,campo1,campo2 FROM clientes WHERE "tu condicion filtrado de cliente ")
asi te debe funciionar sin problemas
saludos
paco |
CREATE CLASS... | Buenas tardes a Tod@s
como her que funcione en modharbour la creación de clases
[code=fw:67btikqb]<div class="fw" id="{CB}" style="font-family: monospace;">CREATE <span style="color: #00C800;">CLASS</span> tReporteVentas<br /><br /> <span style="color: #0000ff;">VAR</span> lEmision AS LOGICAL<br /> <span sty... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.