topic
stringlengths
1
63
text
stringlengths
1
577k
Ayuda con xedit (solucionado)
Mira yo usaba xEdit y ahora uso este que es muy completo y a mi enteder es mejor, Bajate este editor que es libre facil y funciona muy bien. Crimson Editor
Ayuda con xedit (solucionado)
Lo siento, Ya uso MED y me parece mejor que Crimson. Lo que quiero es Xedit porque puedo compilar y linkar desde el. Saludos
Ayuda con xedit (solucionado)
Hola Compuin, que es lo que no te funciona? Yo uso le versión que me bajé del sitio, y no tengo problemas. Y lo uso todos los días para todos los proyectos. Seguramente lo podremos hacer funcionar si explicas que te está fallando. Tiene cosas interesantes como el colapsado del código, un miniDBU, Bug Tracking System, e incluso puedo usar OutputDebugString y me abre una ventana automáticamente para mostrarme los valores. Hasta ahora el unico problema que tuve no fue originado por xEdit sino por el link.exe de Borland.
Ayuda con xedit (solucionado)
Logre bajar la version al igual que tu....trato de compilar con Harbour 3.0 y no me funciona. Ten envio el error presentado #include "fivewin.ch" FUNCTION MAIN() MSGINFO ( "Hola Mundo" ) RETURN NIL Compilando Module1.prg Enlazando test01.exe Fatal:Unable to open file 'HBOLE.LIB' 1 Files, 0 Warnings, 1 Errors Si desmarco la libreria revienta por todas partes
Ayuda con xedit (solucionado)
Has cambiado de versión de Harbour, y tienes configurado en las libs hbole.lib, que ya no se usa. Las librerías han cambiado de nombre en la versión 3.0, si no me equivoco ahora se llama hbwin.lib. Esta lista seguramente te resulta útil como a mí. [url=http://imageshack.us/photo/my-images/28/harbourlibs.png/:2b79rqaf][img:2b79rqaf]http://img28.imageshack.us/img28/7131/harbourlibs.png[/img:2b79rqaf][/url:2b79rqaf]
Ayuda con xedit (solucionado)
Carlos, Tienes un email por donde te pueda enviar la configuracion de mi Xedit (xedit.cfg) ? Ya que el firewall de mi trabajo no me permite ver la imagen que publicastes, podrias enviarla por este email <!-- e --><a href="mailto:wbguerrero@gmail.com">wbguerrero@gmail.com</a><!-- e --> ? Gracias de antemano
Ayuda con xedit (solucionado)
Me faltaba agregar la gtgui.lib Gracias por sus aportes
Ayuda con xedit (solucionado)
[quote="Compuin":3s48urc9]Carlos, Tienes un email por donde te pueda enviar la configuracion de mi Xedit (xedit.cfg) ? Ya que el firewall de mi trabajo no me permite ver la imagen que publicastes, podrias enviarla por este email <!-- e --><a href="mailto:wbguerrero@gmail.com">wbguerrero@gmail.com</a><!-- e --> ? Gracias de antemano[/quote:3s48urc9] Me podria dar copia de esta configuracion tengo el mismo problema. Email <!-- e --><a href="mailto:rubendariogd@hotmail.com">rubendariogd@hotmail.com</a><!-- e -->
Ayuda con xedit (solucionado)
[OPTIONS] CreateBAK=.T. SaveOnRun=.T. SaveDesktop=.T. OpenLastProject=.T. AskQuit=.T. StopOnErrors=.F. ShowAllMessages=.F. AutoDepend=1 Processes=1 DontRunOnWarnings=.F. MinimizeToTray=.F. UIFont=MS Sans Serif,8 Language=10 [TOOLBARS] File=.T. Project=.T. Navigation=.T. NavigationWidth=340 Edit=.T. Find=.T. Marks=.T. [XAILER] Root=C:\Xailer Bin=C:\Xailer\Bin Lib=C:\Xailer\Lib Include=C:\Xailer\Include [PROJECTS] [ProgrammingEnvironment] 1=Fivewin / Harbour [Fivewin / Harbour] Default=.T. Include=C:\FWH\Include Lib=C:\FWH\Lib Libraries=Fiveh,Fivehc HBCompiler=Harbour HBDir=C:\Harbour HBDirBin=C:\Harbour\Bin HBDirInclude=C:\Harbour\Include HBDirLib=C:\Harbour\Lib HBFlags=/n HBLibraries=+hbrtl,+hbvm,+gtgui,-gtwin,+hblang,+hbmacro,+hbrdd,+rddntx,+rddcdx,+rddfpt,+hbsix,+hbdebug, +hbcommon,+hbpp,+hbcpage,+hbwin,+hbcplr,+hbct,+xhb.lib,+hbziparc,+hbmzip,-minizip,+hbzlib,+png,+ace32 CCompiler=BCC CDir=C:\Bcc582 CDirBin=C:\Bcc582\Bin CDirInclude=C:\Bcc582\Include CDirLib=C:\Bcc582\Lib CFlags=-tWM -c -v- -O2 -X CLibraries=+c0w32.obj,+psdk\odbc32,+psdk\psapi,+psdk\msimg32,+cw32,+import32,+wininet StripSymbols=.F. RCDefault=.F. RC=C:\bcc582\Bin\porc.exe RCFlags=-iC:\bcc582\Include -r -fo%FO %FI LinkFlags=-Gn -Tpe StandardIcons=.F. LibFlags= [Abbreviations] if=IF |\nENDIF ife=IF |\nELSE\nENDIF wi=WITH OBJECT |\nEND me=METHOD |() CLASS\nRETURN fn=FUNCTION |()\nRETURN pr=PROCEDURE |()\nRETURN tr=TRY |\nCATCH\nEND to=// TODO: tom=/* TODO: |\n*/ //-=//------------------------------------------------------------------------------\n| Saludos
Ayuda con xedit (solucionado)
[url:3fhzxetb]http&#58;//texteditors&#46;org/cgi-bin/wiki&#46;pl?HomePage[/url:3fhzxetb] [url:3fhzxetb]http&#58;//texteditors&#46;org/cgi-bin/wiki&#46;pl?EditorIndex[/url:3fhzxetb]
Ayuda con xedit (solucionado)
Compuin. Desde el MED puedes compilar y linkear sin problemas... Hace unos años hize un documento donde explicaba como se hacia. Dejame Buscarlo y te lo envio. Es el editor que utilizo sin problemas. Saludos Adolfo
Ayuda con xedit (solucionado)
[quote="Adolfo":tspctqk6]Compuin. Desde el MED puedes compilar y linkear sin problemas... Hace unos años hize un documento donde explicaba como se hacia. Dejame Buscarlo y te lo envio. Es el editor que utilizo sin problemas. Saludos Adolfo[/quote:tspctqk6]
Ayuda con xedit (solucionado)
Saludos Adolfo Tu tienes el documento de como se compila con MED, me lo podrias enviar gracias,
Ayuda con: índices con acentos y eñes.
Hola. ¿Cómo debo crear el índice para que me contemple los acentos y las eñes? Actualmente los creo sólo con UPPER(), pero por ejemplo, "TALÓN" y "talón" no los da como duplicados, y debería. ¿Alguna ayuda al respecto?
Ayuda conversion mm a pixles
Eatimado Colegas Necesito convertir 297.4 mm x 210,0 mm a pixeles y mostrar un dialogo con las mismas dimensiones pero en pixeles alguien me podria orientar desde ya muchisimas gracias Dante <!-- e --><a href="mailto:Devwin2004@yahoo.com.ar">Devwin2004@yahoo.com.ar</a><!-- e -->
Ayuda conversion mm a pixles
Primero necesitariamos saber a que resolucion vas a trabajar. Que alguien me corrija si digo alguna tonteria. Antes de hacer una conversión CM / PIX, necesitamos saber que resolución tiene tu dispositivo sobre el cual quieres convertir porque no es lo mismo calcular el tamaño en una resolucion de 800x600 que en una 1024x768. Esto pasa mucho en el motor de reportes, donde forzosamente necesitas la inforamcion del dispositivo (resolucion de la impresora) para que internamente se calculen los pixeles donde se coloca lo que quieres imprimir. Asi que para comenzar, necesitamos saber la resolucion sobre la cual estas trabajando y luego podemos aplicar algun algoritmo.
Ayuda cpm hbzebra.lib
Hola amigos: Tengo este código, que pinta una imagen en la pantalla. lo que no puedo es cargar la imagen a una variable para poder grabarla como archivo bmp Gracias mil [code=fw:14tjv6ta]<div class="fw" id="{CB}" style="font-family: monospace;"><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<br /><br /><span style="color: #0000ff;">define</span> <span style="color: #0000ff;">window</span> oWnd<br /><span style="color: #0000ff;">activate</span> <span style="color: #0000ff;">window</span> oWnd <span style="color: #0000ff;">on</span> <span style="color: #0000ff;">paint</span><span style="color: #000000;">&#40;</span> BarCode<span style="color: #000000;">&#40;</span> hDC <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #00C800;">function</span> BarCode<span style="color: #000000;">&#40;</span> hDC <span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">local</span> hZebra<br />   <span style="color: #00C800;">local</span> cCode := <span style="color: #ff0000;">"testing from fivewin"</span><br />   <span style="color: #00C800;">local</span> hBrush := CreateSolidBrush<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span><br /><br />   hZebra := hb_zebra_create_pdf417<span style="color: #000000;">&#40;</span> cCode, <span style="color: #00C800;">NIL</span> <span style="color: #000000;">&#41;</span><br />   hb_zebra_draw<span style="color: #000000;">&#40;</span> hZebra, <span style="color: #000000;">&#123;</span>| x, y, w, h | FillRect<span style="color: #000000;">&#40;</span> hDC, <span style="color: #000000;">&#123;</span> y, x, y +  h, x + w <span style="color: #000000;">&#125;</span>, hBrush <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span>, <span style="color: #000000;">5</span>, <span style="color: #000000;">5</span>, <span style="color: #000000;">1</span>, <span style="color: #000000;">4</span> <span style="color: #000000;">&#41;</span><br /><br />   hb_zebra_destroy<span style="color: #000000;">&#40;</span> hZebra <span style="color: #000000;">&#41;</span><br /><br />   deleteobject<span style="color: #000000;">&#40;</span> hBrush <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">return</span><span style="color: #000000;">&#40;</span><span style="color: #00C800;">nil</span><span style="color: #000000;">&#41;</span><br /><br /> </div>[/code:14tjv6ta]
Ayuda cpm hbzebra.lib
Mira yo lo hago asi #include "fivewin.ch" #include "codebar.ch" static oCode, oWndP function Main() local oMenu oCode := TCodeBars():New() oMenu = BuildMenu() ** BuildCode( CODEBAR_DATAMATRIX, "DataMatrix <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) -->") * define window oWndP menu oMenu * activate window oWndP &&ON INIT (BuildCode( CODEBAR_DATAMATRIX, "DataMatrix <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) -->", oWndP:end() )) return nil function BuildMenu() local oMenu menu oMenu menuitem "CodeBar" menu menuitem "EAN13" action( BuildCode( CODEBAR_EAN13, "477012345678" ) ) menuitem "EAN8" action( BuildCode( CODEBAR_EAN8, "1234567" ) ) menuitem "UPCA" action( BuildCode( CODEBAR_UPCA, "01234567891" ) ) menuitem "UPCE" action( BuildCode( CODEBAR_UPCE, "123456" ) ) menuitem "CODE39" action( BuildCode( CODEBAR_CODE39, "ABC123" ) ) menuitem "ITF" action( BuildCode( CODEBAR_ITF, "1234", HB_ZEBRA_FLAG_WIDE3 ) ) menuitem "MSI" action( BuildCode( CODEBAR_MSI, "1234567", HB_ZEBRA_FLAG_CHECKSUM ) ) menuitem "CODABAR" action( BuildCode( CODEBAR_CODABAR, "40156", HB_ZEBRA_FLAG_WIDE3 ) ) menuitem "CODE93" action( BuildCode( CODEBAR_CODE93, "ABC-123" ) ) menuitem "CODE11" action( BuildCode( CODEBAR_CODE11, "12", HB_ZEBRA_FLAG_WIDE3 ) ) menuitem "CODE128" action( BuildCode( CODEBAR_CODE128, "Code 128") ) menuitem "PDF417" action( BuildCode( CODEBAR_PDF417, "PDF17" ) ) menuitem "DATAMATRIX" action( BuildCode( CODEBAR_DATAMATRIX, "DataMatrix <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) -->") ) endmenu endmenu return oMenu function BuildCode( nCode, cCode, nFlags ) * local hDC := oWndP:GetDC() default nFlags := 0 oCode:Reset() if nCode < CODEBAR_PDF417 oCode:nHeightCode = oCode:nHeight - 50 oCode:nWidthCode = 1.5 else oCode:nHeightCode = 3 oCode:nWidthCode = 1 endif oCode:SetType( nCode ) oCode:SetCode( cCode ) oCode:SetFlags( nFlags ) oCode:Build() [color=#FF0080:1zmv1rop]* DrawBitmap( hDC, oCode:hCodeBar, 0, 0 )[/color:1zmv1rop] && aqui lo pinta en la pantalla [color=#FF4080:1zmv1rop] DrawBitmap( oCode:hCodeBar,10, 10 )[/color:1zmv1rop] && aqui lo mando a un archivo file.bmp de 10x10 tam hDib := DibFromBitmap(oCode:hCodeBar ) DibWrite( "file.bmp" , hDib ) * oWndP:ReleaseDC() * oWndP:END() return nil
Ayuda cpm hbzebra.lib
Gracias mi amigo, eso funciona perfectamente con la librería externa de zebra y con XHarbour estoy migrando Harbour 3.2.0, que tiene la librería hbzebra y el ejemplo es el que puse arriba,, y no veo la manera de pasarlo a un file.. Un abrazo..
Ayuda cpm hbzebra.lib
Yo tengo una función que te puede ser util.... Usa gdiplus y no se si te faltará alguna funcion gdiplus ( en caso de faltar pidela ) El codigo que te pongo es para qrcode pero lo he comentado y te lo he puesto para pdf417. No lo he probado con pdf417 . [code=fw:2q39zy0p]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br /><span style="color: #00C800;">Function</span> DrawgdiBarcodeBMP<span style="color: #000000;">&#40;</span> nLineWidth, nLineHeight, cVar, cfileName <span style="color: #000000;">&#41;</span>   <br />   <span style="color: #00C800;">local</span> oBmp := GDIBmp<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">new</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #B900B9;">//local hZebra := hb_zebra_create_ean13( "477012345678" )</span><br />   <span style="color: #B900B9;">//LOCAL hZebra := hb_zebra_create_qrcode( cVar )</span><br />   <span style="color: #00C800;">local</span> hZebra := hb_zebra_create_pdf417<span style="color: #000000;">&#40;</span> cVar, <span style="color: #00C800;">NIL</span> <span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">LOCAL</span> nFlags<br />   <span style="color: #00C800;">local</span> nWidth, nHeight<br />   <span style="color: #00C800;">local</span> hBmp, hGraf<br />   <span style="color: #00C800;">local</span> hBrush  := GdiPlusNewSolidBrush<span style="color: #000000;">&#40;</span> <span style="color: #000000;">255</span>, <span style="color: #000000;">255</span>, <span style="color: #000000;">255</span>, <span style="color: #000000;">255</span> <span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">local</span> hBrush2 := GdiPlusNewSolidBrush<span style="color: #000000;">&#40;</span> <span style="color: #000000;">255</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">255</span> <span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #B900B9;">// nLineHeight := nLineWidth</span><br /><br />   nWidht  := hb_Zebra_GetWidth <span style="color: #000000;">&#40;</span> hZebra, nLineWidth, nLineHeight, nFlags <span style="color: #000000;">&#41;</span><br />   nHeight := hb_Zebra_GetHeight<span style="color: #000000;">&#40;</span> hZebra, nLineWidth, nLineHeight, nFlags <span style="color: #000000;">&#41;</span><br /><br /><br />   hBmp  := GDIPLUSBMPFROMBRUSH<span style="color: #000000;">&#40;</span> nWidht + <span style="color: #000000;">2</span>, nHeight<span style="color: #000000;">+2</span>, hBrush <span style="color: #000000;">&#41;</span><br />   hGraf := GDIPLUSHGRAFFROMHBMP<span style="color: #000000;">&#40;</span> hBmp <span style="color: #000000;">&#41;</span><br /><br />   hb_zebra_draw_gdip<span style="color: #000000;">&#40;</span> hZebra, hGraf, hBrush2, <span style="color: #000000;">1</span>, <span style="color: #000000;">1</span>, nLineWidth, nLineHeight <span style="color: #000000;">&#41;</span><br /><br />   oBmp:<span style="color: #000000;">hBmp</span> := hBmp<br /><br />   GdiPlusDeleteGraphics<span style="color: #000000;">&#40;</span> hGraf <span style="color: #000000;">&#41;</span><br />   GdiPlusDeleteBrush<span style="color: #000000;">&#40;</span> hBrush <span style="color: #000000;">&#41;</span><br />   GdiPlusDeleteBrush<span style="color: #000000;">&#40;</span> hBrush2 <span style="color: #000000;">&#41;</span><br /><br />   HB_ZEBRA_DESTROY<span style="color: #000000;">&#40;</span> hZebra <span style="color: #000000;">&#41;</span><br /><br />   oBmp:<span style="color: #000000;">Save</span><span style="color: #000000;">&#40;</span> cFileName <span style="color: #000000;">&#41;</span><br />   oBmp:<span style="color: #000000;">END</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><br /><span style="color: #00C800;">Return</span> <span style="color: #00C800;">nil</span><br /><br /><br /><span style="color: #00C800;">STATIC</span> <span style="color: #00C800;">FUNCTION</span> hb_zebra_draw_gdip<span style="color: #000000;">&#40;</span> hZebra, hGraf, hBrush, ... <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;hb_zebra_draw<span style="color: #000000;">&#40;</span> hZebra, <span style="color: #000000;">&#123;</span>| x, y, w, h | &nbsp;GDIPLUSDRAWRECT<span style="color: #000000;">&#40;</span> hGraf,,hbrush,x, y, w, h <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span>, ... <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #000000;">0</span><br /><br /><br /><br /> </div>[/code:2q39zy0p]
Ayuda cpm hbzebra.lib
Gracias,,,, funciona ok,,,, y como cambio el color en gdi??? Salu2
Ayuda cpm hbzebra.lib
[quote="Willi Quintana":3tcfcd9g]Gracias,,,, funciona ok,,,, y como cambio el color en gdi??? Salu2[/quote:3tcfcd9g] Puedes utilizar los colores que necesites solo cambiandolo aqui ... hBrush2 es el color del codebar hbrush el color del fondo [code=fw:3tcfcd9g]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br /><span style="color: #00C800;">local</span> hBrush &nbsp;:= GdiPlusNewSolidBrush<span style="color: #000000;">&#40;</span> <span style="color: #000000;">255</span>, <span style="color: #000000;">255</span>, <span style="color: #000000;">255</span>, <span style="color: #000000;">255</span> <span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">local</span> hBrush2 := GdiPlusNewSolidBrush<span style="color: #000000;">&#40;</span> <span style="color: #000000;">255</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">255</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp;</div>[/code:3tcfcd9g]
Ayuda cpm hbzebra.lib
Mr. Mastintin, where are this functions? [code=fw:iqajffza]<div class="fw" id="{CB}" style="font-family: monospace;"> nWidht  := hb_Zebra_GetWidth <span style="color: #000000;">&#40;</span> hZebra, nLineWidth, nLineHeight, nFlags <span style="color: #000000;">&#41;</span><br />   nHeight := hb_Zebra_GetHeight<span style="color: #000000;">&#40;</span> hZebra, nLineWidth, nLineHeight, nFlags <span style="color: #000000;">&#41;</span></div>[/code:iqajffza]
Ayuda cpm hbzebra.lib
Gunther [code=fw:2wmh0bil]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #B900B9;">//------------------------------------------------------------------------------</span><br /><br /><span style="color: #00C800;">FUNCTION</span> hb_Zebra_GetWidth <span style="color: #000000;">&#40;</span> hZebra, nLineWidth, nLineHeight, nFlags <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">LOCAL</span> x1:= <span style="color: #000000;">0</span>, y1 := <span style="color: #000000;">0</span>, nBarWidth := <span style="color: #000000;">0</span>, nBarHeight := <span style="color: #000000;">0</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">IF</span> hb_zebra_GetError<span style="color: #000000;">&#40;</span> hZebra <span style="color: #000000;">&#41;</span> != <span style="color: #000000;">0</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">RETURN</span> HB_ZEBRA_ERROR_INVALIDZEBRA<br />&nbsp; &nbsp;<span style="color: #00C800;">ENDIF</span><br />&nbsp; &nbsp;hb_zebra_draw <span style="color: #000000;">&#40;</span> hZebra, <span style="color: #000000;">&#123;</span>| x, y, w, h | nBarWidth:=x+w-x1, nBarHeight:=y+h-y1 <span style="color: #000000;">&#125;</span>, x1, y1, nLineWidth, nLineHeight, nFlags <span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">RETURN</span> nBarWidth<br /><br /><span style="color: #B900B9;">//------------------------------------------------------------------------------</span><br /><br /><span style="color: #00C800;">FUNCTION</span> hb_Zebra_GetHeight <span style="color: #000000;">&#40;</span>hZebra, nLineWidth, nLineHeight, nFlags <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">LOCAL</span> x1:= <span style="color: #000000;">0</span>, y1 := <span style="color: #000000;">0</span>, nBarWidth := <span style="color: #000000;">0</span>, nBarHeight := <span style="color: #000000;">0</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">IF</span> hb_zebra_GetError<span style="color: #000000;">&#40;</span> hZebra <span style="color: #000000;">&#41;</span> != <span style="color: #000000;">0</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">RETURN</span> HB_ZEBRA_ERROR_INVALIDZEBRA<br />&nbsp; &nbsp;<span style="color: #00C800;">ENDIF</span><br />&nbsp; &nbsp;hb_zebra_draw <span style="color: #000000;">&#40;</span> hZebra, <span style="color: #000000;">&#123;</span>| x, y, w, h | nBarWidth:=x+w-x1, nBarHeight:=y+h-y1 <span style="color: #000000;">&#125;</span>, x1, y1, nLineWidth, nLineHeight, nFlags <span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">RETURN</span> nBarHeight<br /><br /><span style="color: #B900B9;">//------------------------------------------------------------------------------</span><br /><br />&nbsp;</div>[/code:2wmh0bil]
Ayuda cpm hbzebra.lib
THANKS!
Ayuda cpm hbzebra.lib
Christobal, please try QR-Code with data "aa1"! You can see, that the last block is not to see! It seems as a bug in zebra. DATAMATRIX is ok.
Ayuda cpm hbzebra.lib
Sorry, I do not understand well [img:1b0m47c0]https&#58;//s9&#46;postimg&#46;org/5pqxaekgv/zebra1&#46;png[/img:1b0m47c0]
Ayuda cpm hbzebra.lib
Cristobal, please try with this code! The code are made ok, but the function hb_zebra_Getwidth(...) returns wrong width-result. I found, that this behavoir is on mode "alphanumeric" in the QR-sourcecode but not in all cases. [code=fw:vfds4peq]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">Function</span> DrawgdiBarcodeBMP<span style="color: #000000;">&#40;</span> cVar, cBmp, nWidth <span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">local</span> oBmp , hZebra<br />   <span style="color: #00C800;">LOCAL</span> nFlags<br />   <span style="color: #00C800;">local</span> nLineWidth := <span style="color: #000000;">10</span><br />   <span style="color: #00C800;">local</span> nWidth_temp <span style="color: #B900B9;">//:= 177*nLineWidth</span><br />   <span style="color: #00C800;">local</span> hBmp, hGraf<br />   <span style="color: #00C800;">local</span> hBrush  := GdiPlusNewSolidBrush<span style="color: #000000;">&#40;</span> <span style="color: #000000;">255</span>, <span style="color: #000000;">255</span>, <span style="color: #000000;">255</span>, <span style="color: #000000;">255</span> <span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">local</span> hBrush2 := GdiPlusNewSolidBrush<span style="color: #000000;">&#40;</span> <span style="color: #000000;">255</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 /><br />   <span style="color: #00C800;">DEFAULT</span> cBmp := <span style="color: #ff0000;">".<span style="color: #000000;">\Q</span>R.bmp"</span> , nWidth := <span style="color: #000000;">200</span><br />  hZebra := hb_zebra_create_qrcode<span style="color: #000000;">&#40;</span> cVar , nFlags<span style="color: #000000;">&#41;</span><br />   nWidth_temp := hb_Zebra_GetWidth <span style="color: #000000;">&#40;</span> hZebra, nLineWidth, nLineWidth, nFlags <span style="color: #000000;">&#41;</span><br />    oBmp := GDIBmp<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">new</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />    hBmp  := GDIPLUSBMPFROMBRUSH<span style="color: #000000;">&#40;</span> nWidth_temp, nWidth_temp, hBrush <span style="color: #000000;">&#41;</span><br />    hGraf := GDIPLUSHGRAFFROMHBMP<span style="color: #000000;">&#40;</span> hBmp <span style="color: #000000;">&#41;</span><br />    hb_zebra_draw<span style="color: #000000;">&#40;</span> hZebra, <span style="color: #000000;">&#123;</span>| x, y, w, h |  GDIPLUSDRAWRECT<span style="color: #000000;">&#40;</span> hGraf,,hbrush2,x, y, w, h <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span>,<span style="color: #000000;">0</span>,<span style="color: #000000;">0</span>,nLineWidth, nLineWidth, nFlags <span style="color: #000000;">&#41;</span><br />    GdiPlusDeleteGraphics<span style="color: #000000;">&#40;</span> hGraf <span style="color: #000000;">&#41;</span><br />HB_ZEBRA_DESTROY<span style="color: #000000;">&#40;</span> hZebra <span style="color: #000000;">&#41;</span><br />GdiPlusDeleteBrush<span style="color: #000000;">&#40;</span> hBrush <span style="color: #000000;">&#41;</span><br />GdiPlusDeleteBrush<span style="color: #000000;">&#40;</span> hBrush2 <span style="color: #000000;">&#41;</span><br />oBmp:<span style="color: #000000;">hBmp</span> := hBmp<br />oBmp:<span style="color: #000000;">Save</span><span style="color: #000000;">&#40;</span> cBmp <span style="color: #000000;">&#41;</span><br />oBmp:<span style="color: #000000;">END</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span>file<span style="color: #000000;">&#40;</span>cBmp<span style="color: #000000;">&#41;</span>,cBmp,<span style="color: #ff0000;">""</span><span style="color: #000000;">&#41;</span></div>[/code:vfds4peq]
Ayuda cpm hbzebra.lib
Look your mail
Ayuda en Advantage Client Engine
Hola foro buenas tardes alguien me podria ayudar en lo siguiente: Deseo utilizar las funciones que tiene Advantage Client Engine, en especial AdsCheckExistence(), como puedo mandar llamar esta libreria y que necesito?? Gracias.
Ayuda en Advantage Client Engine
Hola no se si es lo que necesitas, pero la funcion esta en la lib [b:3mlgjscw]c:\xharbour\lib\ACE32.LIB[/b:3mlgjscw] y la funcion AdsCheckExistence chequea que exista el archivo en la conexion retornando .t. o .f. [code=fw:3mlgjscw]<div class="fw" id="{CB}" style="font-family: monospace;">AdsCheckExistence<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"ARTIUC.ADT"</span>, ViewUsu<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #000000;">hConnection</span> <span style="color: #000000;">&#41;</span>  <span style="color: #B900B9;">//.f.</span><br />AdsCheckExistence<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"ARTICU.ADT"</span>, ViewUsu<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #000000;">hConnection</span> <span style="color: #000000;">&#41;</span>  <span style="color: #B900B9;">//.t.</span><br /><br /> </div>[/code:3mlgjscw]
Ayuda en Advantage Client Engine
Muchas gracias por contestarme, fijate que al momento de utilizar esa funcion, me manda un error en la compilacion. Entonces no se si estoy usando una version donde no viene esas funciones. Tu podrias orientarme para saber en que version vienen esas funciones y tengo entendido que tambien es Rddads.lib. Pero no se, en mi bat hago mencion de esas librerias. Por ello te digo que no se si es la version. Gracias. [quote="Patricio Avalos Aguirre":vuztwvlg]Hola no se si es lo que necesitas, pero la funcion esta en la lib [b:vuztwvlg]c:\xharbour\lib\ACE32.LIB[/b:vuztwvlg] y la funcion AdsCheckExistence chequea que exista el archivo en la conexion retornando .t. o .f. [code=fw:vuztwvlg]<div class="fw" id="{CB}" style="font-family: monospace;">AdsCheckExistence<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"ARTIUC.ADT"</span>, ViewUsu<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #000000;">hConnection</span> <span style="color: #000000;">&#41;</span>  <span style="color: #B900B9;">//.f.</span><br />AdsCheckExistence<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"ARTICU.ADT"</span>, ViewUsu<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #000000;">hConnection</span> <span style="color: #000000;">&#41;</span>  <span style="color: #B900B9;">//.t.</span><br /><br /> </div>[/code:vuztwvlg][/quote:vuztwvlg]
Ayuda en Advantage Client Engine
Hola Antes de seguir primero deseo saber si utilizas ADS ( Advantage database Server ) ya que requieres de varios archivos que deben estar en tu aplicación ads.ini, axcws32.dll, adsloc32.dll, extend.chr, Ansi.chr, adslocal.cfg, adscollate.adm
Ayuda en Advantage Client Engine
A si verdad se me paso informarte eso, pero si uso Advantage Data Server 10.00.0.3 y todos esos archivos si los tengo. [quote="Patricio Avalos Aguirre":2mnvdt0h]Hola Antes de seguir primero deseo saber si utilizas ADS ( Advantage database Server ) ya que requieres de varios archivos que deben estar en tu aplicación ads.ini, axcws32.dll, adsloc32.dll, extend.chr, Ansi.chr, adslocal.cfg, adscollate.adm[/quote:2mnvdt0h]
Ayuda en Advantage Client Engine
Podrias colocar aqui el error que te envia en todo caso te pongo mis linkeadores estas dos lib son para ADS [code=fw:38f0u5xh]<div class="fw" id="{CB}" style="font-family: monospace;">c:\xharbour\lib\rddads.lib+<br />c:\xharbour\lib\ace32.lib +<br /> </div>[/code:38f0u5xh] [b:38f0u5xh]bc32.bc[/b:38f0u5xh] [code=fw:38f0u5xh]<div class="fw" id="{CB}" style="font-family: monospace;">c:\borland\bcc582\lib\c0w32.obj +<br />obj\Wcta.Obj OBJ\MyRibbon.OBJ, +<br />wcta.exe, +<br />wcta.map, +<br />D:\APL\PRGS\LIB32\TWBRW32 +<br />D:\APL\PRGS\LIB32\ttaskpanel +<br />c:\Fwh\lib\FiveHX.LIB +<br />D:\APL\PRGS\LIB32\Funlib32 +<br />c:\Fwh\lib\FiveHc.LIB +<br />c:\xharbour\lib\zlib.lib +<br />D:\APL\PRGS\LIB32\FileXls +<br />D:\APL\PRGS\LIB32\vBarH +<br />D:\APL\PRGS\LIB32\vBoxH +<br />D:\APL\PRGS\LIB32\SBrowse9  +<br />c:\xharbour\lib\png.lib +<br />c:\xharbour\lib\rtl.lib  +<br />c:\xharbour\lib\vm.lib    +<br />c:\xharbour\lib\gtgui.lib +<br />c:\xharbour\lib\lang.lib  +<br />c:\xharbour\lib\macro.lib +<br />c:\xharbour\lib\codepage.lib +<br />c:\xharbour\lib\rdd.lib   +<br />c:\xharbour\lib\dbfcdx.lib+<br />c:\xharbour\lib\dbffpt.lib+<br />c:\xharbour\lib\hbsix.lib +<br />c:\xharbour\lib\common.lib+<br />c:\xharbour\lib\pp.lib    +<br />c:\xharbour\lib\pcrepos.lib+<br />c:\xharbour\lib\ct.lib +<br />c:\xharbour\lib\rddads.lib+<br />c:\xharbour\lib\ace32.lib +<br />c:\borland\bcc582\lib\cw32.lib +<br />c:\borland\bcc582\lib\import32.lib +<br />c:\borland\bcc582\lib\psdk\odbc32.lib+<br />c:\borland\bcc582\lib\psdk\rasapi32.lib+<br />c:\borland\bcc582\lib\psdk\nddeapi.lib+<br />c:\borland\bcc582\lib\psdk\msimg32.lib+<br />c:\borland\bcc582\lib\psdk\psapi.lib+<br />c:\borland\bcc582\lib\psdk\iphlpapi.lib,, +<br />rc\wcta.res rc\ToolBar1.res</div>[/code:38f0u5xh]
Ayuda en Consulta SQL
Fivewineros: Una ayuda: Tengo una tabla de movimientos (actualmente unos 5300 reg.), otra tabla donde estan las pendientes de pago (actualmente unos 23000 reg.). La tabla de pendientes se relaciona con la de movimientos por el campo nota_original. Al realizar el un pago, tengo que obtener las notas pendientes. En la consulta necesito mostrar datos de la tabla movimientos, el select lo tengo así: "select pendientes_de_pago.*, movimientos.mv_date, movimientos.mv_vencimiento from pendientes_de_pago left join movimientos on pendientes_de_pago.nota_original = movimientos.numero_de_nota order by pendientes_de_pago.numero_de_pendiente" El problema es que la consulta dura una eternidad ... bueno mas de 15 minutos, es mucho para una consulta. ¿Cómo podré mejorarla? ¿alguna pista o idea? De antemano muchas gracias a todos ... Eduardo
Ayuda en Consulta SQL
Pedón se me olvidó decir que estoy usando TDolphin y MySql 5. FWH 9.04 Gracias. Eduardo.
Ayuda en Consulta SQL
Eduardo A couple of questions .. 1) Are you using relational constraints on the two keys you are joining ? 2) Do you have unique row id's from both of your tables regardless of any relationships ? For me .. I do not use any relational constraints as indexes .. some people may argue that point, but I do know you need a NOT NULL unique field row id for each table and that row id I mark as my primary key. Rick Lipkin
Ayuda en Consulta SQL
Eduardo.. Publica la estructura de tus tablas y identifica los campos clave para ayudarte. Desde Chile Adolfo
Ayuda en Consulta SQL
Hola has creado indices para nota_original y numero_de_nota??
Ayuda en Consulta SQL
Gracias por responder, nota_original no es un índice. (Creo que por ahí va la cosa). numero_pendiente si es índice. Voy a probar poniendo nota_original como índice. Gracias una vez mas.
Ayuda en Consulta SQL
Creo que algo estoy haciendo mal: Tabla movimientos: numero_de_nota (clave primaria) fecha_de_nota . . Tabla de Pendientes: numero_de_pendiente (clave primaria) fecha_de_pendiente nota_original . . - Lo que estoy relacionaldo es nota_original (de pendientes) con numero_de_nota (de mnovientos) a ver si me dan un tip Gracias Eduardo
Ayuda en Consulta SQL
En tabla pendientes create un indice en nota_original.. y problema resuelto <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) -->
Ayuda en Consulta SQL
Gracias a todos, Creando el indice en nota_original. Salu2 Eduardo
Ayuda en FOLDEREX
Prueba con: [code=fw:33d6ggp4]<div class="fw" id="{CB}" style="font-family: monospace;"><br />oFld:<span style="color: #000000;">bAction</span> := <span style="color: #000000;">&#123;</span> || <span style="color: #00C800;">IF</span><span style="color: #000000;">&#40;</span>oFld:<span style="color: #000000;">nOption</span>=<span style="color: #000000;">1</span>,Proveedores<span style="color: #000000;">&#40;</span>parametros_necesarios<span style="color: #000000;">&#41;</span>, <span style="color: #00C800;">nil</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />&nbsp;</div>[/code:33d6ggp4]
Ayuda en FOLDEREX
Saludos, Yo lo hago declarando las variables necesarias como PRIVATE, asi puedo continuar en otro prg como si se trarara ddel mismo llamandolo como a una funcion normal. Es una idea que a mi me funciona sin problemas.
Ayuda en FOLDEREX
Buenos días a todos Estoy retomando un ejemplo que hice con FOLDEREX en el que uso dos bases de relacionados: PROVEEDORES Y PRODUCTOS.. Si bien está funcionando perfectamente el ejemplo, la cuestión es que me gustaría que la función de productos estuviera en otro prg y no en el mismo y sin que rompa la relación, ya que me gustaría que el desarrollo de cada pestaña estaviera en prg diferentes y sin que se rompa la relación de las bases. En el ejemplo siguiente pretendo que al pulsar la pestaña "Proveedores" se activara esa función pero desarrollado en otro prg. [code=fw:26t831xm]<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;">'ord.ch'</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">'xbrowse.ch'</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">'hbcompat.ch'</span><br /><br />REQUEST DBFCDX<br /><br /> <br /><span style="color: #00C800;">FUNCTION</span> TELEM<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">LOCAL</span> oDlg, obrw, nWild:=<span style="color: #000000;">2</span>, cList, aHdrs, aFlds<br />    <br />   SET DATE ITALIAN<br />   SET CENTURY <span style="color: #0000ff;">ON</span><br />   RDDSETDEFAULT<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"DBFCDX"</span> <span style="color: #000000;">&#41;</span><br />   <br />   USE PROVEEDOR <span style="color: #00C800;">NEW</span> SHARED <span style="color: #0000ff;">ALIAS</span> <span style="color: #ff0000;">"PROVE"</span><br />   <span style="color: #0000ff;">INDEX</span> <span style="color: #0000ff;">ON</span> PROVE->CODIGO_PRO <span style="color: #0000ff;">TO</span> CODPROVE<br />   SET <span style="color: #0000ff;">INDEX</span> <span style="color: #0000ff;">TO</span> CODPROVE<br />   <br />   USE PRODUCTOS <span style="color: #00C800;">NEW</span> SHARED <span style="color: #0000ff;">ALIAS</span> <span style="color: #ff0000;">"PRODU"</span><br />   <span style="color: #0000ff;">INDEX</span> <span style="color: #0000ff;">ON</span> PRODU->CODIGO_PRO <span style="color: #0000ff;">TO</span> CODPRODU<br />   SET <span style="color: #0000ff;">INDEX</span> <span style="color: #0000ff;">TO</span> CODPRODU<br />   <br />   SELE PROVE<br />   SET RELATION <span style="color: #0000ff;">TO</span> PROVE->CODIGO_PRO INTO PRODU<br />    <br />   cList := <span style="color: #ff0000;">"NOMBRE, PROVINCIA"</span><br />   aFlds := HB_ATokens<span style="color: #000000;">&#40;</span> cList, <span style="color: #ff0000;">','</span> <span style="color: #000000;">&#41;</span><br />   <br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">FROM</span> <span style="color: #000000;">3</span>, <span style="color: #000000;">3</span> <span style="color: #0000ff;">TO</span> <span style="color: #000000;">33</span>, <span style="color: #000000;">100</span> <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Búsqueda incremental"</span><br />   <br />   @ <span style="color: #000000;">30</span>,<span style="color: #000000;">10</span> <span style="color: #0000ff;">XBROWSE</span> oBrw <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">360</span>,<span style="color: #000000;">150</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg ;<br />      COLUMNS aFlds HEADERS <span style="color: #ff0000;">"Nombre"</span>, <span style="color: #ff0000;">"Provincia"</span> ;<br />      <span style="color: #0000ff;">ALIAS</span> <span style="color: #ff0000;">"PROVE"</span>  COLSIZES <span style="color: #000000;">200</span>, <span style="color: #000000;">200</span> AUTOSORT CELL LINES NOBORDER<br />     <br />   oBrw:<span style="color: #000000;">lHScroll</span>:= .F.   <br />   <br />     WITH OBJECT oBrw<br />      :<span style="color: #000000;">lIncrFilter</span>   := .t.<br />      :<span style="color: #000000;">lSeekWild</span>     := <span style="color: #000000;">&#40;</span> nWild == <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span><br />      :<span style="color: #000000;">cFilterFld</span>    := <span style="color: #ff0000;">"Nombre"</span><br />      :<span style="color: #000000;">nStretchCol</span>   := STRETCHCOL_WIDEST<br />      END<br /><br />  <br />  @ <span style="color: #000000;">10</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">COMBOBOX</span> oBrw:<span style="color: #000000;">cFilterFld</span> ;<br />      <span style="color: #0000ff;">ITEMS</span>  <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"Nombre"</span>, <span style="color: #ff0000;">"Provincia"</span> <span style="color: #000000;">&#125;</span>;<br />      <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">CHANGE</span> <span style="color: #000000;">&#40;</span> oBrw:<span style="color: #000000;">Seek</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">""</span> <span style="color: #000000;">&#41;</span>, oBrw:<span style="color: #000000;">SetFocus</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> ;<br />      <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">50</span>,<span style="color: #000000;">400</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg<br /> <br /> @ <span style="color: #000000;">10</span>, <span style="color: #000000;">70</span> <span style="color: #0000ff;">COMBOBOX</span> nWild <span style="color: #0000ff;">ITEMS</span> <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"Empieza con"</span>, <span style="color: #ff0000;">"Contiene"</span> <span style="color: #000000;">&#125;</span>;<br />    <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">CHANGE</span> <span style="color: #000000;">&#40;</span> oBrw:<span style="color: #000000;">lSeekWild</span> := <span style="color: #000000;">&#40;</span> nWild == <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span>, ;<br />                  oBrw:<span style="color: #000000;">Seek</span><span style="color: #000000;">&#40;</span> <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> oBrw:<span style="color: #000000;">lSeekWild</span>, oBrw:<span style="color: #000000;">cSeek</span>, <span style="color: #ff0000;">""</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>, ;<br />                  oBrw:<span style="color: #000000;">SetFocus</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />  <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">70</span>,<span style="color: #000000;">400</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg<br /><br />      <br />@ <span style="color: #000000;">11</span>,<span style="color: #000000;">150</span> <span style="color: #0000ff;">SAY</span> oBrw:<span style="color: #000000;">oSeek</span> <span style="color: #0000ff;">PROMPT</span> oBrw:<span style="color: #000000;">cSeek</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">200</span>,<span style="color: #000000;">10</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">COLOR</span> CLR_BLACK,CLR_YELLOW <span style="color: #0000ff;">PICTURE</span> <span style="color: #ff0000;">'@!'</span><br /><br />   oBrw:<span style="color: #000000;">CreateFromCode</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />     <br />   @ <span style="color: #000000;">11</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"Nuevo   "</span> <span style="color: #0000ff;">OF</span> oDlg  <span style="color: #0000ff;">ACTION</span> oBrw:<span style="color: #000000;">EditSource</span><span style="color: #000000;">&#40;</span> .T. <span style="color: #000000;">&#41;</span><br />   @ <span style="color: #000000;">11</span>, <span style="color: #000000;">20</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"Editar  "</span> <span style="color: #0000ff;">OF</span> oDlg  <span style="color: #0000ff;">ACTION</span> EditPro<span style="color: #000000;">&#40;</span> oBrw <span style="color: #000000;">&#41;</span><br />   @ <span style="color: #000000;">11</span>, <span style="color: #000000;">30</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"Eliminar"</span> <span style="color: #0000ff;">OF</span> oDlg  <span style="color: #0000ff;">ACTION</span> oBrw:<span style="color: #000000;">Delete</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   @ <span style="color: #000000;">11</span>, <span style="color: #000000;">40</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"&Imprimir"</span>  <span style="color: #0000ff;">OF</span> oDlg ;<br />      <span style="color: #0000ff;">ACTION</span> oBrw:<span style="color: #000000;">Report</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Listado de SAT"</span>, .T. <span style="color: #000000;">&#41;</span> ;  <span style="color: #B900B9;">// .t. --> wants preview</span><br />      <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">40</span>, <span style="color: #000000;">12</span><br />   @ <span style="color: #000000;">11</span>, <span style="color: #000000;">50</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"&Terminar"</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> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">40</span>, <span style="color: #000000;">12</span><br /><br />   <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span> <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">INIT</span> <span style="color: #000000;">&#40;</span> oBrw:<span style="color: #000000;">SetFocus</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, .f. <span style="color: #000000;">&#41;</span><br /><br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">nil</span><br /><br /><br /><span style="color: #B900B9;">//***************** EDICION CON FOLDER---------------</span><br /><br /><span style="color: #00C800;">FUNCTION</span> editPro<span style="color: #000000;">&#40;</span> oBrw, oDlg <span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">LOCAL</span> oDlg1, oFld, oLbx, Lsalir:=.f.<br />   <span style="color: #00C800;">LOCAL</span> nProve, oProve, cNombre, oNombre, cProvincia, oProvincia<br /><br />   NProve    := PROVE->CODIGO_PRO<br />   cNombre   := PROVE->NOMBRE<br />   cProvincia := PROVE->PROVINCIA<br /><br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg1 <span style="color: #0000ff;">FROM</span> <span style="color: #000000;">3</span>, <span style="color: #000000;">3</span> <span style="color: #0000ff;">TO</span> <span style="color: #000000;">20</span>, <span style="color: #000000;">70</span> <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Mantenimiento"</span><br /><br /><br />   @ <span style="color: #000000;">10</span>, <span style="color: #000000;">5</span> FOLDEREX oFld <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"&Proveedor"</span>, <span style="color: #ff0000;">"[color=#FFBF00:26t831xm]&Datos mercancías"</span><span style="color: #000000;">&#91;</span>/<span style="color: #0000ff;">color</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">250</span>, <span style="color: #000000;">100</span><br />   @ <span style="color: #000000;">20</span>, <span style="color: #000000;">5</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">"Código:"</span> <span style="color: #0000ff;">OF</span> oFld:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span>  <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">60</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">PIXEL</span><br />   @ <span style="color: #000000;">20</span>, <span style="color: #000000;">100</span> <span style="color: #0000ff;">SAY</span> oProve <span style="color: #0000ff;">var</span> nProve <span style="color: #0000ff;">OF</span> oFld:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span>  <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">60</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">PIXEL</span><br />   @ <span style="color: #000000;">30</span>, <span style="color: #000000;">5</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">"Razón social"</span> <span style="color: #0000ff;">OF</span> oFld:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">60</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">PIXEL</span><br />   @ <span style="color: #000000;">30</span>, <span style="color: #000000;">100</span> <span style="color: #0000ff;">GET</span> oNombre <span style="color: #0000ff;">VAR</span> cNombre <span style="color: #0000ff;">OF</span> oFld:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span>  <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">100</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">PIXEL</span><br />   @ <span style="color: #000000;">40</span>, <span style="color: #000000;">5</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">"Provincia"</span> <span style="color: #0000ff;">OF</span> oFld:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">60</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">PIXEL</span><br />   @ <span style="color: #000000;">40</span>, <span style="color: #000000;">100</span> <span style="color: #0000ff;">GET</span> oProvincia <span style="color: #0000ff;">VAR</span> cProvincia <span style="color: #0000ff;">OF</span> oFld:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span>  <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">100</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">PIXEL</span><br />   @ <span style="color: #000000;">60</span>, <span style="color: #000000;">50</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"Grabar"</span> <span style="color: #0000ff;">OF</span> oFld:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">40</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">action</span> oDlg1:<span style="color: #000000;">end</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   @ <span style="color: #000000;">60</span>, <span style="color: #000000;">150</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"Salir"</span> <span style="color: #0000ff;">OF</span> oFld:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">40</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">&#40;</span>lSalir:=.t., oDlg1:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #000000;">&#91;</span><span style="color: #0000ff;">color</span>=#FF0000<span style="color: #000000;">&#93;</span><br /><span style="color: #000000;">&#91;</span><span style="color: #0000ff;">color</span>=#FF8000<span style="color: #000000;">&#93;</span><span style="color: #B900B9;">//-------------   DATOS DE MERCANCÍAS. ESTO QUIERO PONERLO EN OTRO PRG SIN QUE SE ROMPA LA RELACIÓN ----------[/color:26t831xm]</span><br />   SELE produ<br /><br />   produ-><span style="color: #000000;">&#40;</span> ordscope<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span>, nProve <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />   produ-><span style="color: #000000;">&#40;</span> ordscope<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>, nProve <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />   produ-><span style="color: #000000;">&#40;</span> DBSKIP<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">IF</span> produ-><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;">0</span><br />   <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"No se encontraron productos"</span> <span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">ENDIF</span><br /> <br />   @ <span style="color: #000000;">1</span>, <span style="color: #000000;">1</span> <span style="color: #0000ff;">XBROWSE</span> oLbx <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">250</span>, <span style="color: #000000;">65</span> <span style="color: #0000ff;">PIXEL</span>;<br />      COLUMNS <span style="color: #ff0000;">"CODIGO_PRO"</span>, <span style="color: #ff0000;">"PRODUCTO"</span>, <span style="color: #ff0000;">"PRECIO"</span> <span style="color: #0000ff;">OF</span> oFld:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">ALIAS</span> <span style="color: #ff0000;">"PRODU"</span>;<br />      HEADERS <span style="color: #ff0000;">"Código proveedor"</span>, <span style="color: #ff0000;">"Produto"</span>, <span style="color: #ff0000;">"Precio"</span>;<br />      COLSIZES <span style="color: #000000;">70</span>, <span style="color: #000000;">300</span>, <span style="color: #000000;">140</span>;<br />      JUSTIFY AL_RIGHT, AL_LEFT, AL_RIGHT;<br />      PICTURES , , <span style="color: #ff0000;">"@E 9,999,999.99"</span> LINES NOBORDER FASTEDIT<br /><br />   oLbx:<span style="color: #000000;">CreateFromCode</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /> <br />   <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg1 <span style="color: #0000ff;">CENTERED</span> <span style="color: #0000ff;">valid</span> lSalir<br />   <br /><br /><span style="color: #00C800;">if</span> lsalir<br />SELE PROVE<br />oBrw:<span style="color: #000000;">Seek</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">""</span> <span style="color: #000000;">&#41;</span><br />oBrw:<span style="color: #0000ff;">refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />PROVE-><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 />oBrw:<span style="color: #000000;">SetFocus</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">endif</span><span style="color: #000000;">&#91;</span>/<span style="color: #0000ff;">color</span><span style="color: #000000;">&#93;</span><br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">nil</span></div>[/code:26t831xm] ¿En este caso concreto cómo se llamaría a la función, por ejemplo proveedores()? Gracias
Ayuda en FOLDEREX
Gracías, César y José. He optado por la opción de César, He creado tres prg: uno de xbrowse de proveedores, otro de la ficha del proveedor con un FOLDEREX que contiene dos pestañas -datps de proveedor y otra de productos-, y otro prg para el xbrowse de productos. Pues bien, la pestaña de "Productos" no muestra nada. Los tres prg son los siguientes: PRINCIPAL.PRG [code=fw:189dd3lm]<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;">'ord.ch'</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">'xbrowse.ch'</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">'hbcompat.ch'</span><br /><br />REQUEST DBFCDX<br /><br /> <br /><span style="color: #00C800;">FUNCTION</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">LOCAL</span> oDlg, obrw, nWild:=<span style="color: #000000;">2</span>, cList, aHdrs, aFlds<br />    <br />   SET DATE ITALIAN<br />   SET CENTURY <span style="color: #0000ff;">ON</span><br />   RDDSETDEFAULT<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"DBFCDX"</span> <span style="color: #000000;">&#41;</span><br />   <br />   USE PROVEEDOR <span style="color: #00C800;">NEW</span> SHARED <span style="color: #0000ff;">ALIAS</span> <span style="color: #ff0000;">"PROVE"</span><br />   <span style="color: #0000ff;">INDEX</span> <span style="color: #0000ff;">ON</span> PROVE->CODIGO_PRO <span style="color: #0000ff;">TO</span> CODPROVE<br />   SET <span style="color: #0000ff;">INDEX</span> <span style="color: #0000ff;">TO</span> CODPROVE<br />   <br />   USE PRODUCTOS <span style="color: #00C800;">NEW</span> SHARED <span style="color: #0000ff;">ALIAS</span> <span style="color: #ff0000;">"PRODU"</span><br />   <span style="color: #0000ff;">INDEX</span> <span style="color: #0000ff;">ON</span> PRODU->CODIGO_PRO <span style="color: #0000ff;">TO</span> CODPRODU<br />   SET <span style="color: #0000ff;">INDEX</span> <span style="color: #0000ff;">TO</span> CODPRODU<br />   <br />   SELE PROVE<br />   SET RELATION <span style="color: #0000ff;">TO</span> PROVE->CODIGO_PRO INTO PRODU<br />    <br />   cList := <span style="color: #ff0000;">"NOMBRE, PROVINCIA"</span><br />   aFlds := HB_ATokens<span style="color: #000000;">&#40;</span> cList, <span style="color: #ff0000;">','</span> <span style="color: #000000;">&#41;</span><br />   <br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">FROM</span> <span style="color: #000000;">3</span>, <span style="color: #000000;">3</span> <span style="color: #0000ff;">TO</span> <span style="color: #000000;">33</span>, <span style="color: #000000;">100</span> <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Búsqueda incremental"</span><br />   <br />   @ <span style="color: #000000;">30</span>,<span style="color: #000000;">10</span> <span style="color: #0000ff;">XBROWSE</span> oBrw <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">360</span>,<span style="color: #000000;">150</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg ;<br />      COLUMNS aFlds HEADERS <span style="color: #ff0000;">"Nombre"</span>, <span style="color: #ff0000;">"Provincia"</span> ;<br />      <span style="color: #0000ff;">ALIAS</span> <span style="color: #ff0000;">"PROVE"</span>  COLSIZES <span style="color: #000000;">200</span>, <span style="color: #000000;">200</span> AUTOSORT CELL LINES NOBORDER<br />     <br />   oBrw:<span style="color: #000000;">lHScroll</span>:= .F.   <br />   <br />     WITH OBJECT oBrw<br />      :<span style="color: #000000;">lIncrFilter</span>   := .t.<br />      :<span style="color: #000000;">lSeekWild</span>     := <span style="color: #000000;">&#40;</span> nWild == <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span><br />      :<span style="color: #000000;">cFilterFld</span>    := <span style="color: #ff0000;">"Nombre"</span><br />      :<span style="color: #000000;">nStretchCol</span>   := STRETCHCOL_WIDEST<br />      END<br /><br />  <br />  @ <span style="color: #000000;">10</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">COMBOBOX</span> oBrw:<span style="color: #000000;">cFilterFld</span> ;<br />      <span style="color: #0000ff;">ITEMS</span>  <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"Nombre"</span>, <span style="color: #ff0000;">"Provincia"</span> <span style="color: #000000;">&#125;</span>;<br />      <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">CHANGE</span> <span style="color: #000000;">&#40;</span> oBrw:<span style="color: #000000;">Seek</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">""</span> <span style="color: #000000;">&#41;</span>, oBrw:<span style="color: #000000;">SetFocus</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> ;<br />      <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">50</span>,<span style="color: #000000;">400</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg<br /> <br /> @ <span style="color: #000000;">10</span>, <span style="color: #000000;">70</span> <span style="color: #0000ff;">COMBOBOX</span> nWild <span style="color: #0000ff;">ITEMS</span> <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"Empieza con"</span>, <span style="color: #ff0000;">"Contiene"</span> <span style="color: #000000;">&#125;</span>;<br />    <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">CHANGE</span> <span style="color: #000000;">&#40;</span> oBrw:<span style="color: #000000;">lSeekWild</span> := <span style="color: #000000;">&#40;</span> nWild == <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span>, ;<br />                  oBrw:<span style="color: #000000;">Seek</span><span style="color: #000000;">&#40;</span> <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> oBrw:<span style="color: #000000;">lSeekWild</span>, oBrw:<span style="color: #000000;">cSeek</span>, <span style="color: #ff0000;">""</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>, ;<br />                  oBrw:<span style="color: #000000;">SetFocus</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />  <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">70</span>,<span style="color: #000000;">400</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg<br /><br />      <br />@ <span style="color: #000000;">11</span>,<span style="color: #000000;">150</span> <span style="color: #0000ff;">SAY</span> oBrw:<span style="color: #000000;">oSeek</span> <span style="color: #0000ff;">PROMPT</span> oBrw:<span style="color: #000000;">cSeek</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">200</span>,<span style="color: #000000;">10</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">COLOR</span> CLR_BLACK,CLR_YELLOW <span style="color: #0000ff;">PICTURE</span> <span style="color: #ff0000;">'@!'</span><br /><br />   oBrw:<span style="color: #000000;">CreateFromCode</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />     <br />   @ <span style="color: #000000;">11</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"Nuevo   "</span> <span style="color: #0000ff;">OF</span> oDlg  <span style="color: #0000ff;">ACTION</span> oBrw:<span style="color: #000000;">EditSource</span><span style="color: #000000;">&#40;</span> .T. <span style="color: #000000;">&#41;</span><br />   @ <span style="color: #000000;">11</span>, <span style="color: #000000;">20</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"Editar  "</span> <span style="color: #0000ff;">OF</span> oDlg  <span style="color: #0000ff;">ACTION</span> EditPro<span style="color: #000000;">&#40;</span> oBrw <span style="color: #000000;">&#41;</span><br />   @ <span style="color: #000000;">11</span>, <span style="color: #000000;">30</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"Eliminar"</span> <span style="color: #0000ff;">OF</span> oDlg  <span style="color: #0000ff;">ACTION</span> oBrw:<span style="color: #000000;">Delete</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   @ <span style="color: #000000;">11</span>, <span style="color: #000000;">40</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"&Imprimir"</span>  <span style="color: #0000ff;">OF</span> oDlg ;<br />      <span style="color: #0000ff;">ACTION</span> oBrw:<span style="color: #000000;">Report</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Listado"</span>, .T. <span style="color: #000000;">&#41;</span> ;  <span style="color: #B900B9;">// .t. --> wants preview</span><br />      <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">40</span>, <span style="color: #000000;">12</span><br />   @ <span style="color: #000000;">11</span>, <span style="color: #000000;">50</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"&Terminar"</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> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">40</span>, <span style="color: #000000;">12</span><br /><br />   <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span> <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">INIT</span> <span style="color: #000000;">&#40;</span> oBrw:<span style="color: #000000;">SetFocus</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, .f. <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">nil</span><br /><br /> </div>[/code:189dd3lm] PROVEEDORES.PRG [code=fw:189dd3lm]<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> editpro<span style="color: #000000;">&#40;</span>obrw <span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">LOCAL</span> oDlg, oFld, oLbx, Lsalir:=.f.<br />   <span style="color: #00C800;">LOCAL</span> nProve, oProve, cNombre, oNombre, cProvincia, oProvincia<br /><br />   NProve    := PROVE->CODIGO_PRO<br />   cNombre   := PROVE->NOMBRE<br />   cProvincia := PROVE->PROVINCIA<br />   <br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">FROM</span> <span style="color: #000000;">3</span>, <span style="color: #000000;">3</span> <span style="color: #0000ff;">TO</span> <span style="color: #000000;">40</span>, <span style="color: #000000;">70</span> <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Mantenimiento"</span><br /><br />   @ <span style="color: #000000;">10</span>, <span style="color: #000000;">5</span> FOLDEREX oFld <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"&Proveedor"</span>, <span style="color: #ff0000;">"&Productos"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">250</span>, <span style="color: #000000;">100</span><br />   @ <span style="color: #000000;">20</span>, <span style="color: #000000;">5</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">"Código:"</span> <span style="color: #0000ff;">OF</span> oFld:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span>  <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">60</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">PIXEL</span><br />   @ <span style="color: #000000;">20</span>, <span style="color: #000000;">100</span> <span style="color: #0000ff;">SAY</span> oProve <span style="color: #0000ff;">var</span> nProve <span style="color: #0000ff;">OF</span> oFld:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span>  <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">60</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">PIXEL</span><br />   @ <span style="color: #000000;">30</span>, <span style="color: #000000;">5</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">"Razón social"</span> <span style="color: #0000ff;">OF</span> oFld:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">60</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">PIXEL</span><br />   @ <span style="color: #000000;">30</span>, <span style="color: #000000;">100</span> <span style="color: #0000ff;">GET</span> oNombre <span style="color: #0000ff;">VAR</span> cNombre <span style="color: #0000ff;">OF</span> oFld:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span>  <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">100</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">PIXEL</span><br />   @ <span style="color: #000000;">40</span>, <span style="color: #000000;">5</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">"Provincia"</span> <span style="color: #0000ff;">OF</span> oFld:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">60</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">PIXEL</span><br />   @ <span style="color: #000000;">40</span>, <span style="color: #000000;">100</span> <span style="color: #0000ff;">GET</span> oProvincia <span style="color: #0000ff;">VAR</span> cProvincia <span style="color: #0000ff;">OF</span> oFld:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span>  <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">100</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">PIXEL</span><br />   @ <span style="color: #000000;">60</span>, <span style="color: #000000;">50</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"Grabar"</span> <span style="color: #0000ff;">OF</span> oFld:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">40</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">action</span> oDlg:<span style="color: #000000;">end</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   @ <span style="color: #000000;">60</span>, <span style="color: #000000;">150</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"Salir"</span> <span style="color: #0000ff;">OF</span> oFld:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">40</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">&#40;</span>lSalir:=.t., oDlg:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br /><br />     <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span><br />     <br />oFld:<span style="color: #000000;">bAction</span> := <span style="color: #000000;">&#123;</span> || <span style="color: #00C800;">IF</span><span style="color: #000000;">&#40;</span>oFld:<span style="color: #000000;">nOption</span>=<span style="color: #000000;">2</span>,Productos<span style="color: #000000;">&#40;</span>nprove, cnombre, cprovincia, ofld<span style="color: #000000;">&#41;</span>, <span style="color: #00C800;">nil</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <br />                             <br /><span style="color: #00C800;">if</span> lsalir<br />SELE PROVE<br />oBrw:<span style="color: #000000;">Seek</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">""</span> <span style="color: #000000;">&#41;</span><br />oBrw:<span style="color: #0000ff;">refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />PROVE-><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 />oBrw:<span style="color: #000000;">SetFocus</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">endif</span><br /><br />retur <span style="color: #00C800;">nil</span></div>[/code:189dd3lm] PRODUCTOS.PRG [code=fw:189dd3lm]<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> Productos<span style="color: #000000;">&#40;</span>nprove, cnombre, cprovincia, oFld<span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">LOCAL</span> oDlg, oLbx, Lsalir:=.f.                                                       <br /><br />   SELE produ<br /> <br />   produ-><span style="color: #000000;">&#40;</span> ordscope<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span>, nProve <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />   produ-><span style="color: #000000;">&#40;</span> ordscope<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>, nProve <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />   produ-><span style="color: #000000;">&#40;</span> DBSKIP<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />  <br />   <span style="color: #00C800;">IF</span> produ-><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;">0</span><br />   <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"No se encontraron productos"</span> <span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">ENDIF</span><br />   <br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">FROM</span> <span style="color: #000000;">3</span>, <span style="color: #000000;">3</span> <span style="color: #0000ff;">TO</span> <span style="color: #000000;">40</span>, <span style="color: #000000;">70</span> <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Productos"</span><br /> <br /> @ <span style="color: #000000;">1</span>, <span style="color: #000000;">1</span> <span style="color: #0000ff;">XBROWSE</span> oLbx <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">250</span>, <span style="color: #000000;">65</span> <span style="color: #0000ff;">PIXEL</span>;<br />      COLUMNS <span style="color: #ff0000;">"CODIGO_PRO"</span>, <span style="color: #ff0000;">"PRODUCTO"</span>, <span style="color: #ff0000;">"PRECIO"</span> <span style="color: #0000ff;">OF</span> oFld:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">ALIAS</span> <span style="color: #ff0000;">"PRODU"</span>;<br />      HEADERS <span style="color: #ff0000;">"Código proveedor"</span>, <span style="color: #ff0000;">"Produto"</span>, <span style="color: #ff0000;">"Precio"</span>;<br />      COLSIZES <span style="color: #000000;">70</span>, <span style="color: #000000;">300</span>, <span style="color: #000000;">140</span>;<br />      JUSTIFY AL_RIGHT, AL_LEFT, AL_RIGHT;<br />      PICTURES , , <span style="color: #ff0000;">"@E 9,999,999.99"</span> LINES NOBORDER FASTEDIT<br /><br />   oLbx:<span style="color: #000000;">CreateFromCode</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span> <span style="color: #0000ff;">valid</span> lSalir<br />   <br /><span style="color: #00C800;">if</span> lsalir<br />SELE PROVE<br /><span style="color: #00C800;">endif</span><br /><br />retur <span style="color: #00C800;">nil</span></div>[/code:189dd3lm] ¿Qué es lo que falta para que me muestre los productos? Saludos
Ayuda en FOLDEREX
Buenas noches Ramon, no és mejor, que tú haga un *.ZIP con *.DBFS y *.PRGS e ponga en el MegaUpload? [url:1yun4b6b]https&#58;//mega&#46;nz/[/url:1yun4b6b] Refards, saludos.
Ayuda en FOLDEREX
Gracias, João, por tu interés en mi consulta. Aquí tienes el ejemplo sencillo sobre el que estoy trabajando para luego trasladarlo a la aplicación. [url:igat8b5c]https&#58;//mega&#46;nz/file/F0ogAYpb#E-xdvF8sebinL7G3aPDKCM0lVrPIi7ofWxyCcsSdhfw[/url:igat8b5c] Muchas gracias Saludos
Ayuda en FOLDEREX
El dialogo esta creado en el folder, por lo tanto tendrías que hacer referencia a el en lugar de crear otro dialogo. Pero el dialogo tiene que estar creado antes. El problema es que cada vez que hagas click en la pestaña de productos te va a intentar cargar todo del dialogo 2 del folder. [code=fw:2b9mn2se]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><br /><span style="color: #00C800;">FUNCTION</span> Productos<span style="color: #000000;">&#40;</span>nprove, cnombre, cprovincia, oFld<span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> oDlg, oLbx, Lsalir:=.f. &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;<br /><br />&nbsp; &nbsp;SELE produ<br />&nbsp;<br />&nbsp; &nbsp;produ-><span style="color: #000000;">&#40;</span> ordscope<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span>, nProve <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;produ-><span style="color: #000000;">&#40;</span> ordscope<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>, nProve <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;produ-><span style="color: #000000;">&#40;</span> DBSKIP<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp;<br />&nbsp; &nbsp;<span style="color: #00C800;">IF</span> produ-><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;">0</span><br />&nbsp; &nbsp;<span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"No se encontraron productos"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">ENDIF</span><br />&nbsp; &nbsp;<br />&nbsp; &nbsp;<span style="color: #B900B9;">//DEFINE DIALOG oDlg FROM 3, 3 TO 40, 70 TITLE "Productos" &nbsp;Esto no tendria que estar, porque estaría dentro de la segunda pestaña</span><br />&nbsp;<br />&nbsp;@ <span style="color: #000000;">1</span>, <span style="color: #000000;">1</span> <span style="color: #0000ff;">XBROWSE</span> oLbx <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">250</span>, <span style="color: #000000;">65</span> <span style="color: #0000ff;">PIXEL</span>;<br />&nbsp; &nbsp; &nbsp; COLUMNS <span style="color: #ff0000;">"CODIGO_PRO"</span>, <span style="color: #ff0000;">"PRODUCTO"</span>, <span style="color: #ff0000;">"PRECIO"</span> <span style="color: #0000ff;">OF</span> oFld:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">ALIAS</span> <span style="color: #ff0000;">"PRODU"</span>;<br />&nbsp; &nbsp; &nbsp; HEADERS <span style="color: #ff0000;">"Código proveedor"</span>, <span style="color: #ff0000;">"Produto"</span>, <span style="color: #ff0000;">"Precio"</span>;<br />&nbsp; &nbsp; &nbsp; COLSIZES <span style="color: #000000;">70</span>, <span style="color: #000000;">300</span>, <span style="color: #000000;">140</span>;<br />&nbsp; &nbsp; &nbsp; JUSTIFY AL_RIGHT, AL_LEFT, AL_RIGHT;<br />&nbsp; &nbsp; &nbsp; PICTURES , , <span style="color: #ff0000;">"@E 9,999,999.99"</span> LINES NOBORDER FASTEDIT<br /><br />&nbsp; &nbsp;oLbx:<span style="color: #000000;">CreateFromCode</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">// Esto tampoco devería ir ACTIVATE DIALOG oDlg CENTERED valid lSalir </span><br />&nbsp;</div>[/code:2b9mn2se]
Ayuda en FOLDEREX
Que debria hacer y no hace? [url:15y8o86o]https&#58;//imgur&#46;com/4tcaVvn[/url:15y8o86o] [img:15y8o86o]https&#58;//i&#46;imgur&#46;com/4tcaVvn&#46;png[/img:15y8o86o] Regards, saludos.
Ayuda en FOLDEREX
Ramon, algo asi? [code=fw:2f2j4lmn]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><br /><span style="color: #00C800;">FUNCTION</span> Editpro<span style="color: #000000;">&#40;</span> obrw <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> oDlg, oFld, oLbx, Lsalir:=.f.<br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> nProve, oProve, cNombre, oNombre, cProvincia, oProvincia<br />&nbsp; &nbsp;<span style="color: #B900B9;">// Folder 2</span><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> oCodProd, nCodProd, oProdu, cProdNom<br /><br />&nbsp; &nbsp;NProve &nbsp; &nbsp; := PROVE->CODIGO_PRO<br />&nbsp; &nbsp;cNombre &nbsp; &nbsp;:= PROVE->NOMBRE<br />&nbsp; &nbsp;cProvincia := PROVE->PROVINCIA<br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">// Folder 2</span><br />&nbsp; &nbsp;nCodProd &nbsp; := PRODU->CODIGO_PRO<br />&nbsp; &nbsp;cProdNom &nbsp; := PRODU->PRODUCTO<br />&nbsp; &nbsp;<br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">FROM</span> <span style="color: #000000;">3</span>, <span style="color: #000000;">3</span> <span style="color: #0000ff;">TO</span> <span style="color: #000000;">40</span>, <span style="color: #000000;">70</span> <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Mantenimiento"</span><br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">10</span>, <span style="color: #000000;">5</span> FOLDEREX oFld <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"&Proveedor"</span>, <span style="color: #ff0000;">"&Productos"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">250</span>, <span style="color: #000000;">100</span><br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">20</span>, <span style="color: #000000;">5</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">"Código:"</span> <span style="color: #0000ff;">OF</span> oFld:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span> &nbsp;<span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">60</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">PIXEL</span><br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">20</span>, <span style="color: #000000;">100</span> <span style="color: #0000ff;">SAY</span> oProve <span style="color: #0000ff;">var</span> nProve <span style="color: #0000ff;">OF</span> oFld:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span> &nbsp;<span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">60</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">PIXEL</span><br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">30</span>, <span style="color: #000000;">5</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">"Razón social"</span> <span style="color: #0000ff;">OF</span> oFld:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">60</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">PIXEL</span><br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">30</span>, <span style="color: #000000;">100</span> <span style="color: #0000ff;">GET</span> oNombre <span style="color: #0000ff;">VAR</span> cNombre <span style="color: #0000ff;">OF</span> oFld:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span> &nbsp;<span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">100</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">PIXEL</span><br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">40</span>, <span style="color: #000000;">5</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">"Provincia"</span> <span style="color: #0000ff;">OF</span> oFld:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">60</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">PIXEL</span><br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">40</span>, <span style="color: #000000;">100</span> <span style="color: #0000ff;">GET</span> oProvincia <span style="color: #0000ff;">VAR</span> cProvincia <span style="color: #0000ff;">OF</span> oFld:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span> &nbsp;<span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">100</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">PIXEL</span><br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">// folder 2</span><br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">20</span>, <span style="color: #000000;">005</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">"Código:"</span> <span style="color: #0000ff;">OF</span> oFld:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span> &nbsp;<span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">60</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">PIXEL</span><br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">20</span>, <span style="color: #000000;">030</span> <span style="color: #0000ff;">SAY</span> oCodProd <span style="color: #0000ff;">var</span> nCodProd &nbsp;<span style="color: #0000ff;">OF</span> oFld:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span> &nbsp;<span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">60</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">PIXEL</span><br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">20</span>, <span style="color: #000000;">060</span> <span style="color: #0000ff;">SAY</span> oProdu <span style="color: #0000ff;">var</span> cProdNom <span style="color: #0000ff;">OF</span> oFld:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span> &nbsp;<span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">200</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">PIXEL</span><br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">60</span>, <span style="color: #000000;">50</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"Grabar"</span> <span style="color: #0000ff;">OF</span> oFld:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">40</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">action</span> oDlg:<span style="color: #000000;">end</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">60</span>, <span style="color: #000000;">150</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"Salir"</span> <span style="color: #0000ff;">OF</span> oFld:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">40</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">&#40;</span>lSalir:=.t., oDlg:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br /><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span><br />&nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp;<span style="color: #B900B9;">// oFld:bAction := { || IF(oFld:nOption=2,Productos(nprove, cnombre, cprovincia, ofld), nil) }</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> lsalir<br /><br />&nbsp; &nbsp; &nbsp; SELE PROVE<br /><br />&nbsp; &nbsp; &nbsp; oBrw:<span style="color: #000000;">Seek</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">""</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; oBrw:<span style="color: #0000ff;">refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; PROVE-><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; &nbsp; &nbsp; oBrw:<span style="color: #000000;">SetFocus</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">endif</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br />&nbsp;</div>[/code:2f2j4lmn] Regards, saludos.
Ayuda en FOLDEREX
Gracias, César y João por vuestro interés. César, he probado eliminado el diálogo, como dices, pero sigue sin mostrar nada. João, lo que pones en tu ejemplo es lo que quiero, pero lo del folder 2 lo quiero en otro prg. En mi aplicación lo tengo todo en un prg, como tú lo has hecho, pero en mi aplicación el prg se ha hecho muy grande y por eso quiero hacer un prg por cada pestaña del folder Mira las imágenes de los tres prg: principal.prg [img:1eu4s1yk]https&#58;//imgur&#46;com/a/yK1MX66[/img:1eu4s1yk] proveedores.prg [img:1eu4s1yk]https&#58;//imgur&#46;com/a/jipyi6A[/img:1eu4s1yk] productos.prg [img:1eu4s1yk]https&#58;//imgur&#46;com/a/1ToAqQh[/img:1eu4s1yk]
Ayuda en FOLDEREX
El problema es que a veces no entiendo el idioma. jajajaja Mira que simples: [code=fw:39zcpbrf]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><br /><span style="color: #00C800;">FUNCTION</span> Editpro<span style="color: #000000;">&#40;</span> obrw <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> oDlg, oFld, oLbx, Lsalir:=.f.<br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">/*<br />&nbsp; &nbsp;LOCAL nProve, oProve, cNombre, oNombre, cProvincia, oProvincia<br />&nbsp; &nbsp;// Folder 2<br />&nbsp; &nbsp;LOCAL oCodProd, nCodProd, oProdu, cProdNom<br />&nbsp; &nbsp;*/</span><br /><br />&nbsp; &nbsp;MEMVAR nProve, oProve, cNombre, oNombre, cProvincia, oProvincia<br />&nbsp; &nbsp;MEMVAR oCodProd, nCodProd, oProdu, cProdNom<br /><br />&nbsp; &nbsp;NProve &nbsp; &nbsp; := PROVE->CODIGO_PRO<br />&nbsp; &nbsp;cNombre &nbsp; &nbsp;:= PROVE->NOMBRE<br />&nbsp; &nbsp;cProvincia := PROVE->PROVINCIA<br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">// Folder 2</span><br />&nbsp; &nbsp;nCodProd &nbsp; := PRODU->CODIGO_PRO<br />&nbsp; &nbsp;cProdNom &nbsp; := PRODU->PRODUCTO<br />&nbsp; &nbsp;<br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">FROM</span> <span style="color: #000000;">3</span>, <span style="color: #000000;">3</span> <span style="color: #0000ff;">TO</span> <span style="color: #000000;">40</span>, <span style="color: #000000;">70</span> <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Mantenimiento"</span><br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">10</span>, <span style="color: #000000;">5</span> FOLDEREX oFld <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"&Proveedor"</span>, <span style="color: #ff0000;">"&Productos"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">250</span>, <span style="color: #000000;">100</span><br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">// DATOS DE LA EMPRESA, ETC.</span><br />&nbsp; &nbsp;RAZON<span style="color: #000000;">&#40;</span> oFld <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">// PRODUCTOS</span><br />&nbsp; &nbsp;INVENTARIO<span style="color: #000000;">&#40;</span> oFld <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">// Continue.. Facil... Pero no mucho... jajajaja.</span><br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">// FOLDER 3: ... 3.PRG</span><br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">// FOLDER 4: ... 4.PRG</span><br /><br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">// BUTTONS...</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span><br />&nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> lsalir<br /><br />&nbsp; &nbsp; &nbsp; SELE PROVE<br /><br />&nbsp; &nbsp; &nbsp; oBrw:<span style="color: #000000;">Seek</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">""</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; oBrw:<span style="color: #0000ff;">refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; PROVE-><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; &nbsp; &nbsp; oBrw:<span style="color: #000000;">SetFocus</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">endif</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #B900B9;">// FOLDER 1: RAZON.prg</span><br /><span style="color: #00C800;">FUNCTION</span> RAZON<span style="color: #000000;">&#40;</span> oFld <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;MEMVAR nProve, oProve, cNombre, oNombre, cProvincia, oProvincia<br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">20</span>, <span style="color: #000000;">5</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">"Código:"</span> <span style="color: #0000ff;">OF</span> oFld:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span> &nbsp;<span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">60</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">PIXEL</span><br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">20</span>, <span style="color: #000000;">100</span> <span style="color: #0000ff;">SAY</span> oProve <span style="color: #0000ff;">var</span> nProve <span style="color: #0000ff;">OF</span> oFld:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span> &nbsp;<span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">60</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">PIXEL</span><br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">30</span>, <span style="color: #000000;">5</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">"Razón social"</span> <span style="color: #0000ff;">OF</span> oFld:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">60</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">PIXEL</span><br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">30</span>, <span style="color: #000000;">100</span> <span style="color: #0000ff;">GET</span> oNombre <span style="color: #0000ff;">VAR</span> cNombre <span style="color: #0000ff;">OF</span> oFld:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span> &nbsp;<span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">100</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">PIXEL</span><br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">40</span>, <span style="color: #000000;">5</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">"Provincia"</span> <span style="color: #0000ff;">OF</span> oFld:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">60</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">PIXEL</span><br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">40</span>, <span style="color: #000000;">100</span> <span style="color: #0000ff;">GET</span> oProvincia <span style="color: #0000ff;">VAR</span> cProvincia <span style="color: #0000ff;">OF</span> oFld:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span> &nbsp;<span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">100</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">PIXEL</span><br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><br /><span style="color: #B900B9;">// FOLDER 2: &nbsp;INVENTAR.PRG</span><br /><span style="color: #00C800;">FUNCTION</span> INVENTARIO<span style="color: #000000;">&#40;</span> oFld <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;MEMVAR oCodProd, nCodProd, oProdu, cProdNom<br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">20</span>, <span style="color: #000000;">005</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">"Código:"</span> <span style="color: #0000ff;">OF</span> oFld:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span> &nbsp;<span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">60</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">PIXEL</span><br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">20</span>, <span style="color: #000000;">030</span> <span style="color: #0000ff;">SAY</span> oCodProd <span style="color: #0000ff;">var</span> nCodProd &nbsp;<span style="color: #0000ff;">OF</span> oFld:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span> &nbsp;<span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">60</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">PIXEL</span><br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">20</span>, <span style="color: #000000;">060</span> <span style="color: #0000ff;">SAY</span> oProdu <span style="color: #0000ff;">var</span> cProdNom <span style="color: #0000ff;">OF</span> oFld:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span> &nbsp;<span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">200</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">PIXEL</span><br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">60</span>, <span style="color: #000000;">50</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"Grabar"</span> <span style="color: #0000ff;">OF</span> oFld:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">40</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">action</span> oDlg:<span style="color: #000000;">end</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">60</span>, <span style="color: #000000;">150</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"Salir"</span> <span style="color: #0000ff;">OF</span> oFld:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">40</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">&#40;</span>lSalir:=.t., oDlg:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br />&nbsp;</div>[/code:39zcpbrf] Regards, saludos
Ayuda en FOLDEREX
Muchas gracias, João. Siempre tan amable y dispuesto a ayudar. Saludos
Ayuda en FOLDEREX
Hola a todos Después de un tiempo -por cuestiones de enfernedad- he vuelto a retomar el tema del folderex con un prg por cada pestaña y con bbdd relacionales. He construido el ejemplo poniendo un prg separado por cada pestaña. El ejemplo es muy sencillo:proveedores->proveedor y productos y quesos de este proveedor. A la hora de crear los índices, que es donde tengo el problema, hago lo siguiente: [code=fw:p9aqfe6o]<div class="fw" id="{CB}" style="font-family: monospace;"><br />  <br />   USE PROVEEDOR <span style="color: #00C800;">NEW</span> SHARED <span style="color: #0000ff;">ALIAS</span> <span style="color: #ff0000;">"PROVE"</span><br />   <span style="color: #0000ff;">INDEX</span> <span style="color: #0000ff;">ON</span> PROVE->CODIGO_PRO <span style="color: #0000ff;">TO</span> CODPROVE<br />   SET <span style="color: #0000ff;">INDEX</span> <span style="color: #0000ff;">TO</span> CODPROVE<br />   <br />   USE PRODUCTOS <span style="color: #00C800;">NEW</span> SHARED <span style="color: #0000ff;">ALIAS</span> <span style="color: #ff0000;">"PRODU"</span><br />   <span style="color: #0000ff;">INDEX</span> <span style="color: #0000ff;">ON</span> PRODU->CODIGO_PRO <span style="color: #0000ff;">TO</span> CODPRODU<br />   SET <span style="color: #0000ff;">INDEX</span> <span style="color: #0000ff;">TO</span> CODPRODU<br />   <br />   <span style="color: #0000ff;">INDEX</span> <span style="color: #0000ff;">ON</span> PRODU->CODIGO_PRO <span style="color: #0000ff;">TO</span> TIPO_PRO <span style="color: #00C800;">FOR</span> PRODU->PRODUCTO=<span style="color: #ff0000;">"QUESO"</span><br />   SET <span style="color: #0000ff;">INDEX</span> <span style="color: #0000ff;">TO</span> TIPO_PRO</div>[/code:p9aqfe6o] Pues bien, cuando selecciono el proveedor, sale un FOLDEREX con tres pestañas: "Proveedor", "Productos" y "Quesos", y en las pestañas "Productos" y "Quesos", siempre me trabaja con el último índice, es decir, el de "Quesos" aun cuando selecciono la pestaña "Productos" y con ordsetfocus("productos") siguen saliendo los datos del índice "Quesos", que es justamente el último creado. He probado con set order to pero tampoco me lo cambia. ¿Alguna idea? Os adjunto el zip con todos los archivos del ejemplo. [url:p9aqfe6o]https&#58;//mega&#46;nz/file/004WSRRY#McLEhvdkqNP1LR8BiVxzSQZ9-kKxz6xmaEFtLQEVW3A[/url:p9aqfe6o] Un saludo
Ayuda en FOLDEREX
Ramón, en este caso, no use FOLDEREX, use un DIALOGO de Botones para llamar xBrowses() diferentes. Regards, saludos.
Ayuda en FOLDEREX
Gracias, João, lo voy a probar. Un saludo
Ayuda en FOLDEREX
Ramón, mira se te gusta. Ejemplo super simples: Download completo: [url:3nvnmh12]https&#58;//mega&#46;nz/file/cUNnFQzS#xCowTCU53J1pgnHEGePGQyxpq0a6PrLUYwzigikWQOI[/url:3nvnmh12] Regards, saludos.
Ayuda en FOLDEREX
Perfecto, João. Muchas gracias Un saludo
Ayuda en comandos xHarbour
Emigre todos mis programas de Clipper a xHarbour, pero ahora estamos por poner el Diccionario de Datos Advantage, las tablas son ADTS. Necesito ayuda de todo. Si tienen algun ejemplo de copiar registros de una tabla ADT a otra Adt, utilizando el diccionario, como funciona este comando AdsCopyTableContents() AYUDAAA AUXILIOOOOO!!!
Ayuda en comandos xHarbour
Deseo borrar Tablas, copiar registros de una tabla a otra, copiar estructuras, pues manipular las Tablas que estan en un Diccionario de Datos el tipo de Tablas son ADTS, que comandos son los que se usan?, eso es lo que no se. Gracias por contestarme. [quote="jrestojeda":3ie91bhd]Hola Yessica, Que tipo de tablas estás usando?? Que es lo que quieres hacer precisamente???[/quote:3ie91bhd]
Ayuda en comandos xHarbour
Hola Yessica, Que tipo de tablas estás usando?? Que es lo que quieres hacer precisamente???
Ayuda en comandos xHarbour
Yessica: Dáte una vuelta por este blog, algo encontraras que te puede servir. <!-- m --><a class="postlink" href="http://sqlcmd.blogspot.com/">http://sqlcmd.blogspot.com/</a><!-- m --> Saludos
Ayuda en comandos xHarbour
Hola yo utilizao algo asi, claro se debe ajustar a tus necesiadades [code=fw:v9tjwl5v]<div class="fw" id="{CB}" style="font-family: monospace;"><br />&nbsp; &nbsp; &nbsp; rddRegister<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"ADS"</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; rddsetdefault<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"ADS"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; Set <span style="color: #00C800;">SERVER</span> <span style="color: #00C800;">LOCAL</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">//Set SERVER REMOTE</span><br /><br />&nbsp; &nbsp; &nbsp; Set FILETYPE <span style="color: #0000ff;">TO</span> ADT <span style="color: #B900B9;">//CDX</span><br /><br />&nbsp; &nbsp; &nbsp;adsConnect60<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"diccionario.add"</span>, <span style="color: #000000;">1</span>, <span style="color: #ff0000;">"ADSSYS"</span>, <span style="color: #ff0000;">""</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp;adsRightsCheck<span style="color: #000000;">&#40;</span> .F. <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp;ADSSETDATEFORMAT<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"DD/MM/YYYY"</span><span style="color: #000000;">&#41;</span><br />&nbsp;</div>[/code:v9tjwl5v] saludos Marcelo [quote="Yessica":v9tjwl5v]Que tal un saludo a todos, permitanme explicarles la ayuda que pido. Necesito saber como manipular Tablas desde mis programas, estas tablas estan en un Diccionario de Datos, tengo el Advantage, estoy apenas iniciando en esto, alguien podria ayudarme, me urge mucho necesito preparar mis programas para que se puedan utilizar las tablas en el Diccionario de Datos.[/quote:v9tjwl5v]
Ayuda en comandos xHarbour
Muchas gracias por contestarme, pues son ADTs, ADI, mira tengo problemas en como borrar los registros de una Tabla, como copiar los registro de una hacia otra con ciertas condiciones. Ojala y puedas ayudarme te lo agradeceria mucho.
Ayuda en modificacion de la clase TReport
Hola amigos del foro: Tengo creado un reporte MULTILINEA y necesito que los subtotales y totales sean tb multilinea. Hice las modificaciones necesarias a las clases [b:1pip1779]TReport[/b:1pip1779], [b:1pip1779]TRColumn [/b:1pip1779]y [b:1pip1779]TRGroup [/b:1pip1779]y esta casi terminado. El problema surge cuando el [b:1pip1779]total debe imprimirse entre hojas[/b:1pip1779], es decir cuando el total es multilinea y [i:1pip1779]una de las lineas de datos debe imprimirse en una hoja[/i:1pip1779] y [i:1pip1779]la siguiente linea de datos en la siguiente hoja[/i:1pip1779]. El error se produce en el metodo ::PageTotal(), despues de imprimir la primera linea llamo al metodo ::EndLine( ), para que avance ::nRow; pero ::EndLine( ) llama a ::EndPage() y este a ::PageTotal() y el [b:1pip1779]proceso se cicla[/b:1pip1779] la pregunta es: ¿Donde debo hacer el control para que se puedan imprimir las dos lineas juntas? De antemano gracias a todos. Atentamente, Rolando Cochabamba - Bolivia
Ayuda en programa
Hola a todos: Hoy os pido, ayuda sobre todo a los master, por un motivo no relacionado con FiveWin sino con C++: Estoy haciendo un programa en el cual quiero hacer una cosa que en FiveWin lo hace muy sencillo y en C++ no se como se hace y si es posible hacerlo. Me explico: Yo con FiveWin hago a = "función()" &a y lo que resulta es que ejecuta "función()". Esto no se como se hace y si es posible hacerlo en C++, es una cosa parecida a lo que hace el GET cuando ponemos la clausula VALID con una función, que ejecuta esa función. Un saludo y gracias. Carlos
Ayuda en programa
Hola Carlos, hasta donde sé, eso no es posible. C++ es un lenguaje compilado, puro, donde los simbolos y variable se reemplazan por su dirección en tiempo de compilación. De la misma forma que no existen PUBLICs ni PRIVATEs, me temo que eso no sería viable. Desconozco que problema quieres resolver con una macro, tal vez puedas usar metodos virtuales si estas haciendo POO. Un saludo
Ayuda en programa
El nombre de una función en C es su puntero. Es decir si tenemos la función Test(), Test es la dirección de Test() y por lo tanto se puede "saltar" a ella y ejecutarla, dada su puntero. En realidad la diferencia entre C++ y C, es un array "invisible" (lpVtbl) que C++ construye de punteros a funciones (que se convierten en métodos al recibir automaticamente Self como primer parámetro). Clipper 5 heredó mucho esta filosofía de C++, y en los RDDs, en los GT, etc. usó esta técnica de arrays de punteros a funciones. Es la forma en que se puede simular el C++ usando solo C. Harbour lo usa igualmente.
Ayuda en programa
Hola a todos: Gracias por vuestras respuestas. Antonio no se si me estas diciendo que se puede o que no se puede. Si Harbour y Clipper se realizaron C tendrán una manera de realizar la operativa y si es así podrías orientarme con algún ejemplo. Un saludo Carlos
Ayuda en programa
Carlos, Claro que se puede. Aqui tienes un ejemplo: [code=fw:3qfzx54a]<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;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;Test<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #00D7D7;">#pragma</span> BEGINDUMP<br /><br /><span style="color: #00D7D7;">#include</span> <windows.h><br /><span style="color: #00D7D7;">#include</span> <hbapi.h><br /><br /><span style="color: #00C800;">static</span> void Test<span style="color: #000000;">&#40;</span> void <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp;MessageBox<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span>, <span style="color: #ff0000;">"dentro de Test()"</span>, <span style="color: #ff0000;">"ok"</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span>;<br /><span style="color: #000000;">&#125;</span><br /><br />typedef void <span style="color: #000000;">&#40;</span> * PFUNC <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#40;</span> void <span style="color: #000000;">&#41;</span>;<br /><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> TEST <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp;PFUNC pFunction = Test;<br /><br />&nbsp; &nbsp;pFunction<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;<br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #00D7D7;">#pragma</span> ENDDUMP &nbsp;</div>[/code:3qfzx54a]
Ayuda en programa
Son babosadas, el que sabe, sabe. <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> estas son las explicaciones que vale siempre tener a mano, a guardar post. gracias antonio. salu2 carlos vargas
Ayuda en programa
Maestro !
Ayuda en programa
Hola Antonio: Ante todo disculpa por la tardanza pero la semana pasada no pude hacer nada sobre este tema: Y gracias por tu respuesta el que sabe, sabe. Solo dos preguntas: 1.- En tu ejemplo en el Main() pones solo Test(), como yo expuse era que una variable valiese "Test()" y después siempre pongo & y la variable, para ejecutar esa variable por lo que si modifico tu código a: [code=fw:27zmwe0i]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   cVar = <span style="color: #ff0000;">"Test()"</span><br />   &cVar<br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #00D7D7;">#pragma</span> BEGINDUMP<br /><br /><span style="color: #00D7D7;">#include</span> <windows.h><br /><span style="color: #00D7D7;">#include</span> <hbapi.h><br /><br /><span style="color: #00C800;">static</span> void Test<span style="color: #000000;">&#40;</span> void <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />   MessageBox<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span>, <span style="color: #ff0000;">"dentro de Test()"</span>, <span style="color: #ff0000;">"ok"</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span>;<br /><span style="color: #000000;">&#125;</span><br /><br />typedef void <span style="color: #000000;">&#40;</span> * PFUNC <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#40;</span> void <span style="color: #000000;">&#41;</span>;<br /><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> TEST <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />   PFUNC pFunction = Test;<br /><br />   pFunction<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;<br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #00D7D7;">#pragma</span> ENDDUMP<br /> </div>[/code:27zmwe0i] ¿Esto funcionaría?. Pero lo utilizo para mas cosas como la declaración de variables o para quitar OBJETOS de pantalla. Por ejemplo: [code=fw:27zmwe0i]<div class="fw" id="{CB}" style="font-family: monospace;"><br />PROCEDURE QuiBotPan<span style="color: #000000;">&#40;</span>zOpc,zOpc1<span style="color: #000000;">&#41;</span><br />zNum = zOpc<br /><span style="color: #00C800;">do</span> <span style="color: #00C800;">While</span> .T.<br />  <span style="color: #00C800;">do</span> <span style="color: #00C800;">case</span><br />    <span style="color: #00C800;">case</span> zNum > <span style="color: #000000;">9</span><br />      zVar = <span style="color: #ff0000;">"xPul"</span>  + str<span style="color: #000000;">&#40;</span>zNum,<span style="color: #000000;">2</span>,<span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span><br />    <span style="color: #00C800;">otherwise</span><br />      zVar = <span style="color: #ff0000;">"xPul0"</span> + str<span style="color: #000000;">&#40;</span>zNum,<span style="color: #000000;">1</span>,<span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span><br />  <span style="color: #00C800;">endcase</span><br />  &zVar:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />  zNum = zNum + <span style="color: #000000;">1</span><br />  <span style="color: #00C800;">if</span> zNum = zOpc1<span style="color: #000000;">+1</span><br />    exit<br />  <span style="color: #00C800;">endif</span><br /><span style="color: #00C800;">enddo</span><br /><span style="color: #00C800;">RETURN</span> <span style="color: #000000;">&#40;</span><span style="color: #00C800;">NIL</span><span style="color: #000000;">&#41;</span></div>[/code:27zmwe0i] Que lo que hace es quitar botones desde un numero a otro. Aquí también funcionaría. 2.- En tu ejemplo usas una función de harbour "HB_FUNC" para llamar a la otra y usas "hbapi.h" como expresé yo lo quiero hacer en C++, tendría que incluir esta .h para poder hacerlo o lo tendría que hacer de otra manera. Un saludo y gracias de nuevo. Carlos
Ayuda en programa
Carlos, Necesito que me muestres un ejemplo en C++ de lo que estás haciendo o de lo que quieres hacer
Ayuda en programa
Hola Antonio: El ejemplo puede ser lo mismo que te expuse en el otro post pero en C++, algo asi: [code=fw:11c0mxj7]<div class="fw" id="{CB}" style="font-family: monospace;"><br />....<br />void  QuiBotPan<span style="color: #000000;">&#40;</span>int, int<span style="color: #000000;">&#41;</span><br />....<br /><br />Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />....<br />QuiBotPan<span style="color: #000000;">&#40;</span><span style="color: #000000;">2</span>, <span style="color: #000000;">6</span><span style="color: #000000;">&#41;</span><br />....<br /><br /><br />void  QuiBotPan<span style="color: #000000;">&#40;</span>int zOpc, int zOpc1<span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />char* zVar;<br />zNum = zOpc;<br /><span style="color: #00C800;">do</span>  <br /><span style="color: #000000;">&#123;</span><br />  <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span>zNum > <span style="color: #000000;">9</span><span style="color: #000000;">&#41;</span><br />    <span style="color: #000000;">&#123;</span><br />      zVarC = <span style="color: #ff0000;">"xPul"</span>;<br />      itoc<span style="color: #000000;">&#40;</span>zNum,zNumC,<span style="color: #000000;">2</span><span style="color: #000000;">&#41;</span>;<br />    <span style="color: #000000;">&#125;</span><br />  <span style="color: #00C800;">else</span><br />    <span style="color: #000000;">&#123;</span><br />      zVarC = <span style="color: #ff0000;">"xPul0"</span>;<br />      itoc<span style="color: #000000;">&#40;</span>zNum,zNumC,<span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span>;<br />    <span style="color: #000000;">&#125;</span><br />  strcpy<span style="color: #000000;">&#40;</span>&zVar<span style="color: #000000;">&#91;</span> <span style="color: #0000ff;">strlen</span><span style="color: #000000;">&#40;</span>zVarC<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#93;</span>, zNumC<span style="color: #000000;">&#41;</span>; <br />  CloseWindow<span style="color: #000000;">&#40;</span>&zVar<span style="color: #000000;">&#41;</span>;<br />  zNum++<br /><span style="color: #000000;">&#125;</span><br /><span style="color: #00C800;">While</span> zNum < zOpc1<span style="color: #000000;">+1</span>;<br /><span style="color: #000000;">&#125;</span></div>[/code:11c0mxj7] Imaginemos una Ventana Principal en donde tengamos otras 10 llamadas secuencialmente desde xPul01 a xPul10. Esta función debería cerrar las ventanas creadas desde xPul02 a xPul06, con la función "CloseWindow(&zVar)". Que es básicamente lo que quiero que yo creo una variable ("zVar")con unos valores ("xPul02", "xPul03", "xPul04", "xPul05" y "xPul06") y después mediante una opción ("&" o lo que sea) el programa reemplace en la función lo que vale la variable ("CloseWindow(xPul02)", "CloseWindow(xPul03)", "CloseWindow(xPul04)", "CloseWindow(xPul05)", "CloseWindow(xPul06)"). Un saludo Carlos
Ayuda en programa
Carlos, Tendrias que mantener un array y recorrer el array cerrando las ventanas. Por los nombres con comillas no puedes hacerlo. C++ no mantiene una tabla de símbolos como en Harbour.
Ayuda en programa
Hola Antonio: Gracias por tu orientación, esto funcionaría con el primer caso crear un array con "test()" y luego poner: array [1]; Ejecutaría "test()" Un saludo Y gracias. Carlos
Ayuda en programa
Puedes declarar un array del tipo que quieras, por ejemplo "punteros a funciones" y luego usar esos valores para lo que necesites. Tienes algo ya funcionando que pueda probar aqui ?
Ayuda en programa
Hola Antonio: Todavía no estoy buscando todo lo que necesito y no tengo nada enlazado. Pero ya me has orientado y si necesito mas ayuda te la pediré. Gracias por todo. Un saludo Calros
Ayuda en programa
Carlos, En el 2012 y por probar, comencé a escribir una librería en C++ a la que llamé FiveCpp que simulaba un poco el comportamiento de FWH pero desarrollada en C++. Tal vez pueda interesarte. Aun no se con certeza lo que necesitas <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Ayuda en programa
Este es el tutor02 de FiveCpp <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> [code=fw:15vkga0u]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveCpp.h"</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> oWnd = DefineWindow<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Hello world!"</span> <span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp;oWnd.<span style="color: #0000ff;">Activate</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;<br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span></div>[/code:15vkga0u]
Ayuda en programa
Aqui lo tienes por si quieres revisarlo: [url:2c7alxk2]https&#58;//bitbucket&#46;org/fivetech/fivecpp[/url:2c7alxk2]
Ayuda en programa
Hola Muchas gracias le echo un vistazo para ver si me ahorra tiempo. Un saludo Carlos
Ayuda en programa
Hola Antonio: Te puedo solicitar ayuda de C++ una cosa que ya tengo. Un saludo Carlos
Ayuda en programa
Hola Antonio: Te puedo solicitar ayuda de C++ una cosa que ya tengo. Si es así mándame un privado a <!-- e --><a href="mailto:carlos@colthop.es">carlos@colthop.es</a><!-- e -->. Un saludo Carlos
Ayuda en programa
email enviado <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Ayuda en trsay
Talvez esta lineas puedan ayudarte. Utilizo Say sensitivo, modificado, de Ramón Avandaño. REDEFINE TSAYT oPla1 PROMPT "Hola " ID 203 OF oDlg COLOR nClrTxt oPla1:lWantClick = .t. oPla1:bLClicked = { || cPlani:="PLA1",oPlani:Refresh(),oDlg:End() }
Ayuda en trsay
Hola a todos y espero su colaboracion si fuera bueno, bueno ahi va, estoy usando la clase trsay que es colocar say sin fondo o mejor dicho con fondo transparante, lo que sucede es que de fondo en mi dialogo defini una imagen y en ella unso say que varian de valor, x lo que usaba los say nativos y se veia el fondo, use el trsay y se acabo el problema, pero ahora tengo la necesidad de dar click sobre los say para que me realizen una operacion , x lo cual no puedo hacerlo , mas si con los say nativos, Bueno espero prontas noticias como resolver este problema , gracias a todos
Ayuda en un listbox
Amigos del foro, buenas noches. En un control del tipo listbox, cual sería el orden en que se deben de color de los siguientes metodos? oLbx_10:UpStable () ,; oLbx_10:Refresh () ,; oLbx_10:SetFocus () ,; Gracias
Ayuda en un listbox
No comprendo bien la pregunta. Mira se ayuda, porfa. [code=fw:1gx960gu]<div class="fw" id="{CB}" style="font-family: monospace;"><br />&nbsp; &nbsp;<span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">LISTBOX</span> oLbx FIELDS &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#40;</span> cAlias <span style="color: #000000;">&#41;</span>->GRUPOCOD &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; , ; <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#40;</span> cAlias <span style="color: #000000;">&#41;</span>->GRUPONOME &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#40;</span> cAlias <span style="color: #000000;">&#41;</span>->GRUPODESCR &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; , ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#40;</span> cAlias <span style="color: #000000;">&#41;</span>->TIPO &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; , ; <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; TRANSF<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> cAlias<span style="color: #000000;">&#41;</span>->VRVENDA, <span style="color: #ff0000;">"@E 9,999,999.99"</span> <span style="color: #000000;">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SPACE<span style="color: #000000;">&#40;</span><span style="color: #000000;">01</span><span style="color: #000000;">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; HEADERS <span style="color: #000000;">&#40;</span> OemToAnsi<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"GRUPO CàD:"</span> &nbsp; <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#40;</span> OemToAnsi<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"GRUPO NOME:"</span> &nbsp;<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#40;</span> OemToAnsi<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"GRUPO DESCRI€ÇO:"</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#40;</span> OemToAnsi<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"TIPO:"</span> &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#40;</span> OemToAnsi<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"VR. VENDA:"</span> &nbsp; <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#40;</span> OemToAnsi<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">" - "</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; FIELDSIZES <span style="color: #000000;">0090</span>, <span style="color: #000000;">0120</span>, <span style="color: #000000;">0300</span>, <span style="color: #000000;">0090</span>, <span style="color: #000000;">0120</span>, <span style="color: #000000;">01</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">COLOR</span> CLR_BROWN, CLR_LGREEN &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">FONT</span> oFnt <span style="color: #0000ff;">UPDATE</span> <span style="color: #0000ff;">ID</span> <span style="color: #000000;">101</span> <span style="color: #0000ff;">OF</span> oDlgTipo &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ON</span> DBLCLICK<span style="color: #000000;">&#40;</span> lConfirma := .T., oDlgTipo:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;oLbx:<span style="color: #000000;">bKeyDown</span> := <span style="color: #000000;">&#123;</span> | nKey | <span style="color: #00C800;">IF</span> <span style="color: #000000;">&#40;</span> nKey = VK_RETURN, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#40;</span> lConfirma := .T., oDlgTipo:<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; &nbsp;<span style="color: #B900B9;">//-----------------------------------------------------------------------// </span><br />&nbsp; &nbsp;oLbx:<span style="color: #000000;">nClrBackHead</span> &nbsp;:= CLR_WHITE &nbsp;<span style="color: #B900B9;">//LGREEN &nbsp;// Cor do Fundo do Cabe‡alho</span><br />&nbsp; &nbsp;oLbx:<span style="color: #000000;">nClrText</span> &nbsp; &nbsp; &nbsp;:= <span style="color: #000000;">&#123;</span>|| nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">000</span>, <span style="color: #000000;">000</span>, <span style="color: #000000;">000</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #B900B9;">// Cor do Fundo do Cabe‡alho</span><br />&nbsp; &nbsp;oLbx:<span style="color: #000000;">nClrBackFocus</span> := CLR_WHITE &nbsp; <span style="color: #B900B9;">// Cor do Cursor Em Cima do Ötem</span><br />&nbsp; &nbsp;oLbx:<span style="color: #000000;">nClrForeFocus</span> := CLR_HRED &nbsp; &nbsp;<span style="color: #B900B9;">// Cor da letra da barra ativa</span><br />&nbsp; &nbsp;oLbx:<span style="color: #000000;">nClrForeHead</span> &nbsp;:= CLR_BLACK &nbsp; <span style="color: #B900B9;">// Cor nos Headers - Cabe‡alhos</span><br />&nbsp; &nbsp;oLbx:<span style="color: #000000;">nClrPane</span> &nbsp; &nbsp; &nbsp;:= <span style="color: #000000;">&#123;</span> || IIF<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> oLbx:<span style="color: #000000;">cAlias</span> <span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span> OrdKeyNo<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> %<span style="color: #000000;">2</span> == <span style="color: #000000;">0</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CLR_WHITE, CLR_WHITE <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp;<span style="color: #B900B9;">// nLineStyle de 0 a 8</span><br />&nbsp; &nbsp;<span style="color: #B900B9;">// Lines Styles - Vide wBrowse.Prg</span><br />&nbsp; &nbsp;oLbx:<span style="color: #000000;">nColAct</span> &nbsp; &nbsp; &nbsp; := <span style="color: #000000;">3</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// Onde o Cursor Vai Iniciar na coluna</span><br />&nbsp; &nbsp;oLbx:<span style="color: #000000;">nLineStyle</span> &nbsp; &nbsp;:= <span style="color: #000000;">3</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// Estilo das linhas nos dados da Browse</span><br />&nbsp; &nbsp;oLbx:<span style="color: #000000;">lCellStyle</span> &nbsp; &nbsp;:= .T. &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// Somente pinta a c‚lula em que o cursor esta no momento</span><br />&nbsp; &nbsp;oLbx:<span style="color: #000000;">aJustify</span> := <span style="color: #000000;">&#123;</span> .T., .F., .F., .F., .F., .F. <span style="color: #000000;">&#125;</span> <br />&nbsp; &nbsp;oLbx:<span style="color: #000000;">lMChange</span> &nbsp; &nbsp; &nbsp;:= .F. &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// Desabilita Mousemove - Movimentos do Mouse Congelam. </span><br />&nbsp; &nbsp;oLbx:<span style="color: #000000;">SetFocus</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// Refocus on The Browse - Ativa o Foco na ListBox(Browse)</span><br />&nbsp; &nbsp;oLbx:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// Estabiliza o Browse/Listbox - Refresca os Dados. </span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// Pinta os Dados Novamente </span><br />&nbsp; &nbsp;<span style="color: #B900B9;">//-----------------------------------------------------------------------//</span><br />&nbsp;</div>[/code:1gx960gu] Saludos.
Ayuda en un listbox
Efectivamente Primero el setfocus() Y luego el regreso() Enviado desde mi FIG-LX3 mediante Tapatalk
Ayuda en un listbox
[quote="admsoporte":10wacxxj]Efectivamente Primero el setfocus() Y luego el regreso() Enviado desde mi FIG-LX3 mediante Tapatalk[/quote:10wacxxj]Refresh() Enviado desde mi FIG-LX3 mediante Tapatalk
Ayuda enviar reporte a Excel
Compañeros buen dia, Estoy queriendo habilitar el envío de reportes a Excel pero no logro hacerlo, ya pude habilitar el boton de excel con oReport:bInit := { || .T. } sin embargo solo me envia el encabezado del reporte sin los datos y en algunos me genera un error (6) deleting enhanced metafile y solo me envia a excel el encabezado, alguna idea de que podré estar haciendo mal? Saludos Eduardo Borondón Muñiz [code=fw:c8fv5ybq]<div class="fw" id="{CB}" style="font-family: monospace;">REPORT   oReporte                                                                                  ;<br /><span style="color: #0000ff;">TITLE</span>    <span style="color: #ff0000;">"Reporte de compras del dia: "</span> + Fec<span style="color: #000000;">&#40;</span> dDesde <span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">" al dia: "</span> + Fec<span style="color: #000000;">&#40;</span> dHasta <span style="color: #000000;">&#41;</span>,             ;<br />         <span style="color: #ff0000;">"Fecha: "</span> + Fec<span style="color: #000000;">&#40;</span> Date<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">"     Hora: "</span> + Time<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>                                        ;<br />HEADER   oPublic:<span style="color: #000000;">oEmpresa</span>:<span style="color: #000000;">cNombre</span>  <span style="color: #0000ff;">CENTER</span>                                                          ;<br />FOOTER   <span style="color: #ff0000;">"Página: "</span> + Str<span style="color: #000000;">&#40;</span>oReporte:<span style="color: #000000;">nPage</span>,<span style="color: #000000;">3</span><span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">CENTER</span>                                                 ;<br /><span style="color: #0000ff;">FONT</span>     oFont                                                                                     ;<br />CAPTION  <span style="color: #ff0000;">"Reporte de compras"</span>                                                                      ;<br />PREVIEW<br /><br />COLUMN <span style="color: #0000ff;">TITLE</span>  <span style="color: #ff0000;">"Fecha"</span>                                                                              ;<br />       <span style="color: #0000ff;">SIZE</span>   <span style="color: #000000;">10</span>                                                                                   ;<br />       <span style="color: #0000ff;">CENTER</span>                                                                                      ;<br />       <span style="color: #00C800;">DATA</span>   <span style="color: #ff0000;">" "</span><br /><br />COLUMN <span style="color: #0000ff;">TITLE</span>  <span style="color: #ff0000;">"Vendedor"</span>                                                                           ;<br />       <span style="color: #0000ff;">SIZE</span>   <span style="color: #000000;">40</span>                                                                                   ;<br />       <span style="color: #0000ff;">CENTER</span>                                                                                      ;<br />       <span style="color: #00C800;">DATA</span>   <span style="color: #ff0000;">" "</span><br /><br />COLUMN <span style="color: #0000ff;">TITLE</span>  <span style="color: #ff0000;">"Oro"</span>                                                                                ;<br />       <span style="color: #0000ff;">SIZE</span>   <span style="color: #000000;">10</span>                                                                                   ;<br />       <span style="color: #0000ff;">CENTER</span>                                                                                      ;<br />       <span style="color: #00C800;">DATA</span>   <span style="color: #ff0000;">" "</span><br /><br />COLUMN <span style="color: #0000ff;">TITLE</span>  <span style="color: #ff0000;">"Plata"</span>                                                                              ;<br />       <span style="color: #0000ff;">SIZE</span>   <span style="color: #000000;">10</span>                                                                                   ;<br />       <span style="color: #0000ff;">CENTER</span>                                                                                      ;<br />       <span style="color: #00C800;">DATA</span>   <span style="color: #ff0000;">" "</span><br /><br />COLUMN <span style="color: #0000ff;">TITLE</span>  <span style="color: #ff0000;">"Entregado"</span>                                                                          ;<br />       <span style="color: #0000ff;">SIZE</span>   <span style="color: #000000;">10</span>                                                                                   ;<br />       <span style="color: #0000ff;">CENTER</span>                                                                                      ;<br />       <span style="color: #00C800;">DATA</span>   <span style="color: #ff0000;">" "</span><br /><br />ENDREPORT<br /><br />oReporte:<span style="color: #000000;">nSeparator</span> := <span style="color: #000000;">10</span><br /><br />oReporte:<span style="color: #000000;">bInit</span> := <span style="color: #000000;">&#123;</span> || .T. <span style="color: #000000;">&#125;</span> <br /><br /><span style="color: #0000ff;">ACTIVATE</span> REPORT oReporte                                                                           ;<br />         <span style="color: #00C800;">WHILE</span>  <span style="color: #000000;">&#40;</span> RCompras2<span style="color: #000000;">&#40;</span> dDesde, dHasta, oReporte <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>                                          ;<br />         <span style="color: #0000ff;">ON</span> STARTPAGE PrintLogoRep<span style="color: #000000;">&#40;</span> oReporte <span style="color: #000000;">&#41;</span><br /><br />oFont := <span style="color: #00C800;">NIL</span><br /><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> RCompras2<span style="color: #000000;">&#40;</span> dDesde, dHasta, oReporte <span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">LOCAL</span> oQuery, cConsulta, nOro, nPlata<br /><br />nOro := nPlata := <span style="color: #000000;">0</span><br /><br />cConsulta := <span style="color: #ff0000;">"SELECT FECHA, IMPORTE, TIPO, VENDEDOR, FEC_ENTREGA  "</span>                           +     ;<br />             <span style="color: #ff0000;">"FROM compras "</span>                                                                  +     ;<br />             <span style="color: #ff0000;">"WHERE FECHA >= '"</span> + DtoS<span style="color: #000000;">&#40;</span> dDesde <span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">"' AND FECHA <= '"</span> + DtoS<span style="color: #000000;">&#40;</span> dHasta <span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">"' "</span> +     ;<br />             <span style="color: #ff0000;">"AND DELETED = 'N' "</span>                                                             +     ;<br />             <span style="color: #ff0000;">"ORDER BY FECHA, TIPO"</span><br /><br />oQuery    := oPublic:<span style="color: #000000;">oMySql</span>:<span style="color: #000000;">Query</span><span style="color: #000000;">&#40;</span> cConsulta <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">If</span> oQuery:<span style="color: #000000;">nRecCount</span> > <span style="color: #000000;">0</span><br />   <span style="color: #00C800;">Do</span> <span style="color: #00C800;">While</span> !oQuery:<span style="color: #000000;">Eof</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />      oReporte:<span style="color: #000000;">StartLine</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />      oReporte:<span style="color: #0000ff;">Say</span><span style="color: #000000;">&#40;</span>  <span style="color: #000000;">1</span>, Fec<span style="color: #000000;">&#40;</span> oQuery:<span style="color: #000000;">FieldGet</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"FECHA"</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>, <span style="color: #000000;">1</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span><br />      oReporte:<span style="color: #0000ff;">Say</span><span style="color: #000000;">&#40;</span>  <span style="color: #000000;">2</span>, oQuery:<span style="color: #000000;">FieldGet</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"VENDEDOR"</span> <span style="color: #000000;">&#41;</span>, <span style="color: #000000;">1</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span><br /><br />      <span style="color: #00C800;">If</span> oQuery:<span style="color: #000000;">FieldGet</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"TIPO"</span> <span style="color: #000000;">&#41;</span> == <span style="color: #000000;">1</span> <span style="color: #B900B9;">// oro</span><br />         oReporte:<span style="color: #0000ff;">Say</span><span style="color: #000000;">&#40;</span>  <span style="color: #000000;">3</span>, Transform<span style="color: #000000;">&#40;</span> oQuery:<span style="color: #000000;">FieldGet</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"IMPORTE"</span> <span style="color: #000000;">&#41;</span>,<span style="color: #ff0000;">"999,999"</span> <span style="color: #000000;">&#41;</span>,<span style="color: #000000;">1</span>, <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span><br />         nOro   += oQuery:<span style="color: #000000;">FieldGet</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"IMPORTE"</span> <span style="color: #000000;">&#41;</span><br />       <span style="color: #00C800;">else</span><br />         oReporte:<span style="color: #0000ff;">Say</span><span style="color: #000000;">&#40;</span>  <span style="color: #000000;">4</span>, Transform<span style="color: #000000;">&#40;</span> oQuery:<span style="color: #000000;">FieldGet</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"IMPORTE"</span> <span style="color: #000000;">&#41;</span>,<span style="color: #ff0000;">"999,999"</span> <span style="color: #000000;">&#41;</span>,<span style="color: #000000;">1</span>, <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span><br />         nPlata += oQuery:<span style="color: #000000;">FieldGet</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"IMPORTE"</span> <span style="color: #000000;">&#41;</span><br />      <span style="color: #00C800;">EndIf</span><br /><br />      oReporte:<span style="color: #0000ff;">Say</span><span style="color: #000000;">&#40;</span>  <span style="color: #000000;">5</span>, Fec<span style="color: #000000;">&#40;</span> oQuery:<span style="color: #000000;">FieldGet</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"FEC_ENTREGA"</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>, <span style="color: #000000;">1</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span><br /><br />      oReporte:<span style="color: #000000;">EndLine</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />      oQuery:<span style="color: #000000;">Skip</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">EndDo</span><br /><br />   oReporte:<span style="color: #000000;">StartLine</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   oReporte:<span style="color: #000000;">EndLine</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   oReporte:<span style="color: #000000;">StartLine</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   oReporte:<span style="color: #000000;">aColumns</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#93;</span>:<span style="color: #0000ff;">Separator</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   oReporte:<span style="color: #000000;">aColumns</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">4</span> <span style="color: #000000;">&#93;</span>:<span style="color: #0000ff;">Separator</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   oReporte:<span style="color: #000000;">EndLine</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   oReporte:<span style="color: #000000;">StartLine</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   oReporte:<span style="color: #0000ff;">Say</span><span style="color: #000000;">&#40;</span>  <span style="color: #000000;">3</span>, Transform<span style="color: #000000;">&#40;</span> nOro,  <span style="color: #ff0000;">"999,999"</span> <span style="color: #000000;">&#41;</span>,<span style="color: #000000;">1</span>, <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span><br />   oReporte:<span style="color: #0000ff;">Say</span><span style="color: #000000;">&#40;</span>  <span style="color: #000000;">4</span>, Transform<span style="color: #000000;">&#40;</span> nPlata,<span style="color: #ff0000;">"999,999"</span> <span style="color: #000000;">&#41;</span>,<span style="color: #000000;">1</span>, <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span><br />   oReporte:<span style="color: #000000;">StartLine</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">EndIf</span><br /><br />oQuery := <span style="color: #00C800;">NIL</span><br /><br /><span style="color: #00C800;">Return</span> .F.<br /> </div>[/code:c8fv5ybq]
Ayuda enviar reporte a Excel
Se me pasó incluir que tengo FWH 19.05 y que al generar el reporte a PDF me lo hace sin problemas. Saludos! Eduardo Borondón Muñiz
Ayuda enviar reporte a Excel
Hola. Ya intestaste con esto?: [code=fw:x2nhsnq2]<div class="fw" id="{CB}" style="font-family: monospace;"> &nbsp; &nbsp; &nbsp; &nbsp;oReport:<span style="color: #000000;">bSkip</span> := <span style="color: #000000;">&#123;</span>|| oQry:<span style="color: #000000;">Skip</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; oReport:<span style="color: #000000;">bInit</span> := <span style="color: #000000;">&#123;</span>|| oQry:<span style="color: #000000;">Gotop</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <br />&nbsp;</div>[/code:x2nhsnq2] Saludos.
Ayuda enviar reporte a Excel
Hola Francisco, Gracias por respoder, si ya lo habia intentado asi y es el mismo resultado, creo que el problema viene por como yo hago los reportes que en la clausula WHILE lo desvío hacia otra funcion donde yo controlo cada renglón y cada columna que se genera en el reporte, tomé el codigo del metodo toExcel de la clase Report y estoy creando un metodo propio para ver si logro hacerlo funcionar. Mil Gracias por tu interés Eduardo Borondón Muñiz
Ayuda enviar reporte a Excel
[quote="EBM":8ay99s1s]Hola Francisco, Gracias por respoder, si ya lo habia intentado asi y es el mismo resultado, creo que el problema viene por como yo hago los reportes que en la clausula WHILE lo desvío hacia otra funcion donde yo controlo cada renglón y cada columna que se genera en el reporte, tomé el codigo del metodo toExcel de la clase Report y estoy creando un metodo propio para ver si logro hacerlo funcionar. Mil Gracias por tu interés Eduardo Borondón Muñiz[/quote:8ay99s1s] Por cierto, antes de que escribieras, estaba por preguntarte si se podía saber por qué utilizas una function independiente, si bien lo puedes hacer todo en el oReport. Saludos.