topic
stringlengths
1
63
text
stringlengths
1
577k
problem with xBrowse and TDatarow
Mr. Nages, Thank you very much. Your code seems to be working ok. But it is different that mine. Mine uses a DIALOG and also two separate and independant RecordSet. I await your answer. Thank you for the good class and excelent supprt. Best regards,
problem with xbrowse
[img:2rwbts8b]https://i.postimg.cc/Gp9YrWYJ/nnn.jpg[/img:2rwbts8b] I use xbrowse ( with noborder command ) and it make me a 3d Border @ 60, 5 XBROWSE oBrowse SIZE oDlgElementi:nWidth-100,100 PIXEL OF oDlgElementi ; COLUMNS "ELATTIVO","ELNOME",,"ELCOLORE","ELORDINE","ELLOCK" ; HEADERS "Attivo","Descrizione","","Colore ","Ordine", "Chiuso"; COLSIZES 50,150,50,80,30,40 ; CELL LINES ; DATASOURCE oElementi if I insert the command Noborder it not draw the line of the top when I set :lheader:=.f. I wish see all borders around of xbrowse( without header) but not 3d
problem with xbrowse
Use NOBORDER clause and then set oBrw:lDrawBorder := .t. You can also use oBrw:nClrBorder := <color> if you want to specify color of the border
problem with xbrowse
thanks [img:93gp5c2x]https&#58;//i&#46;postimg&#46;cc/V6WTNDY2/ok&#46;png[/img:93gp5c2x] it was just what I was trying to do ... do you want to recommend me a color that works? or do I leave the color black?
problem with xbrowse
Now I have the same problem with 3 xbrowse I not see the border at right this dialog a check for umbrellas,Numbers and pricelist I made @ 30, 10 XBROWSE oBrowse1 OF oDlgErrore ; COLUMNS 1, 2 ; HEADERS "Col","Riga" ; COLSIZES 40, 40 ; ARRAY aErroriNum ; SIZE 80,100 PIXEL [b:2c0btkex]NOBORDER[/b:2c0btkex] WITH OBJECT oBrowse1 [b:2c0btkex] :lDrawBorder := .t.[/b:2c0btkex]
problem with xbrowse first row resolved
when open a xbrowse I have the focus on first row and first column ...why ? [img:1b69pv8s]https&#58;//i&#46;postimg&#46;cc/pr9g4sjh/ghg&#46;png[/img:1b69pv8s] how do i get the focus off that column and row?
problem with xbrowse first row resolved
Hi, I think about this method : oLbx:SelectCol(10) or oLbx:nRowSel:=5,oLbx:nColSel:=2 or oBrw:BookMark := <nNewRowNum> Have a good day, Philippe
problem with xbrowse first row resolved
[quote="Jack":1dkrifw4]Hi, I think about this method : oLbx:SelectCol(10) or oLbx:nRowSel:=5,oLbx:nColSel:=2 or oBrw:BookMark := <nNewRowNum> Have a good day, Philippe[/quote:1dkrifw4] Philippe, I wish erase the focus Not Select a col
problem with xbrowse first row resolved
Silvio, Can't you select another control at ON INIT? Best regards, Otto [code=fw:2r6wdj5l]<div class="fw" id="{CB}" style="font-family: monospace;"><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> &nbsp;oBtn:<span style="color: #000000;">Setfocus</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span></div>[/code:2r6wdj5l]
problem with xbrowse first row resolved
[quote="Otto":30otmy0o]Silvio, Can't you select another control at ON INIT? Best regards, Otto [code=fw:30otmy0o]<div class="fw" id="{CB}" style="font-family: monospace;"><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>  oBtn:<span style="color: #000000;">Setfocus</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span></div>[/code:30otmy0o][/quote:30otmy0o] I allready tried
problem with xbrowse first row resolved
resolved :nMarqueeStyle := MARQSTYLE_NOMARQUEE
problem with xbrwdisk.prg
I did some tests with xbrwdisk.prg. I noticed: 1) [i:24pk7nis]ENTER [/i:24pk7nis]and [i:24pk7nis]ESC [/i:24pk7nis] only work if you first have clicked on that folder. 2) I get an error if I click on an empty folder . Best regards, Otto [quote:24pk7nis]Application =========== Path and name: C:\FWH\samples\xbrwdisk.exe (32 bits) Size: 1,768,960 bytes Time from start: 0 hours 0 mins 22 secs Error occurred at: 17-02-10, 01:41:15 Error description: Error BASE/1005 Class: 'NIL' has no property: OPREV Args: [ 1] = U [ 2] = O TTREEITEM Stack Calls =========== Called from: => _OPREV(0) Called from: C:\FWH\samples\xbrwdisk.prg => SETSUBTREE(129) Called from: C:\FWH\samples\xbrwdisk.prg => (b)SUBTREE(114) Called from: C:\FWH\samples\xbrwdisk.prg => TOGGLEFOLDER(58) Called from: C:\FWH\samples\xbrwdisk.prg => (b)MAIN(29) Called from: .\source\classes\XBROWSE.PRG => TXBROWSE:LDBLCLICK(3437) Called from: => TWINDOW:HANDLEEVENT(0) Called from: .\source\classes\CONTROL.PRG => TCONTROL:HANDLEEVENT(1469) Called from: .\source\classes\XBROWSE.PRG => TXBROWSE:HANDLEEVENT(10352) Called from: .\source\classes\WINDOW.PRG => _FWH(3353) Called from: => DIALOGBOXINDIRECT(0) Called from: .\source\classes\DIALOG.PRG => TDIALOG:ACTIVATE(273) Called from: C:\FWH\samples\xbrwdisk.prg => MAIN(46)[/quote:24pk7nis]
problem with xbrwdisk.prg
Please change the static function SetSubTree to check for empty subtree; Modified code [code=fw:3pu6ljn7]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">static</span> <span style="color: #00C800;">function</span> SetSubTree<span style="color: #000000;">&#40;</span> oItem, oTree <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> oTree:<span style="color: #000000;">nCount</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> > <span style="color: #000000;">0</span> &nbsp; <span style="color: #B900B9;">// now inserted</span><br />&nbsp; &nbsp; &nbsp; oTree:<span style="color: #000000;">oFirst</span>:<span style="color: #000000;">oPrev</span> &nbsp; := oItem<br />&nbsp; &nbsp; &nbsp; oTree:<span style="color: #000000;">oLast</span>:<span style="color: #000000;">SetNext</span><span style="color: #000000;">&#40;</span> oItem:<span style="color: #000000;">oNext</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; oItem:<span style="color: #000000;">oTree</span> := oTree<br />&nbsp; &nbsp;<span style="color: #00C800;">endif</span> &nbsp;<span style="color: #B900B9;">// now inserted</span><br /><br /><span style="color: #00C800;">return</span> oItem<br />&nbsp;</div>[/code:3pu6ljn7]
problem with xbrwdisk.prg
Dear Mr. NageswaraRao, Your changes solved the problem. Now if a folder is empty you don’t get an error anymore. Thank you very much. Could you please have a look why ENTER key only works on folders you have once opened first with the mouse, too. Thanks in advance Otto
problem with xbrwdisk.prg
Dear Mr. NageswaraRao, do you think it should be possible if directory is empty to insert a pseudo item to get more a windows explorer like feeling. Best regards, Otto
problem with xbrwdisk.prg
[quote="Otto":2f7ix9g0]Dear Mr. NageswaraRao, do you think it should be possible if directory is empty to insert a pseudo item to get more a windows explorer like feeling. Best regards, Otto[/quote:2f7ix9g0] Please use this modified function. [code=fw:2f7ix9g0]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">static</span> <span style="color: #00C800;">function</span> SubTree<span style="color: #000000;">&#40;</span> oParent <span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">local</span> oTree, n, oItem, nLevel, nItems := <span style="color: #000000;">0</span><br />   <span style="color: #00C800;">local</span> cFolder := oParent:<span style="color: #000000;">Cargo</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">6</span> <span style="color: #000000;">&#93;</span><br />   <span style="color: #00C800;">local</span> aDir     := Directory<span style="color: #000000;">&#40;</span> cFolder + <span style="color: #ff0000;">'<span style="color: #000000;">\*</span>.*'</span>, <span style="color: #ff0000;">'D'</span> <span style="color: #000000;">&#41;</span><br /><br />   nLevel   := oParent:<span style="color: #000000;">nLevel</span> + <span style="color: #000000;">1</span><br /><br />   TREE oTree<br />   <span style="color: #00C800;">for</span> n := <span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> Len<span style="color: #000000;">&#40;</span> aDir <span style="color: #000000;">&#41;</span><br />      <span style="color: #00C800;">if</span> ! <span style="color: #000000;">&#40;</span> aDir<span style="color: #000000;">&#91;</span> n <span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span> = <span style="color: #ff0000;">'.'</span> <span style="color: #000000;">&#41;</span><br /><br />         TREEITEM oItem <span style="color: #0000ff;">PROMPT</span> aDir<span style="color: #000000;">&#91;</span> n <span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span><br /><br />         oItem:<span style="color: #000000;">nlevel</span> := nLevel<br />         oItem:<span style="color: #000000;">Cargo</span>  := aDir<span style="color: #000000;">&#91;</span> n <span style="color: #000000;">&#93;</span><br /><br />         AAdd<span style="color: #000000;">&#40;</span> oItem:<span style="color: #000000;">Cargo</span>, cFolder + Chr<span style="color: #000000;">&#40;</span><span style="color: #000000;">92</span><span style="color: #000000;">&#41;</span> + aDir<span style="color: #000000;">&#91;</span> n <span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span><br /><br />         <span style="color: #00C800;">if</span> <span style="color: #ff0000;">'D'</span> $ aDir<span style="color: #000000;">&#91;</span> n <span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">5</span> <span style="color: #000000;">&#93;</span><br />            oItem:<span style="color: #000000;">bAction</span>  := <span style="color: #000000;">&#123;</span> |o| o:<span style="color: #000000;">SetTree</span><span style="color: #000000;">&#40;</span> SubTree<span style="color: #000000;">&#40;</span> o <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>, o:<span style="color: #000000;">bACtion</span> := <span style="color: #00C800;">nil</span> <span style="color: #000000;">&#125;</span><br />         <span style="color: #00C800;">endif</span><br />         nItems++<br />      <span style="color: #00C800;">endif</span><br />   <span style="color: #00C800;">next</span><br />   <span style="color: #00C800;">if</span> nItems == <span style="color: #000000;">0</span><br />      n--<br />      TREEITEM oItem <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">'.'</span><br />      oItem:<span style="color: #000000;">nlevel</span> := nLevel<br />      aDir<span style="color: #000000;">&#91;</span> n <span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">5</span> <span style="color: #000000;">&#93;</span> := <span style="color: #ff0000;">'A'</span><br />      oItem:<span style="color: #000000;">Cargo</span>  := aDir<span style="color: #000000;">&#91;</span> n <span style="color: #000000;">&#93;</span><br />      AAdd<span style="color: #000000;">&#40;</span> oItem:<span style="color: #000000;">Cargo</span>, cFolder + Chr<span style="color: #000000;">&#40;</span><span style="color: #000000;">92</span><span style="color: #000000;">&#41;</span> + aDir<span style="color: #000000;">&#91;</span> n <span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">endif</span><br />   ENDTREE<br /><br /><span style="color: #00C800;">return</span> oTree<br /><br />&nbsp;</div>[/code:2f7ix9g0]
problem with xbrwdisk.prg
[quote="Otto":3d1yeu27]Dear Mr. NageswaraRao, Your changes solved the problem. Now if a folder is empty you don’t get an error anymore. Thank you very much. Could you please have a look why ENTER key only works on folders you have once opened first with the mouse, too. Thanks in advance Otto[/quote:3d1yeu27] Please add this after oBrw:SetTree( ... ) [code=fw:3d1yeu27]<div class="fw" id="{CB}" style="font-family: monospace;"> &nbsp; oBrw:<span style="color: #000000;">bKeyChar</span> &nbsp;:= <span style="color: #000000;">&#123;</span> |nKey| <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> nKey == VK_RETURN .and. ! Empty<span style="color: #000000;">&#40;</span> oBrw:<span style="color: #000000;">oTreeItem</span>:<span style="color: #000000;">bAction</span> <span style="color: #000000;">&#41;</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Eval<span style="color: #000000;">&#40;</span> oBrw:<span style="color: #000000;">oTreeItem</span>:<span style="color: #000000;">bAction</span>, oBrw:<span style="color: #000000;">oTreeItem</span> <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:3d1yeu27]
problem with xbrwdisk.prg
Dear Mr. NagesWaraRao, thank you so much. Now all is working as suspected. May I ask you two more questions? I would like to use this code to select a certain letter. I change local aDrives := aDrives( 2 ) // Hard disks to local aDrives := { "c:\xwinhotel"} This way I see the folder where the letters are. Now I would like to start with the treeview in [i:1d6b1jyu]open status [/i:1d6b1jyu]and then when I click on an item or press ENTER I would like to select an Item: msginfo( “You selected item: “ + ???) Would you be so kind to help me? Thanks in advance Otto
problem with xbrwdisk.prg
[quote="Otto":1wwicsmz]Dear Mr. NagesWaraRao, I would like to use this code to select a certain letter. I change local aDrives := aDrives( 2 ) // Hard disks to local aDrives := { "c:\xwinhotel"} This way I see the folder where the letters are. Now I would like to start with the treeview in [i:1wwicsmz]open status [/i:1wwicsmz]and then when I click on an item or press ENTER I would like to select an Item: msginfo( “You selected item: “ + ???) Otto[/quote:1wwicsmz] Please use this replacement for function MakeTree [code=fw:1wwicsmz]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">static</span> <span style="color: #00C800;">function</span> MakeTree<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> oTree, oItem<br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> cPath := <span style="color: #ff0000;">'C:<span style="color: #000000;">\F</span>WH'</span><br /><br />&nbsp; &nbsp;TREE oTree<br />&nbsp; &nbsp; &nbsp; TREEITEM oItem <span style="color: #0000ff;">PROMPT</span> cPath<br />&nbsp; &nbsp; &nbsp; oItem:<span style="color: #000000;">Cargo</span> &nbsp; &nbsp;:= <span style="color: #000000;">&#123;</span> cPath, <span style="color: #000000;">0</span>, CtoD<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">''</span> <span style="color: #000000;">&#41;</span>, Space<span style="color: #000000;">&#40;</span> <span style="color: #000000;">8</span> <span style="color: #000000;">&#41;</span>, <span style="color: #ff0000;">'D'</span>, cPath <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; oItem:<span style="color: #000000;">SetTree</span><span style="color: #000000;">&#40;</span> SubTree<span style="color: #000000;">&#40;</span> oItem <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; oItem:<span style="color: #000000;">Open</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;ENDTREE<br /><br /><span style="color: #00C800;">return</span> oTree<br />&nbsp;</div>[/code:1wwicsmz] Also replace this old code in SubTree function [code=fw:1wwicsmz]<div class="fw" id="{CB}" style="font-family: monospace;"> &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> <span style="color: #ff0000;">'D'</span> $ aDir<span style="color: #000000;">&#91;</span> n <span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">5</span> <span style="color: #000000;">&#93;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oItem:<span style="color: #000000;">bAction</span> &nbsp;:= <span style="color: #000000;">&#123;</span> |o| o:<span style="color: #000000;">SetTree</span><span style="color: #000000;">&#40;</span> SubTree<span style="color: #000000;">&#40;</span> o <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>, o:<span style="color: #000000;">bACtion</span> := <span style="color: #00C800;">nil</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">endif</span><br />&nbsp;</div>[/code:1wwicsmz] with [code=fw:1wwicsmz]<div class="fw" id="{CB}" style="font-family: monospace;"> &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> <span style="color: #ff0000;">'D'</span> $ aDir<span style="color: #000000;">&#91;</span> n <span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">5</span> <span style="color: #000000;">&#93;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oItem:<span style="color: #000000;">bAction</span> &nbsp;:= <span style="color: #000000;">&#123;</span> |o| o:<span style="color: #000000;">SetTree</span><span style="color: #000000;">&#40;</span> SubTree<span style="color: #000000;">&#40;</span> o <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>, o:<span style="color: #000000;">bACtion</span> := <span style="color: #00C800;">nil</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oItem:<span style="color: #000000;">bAction</span> &nbsp;:= <span style="color: #000000;">&#123;</span> |o| <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> o:<span style="color: #000000;">cPrompt</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">endif</span><br />&nbsp;</div>[/code:1wwicsmz] I used 'C:\FWH' folder for my testing. You may change it to your folder.
problem with xbrwdisk.prg
Dear Mr. NagesWaraRao, Thank you very much for your help. Now I have all the functionality I need. Best regards, Otto
problem wth SetMultiSelectCol
I have this dialog with a buttonbar and a xbrowse with SetMultiSelectCol [img:kt8pi5sj]https&#58;//i&#46;postimg&#46;cc/9fsVDMws/d&#46;png[/img:kt8pi5sj] I wish when I click on first column ( SetMultiSelectCol) call the function btnbar() ( change the buttonbar) and refreshtitle() ( change dialog title) I tried with [code=fw:kt8pi5sj]<div class="fw" id="{CB}" style="font-family: monospace;"><br />WITH OBJECT  oBrw:<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span><br />               :<span style="color: #000000;">bLClicked</span> := <span style="color: #000000;">&#123;</span> |r,c,f,oBrw| <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> f := AScan<span style="color: #000000;">&#40;</span> oBrw:<span style="color: #000000;">aSelected</span>, oBrw:<span style="color: #000000;">BookMark</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> == <span style="color: #000000;">0</span>, ;<br />                     <span style="color: #000000;">&#40;</span>AAdd<span style="color: #000000;">&#40;</span> oBrw:<span style="color: #000000;">aSelected</span>, oBrw:<span style="color: #000000;">BookMark</span> <span style="color: #000000;">&#41;</span>,Btnbar<span style="color: #000000;">&#40;</span><span style="color: #000000;">2</span>,oDlg:<span style="color: #000000;">oBar</span>,oDlg,oDbf,oBrw<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>, ;<br />                     <span style="color: #000000;">&#40;</span>ADel<span style="color: #000000;">&#40;</span> oBrw:<span style="color: #000000;">aSelected</span>, f, .t. <span style="color: #000000;">&#41;</span>,IiF<span style="color: #000000;">&#40;</span>LEN<span style="color: #000000;">&#40;</span>oBrw:<span style="color: #000000;">aSelected</span><span style="color: #000000;">&#41;</span>==<span style="color: #000000;">0</span>,Btnbar<span style="color: #000000;">&#40;</span><span style="color: #000000;">1</span>,oDlg:<span style="color: #000000;">oBar</span>,oDlg,oDbf,oBrw<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 />                       Refresh_title<span style="color: #000000;">&#40;</span>oBrw,oDlg,oDbf,cTitle<span style="color: #000000;">&#41;</span>,;<br />                     oBrw:<span style="color: #000000;">RefreshCurrent</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>  <span style="color: #000000;">&#125;</span><br />             END<br /><br /> </div>[/code:kt8pi5sj] but not work and make error give me error on :bLClicked [b:kt8pi5sj]this is a small sample [/b:kt8pi5sj] [code=fw:kt8pi5sj]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #B900B9;">// sample with SetMultiSelectCol</span><br /><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">'fivewin.ch'</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">'xbrowse.ch'</span><br /><br /><span style="color: #00D7D7;">#DEFINE</span> TXT_DISPLAY_ITEMS   <span style="color: #ff0000;">" displayed items)"</span><br /><span style="color: #00D7D7;">#DEFINE</span> TXT_ITEM_SELECTED   <span style="color: #ff0000;">" item selected on "</span><br /><span style="color: #00D7D7;">#DEFINE</span> TXT_ITEMS_SELECTED  <span style="color: #ff0000;">" items selected on "</span><br /><span style="color: #00D7D7;">#DEFINE</span> TXT_SEARCH  <span style="color: #ff0000;">" search "</span><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, oFont,oBar,oDbf<br />   <span style="color: #00C800;">local</span> cTitle := <span style="color: #ff0000;">"Customers"</span><br /><br />       oDbf :=TDatabase<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Open</span><span style="color: #000000;">&#40;</span> , <span style="color: #ff0000;">"Customer"</span>, <span style="color: #ff0000;">"DBFCDX"</span>, .T. <span style="color: #000000;">&#41;</span><br />       oDbf:<span style="color: #000000;">setorder</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span><br />       oDbf:<span style="color: #000000;">Gotop</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFont <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">'Tahoma'</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">-14</span><br /><br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">640</span>,<span style="color: #000000;">440</span> <span style="color: #0000ff;">PIXEL</span> ;<br />      <span style="color: #0000ff;">FONT</span> oFont<br /><br /><br /><br />   @ <span style="color: #000000;">40</span>, <span style="color: #000000;">2</span> <span style="color: #0000ff;">XBROWSE</span> oBrw <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">-5</span>,<span style="color: #000000;">-2</span> <span style="color: #0000ff;">PIXEL</span> ;<br />      <span style="color: #0000ff;">AUTOCOLS</span> DATASOURCE oDbf  NOBORDER<br /><br />        MyStyleBrowse<span style="color: #000000;">&#40;</span>oBrw<span style="color: #000000;">&#41;</span><br /><br />       WITH OBJECT oBrw<br />             :<span style="color: #000000;">SetMultiSelectCol</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><br />           <span style="color: #B900B9;">/*  WITH OBJECT  oBrw:aCols[1]<br />               :bLClicked := { |r,c,f,oBrw| If( ( f := AScan( oBrw:aSelected, oBrw:BookMark ) ) == 0, ;<br />                     (AAdd( oBrw:aSelected, oBrw:BookMark ),Btnbar(2,oDlg:oBar,oDlg,oDbf,oBrw)), ;<br />                     (ADel( oBrw:aSelected, f, .t. ),IiF(LEN(oBrw:aSelected)==0,Btnbar(1,oDlg:oBar,oDlg,oDbf,oBrw),)) ), ;<br />                       Refresh_title(oBrw,oDlg,oDbf,cTitle),;<br />                     oBrw:RefreshCurrent()  }<br />             END<br />            */</span><br /><br /><br />            :<span style="color: #000000;">lHScroll</span>  := .f.<br />            :<span style="color: #000000;">CreateFromCode</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />         END<br /><br /><br />       <span style="color: #00C800;">FOR</span> i := <span style="color: #000000;">2</span> <span style="color: #0000ff;">TO</span> Len<span style="color: #000000;">&#40;</span> oBrw:<span style="color: #000000;">aCols</span> <span style="color: #000000;">&#41;</span><br /><br />             oCol := oBrw:<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span> i <span style="color: #000000;">&#93;</span><br />             oCol:<span style="color: #000000;">bLDClickData</span>  := <span style="color: #000000;">&#123;</span>|| oBrw:<span style="color: #00C800;">edit</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />          <span style="color: #00C800;">NEXT</span><br /><br /><br /><br /><br /><br /><br />   <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span>;<br />    <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">INIT</span> <span style="color: #000000;">&#40;</span> Btnbar<span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span>,oBar,oDlg,oDbf,oBrw<span style="color: #000000;">&#41;</span> ,;<br />              Btnbar<span style="color: #000000;">&#40;</span><span style="color: #000000;">1</span>,oDlg:<span style="color: #000000;">oBar</span>,oDlg,oDbf,oBrw<span style="color: #000000;">&#41;</span> ,;<br />              Refresh_title<span style="color: #000000;">&#40;</span>oBrw,oDlg,oDbf,cTitle<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />   <span style="color: #0000ff;">RELEASE</span> <span style="color: #0000ff;">FONT</span> oFont<br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><span style="color: #B900B9;">//-----------------------------------------------------------------------------------------//</span><br /><span style="color: #00C800;">Function</span> Btnbar<span style="color: #000000;">&#40;</span>nBar,oBar,oDlg,oDbf,oBrw<span style="color: #000000;">&#41;</span>  <span style="color: #B900B9;">// ,aBtnBar</span><br />   <span style="color: #00C800;">local</span> aBtnBar<br />   <span style="color: #00C800;">local</span> x<br /><br />   <span style="color: #00C800;">if</span> Valtype<span style="color: #000000;">&#40;</span> oBar <span style="color: #000000;">&#41;</span> = <span style="color: #ff0000;">"O"</span><br />      <span style="color: #00C800;">For</span> x := Len<span style="color: #000000;">&#40;</span> oBar:<span style="color: #000000;">aControls</span> <span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">to</span> <span style="color: #000000;">1</span> step - <span style="color: #000000;">1</span><br />         oBar:<span style="color: #000000;">Del</span><span style="color: #000000;">&#40;</span> x <span style="color: #000000;">&#41;</span><br />      <span style="color: #00C800;">Next</span> x<br />   <span style="color: #00C800;">endif</span><br /><br />   <span style="color: #00C800;">Do</span> <span style="color: #00C800;">case</span><br /><br />   <span style="color: #00C800;">case</span> nbar = <span style="color: #000000;">0</span><br />       <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTONBAR</span> oBar <span style="color: #0000ff;">OF</span> oDlg  <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">80</span>,<span style="color: #000000;">70</span>  TOP NOBORDER  <span style="color: #000000;">2015</span><br /><br /><span style="color: #00C800;">case</span> nbar = <span style="color: #000000;">1</span><br />   aBtnBar := array<span style="color: #000000;">&#40;</span><span style="color: #000000;">6</span><span style="color: #000000;">&#41;</span><br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTON</span> aBtnBar<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">OF</span> oBar <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"New"</span>  ;<br />                 <span style="color: #0000ff;">ACTION</span> <span style="color: #00C800;">NIL</span><br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTON</span> aBtnBar<span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">OF</span> oBar <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Modify"</span>  ;<br />                 <span style="color: #0000ff;">ACTION</span> <span style="color: #00C800;">NIL</span> GROUP  <span style="color: #0000ff;">WHEN</span> oDbf:<span style="color: #000000;">OrdKeyCount</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> > <span style="color: #000000;">0</span><br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTON</span> aBtnBar<span style="color: #000000;">&#91;</span><span style="color: #000000;">3</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">OF</span> oBar <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Duplicate"</span>  ;<br />                 <span style="color: #0000ff;">ACTION</span> <span style="color: #00C800;">NIL</span>       <span style="color: #0000ff;">WHEN</span> oDbf:<span style="color: #000000;">OrdKeyCount</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> > <span style="color: #000000;">0</span><br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTON</span> aBtnBar<span style="color: #000000;">&#91;</span><span style="color: #000000;">4</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">OF</span> oBar <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Del"</span> ;<br />                 <span style="color: #0000ff;">ACTION</span> <span style="color: #00C800;">NIL</span>           <span style="color: #0000ff;">WHEN</span> oDbf:<span style="color: #000000;">OrdKeyCount</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> > <span style="color: #000000;">0</span><br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTON</span> aBtnBar<span style="color: #000000;">&#91;</span><span style="color: #000000;">5</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">OF</span> oBar <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Print"</span>  ;<br />                 <span style="color: #0000ff;">ACTION</span> oBrw:<span style="color: #000000;">Report</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>  GROUP <span style="color: #0000ff;">WHEN</span> oDbf:<span style="color: #000000;">OrdKeyCount</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> > <span style="color: #000000;">0</span><br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTON</span> aBtnBar<span style="color: #000000;">&#91;</span><span style="color: #000000;">6</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">OF</span> oBar <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Help"</span> <span style="color: #0000ff;">RESOURCE</span> <span style="color: #ff0000;">"HLP_DLG"</span>  ;<br />                 <span style="color: #0000ff;">ACTION</span> <span style="color: #00C800;">NIL</span>  BTNRIGHT<br /><br /><span style="color: #00C800;">case</span> nbar = <span style="color: #000000;">2</span><br />    aBtnBar := array<span style="color: #000000;">&#40;</span><span style="color: #000000;">3</span><span style="color: #000000;">&#41;</span><br />    <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTON</span> aBtnBar<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">OF</span> oBar <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Del"</span>  ;<br />                  <span style="color: #0000ff;">ACTION</span> <span style="color: #00C800;">NIL</span>          <span style="color: #0000ff;">WHEN</span> oDbf:<span style="color: #000000;">OrdKeyCount</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> > <span style="color: #000000;">0</span><br />    <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTON</span> aBtnBar<span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">OF</span> oBar <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Print"</span>  ;<br />                  <span style="color: #0000ff;">ACTION</span> oBrw:<span style="color: #000000;">Report</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> GROUP <span style="color: #0000ff;">WHEN</span> oDbf:<span style="color: #000000;">OrdKeyCount</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> > <span style="color: #000000;">0</span><br />    <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTON</span> aBtnBar<span style="color: #000000;">&#91;</span><span style="color: #000000;">3</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">OF</span> oBar <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Help"</span>   ;<br />                   <span style="color: #0000ff;">ACTION</span> <span style="color: #00C800;">NIL</span>  BTNRIGHT<br /><span style="color: #00C800;">endcase</span><br /><span style="color: #00C800;">return</span> oBar<br /><span style="color: #B900B9;">//--------------------------------------------------------------------------//</span><br /><span style="color: #00C800;">Function</span> Refresh_title<span style="color: #000000;">&#40;</span>oBrw,oDlg,oDbf,cTitle<span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">local</span> nCounter<br />   <span style="color: #00C800;">local</span> cString<br /><br /><span style="color: #00C800;">IF</span> Len<span style="color: #000000;">&#40;</span>oBrw:<span style="color: #000000;">aSelected</span><span style="color: #000000;">&#41;</span> >=<span style="color: #000000;">1</span><br />   <span style="color: #00C800;">If</span> Len<span style="color: #000000;">&#40;</span>oBrw:<span style="color: #000000;">aSelected</span><span style="color: #000000;">&#41;</span> = <span style="color: #000000;">1</span><br />      cString := <span style="color: #ff0000;">" ( "</span> +ltrim<span style="color: #000000;">&#40;</span>Str<span style="color: #000000;">&#40;</span> Len<span style="color: #000000;">&#40;</span>oBrw:<span style="color: #000000;">aSelected</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>+ TXT_ITEM_SELECTED +lTrim<span style="color: #000000;">&#40;</span>str<span style="color: #000000;">&#40;</span>oDbf:<span style="color: #000000;">KeyCount</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>+TXT_DISPLAY_ITEMS<br />   <span style="color: #00C800;">else</span><br />      cString := <span style="color: #ff0000;">" ( "</span> +ltrim<span style="color: #000000;">&#40;</span>Str<span style="color: #000000;">&#40;</span> Len<span style="color: #000000;">&#40;</span>oBrw:<span style="color: #000000;">aSelected</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>+TXT_ITEMS_SELECTED +lTrim<span style="color: #000000;">&#40;</span>str<span style="color: #000000;">&#40;</span>oDbf:<span style="color: #000000;">KeyCount</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>+TXT_DISPLAY_ITEMS<br />    <span style="color: #00C800;">Endif</span><br /> <span style="color: #00C800;">else</span><br />    cString :=<span style="color: #ff0000;">" ( "</span>+lTrim<span style="color: #000000;">&#40;</span>str<span style="color: #000000;">&#40;</span>oDbf:<span style="color: #000000;">KeyCount</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>+TXT_DISPLAY_ITEMS<br /><span style="color: #00C800;">Endif</span><br />oDlg:<span style="color: #000000;">SetText</span><span style="color: #000000;">&#40;</span> cTitle+cString<span style="color: #000000;">&#41;</span><br /> <span style="color: #00C800;">return</span> <span style="color: #00C800;">Nil</span><br /><span style="color: #B900B9;">//--------------------------------------------------------------------------//</span><br /> <span style="color: #00C800;">Function</span> MyStyleBrowse<span style="color: #000000;">&#40;</span>oBrw<span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">local</span> nColorPigiama := RGB<span style="color: #000000;">&#40;</span><span style="color: #000000;">243</span>,<span style="color: #000000;">243</span>,<span style="color: #000000;">238</span><span style="color: #000000;">&#41;</span><br /><br /><br />    WITH OBJECT oBrw<br />            :<span style="color: #000000;">nRowHeight</span>          := <span style="color: #000000;">25</span><br />            :<span style="color: #000000;">l2007</span>               := .F.<br />            :<span style="color: #000000;">l2015</span>               := .T.<br />            :<span style="color: #000000;">lRecordSelector</span>     := .F.<br />            :<span style="color: #000000;">nColDividerStyle</span>    := LINESTYLE_LIGHTGRAY<br />            :<span style="color: #000000;">nRowDividerStyle</span>    := LINESTYLE_LIGHTGRAY<br />            :<span style="color: #000000;">nStretchCol</span>         := STRETCHCOL_WIDEST<br />            :<span style="color: #000000;">nMarqueeStyle</span>        := MARQSTYLE_HIGHLROW<br /><br />            :<span style="color: #000000;">lAllowRowSizing</span>     := .F.<br />            :<span style="color: #000000;">lAllowColSwapping</span>   := .F.<br />            :<span style="color: #000000;">lAllowColHiding</span>     := .F.<br />            :<span style="color: #000000;">lAllowSizings</span>       := .F.<br /><br />             :<span style="color: #000000;">lDrawBorder</span> := .t.<br />             :<span style="color: #000000;">nClrBorder</span> := Rgb<span style="color: #000000;">&#40;</span><span style="color: #000000;">195</span>,<span style="color: #000000;">195</span>,<span style="color: #000000;">185</span><span style="color: #000000;">&#41;</span><br /><br />            :<span style="color: #000000;">bRecSelHeader</span>    := <span style="color: #ff0000;">""</span><br />         :<span style="color: #000000;">bClrStd</span> := <span style="color: #000000;">&#123;</span> || <span style="color: #000000;">&#123;</span> CLR_BLACK, <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> oBrw:<span style="color: #000000;">KeyNo</span> % <span style="color: #000000;">2</span> == <span style="color: #000000;">0</span>, CLR_WHITE,nColorPigiama <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span><br />         END<br /> <span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /> </div>[/code:kt8pi5sj]
problem wth SetMultiSelectCol
Silvio, en mi version solo funciona asi: [code=fw:3yq3w42o]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">'fivewin.ch'</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">'xbrowse.ch'</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"constant.ch"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"report.ch"</span><br /><br />ANNOUNCE RDDSYS<br />REQUEST OrdKeyNo, OrdKeyCount, OrdCreate, OrdKeyGoto <span style="color: #B900B9;">// Para ListBox</span><br />REQUEST DBFCDX, DBFFPT<br /><br /><span style="color: #00C800;">STATIC</span> aBtnBar<br /><span style="color: #00C800;">STATIC</span> lLigaBtn1 := .T., lLigaBtn2 := .T., lLigaBtn3 := .T., ;<br />&nbsp; &nbsp; &nbsp; &nbsp;lLigaBtn4 := .T., lLigaBtn5 := .T., lLigaBtn6 := .T.<br /><br /><span style="color: #00C800;">FUNCTION</span> test<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> oDlg, oDbf, oFont<br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> oBar<br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> aBtnBrow<br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> nBottom &nbsp; := <span style="color: #000000;">27.2</span><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> nRight &nbsp; &nbsp;:= <span style="color: #000000;">89</span><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> nWd &nbsp; &nbsp; &nbsp; := <span style="color: #0000ff;">Max</span><span style="color: #000000;">&#40;</span> nRight * DLG_CHARPIX_W, <span style="color: #000000;">180</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> nHt &nbsp; &nbsp; &nbsp; := nBottom * DLG_CHARPIX_H<br /><br />&nbsp; &nbsp;aBtnBar := Array<span style="color: #000000;">&#40;</span> <span style="color: #000000;">8</span> <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// no puede ser LOCAL</span><br /><br />&nbsp; &nbsp;rddSetDefault<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"DBFCDX"</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;oDbf := TDatabase<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Open</span><span style="color: #000000;">&#40;</span> , <span style="color: #ff0000;">"Customer"</span>, <span style="color: #ff0000;">"DBFCDX"</span>, .T. <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oDbf:<span style="color: #000000;">setorder</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oDbf:<span style="color: #000000;">Gotop</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">/* // PARA TESTES EN MI VERSION<br />&nbsp; &nbsp;IF NetUse( "CUSTOMER", .T. ) // asi, mi version funciona de 1000.<br /><br />&nbsp; &nbsp; &nbsp; DATABASE oDbf<br /><br />&nbsp; &nbsp; &nbsp; oDbf:Load()<br />&nbsp; &nbsp; &nbsp; oDbf:SetBuffer( .T. )<br /><br />&nbsp; &nbsp; &nbsp; oDbf:setorder( 1 )<br />&nbsp; &nbsp; &nbsp; oDBf:GoTop()<br /><br />&nbsp; &nbsp;ELSE<br /><br />&nbsp; &nbsp; &nbsp; MsgStop( "Banco de Dados CUSTOMER Bloqueado", "Cuidado!" )<br /><br />&nbsp; &nbsp; &nbsp; RETURN NIL<br /><br />&nbsp; &nbsp;ENDIF<br />&nbsp; &nbsp;*/</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">SIZE</span> nWd, nHt <span style="color: #0000ff;">PIXEL</span> TRUEPIXEL <span style="color: #0000ff;">TiTle</span> <span style="color: #ff0000;">"test"</span><br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">110</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">XBROWSE</span> oBrw <span style="color: #0000ff;">SIZE</span> - <span style="color: #000000;">10</span>, - <span style="color: #000000;">10</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg ;<br />&nbsp; &nbsp; &nbsp; DATASOURCE oDbf <span style="color: #0000ff;">AUTOCOLS</span> AUTOSORT <span style="color: #0000ff;">FONT</span> oFont NOBORDER CELL LINES<br /><br />&nbsp; &nbsp;WITH OBJECT oBrw<br /><br />&nbsp; &nbsp; &nbsp; WITH OBJECT oBrw:<span style="color: #000000;">InsCol</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:<span style="color: #000000;">bEditValue</span> &nbsp; &nbsp;:= <span style="color: #000000;">&#123;</span>|| AScan<span style="color: #000000;">&#40;</span> oBrw:<span style="color: #000000;">aSelected</span>, oBrw:<span style="color: #000000;">BookMark</span> <span style="color: #000000;">&#41;</span> > <span style="color: #000000;">0</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:<span style="color: #000000;">SetCheck</span><span style="color: #000000;">&#40;</span> <span style="color: #00C800;">NIL</span>, .T. <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:<span style="color: #000000;">nHeadBmpNo</span> &nbsp; &nbsp;:= <span style="color: #000000;">&#123;</span>|| <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> Len<span style="color: #000000;">&#40;</span> oBrw:<span style="color: #000000;">aSelected</span> <span style="color: #000000;">&#41;</span> == oBrw:<span style="color: #000000;">nLen</span>, <span style="color: #000000;">1</span>, <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:<span style="color: #000000;">bFooter</span> &nbsp; &nbsp; &nbsp; := <span style="color: #000000;">&#123;</span>|| Str<span style="color: #000000;">&#40;</span> Len<span style="color: #000000;">&#40;</span> oBrw:<span style="color: #000000;">aSelected</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp; &nbsp; END<br /><br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">bLClicked</span> := <span style="color: #000000;">&#123;</span>| r, c, f, oBrw | <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> oBrw:<span style="color: #000000;">MouseColPos</span><span style="color: #000000;">&#40;</span> c <span style="color: #000000;">&#41;</span> == <span style="color: #000000;">1</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> f := AScan<span style="color: #000000;">&#40;</span> oBrw:<span style="color: #000000;">aSelected</span>, oBrw:<span style="color: #000000;">BookMark</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> == <span style="color: #000000;">0</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#40;</span> AAdd<span style="color: #000000;">&#40;</span> oBrw:<span style="color: #000000;">aSelected</span>, oBrw:<span style="color: #000000;">BookMark</span> <span style="color: #000000;">&#41;</span>, Btnbar<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span>, oDlg:<span style="color: #000000;">oBar</span>, oDlg, oDbf, oBrw <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#40;</span> ADel<span style="color: #000000;">&#40;</span> oBrw:<span style="color: #000000;">aSelected</span>, f, .T. <span style="color: #000000;">&#41;</span>, Btnbar<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>, oDlg:<span style="color: #000000;">oBar</span>, oDlg, oDbf, oBrw <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>, <span style="color: #00C800;">NIL</span> <span style="color: #000000;">&#41;</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oBrw:<span style="color: #000000;">RefreshCurrent</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">bKeyChar</span> &nbsp; := <span style="color: #000000;">&#123;</span>| k | <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> k == VK_SPACE, <span style="color: #000000;">&#40;</span> oBrw:<span style="color: #000000;">oCol</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>:<span style="color: #000000;">CheckToggle</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, oBrw:<span style="color: #000000;">RefreshCurrent</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, <span style="color: #000000;">0</span> <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; &nbsp; &nbsp; :<span style="color: #000000;">bLDblClick</span> := <span style="color: #000000;">&#123;</span>|| oBrw:<span style="color: #000000;">oCol</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>:<span style="color: #000000;">CheckToggle</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, oBrw:<span style="color: #000000;">RefreshCurrent</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">bClrStd</span> &nbsp; &nbsp;:= <span style="color: #000000;">&#123;</span>|| <span style="color: #000000;">&#123;</span> CLR_BLACK, <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> oBrw:<span style="color: #000000;">oCol</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span>, 0x80ffff, CLR_WHITE <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">nRowHeight</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= <span style="color: #000000;">25</span><br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">l2007</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; := .F.<br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">l2015</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; := .T.<br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">lRecordSelector</span> &nbsp; &nbsp; := .F.<br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">nColDividerStyle</span> &nbsp; &nbsp;:= LINESTYLE_LIGHTGRAY<br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">nRowDividerStyle</span> &nbsp; &nbsp;:= LINESTYLE_LIGHTGRAY<br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">nStretchCol</span> &nbsp; &nbsp; &nbsp; &nbsp; := STRETCHCOL_WIDEST<br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">nMarqueeStyle</span> &nbsp; &nbsp; &nbsp; := MARQSTYLE_HIGHLROW<br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">lAllowRowSizing</span> &nbsp; &nbsp; := .F.<br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">lAllowColSwapping</span> &nbsp; := .F.<br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">lAllowColHiding</span> &nbsp; &nbsp; := .F.<br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">lAllowSizings</span> &nbsp; &nbsp; &nbsp; := .F.<br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">lDrawBorder</span> := .T.<br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">nClrBorder</span> := Rgb<span style="color: #000000;">&#40;</span> <span style="color: #000000;">195</span>, <span style="color: #000000;">195</span>, <span style="color: #000000;">185</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">bClrStd</span> := <span style="color: #000000;">&#123;</span>|| <span style="color: #000000;">&#123;</span> CLR_BLACK, <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> oBrw:<span style="color: #000000;">KeyNo</span> % <span style="color: #000000;">2</span> == <span style="color: #000000;">0</span>, CLR_WHITE, RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">243</span>, <span style="color: #000000;">243</span>, <span style="color: #000000;">238</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">CreateFromCode</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;END<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">FOR</span> i := <span style="color: #000000;">2</span> <span style="color: #0000ff;">TO</span> Len<span style="color: #000000;">&#40;</span> oBrw:<span style="color: #000000;">aCols</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; oCol := oBrw:<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span> i <span style="color: #000000;">&#93;</span><br />&nbsp; &nbsp; &nbsp; oCol:<span style="color: #000000;">bLDClickData</span> &nbsp;:= <span style="color: #000000;">&#123;</span>|| <span style="color: #0000ff;">msginfo</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Modify"</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">NEXT</span><br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">85</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">BTNBMP</span> aBtnBrow FLAT &nbsp;<span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">80</span>, <span style="color: #000000;">20</span> &nbsp;<span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">PIXEL</span> ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Select menu"</span> NOROUND &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ACTION</span> ::<span style="color: #000000;">ShowPopUp</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#123;</span>| oBtn | MenuContextual<span style="color: #000000;">&#40;</span> oBtn, oBrw, oDbf, oDlg <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">INIT</span> <span style="color: #000000;">&#40;</span> &nbsp;Btnbar<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>, oBar, oDlg, oDbf, oBrw <span style="color: #000000;">&#41;</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Btnbar<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>, oDlg:<span style="color: #000000;">oBar</span>, oDlg, oDbf, oBrw <span style="color: #000000;">&#41;</span>, &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ChangeButtons<span style="color: #000000;">&#40;</span> oDlg:<span style="color: #000000;">oBar</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 /><br /><span style="color: #00C800;">FUNCTION</span> Btnbar<span style="color: #000000;">&#40;</span> nBar, oBar, oDlg, oDbf, oBrw <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> x<br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">// esto no funciona en mi version</span><br />&nbsp; &nbsp;<span style="color: #00C800;">IF</span> ValType<span style="color: #000000;">&#40;</span> oBar <span style="color: #000000;">&#41;</span> = <span style="color: #ff0000;">"O"</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">FOR</span> x := Len<span style="color: #000000;">&#40;</span> oBar:<span style="color: #000000;">aControls</span> <span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">TO</span> <span style="color: #000000;">1</span> STEP - <span style="color: #000000;">1</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oBar:<span style="color: #000000;">Del</span><span style="color: #000000;">&#40;</span> x <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">NEXT</span> x<br />&nbsp; &nbsp;<span style="color: #00C800;">ENDIF</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">DO</span> <span style="color: #00C800;">CASE</span><br />&nbsp; &nbsp;<span style="color: #00C800;">CASE</span> nbar = <span style="color: #000000;">0</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTONBAR</span> oBar <span style="color: #0000ff;">OF</span> oDlg &nbsp;<span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">80</span>, <span style="color: #000000;">70</span> &nbsp;TOP NOBORDER &nbsp;<span style="color: #000000;">2007</span><br /><br />&nbsp; &nbsp; &nbsp; oBar:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">CASE</span> nbar = <span style="color: #000000;">1</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTONBAR</span> oBar <span style="color: #0000ff;">OF</span> oDlg &nbsp;<span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">80</span>, <span style="color: #000000;">70</span> &nbsp;TOP NOBORDER &nbsp;<span style="color: #000000;">2007</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTON</span> aBtnBar<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">OF</span> oBar <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"New"</span> &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">WHEN</span><span style="color: #000000;">&#40;</span> lLigaBtn1 <span style="color: #000000;">&#41;</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">ACTION</span> <span style="color: #00C800;">NIL</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTON</span> aBtnBar<span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">OF</span> oBar <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Modify"</span> &nbsp; &nbsp;<span style="color: #0000ff;">WHEN</span><span style="color: #000000;">&#40;</span> lLigaBtn2 <span style="color: #000000;">&#41;</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">ACTION</span> <span style="color: #00C800;">NIL</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTON</span> aBtnBar<span style="color: #000000;">&#91;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">OF</span> oBar <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Duplicate"</span> <span style="color: #0000ff;">WHEN</span><span style="color: #000000;">&#40;</span> lLigaBtn3 <span style="color: #000000;">&#41;</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">ACTION</span> <span style="color: #00C800;">NIL</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTON</span> aBtnBar<span style="color: #000000;">&#91;</span> <span style="color: #000000;">4</span> <span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">OF</span> oBar <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Del"</span> &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">WHEN</span><span style="color: #000000;">&#40;</span> lLigaBtn4 <span style="color: #000000;">&#41;</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">ACTION</span> <span style="color: #00C800;">NIL</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTON</span> aBtnBar<span style="color: #000000;">&#91;</span> <span style="color: #000000;">5</span> <span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">OF</span> oBar <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Print"</span> &nbsp; &nbsp; <span style="color: #0000ff;">WHEN</span><span style="color: #000000;">&#40;</span> lLigaBtn5 <span style="color: #000000;">&#41;</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">ACTION</span> oBrw:<span style="color: #000000;">Report</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTON</span> aBtnBar<span style="color: #000000;">&#91;</span> <span style="color: #000000;">6</span> <span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">OF</span> oBar <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"HElp"</span> &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">WHEN</span><span style="color: #000000;">&#40;</span> lLigaBtn6 <span style="color: #000000;">&#41;</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">ACTION</span> <span style="color: #00C800;">NIL</span> BTNRIGHT<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">CASE</span> nbar = <span style="color: #000000;">2</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTONBAR</span> oBar <span style="color: #0000ff;">OF</span> oDlg &nbsp;<span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">80</span>, <span style="color: #000000;">70</span> &nbsp;TOP NOBORDER &nbsp;<span style="color: #000000;">2007</span> <span style="color: #B900B9;">// 2015</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTON</span> aBtnBar<span style="color: #000000;">&#91;</span><span style="color: #000000;">4</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">OF</span> oBar <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Del"</span> &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">WHEN</span><span style="color: #000000;">&#40;</span> lLigaBtn4 <span style="color: #000000;">&#41;</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">ACTION</span> <span style="color: #00C800;">NIL</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTON</span> aBtnBar<span style="color: #000000;">&#91;</span><span style="color: #000000;">5</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">OF</span> oBar <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Print"</span> &nbsp; &nbsp; <span style="color: #0000ff;">WHEN</span><span style="color: #000000;">&#40;</span> lLigaBtn5 <span style="color: #000000;">&#41;</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">ACTION</span> oBrw:<span style="color: #000000;">Report</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTON</span> aBtnBar<span style="color: #000000;">&#91;</span><span style="color: #000000;">6</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">OF</span> oBar <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Help"</span> &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">WHEN</span><span style="color: #000000;">&#40;</span> lLigaBtn6 <span style="color: #000000;">&#41;</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">ACTION</span> <span style="color: #00C800;">NIL</span> BTNRIGHT<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">ENDCASE</span><br /><br /><span style="color: #00C800;">RETURN</span> oBar<br /><br /><span style="color: #00C800;">FUNCTION</span> ChangeButtons<span style="color: #000000;">&#40;</span> oBar <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;AEval<span style="color: #000000;">&#40;</span> oBar:<span style="color: #000000;">aControls</span>, <span style="color: #000000;">&#123;</span>| oCtrl | oCtrl:<span style="color: #000000;">nTop</span> += <span style="color: #000000;">4</span>, oCtrl:<span style="color: #000000;">nHeight</span> -= <span style="color: #000000;">4</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">RETURN</span> .T.<br /><br /><span style="color: #00C800;">FUNCTION</span> MenuContextual<span style="color: #000000;">&#40;</span> oControl, oBrw, oDbf, oParent <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> oMenu<br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">MENU</span> oMenu <span style="color: #0000ff;">POPUP</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">IF</span> oBrw:<span style="color: #000000;">IsSelectedRow</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Deselect row"</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">&#40;</span> oBrw:<span style="color: #000000;">SelectRow</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Btnbar<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>, oParent:<span style="color: #000000;">oBar</span>, oParent, oDbf, oBrw <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">ELSE</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Select row"</span> &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">&#40;</span> oBrw:<span style="color: #000000;">SelectRow</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Btnbar<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span>, oParent:<span style="color: #000000;">oBar</span>, oParent, oDbf, oBrw <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">ENDIF</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">SEPARATOR</span><br />&nbsp; &nbsp;<span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Print"</span> &nbsp;;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ACTION</span> oBrw:<span style="color: #000000;">Report</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">ENDMENU</span><br /><br /><span style="color: #00C800;">RETURN</span> oMenu<br /><br /><span style="color: #00C800;">FUNCTION</span> NetUse<span style="color: #000000;">&#40;</span> cDbf, lShared <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> cAlias := cFileName<span style="color: #000000;">&#40;</span> cDbf <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> bAlias := cFileName<span style="color: #000000;">&#40;</span> cDbf <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">If</span> cDbf = <span style="color: #00C800;">NIL</span> .OR. !File<span style="color: #000000;">&#40;</span> cDbf + <span style="color: #ff0000;">".DBF"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; MsgStop<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"NOME DO ARQUIVO INCORRETO"</span> + CRLF + CRLF + ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #ff0000;">"NÃO ACHEI BANCO DE DADOS."</span> + CRLF + CRLF + ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cDbf + <span style="color: #ff0000;">".DBF"</span>, <span style="color: #ff0000;">"ERRO FATAL!!"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">RETURN</span><span style="color: #000000;">&#40;</span> .F. <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">ENDIF</span><br /><br />&nbsp; &nbsp;IIf<span style="color: #000000;">&#40;</span> lShared = <span style="color: #00C800;">NIL</span>, lShared := .F., lShared <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">IF</span> lShared = .T.<br /><br />&nbsp; &nbsp; &nbsp; USE <span style="color: #000000;">&#40;</span> cDbf <span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">ALIAS</span> <span style="color: #000000;">&#40;</span> cAlias <span style="color: #000000;">&#41;</span> VIA <span style="color: #ff0000;">"DBFCDX"</span> SHARED <span style="color: #00C800;">NEW</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">ELSE</span><br /><br />&nbsp; &nbsp; &nbsp; USE <span style="color: #000000;">&#40;</span> cDbf <span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">ALIAS</span> <span style="color: #000000;">&#40;</span> cAlias <span style="color: #000000;">&#41;</span> VIA <span style="color: #ff0000;">"DBFCDX"</span> EXCLUSIVE <span style="color: #00C800;">NEW</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">ENDIF</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">IF</span> !NetErr<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">RETURN</span><span style="color: #000000;">&#40;</span> .T. <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">ENDIF</span><br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">// Se nÆo podemos abrir, solicita repeti‡Æo</span><br />&nbsp; &nbsp;MsgStop<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"IMPOSSIVEL ABRIR BANCO DE DADOS: "</span> + cAlias + CRLF + ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;OemToAnsi<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"BLOQUEADO POR OUTRO USUµRIO."</span> <span style="color: #000000;">&#41;</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"ERRO FATAL DE REDE! FECHAR BANCO DE DADOS."</span> <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">RETURN</span><span style="color: #000000;">&#40;</span> .F. <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #B900B9;">// FIN - <!-- e --><a href="mailto:[email protected]">[email protected]</a><!-- e --></span><br />&nbsp;</div>[/code:3yq3w42o] Regards, saludos.
problem wth SetMultiSelectCol
No good .. please not change btnbar function of Cristobal run ok Your solution Is no good because It go to conflict to doubleclick call edit function Oy Mr. Nageswarao can resolve it
problem wth SetMultiSelectCol
[quote="Silvio.Falconi":2zak25kc]No good .. please not change btnbar function of Cristobal run ok Your solution Is no good because It go to conflict to doubleclick call edit function Oy Mr. Nageswarao can resolve it[/quote:2zak25kc] Dear Silvio, DATA bLClicked is of TXBROWSE CLASS You must calculate the column in which the mouse click occurred Try with this code [code=fw:2zak25kc]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br /><span style="color: #B900B9;">// Remove             //WITH OBJECT  oBrw:aCols[1]</span><br />               :<span style="color: #000000;">bLClicked</span> := <span style="color: #000000;">&#123;</span> |r,c,f,oBrw| <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> oBrw:<span style="color: #000000;">Mousecolpos</span><span style="color: #000000;">&#40;</span> c <span style="color: #000000;">&#41;</span> == <span style="color: #000000;">1</span>, ;<br />                    <span style="color: #000000;">&#40;</span> <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> f := AScan<span style="color: #000000;">&#40;</span> oBrw:<span style="color: #000000;">aSelected</span>, oBrw:<span style="color: #000000;">BookMark</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> == <span style="color: #000000;">0</span>, ;<br />                     <span style="color: #000000;">&#40;</span>AAdd<span style="color: #000000;">&#40;</span> oBrw:<span style="color: #000000;">aSelected</span>, oBrw:<span style="color: #000000;">BookMark</span> <span style="color: #000000;">&#41;</span>,Btnbar<span style="color: #000000;">&#40;</span><span style="color: #000000;">2</span>,oDlg:<span style="color: #000000;">oBar</span>,oDlg,oDbf,oBrw<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>, ;<br />                     <span style="color: #000000;">&#40;</span>ADel<span style="color: #000000;">&#40;</span> oBrw:<span style="color: #000000;">aSelected</span>, f, .t. <span style="color: #000000;">&#41;</span>,IiF<span style="color: #000000;">&#40;</span>LEN<span style="color: #000000;">&#40;</span>oBrw:<span style="color: #000000;">aSelected</span><span style="color: #000000;">&#41;</span>==<span style="color: #000000;">0</span>,Btnbar<span style="color: #000000;">&#40;</span><span style="color: #000000;">1</span>,oDlg:<span style="color: #000000;">oBar</span>,oDlg,oDbf,oBrw<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 />                       Refresh_title<span style="color: #000000;">&#40;</span>oBrw,oDlg,oDbf,cTitle<span style="color: #000000;">&#41;</span>,;<br />                     oBrw:<span style="color: #000000;">RefreshCurrent</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 /><span style="color: #B900B9;">//Rems             //END</span><br /><br /> </div>[/code:2zak25kc]
problem wth SetMultiSelectCol
[quote="cnavarro":7bqgfq2x][quote="Silvio.Falconi":7bqgfq2x]No good .. please not change btnbar function of Cristobal run ok Your solution Is no good because It go to conflict to doubleclick call edit function Oy Mr. Nageswarao can resolve it[/quote:7bqgfq2x] Dear Silvio, DATA bLClicked is of TXBROWSE CLASS You must calculate the column in which the mouse click occurred Try with this code [code=fw:7bqgfq2x]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br /><span style="color: #B900B9;">// Remove             //WITH OBJECT  oBrw:aCols[1]</span><br />               :<span style="color: #000000;">bLClicked</span> := <span style="color: #000000;">&#123;</span> |r,c,f,oBrw| <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> oBrw:<span style="color: #000000;">Mousecolpos</span><span style="color: #000000;">&#40;</span> c <span style="color: #000000;">&#41;</span> == <span style="color: #000000;">1</span>, ;<br />                    <span style="color: #000000;">&#40;</span> <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> f := AScan<span style="color: #000000;">&#40;</span> oBrw:<span style="color: #000000;">aSelected</span>, oBrw:<span style="color: #000000;">BookMark</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> == <span style="color: #000000;">0</span>, ;<br />                     <span style="color: #000000;">&#40;</span>AAdd<span style="color: #000000;">&#40;</span> oBrw:<span style="color: #000000;">aSelected</span>, oBrw:<span style="color: #000000;">BookMark</span> <span style="color: #000000;">&#41;</span>,Btnbar<span style="color: #000000;">&#40;</span><span style="color: #000000;">2</span>,oDlg:<span style="color: #000000;">oBar</span>,oDlg,oDbf,oBrw<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>, ;<br />                     <span style="color: #000000;">&#40;</span>ADel<span style="color: #000000;">&#40;</span> oBrw:<span style="color: #000000;">aSelected</span>, f, .t. <span style="color: #000000;">&#41;</span>,IiF<span style="color: #000000;">&#40;</span>LEN<span style="color: #000000;">&#40;</span>oBrw:<span style="color: #000000;">aSelected</span><span style="color: #000000;">&#41;</span>==<span style="color: #000000;">0</span>,Btnbar<span style="color: #000000;">&#40;</span><span style="color: #000000;">1</span>,oDlg:<span style="color: #000000;">oBar</span>,oDlg,oDbf,oBrw<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 />                       Refresh_title<span style="color: #000000;">&#40;</span>oBrw,oDlg,oDbf,cTitle<span style="color: #000000;">&#41;</span>,;<br />                     oBrw:<span style="color: #000000;">RefreshCurrent</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 /><span style="color: #B900B9;">//Rems             //END</span><br /><br /> </div>[/code:7bqgfq2x][/quote:7bqgfq2x] Cris, I've already tried that might work but when I click on the first column, both the xbrowse table and the buttonbar shake obviously for the modification I will have to use the doubleclick from the second column but everything is unstable, everything shakes and flashes when I click on the first column on xbrowse class there is [b:7bqgfq2x]:bOnMultiSelect[/b:7bqgfq2x] but I not understood how create it [b:7bqgfq2x]from fwh 12.08[/b:7bqgfq2x] (1) New DATA bOnMultiSelect: If assigned, the codeblock is executed with Self and nOperation as parameters after a multiselect operation.
problem wth SetMultiSelectCol
Perhaps :bOnMultiSelect := { || (IIF(LEN(oBrw:aSelected)==0,; Btnbar(1,oDlg:oBar,oDlg,oDbf,oBrw),; Btnbar(2,oDlg:oBar,oDlg,oDbf,oBrw) ),Refresh_title(oBrw,oDlg,oDbf,cTitle)) } but it shakes and flashes all the same I I try with [b:bqrudt9g]:bOnMultiSelect := { || Refresh_title(oBrw,oDlg,oDbf,cTitle) }[/b:bqrudt9g] it run ok but then not run the btnbar function So, is the btnbar go to shakes and flashes all
problem wth SetMultiSelectCol
[b:w8oku859]found the solution [/b:w8oku859] [code=fw:w8oku859]<div class="fw" id="{CB}" style="font-family: monospace;"> <br />:<span style="color: #000000;">SetMultiSelectCol</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />         :<span style="color: #000000;">bLClicked</span> := <span style="color: #000000;">&#123;</span> |r,c,f,oBrw| <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> oBrw:<span style="color: #000000;">Mousecolpos</span><span style="color: #000000;">&#40;</span> c <span style="color: #000000;">&#41;</span> == <span style="color: #000000;">1</span>, ;<br />                    <span style="color: #000000;">&#40;</span> <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> f := AScan<span style="color: #000000;">&#40;</span> oBrw:<span style="color: #000000;">aSelected</span>, oBrw:<span style="color: #000000;">BookMark</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> == <span style="color: #000000;">0</span>, ;<br />                     <span style="color: #000000;">&#40;</span> AAdd<span style="color: #000000;">&#40;</span> oBrw:<span style="color: #000000;">aSelected</span>, oBrw:<span style="color: #000000;">BookMark</span> <span style="color: #000000;">&#41;</span>, ;<br />                       <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> Len<span style="color: #000000;">&#40;</span> oBrw:<span style="color: #000000;">aSelected</span> <span style="color: #000000;">&#41;</span> = <span style="color: #000000;">1</span>, Btnbar<span style="color: #000000;">&#40;</span><span style="color: #000000;">2</span>,oDlg:<span style="color: #000000;">oBar</span>,oDlg,oDbf,oBrw<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> ADel<span style="color: #000000;">&#40;</span> oBrw:<span style="color: #000000;">aSelected</span>, f, .t. <span style="color: #000000;">&#41;</span>, ;<br />                       <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> LEN<span style="color: #000000;">&#40;</span>oBrw:<span style="color: #000000;">aSelected</span><span style="color: #000000;">&#41;</span>==<span style="color: #000000;">0</span>, Btnbar<span style="color: #000000;">&#40;</span><span style="color: #000000;">1</span>,oDlg:<span style="color: #000000;">oBar</span>,oDlg,oDbf,oBrw<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 />                     Refresh_title<span style="color: #000000;">&#40;</span>oBrw,oDlg,oDbf,cTitle<span style="color: #000000;">&#41;</span>,;<br />                     oBrw:<span style="color: #000000;">RefreshCurrent</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></div>[/code:w8oku859] then we must change [b:w8oku859]bar class [/b:w8oku859] [b:w8oku859]method del [/b:w8oku859] from :: refresh() to ::refresh(.f.) [b:w8oku859]line 717[/b:w8oku859] [b:w8oku859]method btnadjust[/b:w8oku859] from ::oWnd:Refresh() to ::oWnd:Refresh(.f.) [b:w8oku859]line 571[/b:w8oku859] and all run ok without flash , without the system vibrates and flashes [img:w8oku859]https&#58;//i&#46;postimg&#46;cc/FH0yNF35/ok&#46;gif[/img:w8oku859]
problem wth SetMultiSelectCol
Dear Silvio, many thanks for your great feedback Already implemented for the next FWH build that it is coming <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
problem wth SetMultiSelectCol
Dear Silvio As I told you in my email, please do not modify the class in this way to ensure compatibility with older developments. The best way to do it would be to add the lRefresh parameter in both methods [code=fw:2n36iigv]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">METHOD</span> Del<span style="color: #000000;">&#40;</span> nPos, lRefresh <span style="color: #000000;">&#41;</span> <span style="color: #00C800;">CLASS</span> TBar<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> n<br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> lGroup:= ::<span style="color: #000000;">aControls</span><span style="color: #000000;">&#91;</span> nPos <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">lGroup</span><br />&nbsp; &nbsp;<br />&nbsp; &nbsp;<span style="color: #00C800;">DEFAULT</span> lRefresh &nbsp; := .T.<br /><br />.../...<br /><br />&nbsp; &nbsp;::<span style="color: #000000;">BtnAdjust</span><span style="color: #000000;">&#40;</span> lRefresh <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;::<span style="color: #0000ff;">Refresh</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;">nil</span><br />&nbsp;</div>[/code:2n36iigv] [code=fw:2n36iigv]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">METHOD</span> BtnAdjust<span style="color: #000000;">&#40;</span> lRefresh <span style="color: #000000;">&#41;</span> <span style="color: #00C800;">CLASS</span> TBar<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> n, nGroups := <span style="color: #000000;">0</span>, nPopups := <span style="color: #000000;">0</span><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> l3D := ::<span style="color: #000000;">l3D</span> .and. ! <span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">l2007</span> .or. ::<span style="color: #000000;">l2010</span> .or. ::<span style="color: #000000;">l2013</span> .or. ::<span style="color: #000000;">l2015</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> nRow := <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> l3D, <span style="color: #000000;">2</span>, <span style="color: #000000;">-1</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> nCol := <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> l3D, <span style="color: #000000;">2</span>, <span style="color: #000000;">-1</span> <span style="color: #000000;">&#41;</span> + ::<span style="color: #000000;">nOffSet</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">DEFAULT</span> lRefresh &nbsp;:= .T.<br /><br />... / ...<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">endcase</span><br /><br />&nbsp; &nbsp;::<span style="color: #000000;">oWnd</span>:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span> lRefresh <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">return</span> ni<br />&nbsp;</div>[/code:2n36iigv] When you use method Del, then use [b:2n36iigv]oBar:Del( nPos, .F. )[/b:2n36iigv] if is neccesary
problem wth SetMultiSelectCol
Modified as Cristobal proposal many thanks Cristobal <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
problem wth SetMultiSelectCol
[quote="Antonio Linares":2nzv7csj]Modified as Cristobal proposal many thanks Cristobal <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->[/quote:2nzv7csj] in the xbrowse table if I press space the record check is activated but it doesn't activate the buttonbar menu change
problem wth SetMultiSelectCol
[b:2pwuta0w]Resolved!![/b:2pwuta0w] :bKeyChar := {| k | (If( k == VK_SPACE,(IIF( oBrw:IsSelectedRow(),; Btnbar(1,oDlg:oBar,oDlg,oDbf,oBrw,aBtnBrow[4]), ; Btnbar(2,oDlg:oBar,oDlg,oDbf,oBrw,aBtnBrow[4]))), nil),; Refresh_title(oBrw,oDlg,oDbf,cSection))}
problem xbrowse hash
this code throws me error when pressing the button. How do I reload the new data? [code=fw:322424b8]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveWin.Ch"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"xbrowse.ch"</span><br /><br /><span style="color: #B900B9;">//------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> oDlg, oBrw<br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> h := ReCreatehash<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg<br />&nbsp; <br />&nbsp; &nbsp;@ <span style="color: #000000;">15</span>,<span style="color: #000000;">5</span> <span style="color: #0000ff;">XBROWSE</span> oBrw <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">-5</span>,<span style="color: #000000;">-5</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg ;<br />&nbsp; &nbsp; &nbsp; ARRAY h <span style="color: #0000ff;">AUTOCOLS</span> HEADERS <span style="color: #ff0000;">'Detail'</span>, <span style="color: #ff0000;">'Value'</span> ;<br />&nbsp; &nbsp; &nbsp; CELL LINES NOBORDER<br /><br />&nbsp; &nbsp;oBrw:<span style="color: #000000;">nStretchCol</span> &nbsp;:= <span style="color: #000000;">1</span><br />&nbsp; &nbsp;oBrw:<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: #000000;">1</span>,<span style="color: #000000;">5</span> <span style="color: #0000ff;">button</span> <span style="color: #ff0000;">"refresh"</span> <span style="color: #0000ff;">ACTION</span> obrw:<span style="color: #000000;">setArray</span><span style="color: #000000;">&#40;</span> Refreshhash<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">pixel</span><br />&nbsp; &nbsp; <br />&nbsp; &nbsp;<span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #B900B9;">//------------------------------------------------------------------//</span><br />&nbsp;<br />&nbsp;<span style="color: #00C800;">Function</span> ReCreatehash<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">local</span> h := <span style="color: #000000;">&#123;</span>=><span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp;h<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"Age"</span><span style="color: #000000;">&#93;</span> &nbsp; &nbsp;:= <span style="color: #000000;">45</span><br />&nbsp; &nbsp;h<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"City"</span><span style="color: #000000;">&#93;</span> &nbsp; := <span style="color: #ff0000;">'NewYork'</span><br />&nbsp; &nbsp;h<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"JoinDt"</span><span style="color: #000000;">&#93;</span> := <span style="color: #000000;">&#123;</span>^ <span style="color: #000000;">1997</span>/<span style="color: #000000;">12</span>/<span style="color: #000000;">21</span><span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp;h<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"First"</span><span style="color: #000000;">&#93;</span> &nbsp;:= <span style="color: #ff0000;">'John'</span><br />&nbsp; &nbsp;h<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"Last"</span><span style="color: #000000;">&#93;</span> &nbsp; := <span style="color: #ff0000;">'Abraham'</span><br />&nbsp;<br />&nbsp;<span style="color: #00C800;">Return</span> h<br />&nbsp;<br />&nbsp;<span style="color: #B900B9;">//------------------------------------------------------------------//</span><br />&nbsp;<br />&nbsp; <span style="color: #00C800;">Function</span> Refreshhash<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">local</span> h := <span style="color: #000000;">&#123;</span>=><span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp;h<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"Age"</span><span style="color: #000000;">&#93;</span> &nbsp; &nbsp;:= <span style="color: #000000;">48</span><br />&nbsp; &nbsp;h<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"City"</span><span style="color: #000000;">&#93;</span> &nbsp; := <span style="color: #ff0000;">'Paris'</span><br />&nbsp; &nbsp;h<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"JoinDt"</span><span style="color: #000000;">&#93;</span> := <span style="color: #000000;">&#123;</span>^ <span style="color: #000000;">1997</span>/<span style="color: #000000;">12</span>/<span style="color: #000000;">21</span><span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp;h<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"First"</span><span style="color: #000000;">&#93;</span> &nbsp;:= <span style="color: #ff0000;">'Jose'</span><br />&nbsp; &nbsp;h<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"Last"</span><span style="color: #000000;">&#93;</span> &nbsp; := <span style="color: #ff0000;">'Arias'</span><br />&nbsp;<br />&nbsp;<span style="color: #00C800;">Return</span> h<br />&nbsp;<br />&nbsp;</div>[/code:322424b8]
problem xbrowse hash
Manuel, In xbrowse.prg line 4233 please make this change: [code=fw:1cidr3xq]<div class="fw" id="{CB}" style="font-family: monospace;"> &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span> Len<span style="color: #000000;">&#40;</span> aData <span style="color: #000000;">&#41;</span> > <span style="color: #000000;">0</span> .and. ValType<span style="color: #000000;">&#40;</span> aData <span style="color: #000000;">&#41;</span> == <span style="color: #ff0000;">'H'</span> .and. ; &nbsp;<span style="color: #B900B9;">// remove [ 1 ]</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ValType<span style="color: #000000;">&#40;</span> ATail<span style="color: #000000;">&#40;</span> aData <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> == <span style="color: #ff0000;">'H'</span> .and. lAddCols</div>[/code:1cidr3xq]
problem xbrowse hash
Rebuild require after change in xbrowse.prg ? How to do that
problem xbrowse hash
Dave, The easiest way is to wait for a new FWH build from us. In case that you need such change, to test it, simply add xbrowse.prg as another PRG of your app. If you want to learn how to update your FWH libraries there are many explanations about it on these forums. If you don't find it, I can point you to an explanation. Are you using Borland ? Are you using Harbour ?
problem xbrowse hash
[quote="Antonio Linares":309c8uny]Dave, Are you using Borland ? Are you using Harbour ?[/quote:309c8uny] I am using Borland and Harbour, this is new experience for me
problem xbrowse hash
Basically all you have to do is: 1. Compile the PRG using Harbour 2. Compile the resulting C file using bcc32 (check buildh.bat to see how this is done) 3. Replace the module in the library: tlib.exe fiveh.lib -+ xbrowse.obj
problem. compile FWH 16.03
I got error when I compile with xHB.COM Type: C >>>xlink.exe -NOEXPOBJ -MAP -FORCE:MULTIPLE -NOIMPLIB -subsystem:windows -UNMANGLE -LIBPATH:"S:\lib" -LIBPATH:"R:\lib" -LIBPATH:"R:\c_lib" -LIBPATH:"R:\c_lib\win" "t.obj" "S:\lib\send32.lib" "S:\lib\mem32.lib" "S:\lib\png.lib" "r:\c_lib\win\gdi32.lib" "r:\c_lib\win\gdiplus.lib" "xhbzip.lib" "xhbzipdll.lib" "R:\c_lib\win\psapi.lib" "xfw.lib" "FiveHCM.lib" "FiveHMX.lib" "OptG.lib" "xhb.lib" "dbf.lib" "nsx.lib" "ntx.lib" "cdx.lib" "rmdbfcdx.lib" "ct3comm.lib" crt.lib kernel32.lib user32.lib winspool.lib ole32.lib oleaut32.lib odbc32.lib odbccp32.lib uuid.lib wsock32.lib ws2_32.lib wininet.lib advapi32.lib shlwapi.lib msimg32.lib mpr.lib OleDlg.lib version.lib comctl32.lib comdlg32.lib gdi32.lib shell32.lib winmm.lib lz32.lib Netapi32.lib -out:"t.exe"<<< Creating object: t.EXP Creating library: t.LIB xLINK: error: Unresolved external symbol '_HB_FUN_ISXHBCOM referenced from Fivehmx.lib(xbrowse.obj)'. xLINK: error: Unresolved external symbol '_HB_FUN_MEMORYBUFFERTYPE referenced from Fivehmx.lib(xbrowse.obj)'. xLINK: error: Unresolved external symbol '_HB_FUN_CALCTEXTWH referenced from Fivehmx.lib(xbrowse.obj)'. xLINK: error: Unresolved external symbol '_HB_FUN_FW_CREATEBITMAP referenced from Fivehmx.lib(xbrowse.obj)'. xLINK: error: Unresolved external symbol '_HB_FUN_WNDREADPALBMPEX referenced from Fivehmx.lib(window.obj)'. xLINK: error: Unresolved external symbol '_HB_FUN_WNDSAYTEXT referenced from Fivehmx.lib(window.obj)'. xLINK: error: Unresolved external symbol '_HB_FUN_WNDSAYPALBMP referenced from Fivehmx.lib(window.obj)'. xLINK: error: Unresolved external symbol '_HB_FUN_FW_DRAWSHAPES referenced from Fivehmx.lib(window.obj)'. xLINK: fatal error: 8 unresolved external(s). Type: C >>>Couldn't build: t.exe<<< Type: C >>>TMAKEPROJECT<<< Type: C >>>TMAKEPROJECT:REFRESH<<< Type: N >>> 1406<<<
problem. compile FWH 16.03
Kajot, Please check with the libs that I have just emailed you Here they are working fine
problem. compile FWH 16.03
thank You
problema
Antonio, He modificado la apariencia de la aplicación y en vez de usar botones utilizo imagenes.. El tema es que después de ejecutarlo varias veces empieza a darme errores que antes no daba y se me queda colgada la pda dandome el siguiente mensaje error: Internal Error: Too many recursive error handler calls Esto antes no me salia y la aplicacion me funcionaba bien. Me he pasado a la nueva actualizacion (la de diciembre) y a raiz de eso o del cambio de los botones por las imagenes me pasa esto... Las imagenes las pongo de la siguiente forma: DEFINE dialog oWnd resource "menu_principal" REDEFINE BITMAP oBmp1 NAME 'btn_inventario' ID 100 OF oWnd REDEFINE BITMAP oBmp2 NAME 'btn_compras' ID 200 OF oWnd REDEFINE BITMAP oBmp3 NAME 'btn_ventas' ID 300 OF oWnd REDEFINE BITMAP oBmp4 NAME 'btn_configuracion' ID 400 OF oWnd oBmp1:setcolor(RGB(1,1,1),RGB(230,184,94)) oBmp2:setcolor(RGB(1,1,1),RGB(230,184,94)) oBmp3:setcolor(RGB(1,1,1),RGB(230,184,94)) oBmp4:setcolor(RGB(1,1,1),RGB(230,184,94)) oBmp1:blClicked := {|| abre_tablas(),Listados_inventarios() } oBmp4:blClicked := {|| configuracion() } oWnd:setcolor(RGB(1,1,1),RGB(230,184,94)) ACTIVATE dialog oWnd; VALID MsgYesNo("¿Desea abandonar la aplicación?","Salir") DbCloseAll() &&cierra todas las tablas oBmp1:end() oBmp2:end() oBmp3:end() oBmp4:end() retu nil No se que es lo que está pasando... Saludos Elías Torres.
problema
Elías, Quita estas 4 líneas, ya que no son necesarias, pues al destruirse el diálogo, destruye todos los controles que contiene: oBmp1:end() oBmp2:end() oBmp3:end() oBmp4:end()
problema abriendo dbf con alias
hola amigos quiero abrir una dbf con un alias y me da un error de apertura, estoy casi seguro que es por los indices que usa Hace tiempo Mr.Rao habia explicado cual era el error en la construcción del indice que ocasionaba este problema, creo que eso ocurre cuando se incluye en la construccion del indice el nombre de la base de datos...alguien se acuerda de esto ? abrazo
problema abriendo dbf con alias
Funciona de 1000. [code=fw:3otdrgn6]<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: #B900B9;">// LOCAL lPack &nbsp; &nbsp; &nbsp;:= .T.</span><br /><br /><span style="color: #00C800;">FUNCTION</span> Indexar<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><br />&nbsp; &nbsp;AEVAL<span style="color: #000000;">&#40;</span>DIRECTORY<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"CADGRUPO.cdx"</span> <span style="color: #000000;">&#41;</span>,<span style="color: #000000;">&#123;</span> |aFILE| FERASE<span style="color: #000000;">&#40;</span>aFILE<span style="color: #000000;">&#91;</span>F_NAME<span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;USE CADGRUPO <span style="color: #00C800;">NEW</span> EXCLUSIVE <span style="color: #0000ff;">ALIAS</span> CADGRUPO<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">IF</span> lPack = .T. &nbsp;<span style="color: #B900B9;">// checkbox en dialogo</span><br />&nbsp; &nbsp; &nbsp; PACK<br />&nbsp; &nbsp;<span style="color: #00C800;">ENDIF</span><br /><br />&nbsp; &nbsp;oMeter1:<span style="color: #000000;">nTotal</span> = RecCount<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">INDEX</span> <span style="color: #0000ff;">ON</span> VAL<span style="color: #000000;">&#40;</span>Field->GRUPOCOD<span style="color: #000000;">&#41;</span> TAG GRUPOCOD <span style="color: #0000ff;">TO</span> CADGRUPO &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">FOR</span> .NOT. DELETED<span style="color: #000000;">&#40;</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;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;EVAL <span style="color: #000000;">&#40;</span> oMeter1:<span style="color: #000000;">Set</span><span style="color: #000000;">&#40;</span> RecNo<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>, CursorWait<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, SysRefresh<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;EVERY <span style="color: #000000;">10</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">INDEX</span> <span style="color: #0000ff;">ON</span> Field->GRUPODESCR TAG GRUPODESCR <span style="color: #0000ff;">TO</span> CADGRUPO &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">FOR</span> .NOT. DELETED<span style="color: #000000;">&#40;</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;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;EVAL <span style="color: #000000;">&#40;</span> oMeter1:<span style="color: #000000;">Set</span><span style="color: #000000;">&#40;</span> RecNo<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>, CursorWait<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, SysRefresh<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;EVERY <span style="color: #000000;">10</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">INDEX</span> <span style="color: #0000ff;">ON</span> Field->GRUPONOME TAG GRUPONOME <span style="color: #0000ff;">TO</span> CADGRUPO &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">FOR</span> .NOT. DELETED<span style="color: #000000;">&#40;</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;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;EVAL <span style="color: #000000;">&#40;</span> oMeter1:<span style="color: #000000;">Set</span><span style="color: #000000;">&#40;</span> RecNo<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>, CursorWait<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, SysRefresh<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;EVERY <span style="color: #000000;">10</span><br /><br />&nbsp; &nbsp;CLOSE DATABASE<br /><br />&nbsp; &nbsp;AEVAL<span style="color: #000000;">&#40;</span>DIRECTORY<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"CADORSER.cdx"</span> <span style="color: #000000;">&#41;</span>,<span style="color: #000000;">&#123;</span> |aFILE| FERASE<span style="color: #000000;">&#40;</span>aFILE<span style="color: #000000;">&#91;</span>F_NAME<span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;USE CADORSER <span style="color: #00C800;">NEW</span> EXCLUSIVE <span style="color: #0000ff;">ALIAS</span> CADORSER<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">IF</span> lPack = .T.<br />&nbsp; &nbsp; &nbsp; PACK<br />&nbsp; &nbsp;<span style="color: #00C800;">ENDIF</span><br /><br />&nbsp; &nbsp;oMeter1:<span style="color: #000000;">nTotal</span> = RecCount<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">INDEX</span> <span style="color: #0000ff;">ON</span> VAL<span style="color: #000000;">&#40;</span>Field->TPSERCOD<span style="color: #000000;">&#41;</span> TAG TPSERCOD <span style="color: #0000ff;">TO</span> CADORSER &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">FOR</span> .NOT. DELETED<span style="color: #000000;">&#40;</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;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;EVAL <span style="color: #000000;">&#40;</span> oMeter1:<span style="color: #000000;">Set</span><span style="color: #000000;">&#40;</span> RecNo<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>, CursorWait<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, SysRefresh<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;EVERY <span style="color: #000000;">10</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">INDEX</span> <span style="color: #0000ff;">ON</span> Field->TPSERNOME TAG TPSERNOME <span style="color: #0000ff;">TO</span> CADORSER &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">FOR</span> .NOT. DELETED<span style="color: #000000;">&#40;</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;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;EVAL <span style="color: #000000;">&#40;</span> oMeter1:<span style="color: #000000;">Set</span><span style="color: #000000;">&#40;</span> RecNo<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>, CursorWait<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, SysRefresh<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;EVERY <span style="color: #000000;">10</span><br /><br />&nbsp; &nbsp;CLOSE DATABASE<br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">//... continua.</span><br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><br /><span style="color: #00C800;">FUNCTION</span> APERTURA_BANCOS<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">PUBLIC</span> DBCADGRUPO <span style="color: #B900B9;">// asi para todos.</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">IF</span> NETERR<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; MsgStop<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"ERRO DE REDE. IMPOSSÍVEL ABRIR OS BANCOS DE DADOS"</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #ff0000;">"Atençao, Erro de Rede. Verifique o Servidor... &nbsp; "</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">ENDIF</span><br /><br />&nbsp; &nbsp;HB_GCALL<span style="color: #000000;">&#40;</span> .F. <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;USE CADGRUPO <span style="color: #00C800;">NEW</span> SHARED <span style="color: #0000ff;">ALIAS</span> CADGRUPO<br />&nbsp; &nbsp;GO TOP<br /><br />&nbsp; &nbsp;DBCADGRUPO := <span style="color: #0000ff;">ALIAS</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">//... continua...</span><br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br />&nbsp;</div>[/code:3otdrgn6] [url:3otdrgn6]https&#58;//imgur&#46;com/UQxRdAp[/url:3otdrgn6] [img:3otdrgn6]https&#58;//i&#46;imgur&#46;com/UQxRdAp&#46;png[/img:3otdrgn6] Regards, saludos.
problema abriendo dbf con alias
[code=fw:d3idj6pb]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #0000ff;">SELECT</span><span style="color: #000000;">&#40;</span> DBCADGRUPO <span style="color: #000000;">&#41;</span><br />GO TOP<br />&nbsp;</div>[/code:d3idj6pb] Regards, saludos.
problema abriendo dbf con alias
Never build an index like this: [code=fw:yyjs42pe]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #0000ff;">INDEX</span> <span style="color: #0000ff;">ON</span> CUSTOMER->CITY ....<br /> </div>[/code:yyjs42pe] When you open the dbf CUSTOMER with another alias name, the RDD can not find the alias CUSTOMER and you get an error. Unfortunately if there is another DBF open with the alias "CUSTOMER" in another areay, your index will run on another area Best practice is not to use "->" while building indexes. Recommended: [code=fw:yyjs42pe]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br />field CITY,STATE, ....<br /><br /><span style="color: #0000ff;">INDEX</span> <span style="color: #0000ff;">ON</span> CITY TAG CITY<br /><span style="color: #0000ff;">INDEX</span> <span style="color: #0000ff;">ON</span> STATE TAB STATE<br />...<br /> </div>[/code:yyjs42pe] Note: field ... is a declaration like local, static
problema abriendo dbf con alias
Thanks you Mr.Rao !!!
problema al cambiar dinámicamente una imagen
Hola, Quiero tener un control TImage que se cambie automáticamente cada vez que se cambia de registro en un browse. No quiero ajustar la imagen al tamaño del control, sino mostrar la imagen a tamaño natural. La manera de hacerlo basicamente es asociar una función al bchange del browse y cuando cambio de registro hago esto: [code=fw:2ayw0ok2]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">function</span> RefreshMuImage<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />    <span style="color: #00C800;">if</span> File<span style="color: #000000;">&#40;</span>lfn2sfn<span style="color: #000000;">&#40;</span>rtrim<span style="color: #000000;">&#40;</span>MU->MuImagen<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />        oMuImage:<span style="color: #000000;">Show</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />      oMuImage:<span style="color: #000000;">LoadBmp</span><span style="color: #000000;">&#40;</span>lfn2sfn<span style="color: #000000;">&#40;</span>rtrim<span style="color: #000000;">&#40;</span>MU->MuImagen<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">else</span><br />        oMuImage:<span style="color: #000000;">Hide</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />    <span style="color: #00C800;">endif</span><br />    oMuImage:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span></div>[/code:2ayw0ok2] es decir si tengo imagen en el campo muestro el control y cargo la imagen, sino lo oculto. El problema que me he eoncontrado es que cuando muestro una imagen y a continuación una más pequeña, la pequeña queda superpuesta sobre la grande porque no tengo manera de eliminar la imagen grande. Así que me gustaría saber si hay manera de eliminar una imagen del control, es decir dejar el control en blanco, antes de poner la siguiente imagen. Saludos,
problema al cambiar dinámicamente una imagen
Hola Jose Luís: A mi me funciona, aunque lo estoy haciendo de forma distinta. Si el fichero no existiera muestro uno sin contenido, pero bueno, aún así, la imagen no se superpone, la muestra a su tamaño. Tal vez sea que estás usando LoadBmp y yo LoadImage. Lo tengo de la siguiente forma: [code=fw:1lg9ac9h]<div class="fw" id="{CB}" style="font-family: monospace;"><br />................<br /><span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">IMAGE</span> oFoto FILENAME cFoto <span style="color: #0000ff;">ID</span> <span style="color: #000000;">800</span>;<br />             <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">UPDATE</span> <br /><br />oBrw:<span style="color: #000000;">bChange</span>:= <span style="color: #000000;">&#123;</span>|| PonFoto<span style="color: #000000;">&#40;</span>oFoto,cFoto,oDlg<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />..............<br /><br />********************************************************<br /><span style="color: #00C800;">STATIC</span> <span style="color: #00C800;">FUNCTION</span> PONFOTO<span style="color: #000000;">&#40;</span>oFoto,cFoto,oDlg<span style="color: #000000;">&#41;</span><br />********************************************************<br />........<br /><span style="color: #B900B9;">//</span><br /><span style="color: #00C800;">IF</span> !FILE<span style="color: #000000;">&#40;</span>cFoto<span style="color: #000000;">&#41;</span><br />   cFoto=<span style="color: #ff0000;">"NOHAY.JPG"</span><br /><span style="color: #00C800;">ENDIF</span><br /><span style="color: #B900B9;">//</span><br />   oFoto:<span style="color: #000000;">LoadImage</span><span style="color: #000000;">&#40;</span>,cFoto<span style="color: #000000;">&#41;</span><br />   oFoto:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   oDlg:<span style="color: #000000;">cTitle</span>:=cTitulo<br />   oDlg:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />............<br /><span style="color: #B900B9;">//</span><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><br /><br /> </div>[/code:1lg9ac9h]
problema al cambiar dinámicamente una imagen
O algo asi: [code=fw:3mz4t25s]<div class="fw" id="{CB}" style="font-family: monospace;"><br />................<br /><span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">IMAGE</span> oFoto <span style="color: #0000ff;">RESOURCE</span> <span style="color: #ff0000;">"NOHAYFOTO"</span> <span style="color: #0000ff;">ID</span> <span style="color: #000000;">800</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">UPDATE</span> <br /><br />oBrw:<span style="color: #000000;">bChange</span>:= <span style="color: #000000;">&#123;</span>|| PonFoto<span style="color: #000000;">&#40;</span>oFoto,cFoto,oDlg<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />..............<br /><br /><br /><span style="color: #00C800;">STATIC</span> <span style="color: #00C800;">FUNCTION</span> PONFOTO<span style="color: #000000;">&#40;</span>oFoto, cFoto, cDlg<span style="color: #000000;">&#41;</span><br />ClearImage<span style="color: #000000;">&#40;</span>oFoto<span style="color: #000000;">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// aqui "liberamos" la imagen en el objeto</span><br /><span style="color: #00C800;">IF</span> !FILE<span style="color: #000000;">&#40;</span>cFoto<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; oFoto:<span style="color: #000000;">SETBMP</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"NOHAYFOTO"</span><span style="color: #000000;">&#41;</span> &nbsp; &nbsp; <span style="color: #B900B9;">// esto es un BMP en el archivo de recursos &nbsp; &nbsp; &nbsp;</span><br />&nbsp; <span style="color: #00C800;">Else</span><br />&nbsp; &nbsp; oFoto:<span style="color: #000000;">LoadImage</span><span style="color: #000000;">&#40;</span>,cFoto<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; oDlg:<span style="color: #000000;">cTitle</span>:=cTitulo<br />&nbsp; &nbsp; oDlg:<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 />oFoto:<span style="color: #0000ff;">Refresh</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;">NIL</span><br /><br /><span style="color: #B900B9;">//------------------------------------------------------------------------------------</span><br /><span style="color: #00C800;">Function</span> ClearImage<span style="color: #000000;">&#40;</span>oImg<span style="color: #000000;">&#41;</span><br />PalBmpFree<span style="color: #000000;">&#40;</span> oImg:<span style="color: #000000;">hBitMap</span>, oImg:<span style="color: #000000;">hPalette</span> <span style="color: #000000;">&#41;</span><br />oImg:<span style="color: #000000;">hBitmap</span> &nbsp;:= <span style="color: #000000;">0</span><br />oImg:<span style="color: #000000;">hPalette</span> := <span style="color: #000000;">0</span><br />oImg:<span style="color: #000000;">cResName</span> := <span style="color: #00C800;">NIL</span><br />oImg:<span style="color: #000000;">cBmpFile</span> := <span style="color: #00C800;">NIL</span><br />oImg:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">Return</span><span style="color: #000000;">&#40;</span><span style="color: #00C800;">Nil</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp;</div>[/code:3mz4t25s]
problema al cambiar dinámicamente una imagen
Hola Jose Luis: Para eliminar una imagen antes de cargar la siguiente haz: [code=fw:3klfme3d]<div class="fw" id="{CB}" style="font-family: monospace;"> PalBmpFree<span style="color: #000000;">&#40;</span> oImagePad:<span style="color: #000000;">hBitmap</span>, oImagePad:<span style="color: #000000;">hPalette</span> <span style="color: #000000;">&#41;</span><br /> oImagePad:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <br /> </div>[/code:3klfme3d] Un saludo JLL
problema al cambiar dinámicamente una imagen
o simplemente: DeleteObject( oImagePad:hBitmap )
problema al cambiar dinámicamente una imagen
Gracias, ahora funciona perfectamente. Saludos,
problema al compilar
El día 7 de junio de 2010 13:38, Luis Enrique Vera <[email protected]> escribió: > ojala puedas ayudarme con un error en una libreria de fwh, estoy compilando > con XHARBOUR Y BORLAND C++, necesito imprimir con crystal report > desde clipper , baje unos fuentes con ejemplos pero al compilar me da el siguiente > error > :Enlazando crystal.exe... > Error: 'C:\XEDIT\XHARBOUR\LIB\FIVEHM.LIB' contains invalid OMF record, type 0x21 (possibly COFF) > > archivo: TCRW.PRG Y TESTCRYS.PRG > > DESDE YA GRACIAS > > saludos > > LUIS DE CHILE.......... > > >
problema al compilar con MSVC2010 y FWH64
Hola Antonio: Al intentar compilar, me arroja este error: Microsoft (R) Windows (R) Resource Compiler Version 6.1.7600.16385 Copyright (C) Microsoft Corporation. All rights reserved. FiveH64.lib(HARBOUR.obj) : error LNK2019: unresolved external symbol __acrt_iob_func referenced in function HB_FUN_FREOPEN_STDERR FiveH64.lib(PRV2PDF.obj) : error LNK2019: unresolved external symbol __stdio_common_vfprintf referenced in function _vfprintf_l tutor01.exe : fatal error LNK1120: 2 unresolved externals * Linking errors * Muchas rgacias.
problema al compilar con MSVC2010 y FWH64
Moisés, Solo puedes usar VS2013 ó Visual Studio Community. Si necesitas las librerías para VS2013 dímelo y te las envío
problema al compilar con MSVC2010 y FWH64
Antonio: Necesito por favor las librerías para MSVC2010, porque las versiones posteriores no funcionan bien en algunos XP y Vista, y por ello de momento no podemos actualizar el compilador. Muchas gracias de antemano.
problema al compilar con MSVC2010 y FWH64
Que Harbour estás usando ?
problema al compilar con MSVC2010 y FWH64
Con que numeración te aparece VS 2010 en la carpeta de archivos de programa ? Microsoft Visual Studio xx.x ? Debería ser 9.0, pero asi no aparece
problema al compilar con MSVC2010 y FWH64
Antonio: Es la 10.0. También la necesitamos por favor para 32 bits, porque tampoco puedo compilar con MSVC2010 y la build de Abril. Con la de diciembre no había problemas. Un saludo muy cordial
problema al compilar con MSVC2010 y FWH64
Moisés, Enviada y necesito saber desde donde descargar Visual Studio 2010 Ultimate (versión de prueba) para poder construir las librerías a 64 bits.
problema al compilar con xHarbour
Hola Amigos: Estoy intentando compilar con xharbour. Este .mak me funciona perfecto en Harbour, pero en xHarbour la aplicación me da un gpf. Debe de ser un tema de los flags del compilador o del linker. A ver si por favor alguien me puede ayudar. Muchas gracias. [code=fw:29ct9bne]<div class="fw" id="{CB}" style="font-family: monospace;">#Borland make sample, <span style="color: #000000;">&#40;</span>c<span style="color: #000000;">&#41;</span> FiveTech Software <span style="color: #000000;">2005</span><span style="color: #000000;">-2009</span><br /><br />HBDIR=c:\xharbour<br />BCDIR=c:\bcc582<br />FWDIR=c:\fwh<br /><br />#change these paths as needed<br />.path.OBJ = .\obj<br />.path.PRG = .\<br />.path.CH &nbsp;= $<span style="color: #000000;">&#40;</span>FWDIR<span style="color: #000000;">&#41;</span>\include;$<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\include<br />.path.C &nbsp; = .\<br />.path.rc &nbsp;= .\<br /><br />#important: <span style="color: #000000;">Use</span> Uppercase <span style="color: #00C800;">for</span> filenames extensions, in the <span style="color: #00C800;">next</span> two rules!<br /><br />PRG = &nbsp; &nbsp; &nbsp; &nbsp; \<br />VARIOS.PRG &nbsp; &nbsp;\<br />GESTION.PRG <br /><br /><br /><br />PROJECT &nbsp; &nbsp;: <span style="color: #000000;">GESTION</span>.EXE<br /><br />GESTION.EXE &nbsp;: $<span style="color: #000000;">&#40;</span>PRG:.PRG=.OBJ<span style="color: #000000;">&#41;</span> GESTION.RES<br />&nbsp; &nbsp;@echo off<br />&nbsp; &nbsp;echo $<span style="color: #000000;">&#40;</span>BCDIR<span style="color: #000000;">&#41;</span>\lib\c0w32.obj + > b32.bc<br />&nbsp; &nbsp;echo obj\VARIOS.OBJ obj\GESTION.OBJ, + >> b32.bc<br />&nbsp; &nbsp;echo GESTION.EXE, + >> b32.bc<br />&nbsp; &nbsp;echo GESTION.MAP, + >> b32.bc<br /><br />&nbsp; &nbsp;echo $<span style="color: #000000;">&#40;</span>FWDIR<span style="color: #000000;">&#41;</span>\lib\FiveHx.lib $<span style="color: #000000;">&#40;</span>FWDIR<span style="color: #000000;">&#41;</span>\lib\FiveHC.lib + >> b32.bc<br /><br />&nbsp; &nbsp;echo $<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\lib\rtl.lib + >> b32.bc<br />&nbsp; &nbsp;echo $<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\lib\vm.lib + >> b32.bc<br />&nbsp; &nbsp;echo $<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\lib\gtgui.lib + >> b32.bc<br />&nbsp; &nbsp;echo $<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\lib\lang.lib + >> b32.bc<br />&nbsp; &nbsp;echo $<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\lib\macro.lib + >> b32.bc<br />&nbsp; &nbsp;echo $<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\lib\rdd.lib + >> b32.bc<br />&nbsp; &nbsp;echo $<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\lib\dbfntx.lib + >> b32.bc<br />&nbsp; &nbsp;echo $<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\lib\dbfcdx.lib + >> b32.bc<br />&nbsp; &nbsp;echo $<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\lib\dbffpt.lib + >> b32.bc<br />&nbsp; &nbsp;echo $<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\lib\hbsix.lib + >> b32.bc<br />&nbsp; &nbsp;echo $<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\lib\debug.lib + >> b32.bc<br />&nbsp; &nbsp;echo $<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\lib\common.lib + >> b32.bc<br />&nbsp; &nbsp;echo $<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\lib\pp.lib + >> b32.bc<br />&nbsp; &nbsp;echo $<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\lib\pcrepos.lib + >> b32.bc<br />&nbsp; &nbsp;echo $<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\lib\codepage.lib + >> b32.bc<br />&nbsp; &nbsp;echo $<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\lib\ct.lib + >> b32.bc<br />&nbsp; &nbsp;echo $<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\lib\zlib.lib + >> b32.bc<br />&nbsp; &nbsp;echo $<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\lib\hbzip.lib + >> b32.bc<br />&nbsp; &nbsp;echo $<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\lib\png.lib + >> b32.bc<br />&nbsp; &nbsp;echo $<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\lib\tip.lib + >> b32.bc<br />&nbsp; &nbsp;echo $<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\lib\libmisc.lib + >> b32.bc<br /><br /><br />&nbsp; &nbsp;rem Uncomment these two lines <span style="color: #0000ff;">to</span> use Advantage RDD<br />&nbsp; &nbsp;echo $<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\lib\rddads.lib + >> b32.bc<br />&nbsp; &nbsp;echo $<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\lib\Ace32.lib + >> b32.bc<br /><br />&nbsp; &nbsp;echo $<span style="color: #000000;">&#40;</span>BCDIR<span style="color: #000000;">&#41;</span>\lib\wininet.lib + >> b32.bc<br />&nbsp; &nbsp;echo $<span style="color: #000000;">&#40;</span>BCDIR<span style="color: #000000;">&#41;</span>\lib\ws2_32.lib + >> b32.bc<br />&nbsp; &nbsp;echo $<span style="color: #000000;">&#40;</span>BCDIR<span style="color: #000000;">&#41;</span>\lib\cw32.lib + >> b32.bc<br />&nbsp; &nbsp;echo $<span style="color: #000000;">&#40;</span>BCDIR<span style="color: #000000;">&#41;</span>\lib\import32.lib + >> b32.bc<br />&nbsp; &nbsp;echo $<span style="color: #000000;">&#40;</span>BCDIR<span style="color: #000000;">&#41;</span>\lib\psdk\odbc32.lib + >> b32.bc<br />&nbsp; &nbsp;echo $<span style="color: #000000;">&#40;</span>BCDIR<span style="color: #000000;">&#41;</span>\lib\psdk\nddeapi.lib + >> b32.bc<br />&nbsp; &nbsp;echo $<span style="color: #000000;">&#40;</span>BCDIR<span style="color: #000000;">&#41;</span>\lib\psdk\iphlpapi.lib + >> b32.bc<br />&nbsp; &nbsp;echo $<span style="color: #000000;">&#40;</span>BCDIR<span style="color: #000000;">&#41;</span>\lib\psdk\msimg32.lib + >> b32.bc<br />&nbsp; &nbsp;echo $<span style="color: #000000;">&#40;</span>BCDIR<span style="color: #000000;">&#41;</span>\lib\psdk\psapi.lib + >> b32.bc<br />&nbsp; &nbsp;echo $<span style="color: #000000;">&#40;</span>BCDIR<span style="color: #000000;">&#41;</span>\lib\psdk\rasapi32.lib, >> b32.bc<br /><br /><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">IF</span> EXIST GESTION.res echo GESTION.res >> b32.bc<br />&nbsp; &nbsp;$<span style="color: #000000;">&#40;</span>BCDIR<span style="color: #000000;">&#41;</span>\bin\ilink32 -Gn -aa -Tpe -s @b32.bc<br />&nbsp; &nbsp;del b32.bc<br /><br />.PRG.OBJ:<br />&nbsp; $<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\bin\harbour $< /N /W /Oobj\ /I$<span style="color: #000000;">&#40;</span>FWDIR<span style="color: #000000;">&#41;</span>\include;$<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\include<br />&nbsp; $<span style="color: #000000;">&#40;</span>BCDIR<span style="color: #000000;">&#41;</span>\bin\bcc32 -c -tWM -I$<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\include -oobj\$& obj\$&.c<br /><br />.C.OBJ:<br />&nbsp; <span style="color: #000000;">echo</span> -c -tWM -D__HARBOUR__ -DHB_API_MACROS > tmp<br />&nbsp; echo -I$<span style="color: #000000;">&#40;</span>HBDIR<span style="color: #000000;">&#41;</span>\include;$<span style="color: #000000;">&#40;</span>FWDIR<span style="color: #000000;">&#41;</span>\include >> tmp<br />&nbsp; $<span style="color: #000000;">&#40;</span>BCDIR<span style="color: #000000;">&#41;</span>\bin\bcc32 -oobj\$& @tmp $&.c<br />&nbsp; del tmp<br /><br />GESTION.RES : <span style="color: #000000;">GESTION</span>.RC<br />&nbsp; $<span style="color: #000000;">&#40;</span>BCDIR<span style="color: #000000;">&#41;</span>\bin\brc32.exe -r GESTION.RC</div>[/code:29ct9bne]
problema al compilar con xHarbour
Lucas, Indica en la lista de los OBs el que es el primero: echo obj\GESTION.OBJ obj\VARIOS.OBJ, + >> b32.bc
problema al compilar con xHarbour
Antonio, También lo he cambiado sin éxito. ¿A ti te funciona mi script?. Gracias.
problema al compilar con xHarbour
Antonio: Muchas gracias por tu pronta respuesta. Al final estaba enlazando antes de las librerías de fivewin una lib propia (también compilada con xHarbour), en la que tengo cambios implementados en FWH: [code=fw:3na8jrxg]<div class="fw" id="{CB}" style="font-family: monospace;"><br /># Libray directories & filenames #############################################<br /><br />LIB_NAME &nbsp; &nbsp; &nbsp; &nbsp; = lib\fivewinx.lib<br />LIB_PRG_DIR &nbsp; &nbsp; &nbsp;= source<br />LIB_OBJ_DIR &nbsp; &nbsp; &nbsp;= obj<br />LIB_INCLUDE_DIR &nbsp;= include<br /><br /><br /># <span style="color: #0000ff;">LIBRARY</span> PRG files <span style="color: #000000;">&#40;</span>your PRG files go here<span style="color: #000000;">&#41;</span> #################################<br /><br />LIB_PRG_LIST = &nbsp;rpreview.prg \<br />&nbsp; &nbsp; &nbsp; &nbsp; meter.prg &nbsp;\<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; msgget.prg \<br />&nbsp; &nbsp; &nbsp; &nbsp; varios.prg \<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">xbrowse</span>.prg \<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; report.prg \<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; errsysw.prg <br /><br /><br />LIB_C_LIST = <br /><br /># Make directives ############################################################<br /><br />.autodepend<br />.swap<br />.suffixes: .prg .hrb .c<br /><br /># Paths <span style="color: #00C800;">for</span> dependent files ##################################################<br /><br />.path.prg = $<span style="color: #000000;">&#40;</span>LIB_PRG_DIR<span style="color: #000000;">&#41;</span><br />.path.c &nbsp; = $<span style="color: #000000;">&#40;</span>LIB_PRG_DIR<span style="color: #000000;">&#41;</span><br />.path.hrb = $<span style="color: #000000;">&#40;</span>LIB_OBJ_DIR<span style="color: #000000;">&#41;</span><br />.path.obj = $<span style="color: #000000;">&#40;</span>LIB_OBJ_DIR<span style="color: #000000;">&#41;</span><br /><br /># Contruction <span style="color: #0000ff;">of</span> the rest dependency lists ###################################<br /><br />LIB_PRGS &nbsp;= $<span style="color: #000000;">&#40;</span>LIB_PRG_LIST<span style="color: #000000;">&#41;</span><br />LIB_C &nbsp; &nbsp; = $<span style="color: #000000;">&#40;</span>LIB_C_LIST<span style="color: #000000;">&#41;</span><br />LIB_HRB &nbsp; = $<span style="color: #000000;">&#40;</span>LIB_PRG_LIST:.prg=.hrb<span style="color: #000000;">&#41;</span><br />LIB_OBJS &nbsp;= $<span style="color: #000000;">&#40;</span>LIB_PRG_LIST:.prg=.obj<span style="color: #000000;">&#41;</span> $<span style="color: #000000;">&#40;</span>LIB_C_LIST:.c=.obj<span style="color: #000000;">&#41;</span><br /><br /># FiveWin directories & flags ################################################<br /><br />FW_INCLUDE_DIR = $<span style="color: #000000;">&#40;</span>FW_DIR<span style="color: #000000;">&#41;</span>\include<br />FW_LIB_DIR &nbsp; &nbsp; = $<span style="color: #000000;">&#40;</span>FW_DIR<span style="color: #000000;">&#41;</span>\lib<br /><br /># Harbour directories & flags ################################################<br /><br />HARBOUR_INCLUDE_DIR = $<span style="color: #000000;">&#40;</span>HB_DIR<span style="color: #000000;">&#41;</span>\include<br />HARBOUR_EXE_DIR &nbsp; &nbsp; = $<span style="color: #000000;">&#40;</span>HB_DIR<span style="color: #000000;">&#41;</span>\bin<br />HARBOUR_LIB_DIR &nbsp; &nbsp; = $<span style="color: #000000;">&#40;</span>HB_DIR<span style="color: #000000;">&#41;</span>\lib<br />HARBOUR_FLAGS &nbsp; &nbsp; &nbsp; = -i$<span style="color: #000000;">&#40;</span>LIB_INCLUDE_DIR<span style="color: #000000;">&#41;</span>;$<span style="color: #000000;">&#40;</span>HARBOUR_INCLUDE_DIR<span style="color: #000000;">&#41;</span>;$<span style="color: #000000;">&#40;</span>FW_INCLUDE_DIR<span style="color: #000000;">&#41;</span> -n -m -w -es2 -gc0<br />HARBOUR_EXE &nbsp; &nbsp; &nbsp; &nbsp; = $<span style="color: #000000;">&#40;</span>HARBOUR_EXE_DIR<span style="color: #000000;">&#41;</span>\harbour.exe<br /><br /># Borlanc directories & flags ################################################<br /><br />BORLANDC_INCLUDE_DIR = $<span style="color: #000000;">&#40;</span>BCC_DIR<span style="color: #000000;">&#41;</span>\include<br />BORLANDC_EXE_DIR &nbsp; &nbsp; = $<span style="color: #000000;">&#40;</span>BCC_DIR<span style="color: #000000;">&#41;</span>\bin<br />BORLANDC_LIB_DIR &nbsp; &nbsp; = $<span style="color: #000000;">&#40;</span>BCC_DIR<span style="color: #000000;">&#41;</span>\lib<br />BORLANDC_COMP_FLAGS &nbsp;= -c -O2 -I$<span style="color: #000000;">&#40;</span>HARBOUR_INCLUDE_DIR<span style="color: #000000;">&#41;</span>;$<span style="color: #000000;">&#40;</span>BORLANDC_INCLUDE_DIR<span style="color: #000000;">&#41;</span><br />BORLANDC_COMP_EXE &nbsp; &nbsp;= $<span style="color: #000000;">&#40;</span>BORLANDC_EXE_DIR<span style="color: #000000;">&#41;</span>\bcc32.exe<br />BORLANDC_LIB_EXE &nbsp; &nbsp; = $<span style="color: #000000;">&#40;</span>BORLANDC_EXE_DIR<span style="color: #000000;">&#41;</span>\tlib.exe<br /><br /># Dependencies ###############################################################<br /><br />all: $<span style="color: #000000;">&#40;</span>LIB_OBJS<span style="color: #000000;">&#41;</span> $<span style="color: #000000;">&#40;</span>LIB_HRB<span style="color: #000000;">&#41;</span> $<span style="color: #000000;">&#40;</span>LIB_NAME<span style="color: #000000;">&#41;</span><br /><br /># Implicit Rules #############################################################<br /><br />.prg.hrb:<br />&nbsp; &nbsp;$<span style="color: #000000;">&#40;</span>HARBOUR_EXE<span style="color: #000000;">&#41;</span> $<span style="color: #000000;">&#40;</span>HARBOUR_FLAGS<span style="color: #000000;">&#41;</span> $** -o$@<br /><br />.c.obj:<br />&nbsp; &nbsp;$<span style="color: #000000;">&#40;</span>BORLANDC_COMP_EXE<span style="color: #000000;">&#41;</span> $<span style="color: #000000;">&#40;</span>BORLANDC_COMP_FLAGS<span style="color: #000000;">&#41;</span> -D__HARBOUR__;HB_API_MACROS -o$@ $**<br />&nbsp; &nbsp;$<span style="color: #000000;">&#40;</span>BORLANDC_LIB_EXE<span style="color: #000000;">&#41;</span> $<span style="color: #000000;">&#40;</span>LIB_NAME<span style="color: #000000;">&#41;</span> -+ $@,,<br /><br />.hrb.obj:<br />&nbsp; &nbsp;$<span style="color: #000000;">&#40;</span>BORLANDC_COMP_EXE<span style="color: #000000;">&#41;</span> $<span style="color: #000000;">&#40;</span>BORLANDC_COMP_FLAGS<span style="color: #000000;">&#41;</span> -o$@ $**<br />&nbsp; &nbsp;$<span style="color: #000000;">&#40;</span>BORLANDC_LIB_EXE<span style="color: #000000;">&#41;</span> $<span style="color: #000000;">&#40;</span>LIB_NAME<span style="color: #000000;">&#41;</span> -+ $@,,<br /><br /><br />&nbsp;</div>[/code:3na8jrxg] Supongo que tendré aquí algún flag de xHarbour mal puesto. Por favor, ¿cómo compilo módulos de Fivewin para añadirlos a mi lib propia que enlazo antes de FiveHx.lib?. Muchísimas gracias.
problema al compilar con xHarbour
lucas, yo lo que tengo son estos dos archivos puestos en el dir bin de xharbour, ese mismo dir esta agregado a la var de sistema path. harbour.cfg [quote:q9z7j204] CC=BCC32 CFLAGS= -c -D__EXPORT__ -Id:\borland\xharbour\include -d -Ld:\borland\xharbour\lib VERBOSE=YES DELTMP=YES [/quote:q9z7j204] compilar.bat [quote:q9z7j204] harbour %1 -n -go -id:\borland\xharbour\include [/quote:q9z7j204] y para compilar un archivo y que me genere un archivo obj el cual puede ser agregado a una liberia usando tlib ejecuto lo siguiente [quote:q9z7j204]compilar programa[/quote:q9z7j204] y luego [quote:q9z7j204]tlib milibreria -+programa.obj[/quote:q9z7j204]
problema al compilar con xHarbour
Carlos, Muchas gracias. Al final, el GPF era debido a esta función: FUNCTION curdrive() return hb_curdrive() Una vez eliminada, todo OK. Los flags siguen valiendo los mismos de Harbour. Lo que me intriga mucho son los del Borland, pero no he encontrado ninguna información ni ningún post sobre los mismos. Además, los diferentes .bats usan parámetros distintos. Por otra parte, en el foro de xHarbour no obtuve respuesta y el post lo vieron 10 personas. ¿Está xHarbour muerto?. Además, encontré unos cuantos posts que lo ponen a caldo, diciendo que tiene bugs sin solucionar desde 2009. ¿Es cierto eso?. Yo lo voy a tener que usar por el tema de SQLRDD. De momento, todo parece que compila y funciona igual que en Harbour, pero estos mensajes demoledores me han bastante miedo la verdad. ¿Tú por qué usas xHarbour?. Muchas gracias.
problema al compilar con xHarbour
umm you uso xharbour y el svn se ha estado moviendo mucho desde hace 10 dias, en cuanto al foro, siempre ha sido un foro con poco movimiento. asi que muerto no esta. ademas considero que xharbour es muy estable. yo he intentado unoas tres veces usar harbour, pero siempre regreso a xharbour <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> la verdad no he encontrado nda que me haga abandonarlo, o que harbour me haga su favorito. <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> salu2 carlos vargas
problema al compilar con xHarbour
Carlos, Muchas gracias. Mira este link: <!-- m --><a class="postlink" href="https://groups.google.com/forum/?fromgroups#!searchin/comp.lang.xharbour/PUSHED$20HARBOUR/comp.lang.xharbour/jodMgJ1Hoq8/Yjr5eJoatNAJ">https://groups.google.com/forum/?fromgr ... r5eJoatNAJ</a><!-- m --> La verdad es que da un poco de miedo. ¿Qué problemas tuviste con Harbour?. Un saludo
problema al compilar con xHarbour
Nada de que preocuparse, posts de hace un tiempo. <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> en el caso de harbour, la verdad nada me obligo o me enamoro a quedarme con el, no es que sea malo, la verdad es muy bueno. la herramienta hbmk2.exe es fuera de serie, es lo unico que echo en falta en xharbour. sietno que la contraparte hbmke.exe la falta. en el caso de mt, la verdad es que no me he visto aun en la necesidad de usarlo, de echo lo siento como un paso a investigar. el utf8 en harbour que ya se esta termiando de implementar tampoco me he visto en la necesidad de usarlo. mas que todo por que no salgo del entorno windows. en mis proyectos, facilmente paso de un entorno a otro con xmate, en el codigo uso mucho las extenciones de xharbour, pero para harbour hago uso de xhb.lib que me provee compatibilidad con xharbour, y uso profusamente compilacion condicional donde sea necesario para mantener la compatibilidad. #ifdef __HARBOUR #ifndef __XHARBOUR__ #endif #endif asi que no le miro problema. mi humilde opinion. salu2 carlos vargas
problema al compilar con xHarbour
Hola Carlos, Muchas gracias por compartir tu experiencia. Ahora mismo compilo sin problemas. No noto nada distinto. Ni tampoco cambio alguno en velocidad. Se supone que Harbour está mucho mejor construido, últimamente están reelaborando el núcleo para conseguir un código C super puro. En todo caso, Harbour parece que tiene una comunidad de desarrolladores más potente y activa. xHarbour sigue todavía trabajando con BCC 5.5 de hace 11 años. En todo caso, hay que estar tremendamente agracedidos a ambas comunidades. Ojalá hubiera surgido una empresa comercial sólida para potenciar el xBase. Un saludo
problema al compilar con xHarbour
Pues yo, me inicié con xHarbour ya que consideraba a Harbour más pesado, ya ni recuerdo por que???.... Tengo 100% compatibilidad con ambos, pero cuando hago el cambio a Harbour, obtengo este problema: [url:z5nd2sqn]http&#58;//forums&#46;fivetechsupport&#46;com/viewtopic&#46;php?f=3&t=24329[/url:z5nd2sqn] El código que uso es basicamente simple, sin hacer uso extensivo o forzado de los comandos, por lo que no creo que el problema sea el codigo, sino Harbour en si... Considero que ambos projectos se merecen un gran aplauso por el esfuerzo que han hecho sus desarrolladores y contribuyentes, para que nosotros podamos llegar hasta donde hemos llegado... Por ahora me quedo con xHarbour, hasta que pueda resolver el problema con Harbour...
problema al imprimir con windows 2000
amigos, tengo una aplicacion con fw 2.2, blinker 5. clip 5.3, el caso es que cuando presiono el boton imprimir en win xp, me sale el preview y de ahi la impresion, pero en win 2000, pincho el boton, da una pausa, y luego el sistema se sale, sin mensaje de error, nada, solo se sale, ahora si envio el reporte a archivo, lo genera 100%, no entiendo, imprimo con el generador propio de fivewin
problema al imprimir con windows 2000
corregido, el error se me presento, al no tener una impresora seleccionada, le coloque el printersetup(), y se acabo al asunto, todo ok
problema al realizar un filtro
Hola compañeros: Tengo una base de datos con dos campos, serie y número. Tengo estas facturas: A 2 A 6 B 1 B 2 B 3 D 1 D 2 Me gustaría filtrar desde la B 2 a la D 1 para tener: B 2 B 3 D 1 Pero no me funciona: [code=fw:1zobjx3n]<div class="fw" id="{CB}" style="font-family: monospace;">Condicion := <span style="color: #ff0000;">"FIELD->FSERIE >= "</span> +CHR<span style="color: #000000;">&#40;</span><span style="color: #000000;">34</span><span style="color: #000000;">&#41;</span>+cFSERIE1+CHR<span style="color: #000000;">&#40;</span><span style="color: #000000;">34</span><span style="color: #000000;">&#41;</span>+ <span style="color: #ff0000;">" .AND. FIELD->FNUMERO >= "</span> + AllTrim<span style="color: #000000;">&#40;</span> Str<span style="color: #000000;">&#40;</span> nCodigo1 <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">" .AND. "</span> + ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #ff0000;">"FIELD->FSERIE <= "</span> +CHR<span style="color: #000000;">&#40;</span><span style="color: #000000;">34</span><span style="color: #000000;">&#41;</span>+cFSERIE2+CHR<span style="color: #000000;">&#40;</span><span style="color: #000000;">34</span><span style="color: #000000;">&#41;</span>+ <span style="color: #ff0000;">" .AND. FIELD->FNUMERO <= "</span> + AllTrim<span style="color: #000000;">&#40;</span> Str<span style="color: #000000;">&#40;</span> nCodigo2 <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp;</div>[/code:1zobjx3n] Es decir, tendría que hacer dos límites. Por favor, ¿alguna idea?. Mil gracias.
problema al realizar un filtro
Crea un indice por el que quieres e usa el comando ORDSCOPE(). Saludos.
problema al realizar un filtro
También lo he probado y nada: INDEX ON FIELD->FSERIE + StrZero (FIELD->FNUMERO,20 ) TAG INDICE1 FOR !Deleted() No me funciona: OrdScope(0, "B2") OrdScope(1, "D1") No muestra nada.
problema al realizar un filtro
Amigo, no debe andar por que lo que has puesto en ordscope no coincide con el índice. El indice esta con StrZero (FIELD->FNUMERO,20 ) , deberias ponerle OrdScope(0, "B00000000000000000002") Saludos
problema al realizar un filtro
Hola, Muchas gracias por responder. También lo probé sin éxito: OrdScope(0, "B00000000000000000001") OrdScope(1, "B00000000000000000002") Debería sacar B 1 y B2 pero nada, no aparece nada.
problema al realizar un filtro
Lucas, como tienes en la dbf el campo FIELD->FSERIE ? es caracter de 1 ? porque si no es asi, ahi tienes el error. Saludos
problema al realizar un filtro
Hola, No tiene 3 caracteres. ¿Cómo debería ser entonces?: ¿B 00000000000000000004? Muchas gracias.
problema al realizar un filtro
[code=fw:31gszmev]<div class="fw" id="{CB}" style="font-family: monospace;"><br />&nbsp; &nbsp;<span style="color: #0000ff;">INDEX</span> <span style="color: #0000ff;">ON</span> FIELD->FSERIE TAG WFSERIE <span style="color: #00C800;">FOR</span> !Deleted<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;USE BANCOSERIE....<br /><br />&nbsp; &nbsp;SET ORDER...<br /><br />&nbsp; &nbsp;cIniSerie := <span style="color: #ff0000;">"B2"</span><br />&nbsp; &nbsp;cFinSerie := <span style="color: #ff0000;">"D1"</span><br /><br />&nbsp; &nbsp;OrdScope<span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span>, cIniSerie <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;OrdScope<span style="color: #000000;">&#40;</span><span style="color: #000000;">1</span>, cFinSerie <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;GO TOP<br /><br />&nbsp; &nbsp;BROWSE<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp;</div>[/code:31gszmev]
problema al realizar un filtro
Solucionado. Muchas gracias por la ayuda. Como FSERIE tiene tres caracteres tengo que dejar dos espacios: B 00000000000000000004 Me estaba volviendo loco!!.
problema bmp en button
Hola. Tengo problemas con el bmp que quiero poner en un button que esta en un buttonbar. mi duda: que características debe tener el bmp que va en el button? gracias. [code=fw:2vk5rrm6]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">METHOD</span> windows<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #00C800;">CLASS</span> tclase<br /><br />   <span style="color: #00C800;">LOCAL</span> this:= <span style="color: #00C800;">Self</span><br />   <span style="color: #00C800;">LOCAL</span> oImage<br />   <span style="color: #00C800;">LOCAL</span> oBmp<br /><br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> ::<span style="color: #000000;">oWnd</span> <span style="color: #0000ff;">MDIchild</span>  <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"prueba"</span> <span style="color: #0000ff;">OF</span> ::<span style="color: #000000;">oSelf</span>:<span style="color: #000000;">oWnd</span> <span style="color: #0000ff;">FROM</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span> <span style="color: #0000ff;">TO</span> <span style="color: #000000;">40</span>, <span style="color: #000000;">40</span><br /><br />      <span style="color: #B900B9;">//----------( Barra de botones )----------</span><br /><br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">buttonbar</span> ::<span style="color: #000000;">oBar</span> <span style="color: #0000ff;">size</span> <span style="color: #000000;">28</span>, <span style="color: #000000;">28</span> <span style="color: #0000ff;">OF</span> ::<span style="color: #000000;">oWnd</span> <span style="color: #000000;">2007</span><br /><br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BUTTON</span> ::<span style="color: #000000;">oBtnBar</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">OF</span> ::<span style="color: #000000;">oBar</span>;<br />         File <span style="color: #ff0000;">"D:<span style="color: #000000;">\3</span>2bits<span style="color: #000000;">\m</span>ysql<span style="color: #000000;">\R</span>esource<span style="color: #000000;">\b</span>uscar.bmp"</span>;<br />         tooltip <span style="color: #ff0000;">"Modificar"</span>;<br />         <span style="color: #0000ff;">message</span> <span style="color: #ff0000;">"Modificar Expediente"</span>;<br />         <span style="color: #0000ff;">action</span> ::<span style="color: #000000;">abmExpedientes</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /> </div>[/code:2vk5rrm6] Gracias.
problema bmp en button
.... Recuerdo una vez haber tenido ese problema.. si mal no rdo, los bmps no se mostraban.. y tenia que ver con el tamaño de los mismos...
problema bmp en button
he probado las alternativas de 16 x 16 32 x 32 24 x 24... como son bmp que lo paso de un .png... ahi esta mi intriga, si los bmp deben ser 24 bits 16 bits...
problema campo memo
In un dbf ho aggiunto un campo memo, ma il programma si blocca.Premetto che compilo + prg con brmake e linko la libreriia dbtCiao
problema campo memo
Lisa,Cuando se bloquea ? Cuando abres el DBF con USE ?Cuando lo muestras en un browse ? En un diálogo ?Puedes proporcionar un ejemplo ? gracias
problema campo memo
Antonio,Si blocca al comando USE
problema campo memo
Scusa Antonio, forse il problema non è il comando USE, il blocco avvieneappena aggiungo il campo memo nel dbf (sto usando wdbu)
problema campo memo
Lisa,El fichero DBF con el campo memo lo has creado desde un PRG usando DbCreate() ó lo has creado desde el wdbu ?
problema campo memo
Antonio,Il problema era wdbu, infatti ho provato ad aggiungere il campo memousando DBF Viewer 2000 e funziona tutto perfettamenteGrazie
problema com a classe TXmlDocument
[quote] ola a todos... estou usando a classe TXmlDocument para ler um arquivo.xml, que contem estrutura para montar o menu da app, mas estou com problema. 1) o menu app eh pra ficar mais ou menos assim: [code=fw:1qugkwuc]<div class="fw" id="{CB}" style="font-family: monospace;"> <br />MENU_1                      MENU_2                      MENU_3                      MENU_4<br />------------------------    ------------------------    ------------------------    ------------------------<br />Opcao Menu_1<br />    Opcao Menu_1<span style="color: #000000;">.1</span><br />    Opcao Menu_1<span style="color: #000000;">.2</span><br />    Opcao Menu_1<span style="color: #000000;">.3</span><br />        Opcao Menu_1<span style="color: #000000;">.3</span><span style="color: #000000;">.1</span><br />        Opcao Menu_1<span style="color: #000000;">.3</span><span style="color: #000000;">.2</span><br />    Opcao Menu_1<span style="color: #000000;">.4</span><br />Opcao Menu_2<br />    Opcao Menu_2<span style="color: #000000;">.1</span><br />    Opcao Menu_2<span style="color: #000000;">.2</span><br />Opcao Menu_3<br /> </div>[/code:1qugkwuc] 2) o arquivo.xml tem essa estrutura (para o menu acima): [code=fw:1qugkwuc]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><Menu><br />    <Titulo>MENU_1</Titulo><br />    <MenuItem><br />        <Titulo>Opcao Menu_1</Titulo><br />        <MenuItem><br />            <Titulo>Tabelas</Titulo><br />            <Funcao>Opcao Menu_1<span style="color: #000000;">.1</span></Funcao><br />        </MenuItem><br />        <MenuItem><br />            <Titulo>Opcao Menu_1<span style="color: #000000;">.2</span></Titulo><br />            <Funcao>UdmA020</Funcao><br />        </MenuItem><br />        <MenuItem><br />            <Titulo>Opcao Menu_1<span style="color: #000000;">.3</span></Titulo><br />            <MenuItem><br />                <Titulo>Opcao Menu_1<span style="color: #000000;">.3</span><span style="color: #000000;">.1</span></Titulo><br />                <Funcao>UdmA005</Funcao><br />            </MenuItem><br />            <MenuItem><br />                <Titulo>Opcao Menu_1<span style="color: #000000;">.3</span><span style="color: #000000;">.2</span></Titulo><br />                <Funcao>UdmA020</Funcao><br />            </MenuItem><br />        </MenuItem><br />        <MenuItem><br />            <Titulo>Opcao Menu_1<span style="color: #000000;">.4</span></Titulo><br />            <Funcao>LabA010</Funcao><br />        </MenuItem><br />    </MenuItem><br />    <MenuItem><br />        <Titulo>Opcao Menu_2</Titulo><br />        <MenuItem><br />            <Titulo>Opcao Menu_2<span style="color: #000000;">.1</span></Titulo><br />            <Funcao>LabA050</Funcao><br />        </MenuItem><br />        <MenuItem><br />            <Titulo>Opcao Menu_2<span style="color: #000000;">.2</span></Titulo><br />            <Funcao>LabA050</Funcao><br />        </MenuItem><br />    </MenuItem><br />    <MenuItem><br />        <Titulo>Opcao Menu_3</Titulo><br />        <Funcao>LabA050</Funcao><br />    </MenuItem><br /></Menu><br /><Menu><br />    <Titulo>MENU_1</Titulo><br /></Menu><br /><Menu><br />    <Titulo>MENU_1</Titulo><br /></Menu><br /><Menu><br />    <Titulo>MENU_1</Titulo><br /></Menu><br /> </div>[/code:1qugkwuc] estou utilizando os seguintes comandos: [code=fw:1qugkwuc]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">Local</span> hFile    := FOpen<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Arquivo.Xml"</span> <span style="color: #000000;">&#41;</span> <br /><span style="color: #00C800;">Local</span> oMnuXml  := TXmlDocument<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> hFile <span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">Local</span> oXmlNode := oMnuXml:<span style="color: #000000;">FindFirst</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Menu"</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">Local</span> oXmlIter := TXmlIterator<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">new</span><span style="color: #000000;">&#40;</span> oXmlNode <span style="color: #000000;">&#41;</span> , oTagAtual<br /><span style="color: #00C800;">Do</span> <span style="color: #00C800;">While</span> .T.<br />    oTagAtual := oXmlIter:<span style="color: #00C800;">Next</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />    <span style="color: #00C800;">If</span> oTagAtual <> <span style="color: #00C800;">Nil</span><br />        ?  oTagAtual:<span style="color: #000000;">cName</span> , oTagAtual:<span style="color: #000000;">cData</span><br />    <span style="color: #00C800;">Else</span><br />        Exit<br />    <span style="color: #00C800;">Endif</span><br /><span style="color: #00C800;">EndDo</span><br /> </div>[/code:1qugkwuc] Porem, o :Next() nao pega os q finalizam a tag, tipo </Menu> e o </MenuItem>, e teria q saber onde acaba cada menu e/ou menu item pra saber certo onde colocar os MENUITEM e os MENU...ENDMENU. tambem tentei usar o oChild (e o oNext), mas daquele q estou (pode ser do Opcao Menu_1, ou Opcao Menu_1.3, ou qquer outro), vai sempre ate o final.. se alguem puder me ajudar, ficarei muito agradecido ! MUITO OBRIGADO Gilberto Frohlich - Toledo/PR <!-- e --><a href="mailto:[email protected]">[email protected]</a><!-- e --> <!-- e --><a href="mailto:[email protected]">[email protected]</a><!-- e -->
problema com fw8.06/xhb 09771 !!!!
Bom dia a todos !!!!!quando executo o exe aparece a seguinte mensagem :'ALERT.PRG' was compiled by older version,PCODE version 9 is no longer suported-please recompile'já recompilei todas as libs, mas o erro continua...Obrigado a todos !!!!
problema com fw8.06/xhb 09771 !!!!
lo que pasa es que la versión de (x)harbour es mas reciente y tiene un pcode distinto al que se utilizó cuando se compiló la función alert(), tienes dos opciones:1. utilizar una versión mas antigua de (x)harbour que maneje el mismo pcode utilizado en la compilación de fivewin2. Recompilar la librería fivewin.
problema con ::Super:ShowToolTip()
Antonio, En una clase que tengo, cuando llamo a ::Super:ShowToolTip() resulta que se me cambia la fuente que tengo marcada. No debe liberarse bien la fuente de ShowToolTip(). Muchas gracias.
problema con ::Super:ShowToolTip()
Moises, Podrías proporcionar un pequeño ejemplo que lo reproduzca ? gracias <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
problema con ::Super:ShowToolTip()
Antonio, ¿Tienes la clase VMENU de Paco García?. Muchas gracias. Un saludo
problema con ::Super:ShowToolTip()
Moises, En FWH\samples está el ejemplo vistamnu1.prg Si busco por VMENU me aparece ese ejemplo y otro en samples\menu\vmenu.prg