topic
stringlengths
1
63
text
stringlengths
1
577k
wordtable.prg sample
Hello, I tried to run Fivewin wordtable.prg sample. Can someone please help me. Thanks in advance Otto Application =========== Path and name: c:\FWH\samples\wordtable.exe (32 bits) Size: 1,967,616 bytes Compiler version: xHarbour 1.2.3 Intl. (SimpLex) (Build 20130326) FiveWin Version: FWHX 13.02 Windows version: 6.1, Build 7601 Service Pack 1 Time from start: 0 hours 0 mins 1 secs Error occurred at: 04/28/13, 00:25:10 Error description: Error Word.Application:ACTIVEDOCUMENT:TABLES:ADD:ROWS:ITEM:CELLS:ITEM:RANGE/0 S_OK: INSERTAFTER Args: [ 1] = D / / Stack Calls =========== Called from: => TOLEAUTO:INSERTAFTER( 0 ) Called from: wordtable.prg => MAIN( 77 )
wordtable.prg sample
Otto [code=fw:3eolci6d]<div class="fw" id="{CB}" style="font-family: monospace;"><br />&nbsp; &nbsp;:<span style="color: #000000;">Cells</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">3</span><span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Range</span>:<span style="color: #000000;">InsertAfter</span><span style="color: #000000;">&#40;</span> Dtoc<span style="color: #000000;">&#40;</span>Customer->HIREDATE<span style="color: #000000;">&#41;</span> &nbsp;<span style="color: #000000;">&#41;</span><br />&nbsp;</div>[/code:3eolci6d] Regards
wordtable.prg sample
Inserting empty dates errors out. Mr Navarro's suggestion to use DTOC() for date values is good. Even better is to skip exporting empty dates.
wordtable.prg sample
Dear Mr. Rao, I try to open a word document but get following error. Do you know what the reason can be. Thanks in advance Otto [code=fw:1bnazjxm]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; <span style="color: #00C800;">Local</span> oWord &nbsp;<br />&nbsp; &nbsp;*----------------------------------------------------------<br />&nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; oWord := CreateObject<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Word.Application"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; <span style="color: #0000ff;">msginfo</span><span style="color: #000000;">&#40;</span> oWord:<span style="color: #000000;">Version</span> <span style="color: #000000;">&#41;</span><br />&nbsp; oWord:<span style="color: #000000;">ChangeFileOpenDirectory</span> <span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"C:<span style="color: #000000;">\f</span>wh<span style="color: #000000;">\s</span>amples<span style="color: #000000;">\"</span> )<br />&nbsp; oWord:Documents:Open:FileName( "</span>VOffert.docx<span style="color: #ff0000;">" )<br />&nbsp;oWord:Visible := .T.<br />&nbsp; &nbsp; <br />return nil<br /><br />//----------------------------------------------------------------------------//<br />&nbsp; &nbsp;<br /></span></div>[/code:1bnazjxm] Application =========== Path and name: C:\fwh\samples\word.exe (32 bits) Size: 1,779,200 bytes Compiler version: xHarbour build 1.2.1 Intl. (SimpLex) (Rev. 6715) FiveWin Version: FWHX 12.03 Windows version: 6.1, Build 7601 Service Pack 1 Time from start: 0 hours 0 mins 1 secs Error occurred at: 04/28/13, 09:14:44 Error description: Error Word.Application:DOCUMENTS/9 'Item' ist keine Eigenschaft.: OPEN Args: Stack Calls =========== Called from: source\rtl\win32ole.prg => TOLEAUTO:OPEN( 0 ) Called from: C:\fwh\samples\word.prg => MAIN( 13 )
wordtable.prg sample
Hello, I resolved my problem: "File block setting" setup in WINWORD was wrong. Best regards, Otto
wordtable.prg sample
MAILMERGE The next error: Error description: Error Word.Application:ACTIVEDOCUMENT:MAILMERGE/3 DISP_E_MEMBERNOTFOUND: EXECUTE I resolved by changing the registry key: HKEY_CURRENT_USER\Software\Microsoft\Office\14.0\Word\Options "SQLSecurityCheck" = dword: 000000001.Registrierungs-Editor starten. Best regards, Otto
wordtable.prg sample
no file conversion message box in Word 2010 in merge text HKEY_CURRENT_USER\Software\Microsoft \Office\12.0\Word\Options DefaultCpg"=dword:0000fde9 für UTF8 Best regards, Otto
work area not in use > dbskip
I'm converting a small to 16 bit program to 32 bit as my test case before I move on to my much larger program. The program uses tcbrowse.ch and report.ch. I get the error message: work area not in use > dbskip.Program works fine in 16 bits. Any idea why I'm getting the error. It says its at the line where I "activate" the oDlg that contains my browse.All dbskips within the program are indicated as follows: dbf->(dbskip())Help.
work area not in use > dbskip
Harvey,Please do a MsgInfo( Alias() ) before calling DbSkip() to check the selected workarea
work area not in use > dbskip
Antonio I never call a dbskip().. I did the alisa() call and the alias is correct. The first call in error log is: Called from: => DBSKIP(0).I fixed the prg so no dbskip() is called and still get the error.This occurs when attempting to load a browse in the oDlg. Here is the error.logApplication=========== Path and name: F:\FWH\cashflow\CODATA.EXE (32 bits) Size: 1,283,584 bytes Time from start: 0 hours 0 mins 3 secs Error occurred at: 07/15/08, 20:31:58 Error description: Error DBCMD/2001 Workarea not in use: DBSKIPStack Calls=========== Called from: => DBSKIP(0) Called from: => TCBROWSE:PAINT(0) Called from: => TCBROWSE:DISPLAY(0) Called from: => TCBROWSE:HANDLEEVENT(0) Called from: .\source\classes\WINDOW.PRG => _FWH(0) Called from: => DIALOGBOX(0) Called from: => TDIALOG:ACTIVATE(0) Called from: codata.prg => CODATA(160)
work area not in use > dbskip
That means when the dialog is activated the alias is not active or already closed.Normally this happens when we close the dbf immediately after we activate the window or a nonmodal dialog. In such cases we should close the workarea inside valid clause of the window or nonmodal dialog
work area not in use > dbskip
Harvey,Yes, please do as Nageswararao explains you:If you use a non modal dialogbox, please check that you are not closing the workarea further on, as the execution will not stop on a non modal dialogbox.
work area not in use > dbskip
Program is not nonmodal and there is no close in the prg. The dialog with the browse is called from another dialog which opens fine. I set a msgInfo(alias()) on init when activating the dialog with the browse and the alias is correct. I think it has something to do with the browse. I think Tcbrowse calls for a dbskip in the class. All works well in 16 bit but not in 32 bit.Help
work area not in use > dbskip
Harvey,Could you provide a small and self contained example to reproduce the error ? thanks
work area not in use > dbskip
Harvey,Please provide the portion of the code where you create the browse.
work area not in use > dbskip
Just sent an email with a zip file all things needed in zip file.
work area not in use > dbskip
Harvey,Please resend it again renamed as .ZOP file, as gmail blocks .ZIP files. Thanks!
work area not in use > dbskip
Send the file. Let me know what might be missing. I received a message it didn't like pkzip.exe stripped it out . Don't understand. Never sent pkzip.exe. So let me know what eles you need. Thanks for your assistance.
work area not in use > dbskip
Harvey,Ok, I got your files and its already working here.The problem is that you are mixing two different kinds of FiveWin browses: TCBrowse and TXBrowse, and you should only use one: TXBrowse.In your resources, please change in dialogbox CODATA: "TCBrowse" into "TXBrowse".In your PRG use #include "xbrowse.ch" instead of #include "tcbrowse.ch"Here you have a working sample built from some portions of your code. Please review how I build it and modify your code accordingly, thanks:test.prg[code:2l4d4zc9] #include "FiveWin&#46;ch" #include "xbrowse&#46;ch" function Main&#40;&#41; local oDlg, oDbf, oBrw // SET RESOURCES TO "global&#46;dll"&#46; I am using Test&#46;rc for this test USE Codata ALIAS cont1 DATABASE oDbf DEFINE DIALOG oDlg RESOURCE "Codata" REDEFINE XBROWSE oBrw ID 101 of oDlg ADD COLUMN TO oBrw; DATA &#123;|| if&#40; oDbf&#58;industry == repli&#40;'-', 30&#41;, repli&#40;' ', 30&#41;, ; if&#40; oDbf&#58;industry == repli&#40;'=', 30&#41;, repli&#40;'_', 30&#41;, oDbf&#58;industry&#41;&#41; &#125;; SIZE 125 LEFT HEADER "Industry" COLOR CLR_BLACK, CLR_WHITE ADD COLUMN TO oBrw; DATA &#123;|| if&#40; oDbf&#58;industry == repli&#40;'-', 30&#41;, repli&#40;' ', 30&#41;, ; if&#40; oDbf&#58;industry == repli&#40;'=', 30&#41;, repli&#40;'_', 30&#41;, oDbf&#58;state&#41;&#41; &#125;; SIZE 80 LEFT HEADER "State" COLOR CLR_BLACK, CLR_WHITE oBrw&#58;SetoDbf&#40; oDbf &#41; ACTIVATE DIALOG oDlg CENTERED return nil [/code:2l4d4zc9] Test.rc: [code:2l4d4zc9] CODATA DIALOG -4, 15, 624, 333 STYLE 0x4L | WS_POPUP | WS_CAPTION | WS_SYSMENU CAPTION "Financial Summary" FONT 8, "MS Sans Serif" &#123; CONTROL "", 101, "TXBrowse", 0 | WS_CHILD | WS_VISIBLE | WS_BORDER | WS_VSCROLL | WS_TABSTOP, 12, 8, 600, 292 PUSHBUTTON "&Done", 4002, 554, 308, 54, 18, BS_CENTER | BS_VCENTER | WS_TABSTOP PUSHBUTTON "Sort ", 102, 470, 308, 54, 18, BS_CENTER | BS_VCENTER | WS_TABSTOP &#125; [/code:2l4d4zc9]
work area not in use > dbskip
Thanks for the very quick response. I'll be working on it tonight when your sleeping.Thanks again. Let you know how it works.
work area not in use > dbskip
Antonioworking great.
workshop - font e colori
Preciso subito che sono un principiante alle prime armi con FWH. Sto facendo l'ennesimo tentativo per partire (uso ancora il buon vecchio CA-CLIPPER 5.2 ma è proprio ora che mi decida!!), e mi trovo alle prese con WORKSHOP 4.5 per creare un .res con all'interno una dialog con bottoni, testi, ecc. che poi vado a richiamare nel .prg Al riguardo una (per voi) banalissima domanda: con workshop come posso cambiare gli attributi font/colore singolarmente su ogni oggetto (ID) ? Esempio: il font del testo di un button, il colore di sfondo del button, il font di un semplice testo, ecc.ecc. Ho intuito che Workshop in questo ha dei (giustificatissimi) limiti che poi da quel che ho capito dovrei risolvere con le REDEFINES da sorgente FWH, ma voi conoscendo questi limiti in quale direzione mi consigliate di procedere? In sintesi: dove mi consigliate di fissare il confine ottimale tra l'uso di WORKSHOP e l'uso di FWH da sorgente per queste esigenze estetiche? Spero di essermi spiegato sufficentemente bene. grazie in anticipo. max
workshop - font e colori
[quote="max":hl2x50du]Al riguardo una (per voi) banalissima domanda: con workshop come posso cambiare gli attributi font/colore singolarmente su ogni oggetto (ID) ?[/quote:hl2x50du] No. Disegnare una risorsa significa semplicemente specificare tipo, stile e posizione dei controlli. Niente altro. Il resto lo devi fare necessariamente da codice. EMG
wowexe.exe y ntvdm.exe
Hola, cada vez que inicio un programa en FW16 en windows XP, si ejecutan siempre estos 2 programitas. Yo se que es algo para que funcionen estas aplicaciones en Xp. LA cosa es que al cerrar el programa de FW16 estos programas se quedan ejecutandose... y cada vez que entro y salgo del programa de FW16 como que acomulan algo a tal grado que se me acaban los recursos o se pone lenta la maquina despues de muchas entradas y salidas. Segun yo estoy cerrando todo bien. Que deberia de checar al momento de cerrar ? Saludos Rene
wowexe.exe y ntvdm.exe
Rene, FW termina automaticamente la aplicación, revisa samples\tutor02.prg. Es la forma correcta de terminar una aplicación, no hay que llamar a QUIT ni a nada más.
wowexe.exe y ntvdm.exe
ANTONIO, Asi como dices termino yo mis programas pero sigue quedandose esos procesos abiertos. Es mas si corro el programa de tuto02.exe y lo cierro esos 2 procesos se quedan igual abiertos .... Rene
wrapper a GDI+
Alguien a probado a realiza un wrapper a GDIPLUS.DLL Me gustaria utilizar el LoadImage de GDI+, pero me falta el fichero de cabecera ¿Alguna idea? Gracias
wrapper a GDI+
Antolin, Con el Borland 5.82 te vienen los ficheros de cabecera del GdiPlus <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
wrapper a GDI+
Gracias Antonio. Buscaré el 5.82 por ahí. ¿Funcionará el FW 2.7 con ese Borland? o habrá que modificar algo... Saludos
write a test on Image control
Silvio, creo que el rectangulo de coordenadas donde muestras el texto tendría que ser mas grande [code=fw:2xmnweu8]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">Function</span> &nbsp;myfunc<span style="color: #000000;">&#40;</span>hdc,oBold,cCod<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;FW_SayText<span style="color: #000000;">&#40;</span> hDC, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cCod, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span><span style="color: #000000;">150</span>,<span style="color: #000000;">32</span>,<span style="color: #000000;">170</span>, <span style="color: #000000;">250</span> <span style="color: #000000;">&#125;</span>,,oBold, CLR_GREEN, &nbsp;, .f. <span style="color: #000000;">&#41;</span> &nbsp;<span style="color: #B900B9;">// x1,y1 hasta x2,y2</span><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br />&nbsp;</div>[/code:2xmnweu8]
write a test on Image control
[quote="cmsoft":1ynscsy5]Silvio, creo que el rectangulo de coordenadas donde muestras el texto tendría que ser mas grande [code=fw:1ynscsy5]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">Function</span>  myfunc<span style="color: #000000;">&#40;</span>hdc,oBold,cCod<span style="color: #000000;">&#41;</span><br />           FW_SayText<span style="color: #000000;">&#40;</span> hDC, ;<br />           cCod, ;<br />          <span style="color: #000000;">&#123;</span><span style="color: #000000;">150</span>,<span style="color: #000000;">32</span>,<span style="color: #000000;">170</span>, <span style="color: #000000;">250</span> <span style="color: #000000;">&#125;</span>,,oBold, CLR_GREEN,  , .f. <span style="color: #000000;">&#41;</span>  <span style="color: #B900B9;">// x1,y1 hasta x2,y2</span><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /> </div>[/code:1ynscsy5][/quote:1ynscsy5] only if i hover over it then i see something, the procedure has some gets that the user has to fill in, every time i fill a get i refresh ccod . back in the day i used a say control on the dialog and did oSay:setext(ccod ) now I wanted to insert the string above an image if I use btnbmp I have no problems and the function correctly writes cCod but if I use ximage I don't see the writing printed on the image
write a test on Image control
resolved need oImage:refresh()
write a test on Image control
Me alegro Silvio!
write a test on Image control
I have an image control with ximage ( no bitmap no btnbmp) [code=fw:1fks1ymq]<div class="fw" id="{CB}" style="font-family: monospace;"><br /> @  <span style="color: #000000;">240</span>,  <span style="color: #000000;">90</span> XIMAGE oImage ;<br />             FILENAME <span style="color: #ff0000;">".<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\v</span>erde.jpg"</span>  NOBORDER ;<br />             <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">250</span>,<span style="color: #000000;">200</span> ;<br />             <span style="color: #0000ff;">OF</span> oFrmFiscale ;<br />             <span style="color: #0000ff;">UPDATE</span><br />            oImage:<span style="color: #000000;">bRClicked</span>  := <span style="color: #000000;">&#123;</span> || <span style="color: #00C800;">NIL</span>  <span style="color: #000000;">&#125;</span><br />            oImage:<span style="color: #000000;">ltransparent</span>:=.t.<br />            oImage:<span style="color: #000000;">nUserControl</span> :=<span style="color: #000000;">0</span><br /> </div>[/code:1fks1ymq] and I try to write a text into [code=fw:1fks1ymq]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">Static</span> <span style="color: #00C800;">Function</span> Calcola<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /> <span style="color: #00C800;">local</span> oBold<br />          <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oBold <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">'Tahoma'</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">-16</span>  BOLD<br /><span style="color: #B900B9;">////my calculation</span><br />cCod :=<span style="color: #ff0000;">"wwwwwwwwwwwww"</span><br /><br /> oImage:<span style="color: #000000;">bPainted</span>:= <span style="color: #000000;">&#123;</span> |hDC|myfunc<span style="color: #000000;">&#40;</span>hdc,oBold,cCod<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#125;</span><br /><br /><br /><span style="color: #00C800;">return</span>  <span style="color: #00C800;">nil</span><br /><br /> <span style="color: #00C800;">Function</span>  myfunc<span style="color: #000000;">&#40;</span>hdc,oBold,cCod<span style="color: #000000;">&#41;</span><br />           FW_SayText<span style="color: #000000;">&#40;</span> hDC, ;<br />           cCod, ;<br />          <span style="color: #000000;">&#123;</span> <span style="color: #000000;">150</span>, <span style="color: #000000;">32</span>, <span style="color: #000000;">108</span>, <span style="color: #000000;">25</span> <span style="color: #000000;">&#125;</span>,,oBold, CLR_GREEN,  , .f. <span style="color: #000000;">&#41;</span><br /><br />       <span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span></div>[/code:1fks1ymq] why not run ?
writing date()+time() to Sql Table
To All I know I have done this before but I just cannot remember how ?? oRs:Fields("Date"):Value := date()+time() does not work oRs:Fields("Date"):Value := dtoc(Date())+Time() does not work Thanks Rick Lipkin
writing date()+time() to Sql Table
To All Here is the answer ... oRs:Fields("Date"):Value := DateTime() Thanks Rick Lipkin
writing fixed headers to Excel sheet
How can I write fixed headers to fields written to Excel sheet using OLE. [code:1ym432dc] FUNCTION buildexcel&#40;&#41; *------------------- LOCAL cPath &#58;= "E&#58;\programs\clipper\fwh\sitex\test&#46;XLS" local oExcel , oBook, oSheet LOCAL nline&#58;=1 oExcel = CREATEOLEOBJECT&#40; "Excel&#46;Application" &#41; oBook = OleInvoke&#40; OleGetProperty&#40; oExcel, "WorkBooks" &#41;, "Add" &#41; oSheet = OleGetProperty&#40; oBook, "WorkSheets", 1 &#41; select 3 use mach index mach3 set filter to alltrim&#40;3->mc_cu_acct&#41;=="2125447" 3->&#40;DBGOTOP&#40;&#41;&#41; DO WHILE !&#40;3&#41;->&#40;EOF&#40;&#41;&#41; OleSetProperty&#40; OleGetProperty&#40; oSheet, "Cells", nLine, 1 &#41;, "Value", &#40;3&#41;->mc_type &#41; OleSetProperty&#40; OleGetProperty&#40; oSheet, "Cells", nLine, 2 &#41;, "Value", &#40;3&#41;->mc_model &#41; OleSetProperty&#40; OleGetProperty&#40; oSheet, "Cells", nLine, 3 &#41;, "Value", &#40;3&#41;->mc_serial &#41; OleSetProperty&#40; OleGetProperty&#40; oSheet, "Cells", nLine, 4 &#41;, "Value", &#40;3&#41;->mc_brn &#41; nLine&#58;=nLine+1 &#40;3&#41;->&#40;DBSKIP&#40;1&#41;&#41; ENDDO OleSetProperty&#40; oExcel, "Visible", &#46;t&#46; &#41; OLEInvoke&#40;oExcel,"Quit"&#41; RETURN NIL [/code:1ym432dc]
writing fixed headers to Excel sheet
[quote="Ehab Samir Aziz":2k3em5x1] select 3 use mach index mach3 set filter to alltrim(3->mc_cu_acct)=="2125447" [/quote:2k3em5x1] First, I advise you, to open files without "area number" and afterward use only its alias: use mach index mach3 NEW Sele mach3 [quote="Ehab Samir Aziz":2k3em5x1] How can I write fixed headers to fields written to Excel sheet using OLE [/quote:2k3em5x1] a) One way: FOR nCol := 1 TO FCOUNT() oSheet:Cells( nRow, nCol ):Value := FieldName( nCol ) NEXT WHILE !EOF() nLine++ FOR nCol := 1 TO FCOUNT() oSheet:Cells( nLine, nCol ):Value := FieldGet( nCol ) NEXT DBSKIP() ENDDO b) Another way: oSheet:Cells( 3, 1 ):Value := "TYPE" oSheet:Cells( 3, 2 ):Value := "MODEL" oSheet:Cells( 3, 3 ):Value := "SERIAL" oSheet:Range( "A3"):HorizontalAlignment:=7 // centered title // // set font and colors FOR nCol := 1 TO FCOUNT() oSheet:Cells( 3, nCol ):Font:Size := 10 oSheet:Cells( 3, nCol ):Font:Bold := .t. oSheet:Cells( 3, nCol ):Font:Color:= 8388608 NEXT
writing fixed headers to Excel sheet
with your another way I got error : no exported method cells. but if I added those lines before the loop it goes well. [code:33elcj1y] OleSetProperty&#40; OleGetProperty&#40; oSheet, "Cells", 3, 1 &#41;, "Value", "Type" &#41; OleSetProperty&#40; OleGetProperty&#40; oSheet, "Cells", 3, 2 &#41;, "Value", "Model" &#41; OleSetProperty&#40; OleGetProperty&#40; oSheet, "Cells", 3, 3 &#41;, "Value", "Serial" &#41; OleSetProperty&#40; OleGetProperty&#40; oSheet, "Cells", 3, 4 &#41;, "Value", "Branch" &#41; [/code:33elcj1y]
writing fixed headers to Excel sheet
If you are adding a lot of records I like to use the clipboard and paste the information into Excel. You would be suprised at how much faster it is than updating every cell. More than 100 times faster. Here is a little sample of how I do it using your fields. [code:2igrh55h] // nStart is paste counter nStart &#58;= nCounter cMemo &#58;= '' do while &#46;not&#46; mach->&#40; eof&#40;&#41; &#41; // use tab between fields for delimiter // all variables have to be character type // if numeric or date set excel column type beforehand cMemo += mach->mc_type // No tab at the beginning of line cMemo += chr&#40;9&#41;+mach->mc_model cMemo += chr&#40;9&#41;+mach->mc_serial cMemo += chr&#40;9&#41;+mach->mc_brn cMemo += CRLF // end each line with crlf nCounter++ skip // paste every 100 records or eof&#40;&#41; &#40; no more records &#41; // I do this to limit memory required for memo var if mod&#40; nCounter, 100 &#41; = 0 &#46;or&#46; mach->&#40; eof&#40;&#41; &#41; oClp &#58;= TClipBoard&#40;&#41;&#58;New&#40;&#41; if oClp&#58;Open&#40;&#41; oClp&#58;SetText&#40; cMemo &#41; oClp&#58;Close&#40;&#41; endif // select cell for paste oSheet&#58;Cells&#40; nStart, 1 &#41;&#58;Select&#40;&#41; oSheet&#58;paste&#40;&#41; // reset paste counter nStart &#58;= nCounter cMemo &#58;= '' endif enddo // clear clipboard buffer oClp &#58;= TClipBoard&#40;&#41;&#58;New&#40;&#41; if oClp&#58;Open&#40;&#41; oClp&#58;SetText&#40; '' &#41; oClp&#58;Close&#40;&#41; endif [/code:2igrh55h]
writing fixed headers to Excel sheet
Application =========== Path and name: E:\programs\clipper\FWH\sitex\sitex.exe (32 bits) Size: 1,465,344 bytes Time from start: 0 hours 0 mins 9 secs Error occurred at: 26/07/2006, 23:01:49 Error description: Error BASE/1004 No exported method: CELLS Any good links to OLE issues. I need those tutorials about opening Excel sheets from inside a FWH application .
wrong Desciption of WaitRun() Error
hi, [quote:yixjs7n1] 0 System was out of memory, executable file was corrupt, or relocations were invalid. 2 File was not found. 3 Path was not found. ...[/quote:yixjs7n1] as i found out 0 == OK so it must be [quote:yixjs7n1] 1 System was out of memory[/quote:yixjs7n1] please change it in Help File
wrong Desciption of WaitRun() Error
Dear Jimmy, Added to the wiki. Many thanks [url:avrlup2u]https&#58;//github&#46;com/FiveTechSoft/FiveTech_wiki[/url:avrlup2u]
wrong Desciption of WaitRun() Error
Antonio, How to use this wiki? Do we have to download and host it ourselves because everything seems to be pure text files Thank you
wrong Desciption of WaitRun() Error
Dear Hua, github allows you to search in the wiki repo
wrong ICON display on Windows Explorer Status Bar
Dear All , The Application ICON which display on Windows Task Bar its correct but its NOT displayed same ICON on Windows Explorer Status Bar as attached snapshot. [url:2vfas6b2]https&#58;//ibb&#46;co/jwtN9nz[/url:2vfas6b2]
wrong ICON display on Windows Explorer Status Bar
Keep your application icon as the first icon in your RC file.
www.fivewin.info
Hello Patrick, on FiveWin in Practice part 2 By Patrick Mast the links a broken. Regards, Otto <!-- m --><a class="postlink" href="http://www.fivewin.info/html/general_info.php?id=24">http://www.fivewin.info/html/general_info.php?id=24</a><!-- m --> <!-- m --><a class="postlink" href="http://www.fivewin.info/html/images/FiveWi3.jpg">http://www.fivewin.info/html/images/FiveWi3.jpg</a><!-- m -->
www.fivewin.info
[quote="Otto":so9l1cu1]Hello Patrick, on FiveWin in Practice part 2 By Patrick Mast the links a broken. Regards, Otto <!-- m --><a class="postlink" href="http://www.fivewin.info/html/general_info.php?id=24">http://www.fivewin.info/html/general_info.php?id=24</a><!-- m --> <!-- m --><a class="postlink" href="http://www.fivewin.info/html/images/FiveWi3.jpg">http://www.fivewin.info/html/images/FiveWi3.jpg</a><!-- m -->[/quote:so9l1cu1] Hello Otto, Did not know this site was still used <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) --> Will try to update asap. Thanks for noticing it. Patrick
www.fivewin.info
Hello Patrick, It is still a great resource for Fivewin. Thanks for keeping up the work. Best regards, Otto
www.reportdesigner.info ?
Amigos: Alguien sabe porque no funciona el link. Saludos y gracias. Ruben Fernandez.
www.reportdesigner.info ?
Debe haber sido un problema temporal. Ya funciona.
www.reportdesigner.info ?
Amigos: Sigo sin poder conectarme a la página de de Timm Alguien sabe algo ? Saludos Ruben Fernandez
www.reportdesigner.info ?
Ruben, Ahi estoy conectando la pagina de Timm en <!-- w --><a class="postlink" href="http://www.reportdesigner.info">www.reportdesigner.info</a><!-- w --> Salu2 de Brasil Maurilio
www/web connect funcion or class?
Hi, I want a function/class("www.myside.com/down/a1.exe","d:\myapp\tmp",loverwrite) so easily support my app upgrade/download newfile from web site. Thanks! Shuming Wang
www/web connect funcion or class?
TURL class has what you're looking for.... available in xHarbour
www/web connect funcion or class?
oUrl := tURL():New(“http://www.my.com/down/a1.dll") get a crash. Regards! Shuming Wang
www/web connect funcion or class?
You can try this: [code:1n1d0f2b] // author&#58; ssbbs // &#19979;&#36617;&#26356;&#26032;&#32000;&#37636; Func GetModify&#40;&#41; Local cFile &#58;= "d&#58;\myapp\tmp\a1&#46;exe" If File&#40;cFile&#41; fErase&#40;cFile&#41; EndIf If URLDownloadToFile&#40; 0, "www&#46;myside&#46;com/down/a1&#46;exe", cFile, 0, 0 &#41; == 0 msgInfo&#40; "&#27284;&#26696;&#21462;&#22238;&#25104;&#21151;", "OK" &#41; Else MsgStop&#40; "&#20462;&#25913;&#32000;&#37636;&#27284;&#28961;&#27861;&#35712;&#21462;&#65281;", "&#35686;&#21578;&#65281;" &#41; EndIf Return NIL DLL32 FUNCTION URLDownloadToFile&#40;pCaller AS LONG, szURL AS STRING, szFileName AS STRING, dwReserved AS LONG, lpfnCB AS LONG&#41;; AS LONG PASCAL; FROM "URLDownloadToFileA"; LIB "urlmon" [/code:1n1d0f2b]
www/web connect funcion or class?
Need FREELIBRARY( hLib ) ? Thanks ! Shuming Wang
x2RowCol()
Antonio : He buscado el código fuente de esa función y no la encuentro en ningún subdirectorio ,lo que quiero saber es que tratamiento les da a la variables que se envian por referencia. x2RowCol(@nRow, @nCol, @nHeight, @nWidth, lPixel, Self, oWnd) Mucho agradeceré tu explicación.
x2RowCol()
Vikthor, That function is never called as it is inside an ifdef: #ifdef FWPLUS It belonged to a third party lib.
x2RowCol()
[quote="Antonio Linares":16130r3v]Vikthor, That function is never called as it is inside an ifdef: #ifdef FWPLUS It belonged to a third party lib.[/quote:16130r3v] jojojojo , I saw , I saw Thanks Antonio
x2RowCol()
You are welcome <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
x2RowCol()
[quote="Antonio Linares":od6yhwgs]You are welcome <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->[/quote:od6yhwgs] Antonio : En FWH así como para Pocket PC, la ubicación de los controles en una Ventana y en Dialogo no son iguales , nuestro software utiliza mucho la creación de Dialgos y Ventanas desde código fuente , ya había resuelto que los controles dentro de dialogos se ubicaran correctamente en la version FWH , y sólo me quedaba pendiente resolver la ubicación de los controles dentro de los dialgoos en la FWPPC. ¡¡ Ese detalle ya esta resuelto !!! Pero me queda la duda de por que tienen ese comportamiento.
x2RowCol()
Vikthor, Because windows measurements are in pixels, and dialogs measurements are in "dialog base units". Its a Windows API built-in behavior. You may use GetDialogBaseUnits() to get the ratio between pixels and "base units". From the Windows API docs: >> The GetDialogBaseUnits function returns the dialog box base units used by Windows to create dialog boxes. Both Windows and applications use these units to convert the width and height of dialog boxes and controls from dialog units, as given in dialog box templates, to pixels, and vice versa. >>
x64dbg - An open-source x64/x32 debugger for windows
Good morning / Buenos días, an open-source x64/x32 debugger for Windows / un depurador x64/x32 de código abierto para Windows. [url:1gf94piz]https&#58;//x64dbg&#46;com/#start[/url:1gf94piz] [img:1gf94piz]https&#58;//i&#46;ibb&#46;co/jJt37p7/Captura&#46;jpg[/img:1gf94piz] A lot of plugins / una gran lista de complementos [url:1gf94piz]https&#58;//github&#46;com/x64dbg/x64dbg/wiki/Plugins[/url:1gf94piz] Regards/ Saludos,
x64dbg - An open-source x64/x32 debugger for windows
Hi friends, here you are an open source x64/x32 debugger for Windows. [url:33zdb0f4]https&#58;//x64dbg&#46;com/#[/url:33zdb0f4] Kind regards, --- Hola amigos, aquí tenéis un depurador de código abierto x64/x32 para Windows. [url:33zdb0f4]https&#58;//x64dbg&#46;com/#[/url:33zdb0f4] Saludos,
xBROWSE .... SAY (Solucionado)
Saludos Amigos He buscado esto y es muy general, por lo que me disculpan si ya se ha discutido antes. Tengo un XBROWSE que actualizara una serie de SAY, lo primero que pense es usar ON CHANGE, pero no lo hace como yo espero a cambiar de una linea del xBrowse a otra. [url=https&#58;//imageshack&#46;com/i/jjswk2j:1rppwtio][img:1rppwtio]http&#58;//imagizer&#46;imageshack&#46;us/v2/xq90/703/swk2&#46;jpg[/img:1rppwtio][/url:1rppwtio] El Codigo que uso es el siguiente: [code=fw:1rppwtio]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br /><span style="color: #00C800;">FUNCTION</span> Contactos<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />    <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDCuenta <span style="color: #0000ff;">RESOURCE</span> DLG_CC_CAT <span style="color: #0000ff;">TITLE</span> cTitulo ;<br />           <span style="color: #0000ff;">COLOR</span>  <span style="color: #000000;">0</span>, CLR_WHITE TRANSPARENT<br /><br />      <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">XBROWSE</span> oBrowse ; && <span style="color: #0000ff;">Define</span> la lista <span style="color: #0000ff;">XBrowse</span><br />               <span style="color: #0000ff;">ID</span> <span style="color: #000000;">211</span> <span style="color: #0000ff;">ALIAS</span> <span style="color: #ff0000;">"CC_CONTAC"</span> ;<br />                COLUMNS <span style="color: #ff0000;">"DETALLE"</span>, <span style="color: #ff0000;">"CARGO"</span> ;<br />                HEADERS <span style="color: #ff0000;">"Contacto"</span>, <span style="color: #ff0000;">"Cargo"</span> ;<br />                COLSIZES <span style="color: #000000;">230</span>, <span style="color: #000000;">170</span> ;<br />                <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">CHANGE</span>  ActualizaContacto<span style="color: #000000;">&#40;</span> @cContact_Deta, @cContact_Cargo, @cContact_Direc, @cContact_Email, @cContact_Tel, @cContact_Movil, oGet <span style="color: #000000;">&#41;</span> ;<br />                <span style="color: #0000ff;">FONT</span> oFont ;<br />                <span style="color: #0000ff;">OF</span> oDCuenta ; Ajust_xBrws<span style="color: #000000;">&#40;</span> oBrowse <span style="color: #000000;">&#41;</span><br /><br />      <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">SAY</span> oSay<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">VAR</span> cContact_Deta  MEMO <span style="color: #0000ff;">ID</span> <span style="color: #000000;">212</span> <span style="color: #0000ff;">OF</span> oDCuenta <span style="color: #0000ff;">UPDATE</span><br />      <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">SAY</span> oGet<span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">VAR</span> cContact_Cargo MEMO <span style="color: #0000ff;">ID</span> <span style="color: #000000;">213</span> <span style="color: #0000ff;">OF</span> oDCuenta <span style="color: #0000ff;">UPDATE</span><br />      <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">SAY</span> oGet<span style="color: #000000;">&#91;</span><span style="color: #000000;">3</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">VAR</span> cContact_Direc MEMO <span style="color: #0000ff;">ID</span> <span style="color: #000000;">214</span> <span style="color: #0000ff;">OF</span> oDCuenta <span style="color: #0000ff;">UPDATE</span><br />      <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">SAY</span> oGet<span style="color: #000000;">&#91;</span><span style="color: #000000;">4</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">VAR</span> cContact_Email MEMO <span style="color: #0000ff;">ID</span> <span style="color: #000000;">215</span> <span style="color: #0000ff;">OF</span> oDCuenta <span style="color: #0000ff;">UPDATE</span><br />      <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">SAY</span> oGet<span style="color: #000000;">&#91;</span><span style="color: #000000;">5</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">VAR</span> cContact_Tel   <span style="color: #0000ff;">ID</span> <span style="color: #000000;">216</span> <span style="color: #0000ff;">OF</span> oDCuenta <span style="color: #0000ff;">UPDATE</span><br />      <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">SAY</span> oGet<span style="color: #000000;">&#91;</span><span style="color: #000000;">6</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">VAR</span> cContact_Movil <span style="color: #0000ff;">ID</span> <span style="color: #000000;">217</span> <span style="color: #0000ff;">OF</span> oDCuenta <span style="color: #0000ff;">UPDATE</span><br /><br />   <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDCuenta <span style="color: #0000ff;">CENTERED</span><br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><br /><span style="color: #B900B9;">/*<br />    FUNCION ESTATICA ActualizaContacto()<br />    Actualiza datos de contactos<br />*/</span><br /><span style="color: #00C800;">STATIC</span> <span style="color: #00C800;">FUNCTION</span> ActualizaContacto<span style="color: #000000;">&#40;</span> cContact_Deta, cContact_Cargo, cContact_Direc, cContact_Email,;<br />                                   cContact_Tel, cContact_Movil, oSay <span style="color: #000000;">&#41;</span><br /><br />    cContact_Deta  := CCMSCONTAC->DETALLE<br />    cContact_Cargo := CCMSCONTAC->CARGO<br />    cContact_Direc := CCMSCONTAC->DIRECCION<br />    cContact_Email := CCMSCONTAC->EMAIL<br />    cContact_Tel   := CCMSCONTAC->TELEFONO<br />    cContact_Movil := CCMSCONTAC->MOVIL<br /><br />   <span style="color: #00C800;">IF</span> oGet != <span style="color: #00C800;">NIL</span><br />      oSay<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> ; oSay<span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span>:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> ; oSay<span style="color: #000000;">&#91;</span><span style="color: #000000;">3</span><span style="color: #000000;">&#93;</span>:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />      oSay<span style="color: #000000;">&#91;</span><span style="color: #000000;">4</span><span style="color: #000000;">&#93;</span>:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> ; oSay<span style="color: #000000;">&#91;</span><span style="color: #000000;">5</span><span style="color: #000000;">&#93;</span>:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> ; oSay<span style="color: #000000;">&#91;</span><span style="color: #000000;">6</span><span style="color: #000000;">&#93;</span>:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">ENDIF</span><br /><br />   <span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><br /> </div>[/code:1rppwtio]
xBROWSE .... SAY (Solucionado)
Has probado con bChange ? : oBrowse:bChange:= {||ActualizaContacto( cContact_Deta, cContact_Cargo, cContact_Direc, cContact_Email,cContact_Tel, cContact_Movil, oSay ) }
xBROWSE .... SAY (Solucionado)
es mi idea o tienes un solo oSay y varios oGet, en los redefines y estas actualizando varios oSay en la funcion? o el ejemplo lo tienes malo.
xBROWSE .... SAY (Solucionado)
Saludos Gracias Manuel, con esa modificacion funciono. Y si carlos tienes razon, en un principio la idea eran Get, pero al no funcionar los cambie a Say al pasar al post renombre algunas cosas y olvide colocar el mismo nombre a las variables Gracias
xBROWSE column only shows three dots ...
To All I am having a dificult time understanding why this one folder with an xbrowse list box is showing up only three dots in the EmailTo column .. see code and screen shot .. The data is not that wide and it showed up perfectly under the standard FWH listbox twbrowse class ?? Varchar(max) seemed to work with twbrowse .. but it may be giving xbrowse a problem .. is there a way to substr(email_to) to give it a fixed width in xBrowse ? Any Ideas ?? Rick Lipkin [code=fw:2q0evx3i]<div class="fw" id="{CB}" style="font-family: monospace;"><br /> <span style="color: #B900B9;">//----- email tab</span><br /><br />    <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">xBROWSE</span> oLbx2      ;<br />    RECORDSET oRsMail           ;<br />    <span style="color: #0000ff;">ID</span> <span style="color: #000000;">111</span> <span style="color: #0000ff;">of</span> oFld1:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">3</span><span style="color: #000000;">&#93;</span> ;<br />    COLUMNS <span style="color: #ff0000;">'date_sent'</span>,        ;<br />            <span style="color: #ff0000;">'email_from'</span>,       ;<br />            <span style="color: #ff0000;">'email_to'</span>,         ;<br />            <span style="color: #ff0000;">'subject'</span>           ;<br />    COLSIZES <span style="color: #000000;">80</span>,<span style="color: #000000;">160</span>,<span style="color: #000000;">160</span>,<span style="color: #000000;">100</span>     ;<br />    HEADERS <span style="color: #ff0000;">'DateSent'</span>,         ;<br />            <span style="color: #ff0000;">'EmailFrom'</span>,        ;<br />            <span style="color: #ff0000;">'EmailTo'</span>,          ;<br />            <span style="color: #ff0000;">'Subject'</span>           ;<br />    AUTOSORT <span style="color: #0000ff;">AUTOCOLS</span> LINES CELL<br /><br /><br />    olBx2:<span style="color: #000000;">nRowHeight</span> := <span style="color: #000000;">15</span><br />    oLbx2:<span style="color: #000000;">bLDblClick</span> := <span style="color: #000000;">&#123;</span> |nRow,nCol | _VIEWMAIL<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"V"</span>, oRsMail:<span style="color: #000000;">Fields</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"message"</span><span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span>  <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br /> </div>[/code:2q0evx3i] [url=http&#58;//img825&#46;imageshack&#46;us/i/xbrowse&#46;jpg/:2q0evx3i][img:2q0evx3i]http&#58;//img825&#46;imageshack&#46;us/img825/1183/xbrowse&#46;jpg[/img:2q0evx3i][/url:2q0evx3i] [url=http&#58;//img208&#46;imageshack&#46;us/i/datag&#46;jpg/:2q0evx3i][img:2q0evx3i]http&#58;//img208&#46;imageshack&#46;us/img208/7301/datag&#46;jpg[/img:2q0evx3i][/url:2q0evx3i][/url] [url=http&#58;//img529&#46;imageshack&#46;us/i/structurej&#46;jpg/:2q0evx3i][img:2q0evx3i]http&#58;//img529&#46;imageshack&#46;us/img529/2767/structurej&#46;jpg[/img:2q0evx3i][/url:2q0evx3i]
xBROWSE column only shows three dots ...
Mr. Rick XBrowse shows "..." where the Type is not understood by XBrowse. oRsMail:Fields( "mail_to" ):Type returns a number. Can you please insert this line MsgInfo( oRsMail:Fields( "mail_to" ):Type ) and tell me the the Type number?
xBROWSE column only shows three dots ...
Rao It definitly has to do with the type .. when I change the "email_to" field to Char it xBrowse works just fine .. however what was unique .. the twrowse fwh class did not have a problem with identifying the type .. Here is what you are looking for : Rick [url=http&#58;//img836&#46;imageshack&#46;us/i/type&#46;jpg/:rqq1mpbm][img:rqq1mpbm]http&#58;//img836&#46;imageshack&#46;us/img836/4606/type&#46;jpg[/img:rqq1mpbm][/url:rqq1mpbm]
xBROWSE column only shows three dots ...
I sent a personal email to your new address <!-- e --><a href="mailto:[email protected]">[email protected]</a><!-- e -->. The mail could not be delivered. Can you please send a copy of your version's xbrowse.prg (zipped) to my personal email? nageswaragunupudi at gmail dot com
xBROWSE column only shows three dots ...
Mr Rick You need to make this small modification to your copy of xbrowse.prg in the folder \fwh\source\classes Please locate this line of code [code=fw:gxsk05pv]<div class="fw" id="{CB}" style="font-family: monospace;"> &nbsp; <span style="color: #00C800;">CASE</span> ASCAN<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#123;</span> <span style="color: #000000;">8</span>,<span style="color: #000000;">128</span>,<span style="color: #000000;">129</span>,<span style="color: #000000;">130</span>,<span style="color: #000000;">200</span>,<span style="color: #000000;">202</span>,<span style="color: #000000;">204</span>,<span style="color: #000000;">205</span> <span style="color: #000000;">&#125;</span>, nType <span style="color: #000000;">&#41;</span> > <span style="color: #000000;">0</span><br />&nbsp;</div>[/code:gxsk05pv] This list does not contain 201. Please add 201 also in this list and compile xbrowse.prg. I made this change in my copy and tested with VarChar(MAX) on my SQLSERVER. It is now working here.
xBROWSE column only shows three dots ...
Rao Thanks .. I did not see this last post .. I did send you my e-mail just a few min ago .. good to here from you once again !! Your fix worked ... hope the correction can be made to the next version of FWH !! [url=http&#58;//img512&#46;imageshack&#46;us/i/emailva&#46;jpg/:zdnwvxkx][img:zdnwvxkx]http&#58;//img512&#46;imageshack&#46;us/img512/355/emailva&#46;jpg[/img:zdnwvxkx][/url:zdnwvxkx] Regards, Rick Lipkin <!-- e --><a href="mailto:[email protected]">[email protected]</a><!-- e -->
xBROWSE column only shows three dots ...
Rick, Yes, it will be included <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
xBROWSE poner a 0 (cero) variable de busqueda incremental
Holas.... tengo un XBROWSE donde realizo una busqueda incremental, y un COMBOBOX don cambio el index, por lo que cuando realizo el cambio debo colocar la variable de busque en 0 (cero)... aqui mi pregunta, como poner a 0 (cero) dicha variable de busqueda. muchas gracias david [code=fw:31c6pra6]<div class="fw" id="{CB}" style="font-family: monospace;">    DBSELECTAREA<span style="color: #000000;">&#40;</span> CUENTAS <span style="color: #000000;">&#41;</span> <br /><br />    @ <span style="color: #000000;">0.875</span>,<span style="color: #000000;">1</span> <span style="color: #0000ff;">XBROWSE</span> oBrw ;<br />                       FIELDS <span style="color: #000000;">&#40;</span>CUENTAS<span style="color: #000000;">&#41;</span>->CT_NOMB ,;<br />                              TRANSFORM<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#40;</span>CUENTAS<span style="color: #000000;">&#41;</span>->CT_CUIT,<span style="color: #ff0000;">'@Z 99-99999999-9'</span><span style="color: #000000;">&#41;</span> ,;<br />                              <span style="color: #000000;">&#40;</span>CUENTAS<span style="color: #000000;">&#41;</span>->CT_NOMF ,;<br />                              TRANSFORM<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#40;</span>CUENTAS<span style="color: #000000;">&#41;</span>->CT_CODI,<span style="color: #ff0000;">'99999999'</span><span style="color: #000000;">&#41;</span> ;<br />                       HEADERS <span style="color: #ff0000;">'Nombre'</span> ,;<br />                               <span style="color: #ff0000;">'C.U.I.T.'</span> ,;<br />                               <span style="color: #ff0000;">'Nombre Fiscal'</span> ,;<br />                               <span style="color: #ff0000;">'Cuenta'</span> ;<br />                       SIZES <span style="color: #000000;">250</span>,<span style="color: #000000;">80</span>,<span style="color: #000000;">250</span>,<span style="color: #000000;">80</span> ; <br />                       <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">240</span>,<span style="color: #000000;">170</span> ;<br />                       <span style="color: #0000ff;">ALIAS</span> CUENTAS ;<br />                       AUTOSORT CELL LINES NOBORDER ;<br />                       <span style="color: #0000ff;">Of</span> oDlgBus ;<br />                       <span style="color: #0000ff;">ON</span> DBLCLICK <span style="color: #000000;">&#40;</span> <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> Ops_Selc=<span style="color: #000000;">0</span> , oDlgBus:<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>  <br /><br />    oBrw:<span style="color: #000000;">nRowDividerStyle</span> = LINESTYLE_NOLINES<br />    oBrw:<span style="color: #000000;">nColDividerStyle</span> = LINESTYLE_BLACK<br />    oBrw:<span style="color: #000000;">nMarqueeStyle</span> = MARQSTYLE_HIGHLROW<br /> <br />    WITH OBJECT oBrw<br />      :<span style="color: #000000;">lIncrFilter</span>      := .t.<br />      :<span style="color: #000000;">lSeekWild</span>        := .t.<br />      :<span style="color: #000000;">CreateFromCode</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />    END<br /><br />    @ <span style="color: #000000;">12.5</span>,<span style="color: #000000;">1</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;">Of</span> oDlgBus ;<br />                           <span style="color: #0000ff;">COLOR</span> CLR_BLACK,RGB<span style="color: #000000;">&#40;</span><span style="color: #000000;">207</span>,<span style="color: #000000;">222</span>,<span style="color: #000000;">244</span><span style="color: #000000;">&#41;</span> <br /><br />    *            <span style="color: #000000;">123456789</span> <span style="color: #000000;">123456789</span> <span style="color: #000000;">123456789</span> <span style="color: #000000;">123456789</span> <span style="color: #000000;">123456789</span> <span style="color: #000000;">1</span><br />    mCbxORDEN:=<span style="color: #000000;">&#123;</span><span style="color: #ff0000;">'Cuenta                                            1'</span>,;<br />                <span style="color: #ff0000;">'Nombre                                            2'</span>,;<br />                <span style="color: #ff0000;">'Nombre Fiscal                                     3'</span>,;<br />                <span style="color: #ff0000;">'C.U.I.T.                                          4'</span><span style="color: #000000;">&#125;</span><br />    cCbxORDEN:=mCbxORDEN<span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span><br /><br /><br />    @ <span style="color: #000000;">13.5</span>, <span style="color: #000000;">1</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">'Orden'</span> <span style="color: #0000ff;">Of</span> oDlgBus<br />    @ <span style="color: #000000;">14.5</span>, <span style="color: #000000;">5</span> <span style="color: #0000ff;">COMBOBOX</span>         oCbxORDEN ;<br />                       <span style="color: #0000ff;">VAR</span>     cCbxORDEN ;<br />                         <span style="color: #0000ff;">PROMPTS</span> mCbxORDEN ;<br />                           <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">80</span>,<span style="color: #000000;">80</span> ;<br />                              <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">CHANGE</span> <span style="color: #000000;">&#40;</span><span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span><span style="color: #0000ff;">substr</span><span style="color: #000000;">&#40;</span>cCbxORDEN,<span style="color: #000000;">51</span>,<span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span>=<span style="color: #ff0000;">'1'</span> , <span style="color: #000000;">&#40;</span>CUENTAS<span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span>ORDSETFOCUS<span style="color: #000000;">&#40;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span> ,;<br />                                       <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span><span style="color: #0000ff;">substr</span><span style="color: #000000;">&#40;</span>cCbxORDEN,<span style="color: #000000;">51</span>,<span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span>=<span style="color: #ff0000;">'2'</span> , <span style="color: #000000;">&#40;</span>CUENTAS<span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span>ORDSETFOCUS<span style="color: #000000;">&#40;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span> ,;<br />                                       <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span><span style="color: #0000ff;">substr</span><span style="color: #000000;">&#40;</span>cCbxORDEN,<span style="color: #000000;">51</span>,<span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span>=<span style="color: #ff0000;">'3'</span> , <span style="color: #000000;">&#40;</span>CUENTAS<span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span>ORDSETFOCUS<span style="color: #000000;">&#40;</span><span style="color: #000000;">4</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span> ,;<br />                                                                       <span style="color: #000000;">&#40;</span>CUENTAS<span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span>ORDSETFOCUS<span style="color: #000000;">&#40;</span><span style="color: #000000;">5</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span> ,;<br />                                   <span style="color: #000000;">&#40;</span>CUENTAS<span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span>DbGoTop<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span> ,;<br />                                   SetFocus<span style="color: #000000;">&#40;</span> oCbxORDEN:<span style="color: #000000;">oJump</span>:=oBrw <span style="color: #000000;">&#41;</span> ,;<br />                                   .t.<span style="color: #000000;">&#41;</span></div>[/code:31c6pra6]
xBROWSE poner a 0 (cero) variable de busqueda incremental
David, @ x,y BUTTON "Clean" ACTION ( oBrw:Seek( "" ), oBrw:Setfocus() )
xBROWSE poner a 0 (cero) variable de busqueda incremental
Perfecto... muchas gracias david
xBRowser drag & drop question
Is there somewhere an example how to drag&drop inside a xBrowser. Thanks in advance Otto
xBRowser drag & drop question
Mr Otto Please test this program [code:prgehvp2] #include 'fivewin&#46;ch' FUNCTION Main&#40;&#41; LOCAL oWnd, oBrw, oCur, i, aData &#58;= &#123;&#125; FOR i &#58;= 1 TO 6 AAdd&#40; aData, &#123; str&#40;i,2&#41;, "Description " + Str&#40; i &#41;, Replicate&#40; Chr&#40; 64 + i &#41;, 5 &#41; &#125; &#41; NEXT i DEFINE CURSOR oCur DRAG DEFINE WINDOW oWnd oBrw &#58;= TXBrowse&#40;&#41;&#58;New&#40; oWnd &#41; oBrw&#58;SetArray&#40; aData &#41; oBrw&#58;CreateFromCode&#40;&#41; oWnd&#58;oClient &#58;= oBrw // oBrw&#58;oDragCursor &#58;= oCur oBrw&#58;bDragBegin &#58;= &#123; |nRow,nCol,nFlags| DragBegin&#40; nRow, nCol, nFlags, oBrw &#41; &#125; oBrw&#58;bDropOver &#58;= &#123; |uDropInfo, nRow, nCol, nFlags| DropOver&#40; uDropInfo, nRow, nCol, nFlags, oBrw &#41; &#125; // ACTIVATE WINDOW oWnd oCur&#58;End&#40;&#41; RETURN NIL STATIC FUNCTION DragBegin&#40; nRow, nCol, nFlags, oBrw &#41; SetDropInfo&#40; EVAL&#40; oBrw&#58;SelectedCol&#40;&#41;&#58;bStrData &#41; &#41; RETURN NIL STATIC FUNCTION DropOver&#40; uDropInfo, nRow, nCol, nFlags, oBrw &#41; oBrw&#58;lButtonDown&#40; nRow, nCol, nFlags&#41; oBrw&#58;lButtonUp&#40; nRow, nCol, nFlags&#41; MsgInfo&#40; uDropInfo + CRLF + 'dropped on' + CRLF + ; EVAL&#40; oBrw&#58;SelectedCol&#40;&#41;&#58;bStrData &#41; &#41; RETURN NIL [/code:prgehvp2]
xBRowser drag & drop question
Nice sample, thank you! EMG
xBRowser drag & drop question
NageswaraRao, thank you very much. I was so free to put it on <!-- w --><a class="postlink" href="http://www.fwcodesnips.com">www.fwcodesnips.com</a><!-- w --> Best regards, Otto
xBRowser drag & drop question
Hello NageswaraRao, I filled your example with real data and inserted a function to scroll during drag. Dragbegin gives me the record which I drag. Dropover the record where I drop. But now I am a little uncertain how to change the position of the records in the browser and refresh the browser. Maybe you have an advice for me. <!-- w --><a class="postlink" href="http://www.atzwanger.com/lexikon/lexikon.zip">www.atzwanger.com/lexikon/lexikon.zip</a><!-- w --> is what I have so far. Best regards Otto [img:2niv89qo]http&#58;//www&#46;atzwanger&#46;com/fw/drag5&#46;jpg[/img:2niv89qo]
xBRowser drag & drop question
Do you want that if the cursor goes above browse area it should page up and if it goes below browse area if should page down? If so please try the following code [code:97hiomdr] function CheckListbox&#40; nRow, nCol, oBrw, oLbx, nKeyFlags,oChild &#41; if nRow < oBrw&#58;HeaderHeight&#40;&#41; oBrw&#58;PageUp&#40;&#41; elseif nRow > &#40; oBrw&#58;BrwHeight&#40;&#41; - oBrw&#58;FooterHeight&#40;&#41; &#41; oBrw&#58;PageDown&#40;&#41; endif return nil [/code:97hiomdr] Please let me know if this is what you were looking for.
xBRowser drag & drop question
NageswaraRao, thank you for your help. Your code is better than that I had. Scrolling is working. But what is the best way to change the record position. Sure I have to use an index. But then? Best regards, Otto
xBRowser drag & drop question
Even with indexes this code works fine. What more do you want to do ?
xBRowser drag & drop question
Hello NageswaraRao, … Peach Fillet of perch Swiss sautéed turkey Smoked salmon Mushrooms on toast Bacon … For example: I drag <Fillet of perch> and drop it over <Bacon> then the new order should be: … Peach Swiss sautéed turkey Smoked salmon Mushrooms on toast Fillet of perch Bacon … Best regards, Otto
xBRowser drag & drop question
You must swap the content of the two records or swap just the content of an indexed field. EMG
xBRowser drag & drop question
Obviously if we want to achieve what he wants, we need to have a separate order column and play with the order serial numbers there. I am working on it
xBRowser drag & drop question
Ofcourse with arrays it is very easy and simple. Just delete the dragged row and insert before the row on which it is dropped.
xBRowser drag & drop question
Mr Otto, Here is the solution. First you restructure the dbf like this. 1) Change the NUMMER field as NUMERIC with Width 18 and Decimals 13. ( NUMMER, 'N', 18, 13 ). 2) Create Index on NUMMER field. I have used DBFCDX and created a TAG with name NUMMER. Having done upto this please make the following changes in your code: [code:1ajtone4] before function Main&#58; REQUEST DBFCDX // change the dbf open code like this&#58; USE C&#58;\FWH\samples\LEXIKON&#46;DBF NEW ALIAS LEX EXCLUSIVE VIA 'DBFCDX' DBEVAL&#40; &#123;|| LEX->NUMMER &#58;= RECNO&#40;&#41; &#125; &#41; SET ORDER TO TAG NUMMER GO TOP // replace the new drag and drop functions given below STATIC FUNCTION DragBegin&#40; nRow, nCol, nFlags, oBrw &#41; SetDropInfo&#40; &#40;oBrw&#58;cAlias&#41;->&#40; recno&#40;&#41; &#41; &#41; RETURN NIL STATIC FUNCTION DropOver&#40; uDropInfo, nRow, nCol, nFlags, oBrw &#41; LOCAL nDragRec &#58;= uDropInfo LOCAL nThisRec LOCAL nThisKey LOCAL nPrevKey &#58;= 0 oBrw&#58;lButtonDown&#40; nRow, nCol, nFlags &#41; oBrw&#58;lButtonUp&#40; nRow, nCol, nFlags &#41; nThisRec &#58;= &#40;oBrw&#58;cAlias&#41;->&#40; RECNO&#40;&#41; &#41; nThisKey &#58;= &#40;oBrw&#58;cAlias&#41;->NUMMER &#40; oBrw&#58;cAlias &#41;->&#40; dbSKIP&#40; -1 &#41; &#41; IF !&#40;oBrw&#58;cAlias&#41;->&#40; bof&#40;&#41; &#41; nPrevKey &#58;= &#40; oBrw&#58;cAlias &#41;->NUMMER ENDIF &#40; oBrw&#58;cAlias &#41;->&#40; dbGOTO&#40; nDragRec &#41; &#41; &#40; oBrw&#58;cAlias &#41;->NUMMER &#58;= &#40; nThisKey + nPrevKey &#41; / 2 &#40; oBrw&#58;cAlias &#41;->&#40; dbGOTO&#40; nThisRec &#41; &#41; oBrw&#58;Refresh&#40;&#41; RETURN NIL [/code:1ajtone4] Now you will get the effect you are looking for. I shall send revised prg and dbf to your personal email
xBRowser drag & drop question
NageswaraRao, I am curious, why 13 decimal places for your nummer field? Recno()'s are integers. James
xBRowser drag & drop question
All is working. Thank you very much. Best regards, Otto
xBRowser drag & drop question
James When the user drags KeyNo 12 over KeyNo 20, the dragged item has to sit between 19 and 20. So I am changing KeyNo 12 as 19.5. Assume the user drags 10 over 20 again. Then KeyNo 10 is to be changed to a number between 19.5 and 20 ( 19.75 ). Another drag over 20 again? The new key number will be 19.875 and so on. I chose more decimal places so that we dont hit a dead end soon. In real time application, if we hit deadend our logic should renumber. Hope I am clear
xBRowser drag & drop question
NageswaraRao, >Hope I am clear Yes, now I get it. I did this once by numbering the items in increments of 10--I never thought of using decimals. It's good that you mention renumbering since that will become an issue at some point. With a very small database perhaps you could renumber it for each drag & drop. James
xBRowser drag & drop question
Hello NageswaraRao, there is still one problem. If I drop the record then the row where I drop is highlighted but the dragged row is one before. Maybe you have a solution for that too. Best regards, Otto
xBRowser drag & drop question
Thats how I made it earlier. Here is what you want now: [code:1nz35hd8] STATIC FUNCTION DropOver&#40; uDropInfo, nRow, nCol, nFlags, oBrw &#41; LOCAL nDragRec &#58;= uDropInfo LOCAL nThisRec LOCAL nThisKey LOCAL nPrevKey &#58;= 0 LOCAL n oBrw&#58;lButtonDown&#40; nRow, nCol, nFlags &#41; oBrw&#58;lButtonUp&#40; nRow, nCol, nFlags &#41; nThisRec &#58;= &#40;oBrw&#58;cAlias&#41;->&#40; RECNO&#40;&#41; &#41; nThisKey &#58;= &#40;oBrw&#58;cAlias&#41;->NUMMER &#40; oBrw&#58;cAlias &#41;->&#40; dbSKIP&#40; -1 &#41; &#41; IF !bof&#40;&#41; nPrevKey &#58;= &#40; oBrw&#58;cAlias &#41;->NUMMER ENDIF &#40; oBrw&#58;cAlias &#41;->&#40; dbGOTO&#40; nDragRec &#41; &#41; &#40; oBrw&#58;cAlias &#41;->NUMMER &#58;= &#40; nThisKey + nPrevKey &#41; / 2 // &#40; oBrw&#58;cAlias &#41;->&#40; dbGOTO&#40; nThisRec &#41; &#41; oBrw&#58;Refresh&#40;&#41; if &#40; n &#58;= &#40; oBrw&#58;cAlias &#41;->&#40; OrdKeyNo&#40;&#41; &#41; &#41; < oBrw&#58;nRowSel oBrw&#58;nRowSel &#58;= n oBrw&#58;Refresh&#40;&#41; endif RETURN NIL [/code:1nz35hd8]