topic
stringlengths
1
63
text
stringlengths
1
577k
xbrdbu : new version
[quote="Bayron":3uawtvt9]Error when opening an empty database and hitting the Source Button... [code=fw:3uawtvt9]<div class="fw" id="{CB}" style="font-family: monospace;">Application<br />===========<br />   Path and <span style="color: #0000ff;">name</span>: <span style="color: #000000;">C</span>:\Users\Maya\Downloads\4Shared\XBRDBUFD2\xbrdbu.Exe <span style="color: #000000;">&#40;</span><span style="color: #000000;">32</span> bits<span style="color: #000000;">&#41;</span><br />   <span style="color: #0000ff;">Size</span>: <span style="color: #000000;">2</span>,<span style="color: #000000;">884</span>,<span style="color: #000000;">608</span> bytes<br />   Compiler version: <span style="color: #000000;">Harbour</span> <span style="color: #000000;">3.1</span>.0dev <span style="color: #000000;">&#40;</span>Rev. <span style="color: #000000;">17025</span><span style="color: #000000;">&#41;</span><br />   FiveWin  Version: <span style="color: #000000;">FWH</span> <span style="color: #000000;">12.02</span><br />   Windows version: <span style="color: #000000;">6.1</span>, Build <span style="color: #000000;">7600</span> <br /><br />   Time <span style="color: #0000ff;">from</span> start: <span style="color: #000000;">0</span> hours <span style="color: #000000;">0</span> mins <span style="color: #000000;">25</span> secs <br />   Error occurred <span style="color: #00C800;">at</span>: <span style="color: #000000;">17</span><span style="color: #000000;">-02</span><span style="color: #000000;">-2013</span>, <span style="color: #000000;">12</span>:<span style="color: #000000;">25</span>:<span style="color: #000000;">33</span><br />   Error description: <span style="color: #000000;">Error</span> BASE/<span style="color: #000000;">1132</span>  Bound error: <span style="color: #000000;">array</span> access<br />   Args:<br />     <span style="color: #000000;">&#91;</span>   <span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span> = A   <span style="color: #000000;">&#123;</span> ... <span style="color: #000000;">&#125;</span><br />     <span style="color: #000000;">&#91;</span>   <span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span> = N   <span style="color: #000000;">6</span><br /><br />Stack Calls<br />===========<br />   Called <span style="color: #0000ff;">from</span>:  => ARRAY:__OPARRAYINDEX<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: .\source\classes\XBRCODE.PRG => CEDITCONST<span style="color: #000000;">&#40;</span> <span style="color: #000000;">941</span> <span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: .\source\classes\XBRCODE.PRG => TXBRCOLCODE:<span style="color: #000000;">PRGVARCODE</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">752</span> <span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: .\source\classes\XBRCODE.PRG => TXBRCOLCODE:<span style="color: #000000;">PRGCODECMD</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">689</span> <span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: .\source\classes\XBRCODE.PRG => TXBRCOLCODE:<span style="color: #000000;">PRGCODE</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">564</span> <span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: .\source\classes\XBRCODE.PRG => <span style="color: #000000;">&#40;</span>b<span style="color: #000000;">&#41;</span>TXBRCODE_PRGCODE<span style="color: #000000;">&#40;</span> <span style="color: #000000;">239</span> <span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>:  => AEVAL<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: .\source\classes\XBRCODE.PRG => TXBRCODE:<span style="color: #000000;">PRGCODE</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">239</span> <span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: <span style="color: #000000;">xbrdbu</span>.prg => VIEWCODE<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1037</span> <span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: <span style="color: #000000;">xbrdbu</span>.prg => <span style="color: #000000;">&#40;</span>b<span style="color: #000000;">&#41;</span>BRWBTNBAR<span style="color: #000000;">&#40;</span> <span style="color: #000000;">794</span> <span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: .\source\classes\<span style="color: #0000ff;">BTNBMP</span>.PRG => TBTNBMP:<span style="color: #0000ff;">CLICK</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">465</span> <span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: .\source\classes\<span style="color: #0000ff;">BTNBMP</span>.PRG => TBTNBMP:<span style="color: #000000;">LBUTTONUP</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">656</span> <span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: .\source\classes\CONTROL.PRG => TCONTROL:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">1690</span> <span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: .\source\classes\<span style="color: #0000ff;">BTNBMP</span>.PRG => TBTNBMP:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">1407</span> <span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: .\source\classes\<span style="color: #0000ff;">WINDOW</span>.PRG => _FWH<span style="color: #000000;">&#40;</span> <span style="color: #000000;">3159</span> <span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>:  => WINRUN<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: .\source\classes\<span style="color: #0000ff;">WINDOW</span>.PRG => TMDIFRAME:<span style="color: #0000ff;">ACTIVATE</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">980</span> <span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: <span style="color: #000000;">xbrdbu</span>.prg => MAIN<span style="color: #000000;">&#40;</span> <span style="color: #000000;">76</span> <span style="color: #000000;">&#41;</span><br /> </div>[/code:3uawtvt9][/quote:3uawtvt9] This error was already reported , see <!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=3&t=25537#p139286">viewtopic.php?f=3&t=25537#p139286</a><!-- l --> at 19 h i published a new download link: <!-- m --><a class="postlink" href="http://rapidshare.com/files/3521880066/XBRDBUFD2.ZIP">http://rapidshare.com/files/3521880066/XBRDBUFD2.ZIP</a><!-- m -->
xbrdbu : new version
Si. Ese es el problema que procuraré solventar del mejor modo posible.. Gracias de nuevo por su dedicación. ===================================================================== If. That one is the problem that I will try to solve as good as possible.. Thanks again for its dedication.
xbrdbu : new version
[quote="desdesummer87":3mggaphn]Si. Ese es el problema que procuraré solventar del mejor modo posible.. Gracias de nuevo por su dedicación. ===================================================================== If. That one is the problem that I will try to solve as good as possible.. Thanks again for its dedication.[/quote:3mggaphn] If your name points to clipper Summer 87 , me too is still active from these days. Frank
xbrdbu : new version
desdesummer87 is only a nick
xbrdbu : new version
Saludos. He conseguido evitar el error que se producia al modificar la estructura de una base de datos con campos Memo. ( La extension "XXXX.DBT" no era renombrada al salvar los cambios) Para ello ha sido necesario modificar las funciones afectadas tal como indico más abajo Confío en que esté usted de acuerdo con los cambios. desdesummer87. ============================================================================== Greetings. I have managed to avoid the error that took place when modifying the structure Of a data base with fields Silly. (the extension XXXX.DBT was not renamed when saving changes) For it it has been necessary to modify the affected functions same as I indicate further down I trust that you agree upon the changes. Desdesummer87. //----------------------------------------------------------------------------// Func TempFile(cExtension,cPath) Local cFile default cPath:="" cExtension:= StrTran(cExtension,".","") While .T. cFile:="AAA" +"." + upper(cExtension) cFile:= cPath + cFile If .NOT. file( cFile ) Exit End End Return cPath + cFile //----------------------------------------------------------------------------// Static Func BuildDbf( cDbfName, oLbx ) Local aFields := {} Local n Local cTempFile:="" If Empty( cDbfName ) MsgAlert( "Se necesita un nombre para la DBF", "" ) Return Nil End If Len( oLbx:aItems ) == 0 MsgAlert( "No se han definido campos", "" ) Return Nil End If At( ".", cDbfName ) == 0 cDbfName += ".dbf" End For n = 1 to Len( oLbx:aItems ) AAdd( aFields, _FieldInfo( AllTrim( oLbx:aItems[ n ] ) ) ) Next If File( cDbfName ) If MsgYesNo( "DBF existente. ¿ Modificar estructura...?", "" ) cTempFile:= tempFile("dbf") DbCreate( cTempFile, aFields ) Use (cTempFile) Append from (cDbfName) Use Ferase( cDbfName ) Rename ( cTempFile ) to (cDbfName) If file( cFileNoExt( cTempFile ) +".dbt" ) nLen := Len(cDbfName) nLong := (nLen - 4) cNomb := SubStr(cDbfName, 1 ,nLong) cBase := (cNomb + ".dbt") FErase(cBase) Rename ("AAA.dbt") To (cBase) End Return nil End End DbCreate( cDbfName, aFields ) MsgInfo( "DBF creada", "" ) Return Nil //----------------------------------------------------------------------------//
xbrdbu : new version
I provided only support for FTP-files see also (init) procedure prginit : RDDSetDefault( 'DBFCDX' ) set(_SET_MFILEEXT,".fpt") Allowing also dbt format would require a configuration procedure to install the used dbf driver. Frank
xbrdbu : new version
30/03/2013 Exe-file generated with FWH1303 , HB 3.2 (28/2/2013) Working with xbrdbu , some errors were corrected , some modules improved File menu [b:2d4t8vig]Open recent files[/b:2d4t8vig] : added to file menu , saved in xbrdbu.ini [b:2d4t8vig]Configuration[/b:2d4t8vig] : Dbfdriver (dbfcdx , dbfntx) , open shared , Dateformat , autopen extension dbt should be recognised in routines as modify structure Saved in xbrdbu.ini [b:2d4t8vig]Map network drive , disconnect drive[/b:2d4t8vig] Frank Demont <!-- m --><a class="postlink" href="http://rapidshare.com/files/2255720945/XBRDBUFD3.ZIP">http://rapidshare.com/files/2255720945/XBRDBUFD3.ZIP</a><!-- m -->
xbrdbu : new version
Frank, I have placed a copy of your new XbrDbu build in FiveWin contributions <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> [url:20swzlin]https&#58;//code&#46;google&#46;com/p/fivewin-contributions/downloads/detail?name=XBRDBUFD3&#46;ZIP&can=2&q=[/url:20swzlin] thanks,
xbrdbu : new version
Antonio, Frank, Fantastic job done. It's really a great utility. One small remark : to my opinion the correct key is not always shown. If you select "Natural order", the last index used is displayed in the status bar.
xbrdbu : new version
Frank, Very usefull and nice utility. Exactly what I was waiting for. I just want to make a small suggestion (request?): in "PROC OpenMyIndex()" would be a great idea to use "*.cdx" or "*.ntx" according with default RDD (CDX or NTX) chose in preferences. Some of our customers use NTX and others CDX. Thanks in advance,
xbrdbu : new version
April 2013 * Index menu : added when clausule in close index , index order and filter by scope * Closing index folowed with Change/add index gives a error. Now it is ok * Added to Tag message : order number / total orders (only DBF Browse) In bMsg added oMsgBar:Refresh() ('Sometimes,if you select "Natural order", the last index used is displayed in the status bar') maybe it helps * Open index file : Rdd from alias determinates the extension [b:1c90spa3]* NEW : Dialog to open a dbf-file , input fields : [/b:1c90spa3] - RDD (Radio buttons DBFCDX/DBFNTX) Depending from memo-file or index-file found in combination with autopen the rdd input field is disabled or enabled - Shows asociated memo file (same name) (checkbox). - Open asociated index file (same name) (checkbox). Autopen determines the default value - [b:1c90spa3]DBF/ARRAY BROWSE (Radio buttons)[/b:1c90spa3] Very powerfull feature , each column is sort- and search column, eliminating the need from index files. Most from menu utility's should work. Also editing , relations , index files are still updated. Download link : <!-- m --><a class="postlink" href="http://rapidshare.com/files/80261082/XBRDBUFD4.ZIP">http://rapidshare.com/files/80261082/XBRDBUFD4.ZIP</a><!-- m --> Frank Demont
xbrdbu : new version
[code=fw:8ktuzhlg]<div class="fw" id="{CB}" style="font-family: monospace;">Application<br />===========<br />&nbsp; &nbsp;Path and <span style="color: #0000ff;">name</span>: <span style="color: #000000;">C</span>:\Users\C\Downloads\XBRDBUFD4\xbrdbu.Exe <span style="color: #000000;">&#40;</span><span style="color: #000000;">32</span> bits<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #0000ff;">Size</span>: <span style="color: #000000;">3</span>,<span style="color: #000000;">572</span>,<span style="color: #000000;">224</span> bytes<br />&nbsp; &nbsp;Compiler version: <span style="color: #000000;">Harbour</span> <span style="color: #000000;">3.2</span>.0dev <span style="color: #000000;">&#40;</span>Rev. <span style="color: #000000;">18881</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;FiveWin &nbsp;Version: <span style="color: #000000;">FWH</span> <span style="color: #000000;">13.02</span><br />&nbsp; &nbsp;Windows version: <span style="color: #000000;">6.2</span>, Build <span style="color: #000000;">9200</span> <br /><br />&nbsp; &nbsp;Time <span style="color: #0000ff;">from</span> start: <span style="color: #000000;">0</span> hours <span style="color: #000000;">0</span> mins <span style="color: #000000;">1</span> secs <br />&nbsp; &nbsp;Error occurred <span style="color: #00C800;">at</span>: <span style="color: #000000;">13</span>/<span style="color: #000000;">04</span>/<span style="color: #000000;">04</span>, <span style="color: #000000;">23</span>:<span style="color: #000000;">40</span>:<span style="color: #000000;">38</span><br />&nbsp; &nbsp;Error description: <span style="color: #000000;">Error</span> BASE/<span style="color: #000000;">1004</span> &nbsp;<span style="color: #0000ff;">Message</span> not found: <span style="color: #00C800;">NIL</span>:<span style="color: #000000;">LARRAY</span><br />&nbsp; &nbsp;Args:<br />&nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#91;</span> &nbsp; <span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span> = U &nbsp; <br /><br />Stack Calls<br />===========<br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: &nbsp;=> __ERRRT_SBASE<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: ../../../tobject.prg => <span style="color: #00C800;">NIL</span>:<span style="color: #000000;">ERROR</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: ../../../tobject.prg => <span style="color: #000000;">&#40;</span>b<span style="color: #000000;">&#41;</span>HBOBJECT<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: ../../../tobject.prg => <span style="color: #00C800;">NIL</span>:<span style="color: #000000;">MSGNOTFOUND</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: ../../../tobject.prg => <span style="color: #00C800;">NIL</span>:<span style="color: #000000;">LARRAY</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: <span style="color: #000000;">xbrdbu</span>.prg => <span style="color: #000000;">&#40;</span>b<span style="color: #000000;">&#41;</span>MAINMENU<span style="color: #000000;">&#40;</span> <span style="color: #000000;">307</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: .\source\classes\<span style="color: #0000ff;">MENU</span>.PRG => TMENU:<span style="color: #000000;">INITIATE</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">431</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: .\source\classes\<span style="color: #0000ff;">WINDOW</span>.PRG => TMDIFRAME:<span style="color: #000000;">INITMENUPOPUP</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">2580</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: &nbsp;=> TMDIFRAME:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: .\source\classes\<span style="color: #0000ff;">WINDOW</span>.PRG => _FWH<span style="color: #000000;">&#40;</span> <span style="color: #000000;">3178</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: &nbsp;=> WINRUN<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: .\source\classes\<span style="color: #0000ff;">WINDOW</span>.PRG => TMDIFRAME:<span style="color: #0000ff;">ACTIVATE</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">991</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: <span style="color: #000000;">xbrdbu</span>.prg => MAIN<span style="color: #000000;">&#40;</span> <span style="color: #000000;">73</span> <span style="color: #000000;">&#41;</span></div>[/code:8ktuzhlg] En la opcion Indexes sin abrir ningun fichero In the Indexes option without opening any file Regards
xbrdbu : new version
Line 303 ,310 , 317 : WHEN ! Empty(alias()) .AND. (Alias())->(OrdCount())>0 .AND. ! oDbfWnd:lArray; We have to test first on empty(alias()) ! Frank
xbrdbu : new version
I uploaded a new version : <!-- m --><a class="postlink" href="http://rapidshare.com/files/2132244470/XBRDBUFD5.ZIP">http://rapidshare.com/files/2132244470/XBRDBUFD5.ZIP</a><!-- m --> 5/4/2013 * Open dialog : added checkbox shared * file2Brow , open : added parameter lDefault Open dialog is only used when this parameter is .F. Starting the aplication with default dbf's (start parameters or AALIAS section in (x)ini-file), will not show the open dialog ! Default values will be used ! 1/5/2013 : XBRDBUFD5.ZIP ------------------------ * Preferences dialog (configuration) - Added : Checkbox "Open dbf with default's (no dialog)" If not checked, opening a dbf opens also the open dialog - Added : Checkbox "Load, save previous DBF configuration" This configuration is saved in a xbr-file , i.e. Gemeente.xbr containing : Filter , columns , arelations , scopes and aindex. - Added to (x)ini-file : [AALIAS] Containing the open dbf's when closing XbrDbu (Upper right corner) When a file window is closed , this will NOT be present When a list from dbf-files is specified as start parameter , this will overwrite the aAlias Section * Open dialog - Discarded Array Browse , new button in File window - Added : Checkbox "Restore previous state (... . xbr)" Default value from preferences If Checked the values from the xbr-file are loaded Closing the dbf will only write the status if in the preferences this value is .T. - Added : Memo say with showing some values from the xbr-file (short) - Added : Button : "View State" , Showing the xbr-file * Start parameters - It is possible to give more dbf's , i.e. XbrDbu.exe Gemeente Customer (overwrite AALIAS section in ini file) - One from the parameters can be a xIni-file. This overwrite the default one "XbrDbu.ini" in the workdir from the exe-file - Without parameter ,xbrdbu searches (and asks to select) in the current directory to all xIni-files. If none , XbrDbu.ini is used * Main window (oWndDbu) - Changed : MsgBar , shows the configuration file (ini-file) * File Window (Dbf) Added to BtnBar : - Colums : Same as utility's , Browse columns Column configuration. Closing the dbf will write in the xbr-file - Added to BtnBar : Array Browse / Dbf Browse Will read the dbf in a array (column recno added) and browse the array Pushing the button again returns to the dbf-browse - Filter : Same as utility's , filter OR clicking in the messagebar - Top Bottom Scope : Same as Indexes , Establish filter - Relations : Same as utility's , Relations - Indexes : Same as Indexes (menu) * File Window (Dbf) Added to MsgBar : - Status file , i.e. Gemeente.xbr Frank Demont
xbrdbu : new version
[code=fw:18t87e6w]<div class="fw" id="{CB}" style="font-family: monospace;"><br />&nbsp; &nbsp;Error description: <span style="color: #000000;">Error</span> BASE/<span style="color: #000000;">1004</span> &nbsp;No exported <span style="color: #00C800;">method</span>: <span style="color: #000000;">LARRAY</span><br />&nbsp; &nbsp;Args:<br />&nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#91;</span> &nbsp; <span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span> = U &nbsp; <br /><br />Stack Calls<br />===========<br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: &nbsp;=> LARRAY<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: <span style="color: #000000;">xbrdbu</span>.prg => <span style="color: #000000;">&#40;</span>b<span style="color: #000000;">&#41;</span>MAINMENU<span style="color: #000000;">&#40;</span> <span style="color: #000000;">255</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: .\source\classes\<span style="color: #0000ff;">MENU</span>.PRG => TMENU:<span style="color: #000000;">INITIATE</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">431</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: .\source\classes\<span style="color: #0000ff;">WINDOW</span>.PRG => TMDIFRAME:<span style="color: #000000;">INITMENUPOPUP</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">2584</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: &nbsp;=> TMDIFRAME:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: .\source\classes\<span style="color: #0000ff;">WINDOW</span>.PRG => _FWH<span style="color: #000000;">&#40;</span> <span style="color: #000000;">3182</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: &nbsp;=> WINRUN<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: .\source\classes\<span style="color: #0000ff;">WINDOW</span>.PRG => TMDIFRAME:<span style="color: #0000ff;">ACTIVATE</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">995</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: <span style="color: #000000;">xbrdbu</span>.prg => MAIN<span style="color: #000000;">&#40;</span> <span style="color: #000000;">65</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp;</div>[/code:18t87e6w] Ejecutas la aplicacion y moverte por el menu principal Saludos
xbrdbu : new version
Line 251 must be : WHEN ! EMPTY(alias()) .AND. OrdCount()>0 .AND. ! oDbfWnd:lArray ; ! oDbfWnd:lArray must always be the last one from the line FRank [quote="cnavarro":2ug7yvjx][code=fw:2ug7yvjx]<div class="fw" id="{CB}" style="font-family: monospace;"><br />   Error description: <span style="color: #000000;">Error</span> BASE/<span style="color: #000000;">1004</span>  No exported <span style="color: #00C800;">method</span>: <span style="color: #000000;">LARRAY</span><br />   Args:<br />     <span style="color: #000000;">&#91;</span>   <span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span> = U   <br /><br />Stack Calls<br />===========<br />   Called <span style="color: #0000ff;">from</span>:  => LARRAY<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: <span style="color: #000000;">xbrdbu</span>.prg => <span style="color: #000000;">&#40;</span>b<span style="color: #000000;">&#41;</span>MAINMENU<span style="color: #000000;">&#40;</span> <span style="color: #000000;">255</span> <span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: .\source\classes\<span style="color: #0000ff;">MENU</span>.PRG => TMENU:<span style="color: #000000;">INITIATE</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">431</span> <span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: .\source\classes\<span style="color: #0000ff;">WINDOW</span>.PRG => TMDIFRAME:<span style="color: #000000;">INITMENUPOPUP</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">2584</span> <span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>:  => TMDIFRAME:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: .\source\classes\<span style="color: #0000ff;">WINDOW</span>.PRG => _FWH<span style="color: #000000;">&#40;</span> <span style="color: #000000;">3182</span> <span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>:  => WINRUN<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: .\source\classes\<span style="color: #0000ff;">WINDOW</span>.PRG => TMDIFRAME:<span style="color: #0000ff;">ACTIVATE</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">995</span> <span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: <span style="color: #000000;">xbrdbu</span>.prg => MAIN<span style="color: #000000;">&#40;</span> <span style="color: #000000;">65</span> <span style="color: #000000;">&#41;</span><br /><br /> </div>[/code:2ug7yvjx] Ejecutas la aplicacion y moverte por el menu principal Saludos[/quote:2ug7yvjx]
xbrdbu : new version
Application =========== Path and name: C:\Work\Prg\xdbu\xbrdbu.Exe (32 bits) Size: 2,810,368 bytes Compiler version: xHarbour build 1.2.1 Intl. (SimpLex) (Rev. 6715) FiveWin Version: FWHX 13.01 Windows version: 6.1, Build 7600 Time from start: 0 hours 0 mins 0 secs Error occurred at: 14/05/2013, 17:33:22 Error description: Error BASE/1132 Bound error: array access Args: [ 1] = A { ... } [ 2] = N 2 Stack Calls =========== Called from: xbrdbu.prg => FSETUP( 3898 ) Called from: xbrdbu.prg => (b)MSGSELECT( 6542 ) Called from: .\source\function\XBROWSER.PRG => XBROWSE( 118 ) Called from: xbrdbu.prg => MSGSELECT( 6542 ) Called from: xbrdbu.prg => LOADPREFERENCES( 5971 ) Called from: xbrdbu.prg => MAIN( 40 )
xbrdbu : new version
It seems that there is a discrapancy between prg and exe-file, 15/5/2013 , 9h44 A new link : <!-- m --><a class="postlink" href="http://rapidshare.com/files/2974823279/XBRDBUFD6.ZIP">http://rapidshare.com/files/2974823279/XBRDBUFD6.ZIP</a><!-- m --> Frank
xbrdbu : new version
Silvio , 15/5/2013 , 9h44 Could you try the new link ? <!-- m --><a class="postlink" href="http://rapidshare.com/files/2974823279/XBRDBUFD6.ZIP">http://rapidshare.com/files/2974823279/XBRDBUFD6.ZIP</a><!-- m --> The prg-file wasn't corresponding with the exe [quote="Silvio.Falconi":32dst4pz]Application =========== Path and name: C:\Work\Prg\xdbu\xbrdbu.Exe (32 bits) Size: 2,810,368 bytes Compiler version: xHarbour build 1.2.1 Intl. (SimpLex) (Rev. 6715) FiveWin Version: FWHX 13.01 Windows version: 6.1, Build 7600 Time from start: 0 hours 0 mins 0 secs Error occurred at: 14/05/2013, 17:33:22 Error description: Error BASE/1132 Bound error: array access Args: [ 1] = A { ... } [ 2] = N 2 Stack Calls =========== Called from: xbrdbu.prg => FSETUP( 3898 ) Called from: xbrdbu.prg => (b)MSGSELECT( 6542 ) Called from: .\source\function\XBROWSER.PRG => XBROWSE( 118 ) Called from: xbrdbu.prg => MSGSELECT( 6542 ) Called from: xbrdbu.prg => LOADPREFERENCES( 5971 ) Called from: xbrdbu.prg => MAIN( 40 )[/quote:32dst4pz]
xbrdbu : new version
I started to use your program and found an error in opening a product table, this is the error log [code=fw:20ejsvqa]<div class="fw" id="{CB}" style="font-family: monospace;">Application<br />===========<br />&nbsp; &nbsp;Path and <span style="color: #0000ff;">name</span>: <span style="color: #000000;">C</span>:\hb30\bin\xbrdbu.Exe <span style="color: #000000;">&#40;</span><span style="color: #000000;">32</span> bits<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #0000ff;">Size</span>: <span style="color: #000000;">3</span>,<span style="color: #000000;">566</span>,<span style="color: #000000;">592</span> bytes<br />&nbsp; &nbsp;Compiler version: <span style="color: #000000;">Harbour</span> <span style="color: #000000;">3.2</span>.0dev <span style="color: #000000;">&#40;</span>Rev. <span style="color: #000000;">18881</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;FiveWin &nbsp;Version: <span style="color: #000000;">FWH</span> <span style="color: #000000;">13.02</span><br />&nbsp; &nbsp;Windows version: <span style="color: #000000;">6.1</span>, Build <span style="color: #000000;">7601</span> Service Pack <span style="color: #000000;">1</span><br /><br />&nbsp; &nbsp;Time <span style="color: #0000ff;">from</span> start: <span style="color: #000000;">0</span> hours <span style="color: #000000;">0</span> mins <span style="color: #000000;">0</span> secs <br />&nbsp; &nbsp;Error occurred <span style="color: #00C800;">at</span>: <span style="color: #000000;">14</span>/<span style="color: #000000;">05</span>/<span style="color: #000000;">2013</span>, <span style="color: #000000;">14</span>:<span style="color: #000000;">20</span>:<span style="color: #000000;">57</span><br />&nbsp; &nbsp;Error description: <span style="color: #000000;">Error</span> BASE/<span style="color: #000000;">1001</span> &nbsp;Undefined <span style="color: #00C800;">function</span>: <span style="color: #000000;">DESCEND</span><br />&nbsp; &nbsp;Args:<br />&nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#91;</span> &nbsp; <span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span> = N &nbsp; <span style="color: #000000;">0.00</span><br /><br />Stack Calls<br />===========<br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: &nbsp;=> DESCEND<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: &nbsp;=> DBUSEAREA<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: <span style="color: #000000;">xbrdbu</span>.prg => OPEN<span style="color: #000000;">&#40;</span> <span style="color: #000000;">770</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: <span style="color: #000000;">xbrdbu</span>.prg => FILE2BRW<span style="color: #000000;">&#40;</span> <span style="color: #000000;">558</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: <span style="color: #000000;">xbrdbu</span>.prg => NEWFILE<span style="color: #000000;">&#40;</span> <span style="color: #000000;">817</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: <span style="color: #000000;">xbrdbu</span>.prg => <span style="color: #000000;">&#40;</span>b<span style="color: #000000;">&#41;</span>MAIN<span style="color: #000000;">&#40;</span> <span style="color: #000000;">70</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: .\source\classes\<span style="color: #0000ff;">WINDOW</span>.PRG => TMDIFRAME:<span style="color: #0000ff;">ACTIVATE</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">984</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: <span style="color: #000000;">xbrdbu</span>.prg => MAIN<span style="color: #000000;">&#40;</span> <span style="color: #000000;">73</span> <span style="color: #000000;">&#41;</span><br /><br />System<br />======<br />&nbsp; &nbsp;CPU type: <span style="color: #000000;">Intel</span><span style="color: #000000;">&#40;</span>R<span style="color: #000000;">&#41;</span> Core<span style="color: #000000;">&#40;</span>TM<span style="color: #000000;">&#41;</span> i3-2330M CPU @ <span style="color: #000000;">2</span>.20GHz <span style="color: #000000;">2200</span> Mhz<br />&nbsp; &nbsp;Hardware memory: <span style="color: #000000;">8101</span> megs<br /><br />&nbsp; &nbsp;Free System resources: <span style="color: #000000;">90</span> %<br />&nbsp; &nbsp; &nbsp; &nbsp; GDI &nbsp; &nbsp;resources: <span style="color: #000000;">90</span> %<br />&nbsp; &nbsp; &nbsp; &nbsp; User &nbsp; resources: <span style="color: #000000;">90</span> %<br /><br />&nbsp; &nbsp;Windows total applications running: <span style="color: #000000;">14</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #000000;">1</span> , <br />&nbsp; &nbsp; &nbsp; <span style="color: #000000;">2</span> , C:\Program Files <span style="color: #000000;">&#40;</span>x86<span style="color: #000000;">&#41;</span>\Cobian Backup <span style="color: #000000;">9</span>\Cobian.exe<br />&nbsp; &nbsp; &nbsp; <span style="color: #000000;">3</span> , C:\Program Files <span style="color: #000000;">&#40;</span>x86<span style="color: #000000;">&#41;</span>\Cobian Backup <span style="color: #000000;">9</span>\cbInterface.exe<br />&nbsp; &nbsp; &nbsp; <span style="color: #000000;">4</span> , C:\Program Files <span style="color: #000000;">&#40;</span>x86<span style="color: #000000;">&#41;</span>\Google\Chrome\Application\chrome.exe<br />&nbsp; &nbsp; &nbsp; <span style="color: #000000;">5</span> , C:\Program Files <span style="color: #000000;">&#40;</span>x86<span style="color: #000000;">&#41;</span>\Google\Drive\googledrivesync.exe<br />&nbsp; &nbsp; &nbsp; <span style="color: #000000;">6</span> , C:\Program Files <span style="color: #000000;">&#40;</span>x86<span style="color: #000000;">&#41;</span>\Intel\Intel<span style="color: #000000;">&#40;</span>R<span style="color: #000000;">&#41;</span> Rapid Storage Technology\IAStorIcon.exe<br />&nbsp; &nbsp; &nbsp; <span style="color: #000000;">7</span> , C:\Program Files <span style="color: #000000;">&#40;</span>x86<span style="color: #000000;">&#41;</span>\Mozilla Thunderbird\thunderbird.exe<br />&nbsp; &nbsp; &nbsp; <span style="color: #000000;">8</span> , C:\Program Files <span style="color: #000000;">&#40;</span>x86<span style="color: #000000;">&#41;</span>\Notepad++\notepad++.exe<br />&nbsp; &nbsp; &nbsp; <span style="color: #000000;">9</span> , C:\Users\Matheus Farias\AppData\<span style="color: #00C800;">Local</span>\Microsoft\SkyDrive\SkyDrive.exe<br />&nbsp; &nbsp; &nbsp;<span style="color: #000000;">10</span> , C:\des\mstar\Mstar.EXE<br />&nbsp; &nbsp; &nbsp;<span style="color: #000000;">11</span> , C:\xDevStudio\xDevStudio.exe<br />&nbsp; &nbsp; &nbsp;<span style="color: #000000;">12</span> DBU <span style="color: #00C800;">for</span> Windows, C:\hb30\bin\xbrdbu.Exe<br />&nbsp; &nbsp; &nbsp;<span style="color: #000000;">13</span> OfficePowerManagerWindow, C:\PROGRA~<span style="color: #000000;">2</span>\COMMON~<span style="color: #000000;">1</span>\MICROS~<span style="color: #000000;">1</span>\OFFICE15\CSISYN~<span style="color: #000000;">1</span>.EXE<br />&nbsp; &nbsp; &nbsp;<span style="color: #000000;">14</span> Skype™ - farias.chaves, C:\Program Files <span style="color: #000000;">&#40;</span>x86<span style="color: #000000;">&#41;</span>\Skype\Phone\Skype.exe<br /><br />Variables in use<br />================<br />&nbsp; &nbsp;Procedure &nbsp; &nbsp; Type &nbsp; Value<br />&nbsp; &nbsp;==========================<br />&nbsp; &nbsp;DESCEND<br />&nbsp; &nbsp; &nbsp;Param &nbsp; <span style="color: #000000;">1</span>: &nbsp; &nbsp;<span style="color: #000000;">O</span> &nbsp; &nbsp;<span style="color: #00C800;">Class</span>: <span style="color: #000000;">ERROR</span><br />&nbsp; &nbsp;DBUSEAREA<br />&nbsp; &nbsp; &nbsp;Param &nbsp; <span style="color: #000000;">1</span>: &nbsp; &nbsp;<span style="color: #000000;">N</span> &nbsp; &nbsp;<span style="color: #000000;">0.00</span><br />&nbsp; &nbsp; &nbsp;<span style="color: #00C800;">Local</span> &nbsp; <span style="color: #000000;">1</span>: &nbsp; &nbsp;<span style="color: #000000;">U</span> &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp;<span style="color: #00C800;">Local</span> &nbsp; <span style="color: #000000;">2</span>: &nbsp; &nbsp;<span style="color: #000000;">U</span> &nbsp; &nbsp;<br />&nbsp; &nbsp;OPEN<br />&nbsp; &nbsp; &nbsp;Param &nbsp; <span style="color: #000000;">1</span>: &nbsp; &nbsp;<span style="color: #000000;">L</span> &nbsp; &nbsp;.T.<br />&nbsp; &nbsp; &nbsp;Param &nbsp; <span style="color: #000000;">2</span>: &nbsp; &nbsp;<span style="color: #000000;">C</span> &nbsp; &nbsp;<span style="color: #ff0000;">"DBFCDX"</span><br />&nbsp; &nbsp; &nbsp;Param &nbsp; <span style="color: #000000;">3</span>: &nbsp; &nbsp;<span style="color: #000000;">C</span> &nbsp; &nbsp;<span style="color: #ff0000;">"produtos.dbf"</span><br />&nbsp; &nbsp; &nbsp;Param &nbsp; <span style="color: #000000;">4</span>: &nbsp; &nbsp;<span style="color: #000000;">C</span> &nbsp; &nbsp;<span style="color: #ff0000;">"produtos"</span><br />&nbsp; &nbsp; &nbsp;Param &nbsp; <span style="color: #000000;">5</span>: &nbsp; &nbsp;<span style="color: #000000;">L</span> &nbsp; &nbsp;.T.<br />&nbsp; &nbsp; &nbsp;Param &nbsp; <span style="color: #000000;">6</span>: &nbsp; &nbsp;<span style="color: #000000;">L</span> &nbsp; &nbsp;.F.<br />&nbsp; &nbsp;FILE2BRW<br />&nbsp; &nbsp; &nbsp;Param &nbsp; <span style="color: #000000;">1</span>: &nbsp; &nbsp;<span style="color: #000000;">C</span> &nbsp; &nbsp;<span style="color: #ff0000;">"produtos.dbf"</span><br />&nbsp; &nbsp; &nbsp;Param &nbsp; <span style="color: #000000;">2</span>: &nbsp; &nbsp;<span style="color: #000000;">C</span> &nbsp; &nbsp;<span style="color: #ff0000;">"produtos"</span><br />&nbsp; &nbsp; &nbsp;Param &nbsp; <span style="color: #000000;">3</span>: &nbsp; &nbsp;<span style="color: #000000;">C</span> &nbsp; &nbsp;<span style="color: #ff0000;">"produtos"</span><br />&nbsp; &nbsp; &nbsp;<span style="color: #00C800;">Local</span> &nbsp; <span style="color: #000000;">1</span>: &nbsp; &nbsp;<span style="color: #000000;">C</span> &nbsp; &nbsp;<span style="color: #ff0000;">"DBFCDX"</span><br />&nbsp; &nbsp;NEWFILE<br />&nbsp; &nbsp; &nbsp;Param &nbsp; <span style="color: #000000;">1</span>: &nbsp; &nbsp;<span style="color: #000000;">C</span> &nbsp; &nbsp;<span style="color: #ff0000;">"produtos.dbf"</span><br />&nbsp; &nbsp; &nbsp;<span style="color: #00C800;">Local</span> &nbsp; <span style="color: #000000;">1</span>: &nbsp; &nbsp;<span style="color: #000000;">U</span> &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp;<span style="color: #00C800;">Local</span> &nbsp; <span style="color: #000000;">2</span>: &nbsp; &nbsp;<span style="color: #000000;">U</span> &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp;<span style="color: #00C800;">Local</span> &nbsp; <span style="color: #000000;">3</span>: &nbsp; &nbsp;<span style="color: #000000;">C</span> &nbsp; &nbsp;<span style="color: #ff0000;">"produtos"</span><br />&nbsp; &nbsp; &nbsp;<span style="color: #00C800;">Local</span> &nbsp; <span style="color: #000000;">4</span>: &nbsp; &nbsp;<span style="color: #000000;">C</span> &nbsp; &nbsp;<span style="color: #ff0000;">"produtos"</span><br />&nbsp; &nbsp; &nbsp;<span style="color: #00C800;">Local</span> &nbsp; <span style="color: #000000;">5</span>: &nbsp; &nbsp;<span style="color: #000000;">U</span> &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp;<span style="color: #00C800;">Local</span> &nbsp; <span style="color: #000000;">6</span>: &nbsp; &nbsp;<span style="color: #000000;">A</span> &nbsp; &nbsp;Len: &nbsp; &nbsp;<span style="color: #000000;">6</span><br />&nbsp; &nbsp; &nbsp;<span style="color: #00C800;">Local</span> &nbsp; <span style="color: #000000;">7</span>: &nbsp; &nbsp;<span style="color: #000000;">U</span> &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp;<span style="color: #00C800;">Local</span> &nbsp; <span style="color: #000000;">8</span>: &nbsp; &nbsp;<span style="color: #000000;">U</span> &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp;<span style="color: #00C800;">Local</span> &nbsp; <span style="color: #000000;">9</span>: &nbsp; &nbsp;<span style="color: #000000;">U</span> &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp;<span style="color: #00C800;">Local</span> &nbsp;<span style="color: #000000;">10</span>: &nbsp; &nbsp;<span style="color: #000000;">H</span> &nbsp; &nbsp;<span style="color: #000000;">&#123;</span>=><span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp;<span style="color: #00C800;">Local</span> &nbsp;<span style="color: #000000;">11</span>: &nbsp; &nbsp;<span style="color: #000000;">U</span> &nbsp; &nbsp;<br />&nbsp; &nbsp;<span style="color: #000000;">&#40;</span>b<span style="color: #000000;">&#41;</span>MAIN<br />&nbsp; &nbsp; &nbsp;Param &nbsp; <span style="color: #000000;">1</span>: &nbsp; &nbsp;<span style="color: #000000;">C</span> &nbsp; &nbsp;<span style="color: #ff0000;">"produtos.dbf"</span><br />&nbsp; &nbsp; &nbsp;<span style="color: #00C800;">Local</span> &nbsp; <span style="color: #000000;">1</span>: &nbsp; &nbsp;<span style="color: #000000;">U</span> &nbsp; &nbsp;<br />&nbsp; &nbsp;TMDIFRAME:<span style="color: #0000ff;">ACTIVATE</span><br />&nbsp; &nbsp; &nbsp;Param &nbsp; <span style="color: #000000;">1</span>: &nbsp; &nbsp;<span style="color: #000000;">O</span> &nbsp; &nbsp;<span style="color: #00C800;">Class</span>: <span style="color: #000000;">TMDIFRAME</span><br />&nbsp; &nbsp;MAIN<br />&nbsp; &nbsp; &nbsp;Param &nbsp; <span style="color: #000000;">1</span>: &nbsp; &nbsp;<span style="color: #000000;">C</span> &nbsp; &nbsp;<span style="color: #ff0000;">"MAXIMIZED"</span><br />&nbsp; &nbsp; &nbsp;Param &nbsp; <span style="color: #000000;">2</span>: &nbsp; &nbsp;<span style="color: #000000;">U</span> &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp;Param &nbsp; <span style="color: #000000;">3</span>: &nbsp; &nbsp;<span style="color: #000000;">U</span> &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp;Param &nbsp; <span style="color: #000000;">4</span>: &nbsp; &nbsp;<span style="color: #000000;">U</span> &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp;Param &nbsp; <span style="color: #000000;">5</span>: &nbsp; &nbsp;<span style="color: #000000;">U</span> &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp;Param &nbsp; <span style="color: #000000;">6</span>: &nbsp; &nbsp;<span style="color: #000000;">U</span> &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp;Param &nbsp; <span style="color: #000000;">7</span>: &nbsp; &nbsp;<span style="color: #000000;">U</span> &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp;Param &nbsp; <span style="color: #000000;">8</span>: &nbsp; &nbsp;<span style="color: #000000;">B</span> &nbsp; &nbsp;<span style="color: #000000;">&#123;</span>|| ... <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp;Param &nbsp; <span style="color: #000000;">9</span>: &nbsp; &nbsp;<span style="color: #000000;">U</span> &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp;Param &nbsp;<span style="color: #000000;">10</span>: &nbsp; &nbsp;<span style="color: #000000;">U</span> &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp;Param &nbsp;<span style="color: #000000;">11</span>: &nbsp; &nbsp;<span style="color: #000000;">U</span> &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp;Param &nbsp;<span style="color: #000000;">12</span>: &nbsp; &nbsp;<span style="color: #000000;">U</span> &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp;Param &nbsp;<span style="color: #000000;">13</span>: &nbsp; &nbsp;<span style="color: #000000;">U</span> &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp;Param &nbsp;<span style="color: #000000;">14</span>: &nbsp; &nbsp;<span style="color: #000000;">U</span> &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp;Param &nbsp;<span style="color: #000000;">15</span>: &nbsp; &nbsp;<span style="color: #000000;">U</span> &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp;Param &nbsp;<span style="color: #000000;">16</span>: &nbsp; &nbsp;<span style="color: #000000;">U</span> &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp;Param &nbsp;<span style="color: #000000;">17</span>: &nbsp; &nbsp;<span style="color: #000000;">U</span> &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp;Param &nbsp;<span style="color: #000000;">18</span>: &nbsp; &nbsp;<span style="color: #000000;">B</span> &nbsp; &nbsp;<span style="color: #000000;">&#123;</span>|| ... <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp;Param &nbsp;<span style="color: #000000;">19</span>: &nbsp; &nbsp;<span style="color: #000000;">U</span> &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp;<span style="color: #00C800;">Local</span> &nbsp; <span style="color: #000000;">1</span>: &nbsp; &nbsp;<span style="color: #000000;">O</span> &nbsp; &nbsp;<span style="color: #00C800;">Class</span>: <span style="color: #000000;">TMDIFRAME</span><br />&nbsp; &nbsp; &nbsp;<span style="color: #00C800;">Local</span> &nbsp; <span style="color: #000000;">2</span>: &nbsp; &nbsp;<span style="color: #000000;">U</span> &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp;<span style="color: #00C800;">Local</span> &nbsp; <span style="color: #000000;">3</span>: &nbsp; &nbsp;<span style="color: #000000;">U</span> &nbsp; &nbsp;<br /><br />Linked RDDs<br />===========<br />&nbsp; &nbsp;DBF<br />&nbsp; &nbsp;DBFFPT<br />&nbsp; &nbsp;DBFBLOB<br />&nbsp; &nbsp;DBFCDX<br />&nbsp; &nbsp;DBFNTX<br /><br />DataBases in use<br />================<br /><br />&nbsp; <span style="color: #000000;">1</span>: => PRODUTOS &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; RddName: <span style="color: #000000;">DBFCDX</span><br />&nbsp; &nbsp; &nbsp;==============================<br />&nbsp; &nbsp; &nbsp;RecNo &nbsp; &nbsp;RecCount &nbsp; &nbsp;BOF &nbsp; EOF<br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">489</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">488</span> &nbsp; &nbsp; &nbsp;.T. &nbsp; .T.<br /><br />&nbsp; &nbsp; &nbsp;Indexes in use &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;TagName<br /><br />&nbsp; &nbsp; &nbsp;Relations in use<br /><br />Classes in use:<br />===============<br />&nbsp; &nbsp; &nbsp;<span style="color: #000000;">1</span> ERROR<br />&nbsp; &nbsp; &nbsp;<span style="color: #000000;">2</span> HBCLASS<br />&nbsp; &nbsp; &nbsp;<span style="color: #000000;">3</span> HBOBJECT<br />&nbsp; &nbsp; &nbsp;<span style="color: #000000;">4</span> SCALAROBJECT<br />&nbsp; &nbsp; &nbsp;<span style="color: #000000;">5</span> ARRAY<br />&nbsp; &nbsp; &nbsp;<span style="color: #000000;">6</span> BLOCK<br />&nbsp; &nbsp; &nbsp;<span style="color: #000000;">7</span> CHARACTER<br />&nbsp; &nbsp; &nbsp;<span style="color: #000000;">8</span> DATE<br />&nbsp; &nbsp; &nbsp;<span style="color: #000000;">9</span> HASH<br />&nbsp; &nbsp; <span style="color: #000000;">10</span> LOGICAL<br />&nbsp; &nbsp; <span style="color: #000000;">11</span> <span style="color: #00C800;">NIL</span><br />&nbsp; &nbsp; <span style="color: #000000;">12</span> NUMERIC<br />&nbsp; &nbsp; <span style="color: #000000;">13</span> POINTER<br />&nbsp; &nbsp; <span style="color: #000000;">14</span> CHARACTER<br />&nbsp; &nbsp; <span style="color: #000000;">15</span> NUMERIC<br />&nbsp; &nbsp; <span style="color: #000000;">16</span> ARRAY<br />&nbsp; &nbsp; <span style="color: #000000;">17</span> HASH<br />&nbsp; &nbsp; <span style="color: #000000;">18</span> BLOCK<br />&nbsp; &nbsp; <span style="color: #000000;">19</span> TINI<br />&nbsp; &nbsp; <span style="color: #000000;">20</span> TWINDOW<br />&nbsp; &nbsp; <span style="color: #000000;">21</span> TCONTROL<br />&nbsp; &nbsp; <span style="color: #000000;">22</span> TXBROWSE<br />&nbsp; &nbsp; <span style="color: #000000;">23</span> TXBRCODE<br />&nbsp; &nbsp; <span style="color: #000000;">24</span> TFONT<br />&nbsp; &nbsp; <span style="color: #000000;">25</span> TMDIFRAME<br />&nbsp; &nbsp; <span style="color: #000000;">26</span> TMENU<br />&nbsp; &nbsp; <span style="color: #000000;">27</span> TMENUITEM<br />&nbsp; &nbsp; <span style="color: #000000;">28</span> TACCTABLE<br />&nbsp; &nbsp; <span style="color: #000000;">29</span> TMRU<br />&nbsp; &nbsp; <span style="color: #000000;">30</span> TBRUSH<br />&nbsp; &nbsp; <span style="color: #000000;">31</span> TMDICLIENT<br />&nbsp; &nbsp; <span style="color: #000000;">32</span> TMSGBAR<br />&nbsp; &nbsp; <span style="color: #000000;">33</span> TRECT<br />&nbsp; &nbsp; <span style="color: #000000;">34</span> TMSGITEM<br />&nbsp; &nbsp; <span style="color: #000000;">35</span> TTIMER<br />&nbsp; &nbsp; <span style="color: #000000;">36</span> TREG32<br /><br />Memory Analysis<br />===============<br />&nbsp; &nbsp; &nbsp; <span style="color: #000000;">324</span> <span style="color: #00C800;">Static</span> variables<br /><br />&nbsp; &nbsp;Dynamic memory consume:<br />&nbsp; &nbsp; &nbsp; <span style="color: #000000;">Actual</span> &nbsp;Value: &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">0</span> bytes<br />&nbsp; &nbsp; &nbsp; Highest Value: &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">0</span> bytes<br /></div>[/code:20ejsvqa] Matheus Farias <!-- e --><a href="mailto:d.matheusfarias@hotmail.com">d.matheusfarias@hotmail.com</a><!-- e -->/matheushchaves@gmail.com
xbrdbu : new version
Could you try the new link ? Frank [quote="Matheusfarias":2jd6f4ek]I started to use your program and found an error in opening a product table, this is the error log [code=fw:2jd6f4ek]<div class="fw" id="{CB}" style="font-family: monospace;">Application<br />===========<br />   Path and <span style="color: #0000ff;">name</span>: <span style="color: #000000;">C</span>:\hb30\bin\xbrdbu.Exe <span style="color: #000000;">&#40;</span><span style="color: #000000;">32</span> bits<span style="color: #000000;">&#41;</span><br />   <span style="color: #0000ff;">Size</span>: <span style="color: #000000;">3</span>,<span style="color: #000000;">566</span>,<span style="color: #000000;">592</span> bytes<br />   Compiler version: <span style="color: #000000;">Harbour</span> <span style="color: #000000;">3.2</span>.0dev <span style="color: #000000;">&#40;</span>Rev. <span style="color: #000000;">18881</span><span style="color: #000000;">&#41;</span><br />   FiveWin  Version: <span style="color: #000000;">FWH</span> <span style="color: #000000;">13.02</span><br />   Windows version: <span style="color: #000000;">6.1</span>, Build <span style="color: #000000;">7601</span> Service Pack <span style="color: #000000;">1</span><br /><br />   Time <span style="color: #0000ff;">from</span> start: <span style="color: #000000;">0</span> hours <span style="color: #000000;">0</span> mins <span style="color: #000000;">0</span> secs <br />   Error occurred <span style="color: #00C800;">at</span>: <span style="color: #000000;">14</span>/<span style="color: #000000;">05</span>/<span style="color: #000000;">2013</span>, <span style="color: #000000;">14</span>:<span style="color: #000000;">20</span>:<span style="color: #000000;">57</span><br />   Error description: <span style="color: #000000;">Error</span> BASE/<span style="color: #000000;">1001</span>  Undefined <span style="color: #00C800;">function</span>: <span style="color: #000000;">DESCEND</span><br />   Args:<br />     <span style="color: #000000;">&#91;</span>   <span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span> = N   <span style="color: #000000;">0.00</span><br /><br />Stack Calls<br />===========<br />   Called <span style="color: #0000ff;">from</span>:  => DESCEND<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>:  => DBUSEAREA<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: <span style="color: #000000;">xbrdbu</span>.prg => OPEN<span style="color: #000000;">&#40;</span> <span style="color: #000000;">770</span> <span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: <span style="color: #000000;">xbrdbu</span>.prg => FILE2BRW<span style="color: #000000;">&#40;</span> <span style="color: #000000;">558</span> <span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: <span style="color: #000000;">xbrdbu</span>.prg => NEWFILE<span style="color: #000000;">&#40;</span> <span style="color: #000000;">817</span> <span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: <span style="color: #000000;">xbrdbu</span>.prg => <span style="color: #000000;">&#40;</span>b<span style="color: #000000;">&#41;</span>MAIN<span style="color: #000000;">&#40;</span> <span style="color: #000000;">70</span> <span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: .\source\classes\<span style="color: #0000ff;">WINDOW</span>.PRG => TMDIFRAME:<span style="color: #0000ff;">ACTIVATE</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">984</span> <span style="color: #000000;">&#41;</span><br />   Called <span style="color: #0000ff;">from</span>: <span style="color: #000000;">xbrdbu</span>.prg => MAIN<span style="color: #000000;">&#40;</span> <span style="color: #000000;">73</span> <span style="color: #000000;">&#41;</span><br /><br />System<br />======<br />   CPU type: <span style="color: #000000;">Intel</span><span style="color: #000000;">&#40;</span>R<span style="color: #000000;">&#41;</span> Core<span style="color: #000000;">&#40;</span>TM<span style="color: #000000;">&#41;</span> i3-2330M CPU @ <span style="color: #000000;">2</span>.20GHz <span style="color: #000000;">2200</span> Mhz<br />   Hardware memory: <span style="color: #000000;">8101</span> megs<br /><br />   Free System resources: <span style="color: #000000;">90</span> %<br />        GDI    resources: <span style="color: #000000;">90</span> %<br />        User   resources: <span style="color: #000000;">90</span> %<br /><br />   Windows total applications running: <span style="color: #000000;">14</span><br />      <span style="color: #000000;">1</span> , <br />      <span style="color: #000000;">2</span> , C:\Program Files <span style="color: #000000;">&#40;</span>x86<span style="color: #000000;">&#41;</span>\Cobian Backup <span style="color: #000000;">9</span>\Cobian.exe<br />      <span style="color: #000000;">3</span> , C:\Program Files <span style="color: #000000;">&#40;</span>x86<span style="color: #000000;">&#41;</span>\Cobian Backup <span style="color: #000000;">9</span>\cbInterface.exe<br />      <span style="color: #000000;">4</span> , C:\Program Files <span style="color: #000000;">&#40;</span>x86<span style="color: #000000;">&#41;</span>\Google\Chrome\Application\chrome.exe<br />      <span style="color: #000000;">5</span> , C:\Program Files <span style="color: #000000;">&#40;</span>x86<span style="color: #000000;">&#41;</span>\Google\Drive\googledrivesync.exe<br />      <span style="color: #000000;">6</span> , C:\Program Files <span style="color: #000000;">&#40;</span>x86<span style="color: #000000;">&#41;</span>\Intel\Intel<span style="color: #000000;">&#40;</span>R<span style="color: #000000;">&#41;</span> Rapid Storage Technology\IAStorIcon.exe<br />      <span style="color: #000000;">7</span> , C:\Program Files <span style="color: #000000;">&#40;</span>x86<span style="color: #000000;">&#41;</span>\Mozilla Thunderbird\thunderbird.exe<br />      <span style="color: #000000;">8</span> , C:\Program Files <span style="color: #000000;">&#40;</span>x86<span style="color: #000000;">&#41;</span>\Notepad++\notepad++.exe<br />      <span style="color: #000000;">9</span> , C:\Users\Matheus Farias\AppData\<span style="color: #00C800;">Local</span>\Microsoft\SkyDrive\SkyDrive.exe<br />     <span style="color: #000000;">10</span> , C:\des\mstar\Mstar.EXE<br />     <span style="color: #000000;">11</span> , C:\xDevStudio\xDevStudio.exe<br />     <span style="color: #000000;">12</span> DBU <span style="color: #00C800;">for</span> Windows, C:\hb30\bin\xbrdbu.Exe<br />     <span style="color: #000000;">13</span> OfficePowerManagerWindow, C:\PROGRA~<span style="color: #000000;">2</span>\COMMON~<span style="color: #000000;">1</span>\MICROS~<span style="color: #000000;">1</span>\OFFICE15\CSISYN~<span style="color: #000000;">1</span>.EXE<br />     <span style="color: #000000;">14</span> Skype™ - farias.chaves, C:\Program Files <span style="color: #000000;">&#40;</span>x86<span style="color: #000000;">&#41;</span>\Skype\Phone\Skype.exe<br /><br />Variables in use<br />================<br />   Procedure     Type   Value<br />   ==========================<br />   DESCEND<br />     Param   <span style="color: #000000;">1</span>:    O    <span style="color: #00C800;">Class</span>: <span style="color: #000000;">ERROR</span><br />   DBUSEAREA<br />     Param   <span style="color: #000000;">1</span>:    N    <span style="color: #000000;">0.00</span><br />     <span style="color: #00C800;">Local</span>   <span style="color: #000000;">1</span>:    U    <br />     <span style="color: #00C800;">Local</span>   <span style="color: #000000;">2</span>:    U    <br />   OPEN<br />     Param   <span style="color: #000000;">1</span>:    L    .T.<br />     Param   <span style="color: #000000;">2</span>:    C    <span style="color: #ff0000;">"DBFCDX"</span><br />     Param   <span style="color: #000000;">3</span>:    C    <span style="color: #ff0000;">"produtos.dbf"</span><br />     Param   <span style="color: #000000;">4</span>:    C    <span style="color: #ff0000;">"produtos"</span><br />     Param   <span style="color: #000000;">5</span>:    L    .T.<br />     Param   <span style="color: #000000;">6</span>:    L    .F.<br />   FILE2BRW<br />     Param   <span style="color: #000000;">1</span>:    C    <span style="color: #ff0000;">"produtos.dbf"</span><br />     Param   <span style="color: #000000;">2</span>:    C    <span style="color: #ff0000;">"produtos"</span><br />     Param   <span style="color: #000000;">3</span>:    C    <span style="color: #ff0000;">"produtos"</span><br />     <span style="color: #00C800;">Local</span>   <span style="color: #000000;">1</span>:    C    <span style="color: #ff0000;">"DBFCDX"</span><br />   NEWFILE<br />     Param   <span style="color: #000000;">1</span>:    C    <span style="color: #ff0000;">"produtos.dbf"</span><br />     <span style="color: #00C800;">Local</span>   <span style="color: #000000;">1</span>:    U    <br />     <span style="color: #00C800;">Local</span>   <span style="color: #000000;">2</span>:    U    <br />     <span style="color: #00C800;">Local</span>   <span style="color: #000000;">3</span>:    C    <span style="color: #ff0000;">"produtos"</span><br />     <span style="color: #00C800;">Local</span>   <span style="color: #000000;">4</span>:    C    <span style="color: #ff0000;">"produtos"</span><br />     <span style="color: #00C800;">Local</span>   <span style="color: #000000;">5</span>:    U    <br />     <span style="color: #00C800;">Local</span>   <span style="color: #000000;">6</span>:    A    Len:    <span style="color: #000000;">6</span><br />     <span style="color: #00C800;">Local</span>   <span style="color: #000000;">7</span>:    U    <br />     <span style="color: #00C800;">Local</span>   <span style="color: #000000;">8</span>:    U    <br />     <span style="color: #00C800;">Local</span>   <span style="color: #000000;">9</span>:    U    <br />     <span style="color: #00C800;">Local</span>  <span style="color: #000000;">10</span>:    H    <span style="color: #000000;">&#123;</span>=><span style="color: #000000;">&#125;</span><br />     <span style="color: #00C800;">Local</span>  <span style="color: #000000;">11</span>:    U    <br />   <span style="color: #000000;">&#40;</span>b<span style="color: #000000;">&#41;</span>MAIN<br />     Param   <span style="color: #000000;">1</span>:    C    <span style="color: #ff0000;">"produtos.dbf"</span><br />     <span style="color: #00C800;">Local</span>   <span style="color: #000000;">1</span>:    U    <br />   TMDIFRAME:<span style="color: #0000ff;">ACTIVATE</span><br />     Param   <span style="color: #000000;">1</span>:    O    <span style="color: #00C800;">Class</span>: <span style="color: #000000;">TMDIFRAME</span><br />   MAIN<br />     Param   <span style="color: #000000;">1</span>:    C    <span style="color: #ff0000;">"MAXIMIZED"</span><br />     Param   <span style="color: #000000;">2</span>:    U    <br />     Param   <span style="color: #000000;">3</span>:    U    <br />     Param   <span style="color: #000000;">4</span>:    U    <br />     Param   <span style="color: #000000;">5</span>:    U    <br />     Param   <span style="color: #000000;">6</span>:    U    <br />     Param   <span style="color: #000000;">7</span>:    U    <br />     Param   <span style="color: #000000;">8</span>:    B    <span style="color: #000000;">&#123;</span>|| ... <span style="color: #000000;">&#125;</span><br />     Param   <span style="color: #000000;">9</span>:    U    <br />     Param  <span style="color: #000000;">10</span>:    U    <br />     Param  <span style="color: #000000;">11</span>:    U    <br />     Param  <span style="color: #000000;">12</span>:    U    <br />     Param  <span style="color: #000000;">13</span>:    U    <br />     Param  <span style="color: #000000;">14</span>:    U    <br />     Param  <span style="color: #000000;">15</span>:    U    <br />     Param  <span style="color: #000000;">16</span>:    U    <br />     Param  <span style="color: #000000;">17</span>:    U    <br />     Param  <span style="color: #000000;">18</span>:    B    <span style="color: #000000;">&#123;</span>|| ... <span style="color: #000000;">&#125;</span><br />     Param  <span style="color: #000000;">19</span>:    U    <br />     <span style="color: #00C800;">Local</span>   <span style="color: #000000;">1</span>:    O    <span style="color: #00C800;">Class</span>: <span style="color: #000000;">TMDIFRAME</span><br />     <span style="color: #00C800;">Local</span>   <span style="color: #000000;">2</span>:    U    <br />     <span style="color: #00C800;">Local</span>   <span style="color: #000000;">3</span>:    U    <br /><br />Linked RDDs<br />===========<br />   DBF<br />   DBFFPT<br />   DBFBLOB<br />   DBFCDX<br />   DBFNTX<br /><br />DataBases in use<br />================<br /><br />  <span style="color: #000000;">1</span>: => PRODUTOS                           RddName: <span style="color: #000000;">DBFCDX</span><br />     ==============================<br />     RecNo    RecCount    BOF   EOF<br />        <span style="color: #000000;">489</span>          <span style="color: #000000;">488</span>      .T.   .T.<br /><br />     Indexes in use                        TagName<br /><br />     Relations in use<br /><br />Classes in use:<br />===============<br />     <span style="color: #000000;">1</span> ERROR<br />     <span style="color: #000000;">2</span> HBCLASS<br />     <span style="color: #000000;">3</span> HBOBJECT<br />     <span style="color: #000000;">4</span> SCALAROBJECT<br />     <span style="color: #000000;">5</span> ARRAY<br />     <span style="color: #000000;">6</span> BLOCK<br />     <span style="color: #000000;">7</span> CHARACTER<br />     <span style="color: #000000;">8</span> DATE<br />     <span style="color: #000000;">9</span> HASH<br />    <span style="color: #000000;">10</span> LOGICAL<br />    <span style="color: #000000;">11</span> <span style="color: #00C800;">NIL</span><br />    <span style="color: #000000;">12</span> NUMERIC<br />    <span style="color: #000000;">13</span> POINTER<br />    <span style="color: #000000;">14</span> CHARACTER<br />    <span style="color: #000000;">15</span> NUMERIC<br />    <span style="color: #000000;">16</span> ARRAY<br />    <span style="color: #000000;">17</span> HASH<br />    <span style="color: #000000;">18</span> BLOCK<br />    <span style="color: #000000;">19</span> TINI<br />    <span style="color: #000000;">20</span> TWINDOW<br />    <span style="color: #000000;">21</span> TCONTROL<br />    <span style="color: #000000;">22</span> TXBROWSE<br />    <span style="color: #000000;">23</span> TXBRCODE<br />    <span style="color: #000000;">24</span> TFONT<br />    <span style="color: #000000;">25</span> TMDIFRAME<br />    <span style="color: #000000;">26</span> TMENU<br />    <span style="color: #000000;">27</span> TMENUITEM<br />    <span style="color: #000000;">28</span> TACCTABLE<br />    <span style="color: #000000;">29</span> TMRU<br />    <span style="color: #000000;">30</span> TBRUSH<br />    <span style="color: #000000;">31</span> TMDICLIENT<br />    <span style="color: #000000;">32</span> TMSGBAR<br />    <span style="color: #000000;">33</span> TRECT<br />    <span style="color: #000000;">34</span> TMSGITEM<br />    <span style="color: #000000;">35</span> TTIMER<br />    <span style="color: #000000;">36</span> TREG32<br /><br />Memory Analysis<br />===============<br />      <span style="color: #000000;">324</span> <span style="color: #00C800;">Static</span> variables<br /><br />   Dynamic memory consume:<br />      Actual  Value:          <span style="color: #000000;">0</span> bytes<br />      Highest Value:          <span style="color: #000000;">0</span> bytes<br /></div>[/code:2jd6f4ek] Matheus Farias <!-- e --><a href="mailto:d.matheusfarias@hotmail.com">d.matheusfarias@hotmail.com</a><!-- e -->/matheushchaves@gmail.com[/quote:2jd6f4ek]
xbrgen
C:\fwh\samples\xbrgen.prg Dear Mr. Rao would you be so kind to insert COLSIZES and HEADERS into the sourcecode generator. Thank you in advance Otto [img:1eo52w7a]http&#58;//mybergland&#46;com/FWForum/xbrgen&#46;jpg[/img:1eo52w7a]
xbrows function
Hello friends, I always use xBrowse for testing. I have never looked at xBrowse.prg so closely because I was always satisfied with the result. Today I would have been comfortable if I had a non-modal xBrowser. I thought, maybe I can just change the source code. But you can transfer all of these parameters. XBrowse( uData, cTitle, lAutoSort, bSetUp, aCols, bSelect, lExcel, lFastEdit, bValid, cSerial, lNoModal, lAutoFit ) It is also interesting that you can get the xBrowse object back and make further adjustments with it. e.g. size and position Best regards, Otto [img:3llm3orh]https&#58;//mybergland&#46;com/fwforum/xbrfunc&#46;gif[/img:3llm3orh]
xbrows function
Otto, I also use Xbrowse dayly and most of my program is used from inside xbrowses.... You use autocode for generating xbrowses, but I'm looking (thinking) into a other way. oBrowse:= MyBrowse("Customers") and from this point in code I think to generate a function that will retrieve ALL possible data from a Xbrowse (setup/maintenance) function where all xbrowses are located. This function would look somewhat like this : Function MyBrowse(cBrowse) local oBrw use Xbrw // data needed to generate the xbrowse Customers Seek the cBrowse Start generating the browse oBrw:=xbrowse(xBrw->dbf,xBrw->title,xBrw->lSort,..... ) // XBrowse( uData, cTitle, lAutoSort, bSetUp, aCols, bSelect, lExcel, lFastEdit, bValid, cSerial, lNoModal, lAutoFit ) //more setup if possible if !empty(xBrw->Header) oBrw:setgroupheader("xBrw->header",xbrw->headerfrom,xBrw->headerto) endif etc... etc... It's just a starting idea, because I have to generate Xbrowse a lot and this way the code for them would almost be only 1 line. I'm sure this technique is used be people at this forum, so I hope a working starting program will be posted )) return oBrw
xbrows function
Just saw some interesting code in Fivedbu : [code=fw:3szro804]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #B900B9;">// xbrowse is setup here...</span><br /><br />StyleBrowse<span style="color: #000000;">&#40;</span> oBrw <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">Static</span> <span style="color: #00C800;">Function</span> StyleBrowse<span style="color: #000000;">&#40;</span> oBrw <span style="color: #000000;">&#41;</span><br /><br />   WITH OBJECT oBrw<br />      :<span style="color: #000000;">l2007</span>               := .F.<br />      :<span style="color: #000000;">nMarqueeStyle</span>       := MARQSTYLE_HIGHLROW<br />      :<span style="color: #000000;">lFullGrid</span>           := .T.<br />      :<span style="color: #000000;">lRowDividerComplete</span> := .T.<br />      :<span style="color: #000000;">lColDividerComplete</span> := .T.<br />      <span style="color: #B900B9;">//:nRowDividerStyle    := LINESTYLE_NOLINES</span><br />      :<span style="color: #000000;">nColDividerStyle</span>    := LINESTYLE_LIGHTGRAY<br />      :<span style="color: #000000;">nRowDividerStyle</span>    := LINESTYLE_LIGHTGRAY<br />      :<span style="color: #000000;">nHeaderHeight</span>       := <span style="color: #000000;">23</span><br />      <span style="color: #B900B9;">//:nFooterHeight     := oBrw:nHeaderHeight</span><br />      :<span style="color: #000000;">nRowHeight</span>          := oBrw:<span style="color: #000000;">nHeaderHeight</span><br />      <span style="color: #B900B9;">//:nStretchCol         := 1</span><br />      :<span style="color: #000000;">nFreeze</span>             := <span style="color: #000000;">1</span><br />      <span style="color: #00C800;">if</span> lPijama<br />         :<span style="color: #000000;">SetColor</span><span style="color: #000000;">&#40;</span> CLR_BLACK, RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">232</span>, <span style="color: #000000;">255</span>, <span style="color: #000000;">232</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />      <span style="color: #00C800;">else</span><br />         :<span style="color: #000000;">SetColor</span><span style="color: #000000;">&#40;</span> nClrTxtBrw, nClrBackBrw <span style="color: #000000;">&#41;</span><br />      <span style="color: #00C800;">endif</span><br />   END<br /><br /><span style="color: #00C800;">Return</span> <span style="color: #00C800;">nil</span><br /><br /><br /><br /> </div>[/code:3szro804]
xbrows function
[code=fw:ls0xexgz]<div class="fw" id="{CB}" style="font-family: monospace;">oBrw := XBROWSER <span style="color: #ff0000;">"STATES.DBF"</span> NOMODAL</div>[/code:ls0xexgz] You can get back the oBrw object with command syntax also.
xbrowse
is possible EDIT on XBrwose Directly a DATE FIELD ? is possible open a dtpicker control when I click on this field ?
xbrowse
Hi All When using xbrowse in cell edit mode I have one cell using a EDIT_BUTTON to open a a notes type field but this means hitting the enter key or pressing the button for memo dialog to open - is there a way to detect when that cell gets focus so the memo dialog opens on the focus event - I looked through the source for xbrowse but could not see any focus methods, There is a oCol:bOnPreEdit but I could not seem to do anything with it. Regards Colin
xbrowse
Please set oBrw:lColChangeNotify := .t. Then oBrw:bChange codeblock is evaluated when a column is changed also. In the codeblock, please check if the oBrw:SelectedCol() == oYourCol and then take appropriate action.
xbrowse
Hi Mr Rao Thank you - that worked fine. Regards Colin
xbrowse
Colin You had asked if the is a pre and a post edit in xBrowse and there is .. the onPreEdit fires once the cell has been activated and the onPostEdit fires as the last event when you leave the cell. Here is a snipit of code I use in an invoicing xBrowse app. Rick Lipkin [code=fw:34ygqij8]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #B900B9;">// part number</span><br />oLbxB:<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">3</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">bEditWhen</span>   := <span style="color: #000000;">&#123;</span> || <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span>oRsDetail:<span style="color: #000000;">fields</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"LockedDown"</span><span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span> = .f., .t.,.f.<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />oLbxB:<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">3</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">bOnPreEdit</span>  := <span style="color: #000000;">&#123;</span> || <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span>oRsDetail:<span style="color: #000000;">Fields</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Inventory Id"</span><span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span> = <span style="color: #ff0000;">"  "</span>, , __Keyboard<span style="color: #000000;">&#40;</span> Chr<span style="color: #000000;">&#40;</span> VK_HOME <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 />oLbxB:<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">3</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">bOnPostEdit</span> := <span style="color: #000000;">&#123;</span>|o,v| _InvtLook<span style="color: #000000;">&#40;</span> v, oRsDetail, oRsRepair, <span style="color: #ff0000;">"3"</span>, oLbxB, @lTaxable, oTaxable, cLoc, oLabor,oParts,oMisc,oTax,oTotal,nTaxNumber<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br /><br /> </div>[/code:34ygqij8]
xbrowse
Hi all, I have a xBrowse which has a relation between two databases... [code=fw:3k8r5uma]<div class="fw" id="{CB}" style="font-family: monospace;">dbSETRELATION<span style="color: #000000;">&#40;</span> Familia , <span style="color: #000000;">&#123;</span>|| <span style="color: #000000;">&#40;</span>Articulo<span style="color: #000000;">&#41;</span>->CodFam<span style="color: #000000;">&#125;</span>, <span style="color: #ff0000;">"(Articulo)->CodFam"</span> <span style="color: #000000;">&#41;</span></div>[/code:3k8r5uma] So I haveit indexed by 1.- CodFam 2.- Name I create the xBrowse like this: [code=fw:3k8r5uma]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">xBrowse</span> oBrw ;<br />    FIELDS <span style="color: #000000;">&#40;</span>Articulo<span style="color: #000000;">&#41;</span>->Descrip, ;<br />           <span style="color: #000000;">&#40;</span>Familia<span style="color: #000000;">&#41;</span>->Name ;<br />    <span style="color: #0000ff;">ID</span> <span style="color: #000000;">4005</span> <span style="color: #0000ff;">OF</span> oDlg<br /> </div>[/code:3k8r5uma] When I use (Familia)->(dbsetorder(1)) the second Field shows (ordered by CodFam, not ordered by name), but if I change to (Familia)->(dbsetorder(2)), the data does not even shows... Is there a way to show the data of this Field in a different order than the one used by dbSetRelation????
xbrowse
[quote="Bayron":1div672p]Hi all, I have a xBrowse which has a relation between two databases... [code=fw:1div672p]<div class="fw" id="{CB}" style="font-family: monospace;">dbSETRELATION<span style="color: #000000;">&#40;</span> Familia , <span style="color: #000000;">&#123;</span>|| <span style="color: #000000;">&#40;</span>Articulo<span style="color: #000000;">&#41;</span>->CodFam<span style="color: #000000;">&#125;</span>, <span style="color: #ff0000;">"(Articulo)->CodFam"</span> <span style="color: #000000;">&#41;</span></div>[/code:1div672p] So I haveit indexed by 1.- CodFam 2.- Name I create the xBrowse like this: [code=fw:1div672p]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">xBrowse</span> oBrw ;<br />    FIELDS <span style="color: #000000;">&#40;</span>Articulo<span style="color: #000000;">&#41;</span>->Descrip, ;<br />           <span style="color: #000000;">&#40;</span>Familia<span style="color: #000000;">&#41;</span>->Name ;<br />    <span style="color: #0000ff;">ID</span> <span style="color: #000000;">4005</span> <span style="color: #0000ff;">OF</span> oDlg<br /> </div>[/code:1div672p] When I use (Familia)->(dbsetorder(1)) the second Field shows (ordered by CodFam, not ordered by name), but if I change to (Familia)->(dbsetorder(2)), the data does not even shows... Is there a way to show the data of this Field in a different order than the one used by dbSetRelation????[/quote:1div672p] Using bchange , it must be possible : oBrw:bChange := {||(Familia)->(dbsetorder(1)) , (Familia)->(Dbseek((Articulo)->CodFam)),(Familia)->(dbsetorder(2)) } A better solution is to use a function FUNC DB_SEEK(x,nOrder) local cMemOrder := OrdSetFocus() dbsetorder(nOrder) dbseek(x) OrdSetfocus(cMemOrder) RETURN found() Odlg:bInit should also call oBrw:bChange ! Frank
xbrowse
This is not an issue relating to XBrowse, but a matter relating to understanding and managing "relationships" and "indexes" in RDD. First we handle this the way we need, without getting confused with xbrowse or some other browse. Once we do this first, browsing in any browser is a matter or routine. Once we set relation, we can NOT change the order of the child DBF without breaking the relationship. We can change the order of the parent dbf but not the child dbf. We can create an additional index order on the parent dbf with expression "child->columnname". This is now an additional tag of the parent dbf and so we can change to it. SELECT ARTICULO SET RELATION TO CODFAM INTO FAMILIA GO TOP INDEX ON FAMILIA->NAME TAG FAMILA_NAME TO TMP MEMORY ADDITIVE // RESET ORDER TO THE FIRST ORDER AS YOU WANT REDEFINE xBrowse oBrw id 4005 OF oDlg ; COLUMNS "DESCRIP", "FAMILA->NAME" ; // Never use FIELDS. Always use COLUMNS HEADERS "DESCRIPTION", "NAME" ; ALIAS "ARTICULO" // Never Never Omit this WITH OBJECT oBrw:aCols[ 2 ] :cSortOrder := "FAMILA_NAME" :cOrdBag := "TMP" END // other code NOTE: I have assumed that ARTICULO and FAMILA are real ALIAS names and not variable names containing the alias names. If they are variable names, pls change the code accordingly
xbrowse
Mr Rao, Your example is very concise and self explanatory, even though I have not been able to replicate, because I just started to change from NTX to CDX and my indexes are still a mess... I will change this in the future, but for now I still have them like this... [code=fw:yh3xkxj1]<div class="fw" id="{CB}" style="font-family: monospace;">    Familia := Open_Dbf<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Familia"</span><span style="color: #000000;">&#41;</span><br />    <span style="color: #000000;">&#40;</span>Familia<span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span>DBSETINDEX<span style="color: #000000;">&#40;</span>Ruta + <span style="color: #ff0000;">"CodigoF"</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />    <span style="color: #000000;">&#40;</span>Familia<span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span>DBSETINDEX<span style="color: #000000;">&#40;</span>Ruta + <span style="color: #ff0000;">"FamName"</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />    <span style="color: #000000;">&#40;</span>Familia<span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span>dbsetorder<span style="color: #000000;">&#40;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />    <br />    Articulo := Open_Dbf<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Articulo"</span><span style="color: #000000;">&#41;</span><br />    <span style="color: #000000;">&#40;</span>Articulo<span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span>DBSETINDEX<span style="color: #000000;">&#40;</span>Ruta + <span style="color: #ff0000;">"CodigoA"</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />    <span style="color: #000000;">&#40;</span>Articulo<span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span>DBSETINDEX<span style="color: #000000;">&#40;</span>Ruta + <span style="color: #ff0000;">"Descrip"</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />    <span style="color: #000000;">&#40;</span>Articulo<span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span>DBSETINDEX<span style="color: #000000;">&#40;</span>Ruta + <span style="color: #ff0000;">"CodigoC"</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />    <span style="color: #000000;">&#40;</span>Articulo<span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span>dbsetorder<span style="color: #000000;">&#40;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br /> </div>[/code:yh3xkxj1] Where Open_Dbf() is a function which opens the database and returns a diferent Alias every time I open a database...(MDI) That been said: How can I set COLUMNS taking under consideration that the Alias is a variable???
xbrowse
[quote="Franklin Demont":33j75q49]Using bchange , it must be possible : oBrw:bChange := {||(Familia)->(dbsetorder(1)) , (Familia)->(Dbseek((Articulo)->CodFam)),(Familia)->(dbsetorder(2)) } A better solution is to use a function FUNC DB_SEEK(x,nOrder) local cMemOrder := OrdSetFocus() dbsetorder(nOrder) dbseek(x) OrdSetfocus(cMemOrder) RETURN found() Odlg:bInit should also call oBrw:bChange ! Frank[/quote:33j75q49] Thanks Frank for your answer, but I am not trying to wild seek data in the browser... I am just trying to order the columns...! I am not sure, but I think that the way you explained it, is taken care by the relation between the databases...
xbrowse
[quote:181mnarf]How can I set COLUMNS taking under consideration that the Alias is a variable???[/quote:181mnarf] Just in case, this is the complete list of columns as I have them right now...: [code=fw:181mnarf]<div class="fw" id="{CB}" style="font-family: monospace;">FIELDS <span style="color: #000000;">&#40;</span>Articulo<span style="color: #000000;">&#41;</span>->Descrip, ;<br />       <span style="color: #000000;">&#40;</span>Familia<span style="color: #000000;">&#41;</span>->Nombre, ;<br />       <span style="color: #000000;">&#40;</span>Articulo<span style="color: #000000;">&#41;</span>->Texto_Tecl, ;<br />       iIf<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#40;</span>Articulo<span style="color: #000000;">&#41;</span>->Cocina=.T.,<span style="color: #ff0000;">'Sí'</span>,<span style="color: #ff0000;">'No'</span><span style="color: #000000;">&#41;</span>, ;<br />       Tran<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#40;</span>Articulo<span style="color: #000000;">&#41;</span>->pVenta_Bar,<span style="color: #ff0000;">'99,999.99'</span><span style="color: #000000;">&#41;</span>, ;<br />       Tran<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#40;</span>Articulo<span style="color: #000000;">&#41;</span>->pVenta_Mes,<span style="color: #ff0000;">'99,999.99'</span><span style="color: #000000;">&#41;</span>, ;<br />       Tran<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#40;</span>Articulo<span style="color: #000000;">&#41;</span>->pVenta_Ter,<span style="color: #ff0000;">'99,999.99'</span><span style="color: #000000;">&#41;</span> ;<br /> </div>[/code:181mnarf] Thanks
xbrowse
Hello Mr. Rao: Since the solution to this problem was a little too complex..., I did the next thing I could do... Fixed my Index Files and included the TAG argument... (Just to be up to date) Added a Field (Articulo)->Name and indexed by it Set the dbRelation by that Field... It was that simple... [quote:16twwj79]And since you like my footer phrase, here is another: Some times when programming with FiveWin for Harbour, We expect to receive a simple solution from the forum and make us forget to use the other simple solution that we know [color=#4000FF:16twwj79]FiveWin, at the end, they all are simple solutions... [/color:16twwj79][/quote:16twwj79]
xbrowse
[code=fw:3c9vjtb8]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #B900B9;">// Somewhere at the very beginning in the Main() function</span><br />XbrNumFormat<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"A"</span>, .t. <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #B900B9;">// When XBrowse automatically generates pictures or numeric values</span><br />&nbsp; &nbsp;<span style="color: #B900B9;">// American format ( commas as thousand separators ) is used </span><br />&nbsp; &nbsp;<span style="color: #B900B9;">// and thousand separators are used.</span><br />&nbsp; &nbsp;<span style="color: #B900B9;">// If First parameter is 'E', numbers are formatted in European Format</span><br /><br /><br /><span style="color: #00C800;">function</span> BrowseArticulo<br /><br /><span style="color: #B900B9;">// Open all DBFs and set relations</span><br /><br /><span style="color: #B900B9;">// define dialog    </span><br /><br />cAmtPic     := NumPict<span style="color: #000000;">&#40;</span> <span style="color: #000000;">7</span>, <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span>  <span style="color: #B900B9;">// FW Generates picture clause --> "99,999.99" or "@E 99,999.99" </span><br />                         <span style="color: #B900B9;">// depending on XbrNumFormat(....)</span><br /><br /><span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">xBrowse</span> oBrw <span style="color: #0000ff;">ID</span> <span style="color: #000000;">4005</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">ALIAS</span> Articulo ;<br />   COLUMNS <span style="color: #ff0000;">"Descrip"</span>, <span style="color: #000000;">&#123;</span> || <span style="color: #000000;">&#40;</span> Familia <span style="color: #000000;">&#41;</span>->Nombre <span style="color: #000000;">&#125;</span>, <span style="color: #ff0000;">"Texto_Tecl"</span>, ;<br />      <span style="color: #ff0000;">"Cocina"</span>,  <span style="color: #ff0000;">"pVenta_Bar"</span>, <span style="color: #ff0000;">"pVenta_Mes"</span>, <span style="color: #ff0000;">"pVenta_Ter"</span> ;<br />   HEADERS <span style="color: #ff0000;">"Description"</span>, <span style="color: #ff0000;">"Nombre"</span>, <span style="color: #ff0000;">"Tecl"</span>, <span style="color: #ff0000;">"Cocina"</span>, <span style="color: #ff0000;">"Bar"</span>, <span style="color: #ff0000;">"Mes"</span>, <span style="color: #ff0000;">"Ter"</span> ;<br />   PICTURES <span style="color: #00C800;">nil</span>, <span style="color: #00C800;">nil</span>, <span style="color: #00C800;">nil</span>, <span style="color: #00C800;">nil</span>, cAmtPic, cAmtPic, cAmtPic ;<br />   AUTOSORT CELL LINES      <br /><br /><span style="color: #B900B9;">/*<br />   Notes:  (1) "ALIAS Atrticulo".  We need to inform xbrowse that we want to<br />   use Articulo as the main Table to navigate<br />   (2) COLUMNS: XBrowse examines the columns and determines the datatypes,<br />   pictures, sort indexes, proper alignment of data and generates necessary<br />   codeblocks. <br />   (3) PICTURES: This is optional. Because XBrowse knows that the main table is<br />   Articulo, it knows what columns are numeric and automatically generates <br />   picture clauses based on field length and field dec.<br />   We can override by providing our own pictures.<br />   <br />*/</span><br /><br /><br />WITH OBJECT oBrw<br />   :<span style="color: #000000;">Cocina</span>:<span style="color: #000000;">SetCheck</span><span style="color: #000000;">&#40;</span> <span style="color: #00C800;">nil</span>, <span style="color: #00C800;">nil</span>, <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">'Si'</span>, <span style="color: #ff0000;">'No'</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br />END<br /><br /><span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span><br /> </div>[/code:3c9vjtb8]
xbrowse
[quote:i60gwkwb]Hello Mr. Rao: Since the solution to this problem was a little too complex..., I did the next thing I could do... Fixed my Index Files and included the TAG argument... (Just to be up to date) Added a Field (Articulo)->Name and indexed by it Set the dbRelation by that Field... [/quote:i60gwkwb] I would still advise you not to maintain regular indexes (on disk) with aliased expressions and in particular with alias of related tables. Instead you may use temporary indexes in memory for such purposes as and when needed. In your above example you need not have to change anything in the existing indexes. Here is the code I suggest: [code=fw:i60gwkwb]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #B900B9;">// open the tables in ur present way</span><br /><br />Familia := Open_Dbf<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Familia"</span><span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#40;</span>Familia<span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span>DBSETINDEX<span style="color: #000000;">&#40;</span>Ruta + <span style="color: #ff0000;">"CodigoF"</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#40;</span>Familia<span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span>DBSETINDEX<span style="color: #000000;">&#40;</span>Ruta + <span style="color: #ff0000;">"FamName"</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#40;</span>Familia<span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span>dbsetorder<span style="color: #000000;">&#40;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br /> <br />Articulo := Open_Dbf<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Articulo"</span><span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#40;</span>Articulo<span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span>DBSETINDEX<span style="color: #000000;">&#40;</span>Ruta + <span style="color: #ff0000;">"CodigoA"</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#40;</span>Articulo<span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span>DBSETINDEX<span style="color: #000000;">&#40;</span>Ruta + <span style="color: #ff0000;">"Descrip"</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#40;</span>Articulo<span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span>DBSETINDEX<span style="color: #000000;">&#40;</span>Ruta + <span style="color: #ff0000;">"CodigoC"</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#40;</span>Articulo<span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span>dbsetorder<span style="color: #000000;">&#40;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br /><br />dbSETRELATION<span style="color: #000000;">&#40;</span> Familia , <span style="color: #000000;">&#123;</span>|| <span style="color: #000000;">&#40;</span>Articulo<span style="color: #000000;">&#41;</span>->CodFam<span style="color: #000000;">&#125;</span>, <span style="color: #ff0000;">"(Articulo)->CodFam"</span> <span style="color: #000000;">&#41;</span><br /><br />GO TOP<br /><span style="color: #0000ff;">INDEX</span> <span style="color: #0000ff;">ON</span> <span style="color: #000000;">&#40;</span>Famila<span style="color: #000000;">&#41;</span>->NAME TAG F_NAME <span style="color: #0000ff;">TO</span> TMP_FNAME MEMORY ADDITIVE<br />DBSETORDER<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span><br />GO TOP<br /><br /><br /><span style="color: #B900B9;">// create dialog etc</span><br /><br /><span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">xBrowse</span> oBrw <span style="color: #0000ff;">ID</span> <span style="color: #000000;">4005</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">ALIAS</span> Articulo ;<br />   COLUMN  <span style="color: #ff0000;">"Descrip"</span>, <span style="color: #000000;">&#123;</span> || <span style="color: #000000;">&#40;</span>Familia<span style="color: #000000;">&#41;</span>->Name <span style="color: #000000;">&#125;</span> ;<br />   HEADERS <span style="color: #ff0000;">"Description"</span>, <span style="color: #ff0000;">"Name"</span> ;<br />   SORT <span style="color: #00C800;">nil</span>, <span style="color: #ff0000;">"F_NAME"</span> ;<br />   AUTOSORT CELL LINES<br />   <br />oBrw:<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">cOrdBag</span> := <span style="color: #ff0000;">"TMP_FNAME"</span><br /><br /><span style="color: #B900B9;">// other code</span><br /><br /><span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span><br /> </div>[/code:i60gwkwb]
xbrowse
Thank you Mr. Rao, I really like your approach... Very concise...
xbrowse
colleagues there any command to display columns that are not visible without having to use the right arrow thank you Luiz Fernando
xbrowse
Hi, Luis. This is just one example. You can improve it. [code=fw:jao20kfa]<div class="fw" id="{CB}" style="font-family: monospace;">oBrw:<span style="color: #000000;">bKeyDown</span>:= <span style="color: #000000;">&#123;</span>|nKey| <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span>cValToChar<span style="color: #000000;">&#40;</span>nKey<span style="color: #000000;">&#41;</span> $ <span style="color: #ff0000;">"96;97;98;99;100;101;102;103;104;105"</span> .and. GetKeyState<span style="color: #000000;">&#40;</span>VK_CONTROL<span style="color: #000000;">&#41;</span>, SeekCol<span style="color: #000000;">&#40;</span>nKey,oBrw<span style="color: #000000;">&#41;</span> ,<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br /><br /><span style="color: #B900B9;">//-----------------------------</span><br /><span style="color: #00C800;">FUNCTION</span> SeekCol<span style="color: #000000;">&#40;</span>nKey,oBrw<span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">local</span> n, nCol<br /><span style="color: #00C800;">local</span> aKeys:=<span style="color: #000000;">&#123;</span><span style="color: #000000;">96</span>,<span style="color: #000000;">97</span>,<span style="color: #000000;">98</span>,<span style="color: #000000;">99</span>,<span style="color: #000000;">100</span>,<span style="color: #000000;">101</span>,<span style="color: #000000;">102</span>,<span style="color: #000000;">103</span>,<span style="color: #000000;">104</span>,<span style="color: #000000;">105</span><span style="color: #000000;">&#125;</span><br /><span style="color: #00C800;">local</span> aChrKeys:=<span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"0"</span>,<span style="color: #ff0000;">"1"</span>,<span style="color: #ff0000;">"2"</span>,<span style="color: #ff0000;">"3"</span>,<span style="color: #ff0000;">"4"</span>,<span style="color: #ff0000;">"5"</span>,<span style="color: #ff0000;">"6"</span>,<span style="color: #ff0000;">"7"</span>,<span style="color: #ff0000;">"8"</span>,<span style="color: #ff0000;">"9"</span><span style="color: #000000;">&#125;</span><br /><br />nCol:=aChrKeys<span style="color: #000000;">&#91;</span>Ascan<span style="color: #000000;">&#40;</span>aKeys,nKey<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#93;</span> <br />nCol:=Val<span style="color: #000000;">&#40;</span>nCol<span style="color: #000000;">&#41;</span><span style="color: #000000;">-1</span><br /><br />&nbsp; oBrw:<span style="color: #000000;">GoLeftMost</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; <span style="color: #00C800;">For</span> n:=<span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> nCol<br />&nbsp; &nbsp; &nbsp;oBrw:<span style="color: #000000;">GoRight</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; <span style="color: #00C800;">Next</span><br />&nbsp; oBrw:<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><br />&nbsp;</div>[/code:jao20kfa] code]Regards.
xbrowse
Colleague thanks for the reply with his example he goes straight for the end. [img:2b17yayw]http&#58;//img687&#46;imageshack&#46;us/img687/475/l72z&#46;jpg[/img:2b17yayw] could not skip the middle image thank you Luiz Fernando
xbrowse
Mr Luiz Fernando I am not very clear what you want. Please check if this is what you want [code=fw:3k8adtkc]<div class="fw" id="{CB}" style="font-family: monospace;">oBrw:<span style="color: #000000;">nColOffSet</span> := oBrw:<span style="color: #000000;">LastDisplayPos</span><span style="color: #000000;">&#40;</span> .t. <span style="color: #000000;">&#41;</span> + <span style="color: #000000;">1</span><br />oBrw:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span></div>[/code:3k8adtkc]
xbrowse
Luiz, The example works well with the numeric keys on the right of the keyboard. If you want to use the alpha-numeric keys, also, you have to add his char. If for example you are in column 4, and press Ctrl + 7, the cursor is positioned in column 7. This we use in some of my browsers. Maybe for the super headers? This I not tried yet. Regards.
xbrowse
Luiz, Try this code more complete. [code=fw:38b1pkaf]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span>.....<br /><br /><span style="color: #00C800;">Static</span>  nLapsus, cBusq<br /><br /><span style="color: #00C800;">Function</span> main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   GetData<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">Return</span><br /><br /><span style="color: #00C800;">function</span> GetData<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />  nLapsus := Seconds<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>; cBusq:=<span style="color: #ff0000;">""</span>  <br /><br /><span style="color: #0000ff;">define</span> <span style="color: #0000ff;">dialog</span>.....<br /><span style="color: #0000ff;">redefine</span> oBrw....<br />....<br />....<br />   oBrw:<span style="color: #000000;">bKeyDown</span>:= <span style="color: #000000;">&#123;</span>|nKey| <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span>cValToChar<span style="color: #000000;">&#40;</span>nKey<span style="color: #000000;">&#41;</span> $ <span style="color: #ff0000;">"96;97;98;99;100;101;102;103;104;105"</span> .and. GetKeyState<span style="color: #000000;">&#40;</span>VK_CONTROL<span style="color: #000000;">&#41;</span>, SeekCol<span style="color: #000000;">&#40;</span>nKey,oBrw<span style="color: #000000;">&#41;</span> ,<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br /><br />oDlg:<span style="color: #000000;">End</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><br /><br /><span style="color: #B900B9;">//------------------------//</span><br /><span style="color: #00C800;">Function</span> SeekCol<span style="color: #000000;">&#40;</span>nKey,oBrw<span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">local</span> cChar, nColBusc:=<span style="color: #000000;">0</span>,n<br /><span style="color: #00C800;">local</span> aNKeys:=<span style="color: #000000;">&#123;</span><span style="color: #000000;">96</span>,<span style="color: #000000;">97</span>,<span style="color: #000000;">98</span>,<span style="color: #000000;">99</span>,<span style="color: #000000;">100</span>,<span style="color: #000000;">101</span>,<span style="color: #000000;">102</span>,<span style="color: #000000;">103</span>,<span style="color: #000000;">104</span>,<span style="color: #000000;">105</span>,<span style="color: #000000;">107</span>,<span style="color: #000000;">109</span>,<span style="color: #000000;">110</span><span style="color: #000000;">&#125;</span><br /><span style="color: #00C800;">local</span> aChrNKeys:=<span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"0"</span>,<span style="color: #ff0000;">"1"</span>,<span style="color: #ff0000;">"2"</span>,<span style="color: #ff0000;">"3"</span>,<span style="color: #ff0000;">"4"</span>,<span style="color: #ff0000;">"5"</span>,<span style="color: #ff0000;">"6"</span>,<span style="color: #ff0000;">"7"</span>,<span style="color: #ff0000;">"8"</span>,<span style="color: #ff0000;">"9"</span>,<span style="color: #ff0000;">"+"</span>,<span style="color: #ff0000;">"-"</span>,<span style="color: #ff0000;">"."</span><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #00C800;">If</span> <span style="color: #000000;">&#40;</span> Seconds<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> - nLapsus <span style="color: #000000;">&#41;</span> > <span style="color: #000000;">2</span> .or. <span style="color: #000000;">&#40;</span> Seconds<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> - nLapsus <span style="color: #000000;">&#41;</span> < <span style="color: #000000;">0</span><br />   cBusq := <span style="color: #ff0000;">""</span><br /><span style="color: #00C800;">EndIf</span><br />nLapsus := Seconds<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">if</span> Ascan<span style="color: #000000;">&#40;</span>aNKeys,nKey<span style="color: #000000;">&#41;</span> != <span style="color: #000000;">0</span><br />   cChar:=aChrNKeys<span style="color: #000000;">&#91;</span>Ascan<span style="color: #000000;">&#40;</span>aNKeys,nKey<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#93;</span><br />   cBusq+= cChar<br /><span style="color: #00C800;">else</span><br />   cBusq+= Upper<span style="color: #000000;">&#40;</span>Chr<span style="color: #000000;">&#40;</span>nKey<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">endif</span><br /><br />  nColBusc := Val<span style="color: #000000;">&#40;</span>cBusq<span style="color: #000000;">&#41;</span><br /><br />  oBrw:<span style="color: #000000;">GoLeftMost</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>  <span style="color: #B900B9;">//col 1 </span><br />  <span style="color: #00C800;">For</span> n:=<span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> nColBusc - <span style="color: #000000;">1</span><br />     oBrw:<span style="color: #000000;">GoRight</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />  <span style="color: #00C800;">Next</span><br />  oBrw:<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 /> </div>[/code:38b1pkaf] Regards.
xbrowse
nageswaragunupudi, thanks for the feedback Francisco, had ignored his response and test done only with the command oBrw: GoRight () now worked 100% thank you Luiz Fernando
xbrowse
Hola estoy tratando de mostrar un cuenta corriente el código es el siguiente [code=fw:ta8ptuf5]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">static</span> <span style="color: #00C800;">function</span> cargocta<span style="color: #000000;">&#40;</span>oBrw,odlg,oNbut,oMysql<span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">local</span> oQmae  := oMysql:<span style="color: #000000;">Query</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"SELECT * FROM maeclie"</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">local</span> oQry1 <br /><span style="color: #00C800;">local</span> z := <span style="color: #000000;">1</span><br /><span style="color: #00C800;">local</span> lTipo := .f.<br /><span style="color: #00C800;">local</span> nImporte <br /><br /><br />oQry1 :=busnap<span style="color: #000000;">&#40;</span>,oQmae,oCta:<span style="color: #000000;">ncli</span>,oMysql<span style="color: #000000;">&#41;</span> <br /><br /> <br /><br /><span style="color: #00C800;">if</span> empty<span style="color: #000000;">&#40;</span>oQry1 <span style="color: #000000;">&#41;</span><br />    <span style="color: #00C800;">return</span> .f.<br /><span style="color: #00C800;">endif</span><br />oQrycta :=oMysql:<span style="color: #000000;">Query</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"SELECT * FROM ctacte  where ncli  = "</span> + alltrim<span style="color: #000000;">&#40;</span>str<span style="color: #000000;">&#40;</span>oQry1:<span style="color: #000000;">ncli</span><span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">" ORDER BY fecha"</span> <span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br /><br /><br /><br />nsaldo := <span style="color: #000000;">0</span><br />oCta:<span style="color: #000000;">ncli</span> := oQry1:<span style="color: #000000;">ncli</span><br />oCta:<span style="color: #000000;">nape</span> := oQry1:<span style="color: #000000;">nape</span><br /><br /><br />   oBrw:<span style="color: #000000;">setdolphin</span><span style="color: #000000;">&#40;</span>  oQrycta <span style="color: #000000;">&#41;</span><br />          <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;">cHeader</span> := <span style="color: #ff0000;">"Fecha"</span><br />      :<span style="color: #000000;">bEditValue</span> := <span style="color: #000000;">&#123;</span>|| oQrycta:<span style="color: #000000;">fecha</span> <span style="color: #000000;">&#125;</span><br />      :<span style="color: #000000;">cEditPicture</span> := <span style="color: #ff0000;">"@D"</span><br />      :<span style="color: #000000;">nDataStrAlign</span> := AL_RIGHT<br />   END WITH<br /><br />   WITH OBJECT oBrw:<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span><br />      :<span style="color: #000000;">cHeader</span> := <span style="color: #ff0000;">"Descripción"</span><br />      :<span style="color: #000000;">bStrData</span>  := <span style="color: #000000;">&#123;</span>|| <span style="color: #000000;">&#40;</span>oQrycta:<span style="color: #000000;">descripcion</span>  + oQrycta:<span style="color: #000000;">numero</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#125;</span><br />   END WITH<br /><br />   WITH OBJECT oBrw:<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#93;</span><br />       :<span style="color: #000000;">cHeader</span> := <span style="color: #ff0000;">"Número"</span><br />      :<span style="color: #000000;">bStrData</span>  := <span style="color: #000000;">&#123;</span>|| oQrycta:<span style="color: #000000;">numero</span><span style="color: #000000;">&#125;</span>  <br />   END WITH<br /><br />   WITH OBJECT oBrw:<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">4</span> <span style="color: #000000;">&#93;</span>      <br />      :<span style="color: #000000;">cHeader</span> := <span style="color: #ff0000;">"Debe"</span><br />      :<span style="color: #000000;">bStrData</span>  := <span style="color: #000000;">&#123;</span>||iif<span style="color: #000000;">&#40;</span>oQrycta:<span style="color: #000000;">tipo</span> =<span style="color: #000000;">1</span>, oQrycta:<span style="color: #000000;">importe</span>,  <span style="color: #00C800;">nil</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span>      <span style="color: #000000;">&#40;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span><br />      :<span style="color: #000000;">cEditPicture</span> := NumPict<span style="color: #000000;">&#40;</span> <span style="color: #000000;">12</span>, <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span><br />   END WITH<br /><br />   WITH OBJECT oBrw:<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">5</span> <span style="color: #000000;">&#93;</span><br />       :<span style="color: #000000;">cHeader</span> := <span style="color: #ff0000;">"Pagos"</span><br />      :<span style="color: #000000;">bStrData</span>  := <span style="color: #000000;">&#123;</span>|| iif<span style="color: #000000;">&#40;</span>oQrycta:<span style="color: #000000;">tipo</span> =<span style="color: #000000;">2</span>,oQrycta:<span style="color: #000000;">importe</span>,  <span style="color: #00C800;">nil</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#125;</span>     <span style="color: #000000;">&#40;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span><br />      :<span style="color: #000000;">cEditPicture</span> := NumPict<span style="color: #000000;">&#40;</span> <span style="color: #000000;">12</span>, <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span><br />   END WITH<br /><br />   WITH OBJECT oBrw:<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">6</span> <span style="color: #000000;">&#93;</span><br />       :<span style="color: #000000;">cHeader</span> := <span style="color: #ff0000;">"Saldo"</span><br />      :<span style="color: #000000;">bStrData</span>  := <span style="color: #000000;">&#123;</span>||  nsaldo := iif<span style="color: #000000;">&#40;</span>oQrycta:<span style="color: #000000;">tipo</span> =<span style="color: #000000;">1</span>, oQrycta:<span style="color: #000000;">importe</span>,-oQrycta:<span style="color: #000000;">importe</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#125;</span>  <span style="color: #000000;">&#40;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#41;</span><br />      :<span style="color: #000000;">cEditPicture</span> := NumPict<span style="color: #000000;">&#40;</span> <span style="color: #000000;">12</span>, <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span><br />   END WITH          <br /><br /><br />oBrw:<span style="color: #0000ff;">refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />odlg:<span style="color: #0000ff;">update</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">return</span> .t.</div>[/code:ta8ptuf5] Me muestra todo bien salvo en (1) y (2) que no me muestran nada oQrycta=1 es Débitos y oQrycta=2 es Créditos algo similar tengo con tablas Dbf y utilizando xHarbour y me muestra correctamente lo solicitado. Esto esta hecho con harbour Si pongo en los casos (1) :bStrData  := {|| oQrycta:importe} me muestra los valores Gracias por su atención, indudablemente es el if que estoy poniendo que esta mal pero porque funciona en el caso de xharbour mencionado anteriromente? Luis
xbrowse
Podrias hacerlo directamente desde la consulta, es decir, traerte lo que necesitas ya armado. [code=fw:3l03zmhq]<div class="fw" id="{CB}" style="font-family: monospace;">oQrycta :=oMysql:<span style="color: #000000;">Query</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"SELECT fecha, descripcion, numero, if(tipo=1,importe,0) as debe, if(tipo=1,0,importe) as haber &nbsp;FROM ctacte &nbsp;where ncli &nbsp;= "</span> + alltrim<span style="color: #000000;">&#40;</span>str<span style="color: #000000;">&#40;</span>oQry1:<span style="color: #000000;">ncli</span><span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">" ORDER BY fecha"</span> <span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span></div>[/code:3l03zmhq] Tene en cuenta que en la query que te traes con * tenes mas campo, como "tipo" que no lo mostras en el browse y si lo asignas cuando haces oBrw:setdolphin( oQrycta ) Espero que te de una pista. Saludos
xbrowse
Gracias Cmsoft ahora funciona lo que no funciona es la columna de saldo [code=fw:2kz08k0c]<div class="fw" id="{CB}" style="font-family: monospace;">   WITH OBJECT oBrw:<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">6</span> <span style="color: #000000;">&#93;</span><br />      :<span style="color: #000000;">cHeader</span> := <span style="color: #ff0000;">"Saldo"</span><br />      :<span style="color: #000000;">bEditValue</span>  := <span style="color: #000000;">&#123;</span>||  nsaldo += <span style="color: #000000;">&#40;</span>oQrycta:<span style="color: #000000;">debe</span> - oQrycta:<span style="color: #000000;">haber</span><span style="color: #000000;">&#41;</span>  <span style="color: #000000;">&#125;</span>       <br />      :<span style="color: #000000;">cEditPicture</span> := NumPict<span style="color: #000000;">&#40;</span> <span style="color: #000000;">12</span>, <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span><br />   END WITH  </div>[/code:2kz08k0c] lo muestra bien salvo el primer registro que lo duplica <!-- m --><a class="postlink" href="https://drive.google.com/file/d/0B8UT409V4x1mSTF4R1UtclBjZ2M/view?usp=sharing">https://drive.google.com/file/d/0B8UT40 ... sp=sharing</a><!-- m --> pero al hacer un click sobre el xbrowse hace esto (incrementa los valores de la columna 6) y así con cada click sobre el mismo <!-- m --><a class="postlink" href="https://drive.google.com/file/d/0B8UT409V4x1mdmt0OEpkTFFaOTQ/view?usp=sharing">https://drive.google.com/file/d/0B8UT40 ... sp=sharing</a><!-- m --> Probé varias alternativa pero no pude resolverlo. Luis
xbrowse
Hola compañeros tengo un problema con un xbrowse que me muestra una columna con el texto tdialog, y no se como solucionarlo, les envío el prg y una imagen, para ver si me pueden orientar [code=fw:1c6q2ucj]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"Fivewin.ch"</span><br /><br /><span style="color: #00D7D7;">#define</span> HA_LEFT  <span style="color: #000000;">0</span><br /><span style="color: #00D7D7;">#define</span> HA_RIGHT <span style="color: #000000;">1</span><br /><span style="color: #00D7D7;">#define</span> HA_CENTER <span style="color: #000000;">2</span><br /><br /><br /><br /><span style="color: #00C800;">FUNCTION</span> selgan<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">LOCAL</span> oRet, oBrw, ctext<br />   <span style="color: #00C800;">LOCAL</span> nselectedrow := <span style="color: #000000;">0</span><br />   <span style="color: #00C800;">LOCAL</span> cCodigo<br />   <span style="color: #00C800;">local</span> odlg<br />   <span style="color: #00C800;">local</span> lacepto := .f.<br />   <span style="color: #00C800;">local</span> aDevuelvo := Array<span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">IF</span> !pasaje<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"retgan830"</span> <span style="color: #000000;">&#41;</span>; <span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">nil</span>; <span style="color: #00C800;">ENDIF</span><br />   database oRet<br />   oRet:<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 /><br /><br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> odlg <span style="color: #0000ff;">RESOURCE</span> <span style="color: #ff0000;">"DIA_XBROWSE2"</span><br />   odlg:<span style="color: #000000;">cCaption</span> := <span style="color: #ff0000;">"Seleccionar Tipo de retención"</span><br /><br />   <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">XBrowse</span> oBrw <span style="color: #0000ff;">id</span> <span style="color: #000000;">101</span> odlg DATASOURCE oRet ;<br />      columns <span style="color: #000000;">&#123;</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">2</span>, <span style="color: #000000;">3</span>, <span style="color: #000000;">4</span>, <span style="color: #000000;">5</span>, <span style="color: #000000;">6</span> <span style="color: #000000;">&#125;</span>;<br />      COLSIZES <span style="color: #000000;">40</span>, <span style="color: #000000;">60</span>, <span style="color: #000000;">300</span>, <span style="color: #000000;">85</span>, <span style="color: #000000;">60</span>, <span style="color: #000000;">60</span>;<br />      HEADERS <span style="color: #ff0000;">" "</span>, <span style="color: #ff0000;">"Código"</span>, <span style="color: #ff0000;">"Concepto"</span>, <span style="color: #ff0000;">"Importe Mínimo"</span>, <span style="color: #ff0000;">"Tasa Insc."</span>, <span style="color: #ff0000;">"Tasa No Inscripto"</span>;<br />      LINES CELL <span style="color: #0000ff;">update</span><br /><br />   WITH OBJECT oBrw<br />      :<span style="color: #000000;">nMarqueeStyle</span> := MARQSTYLE_HIGHLCELL<br />      :<span style="color: #000000;">nColDividerStyle</span> := LINESTYLE_BLACK<br />      :<span style="color: #000000;">nStretchCol</span> := STRETCHCOL_LAST<br />      :<span style="color: #000000;">lColDividerComplete</span> := .T.<br />      :<span style="color: #000000;">l2007</span> := .T.<br />      :<span style="color: #000000;">lRecordSelector</span> := .T.<br />      :<span style="color: #000000;">lAllowColHiding</span> := .F.<br />      :<span style="color: #000000;">lAllowColSwapping</span> := .F.<br />      :<span style="color: #000000;">nStretchCol</span> := STRETCHCOL_LAST<br />      :<span style="color: #000000;">nRowHeight</span> := <span style="color: #000000;">60</span><br />   END WITH<br /><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;">bEditValue</span>    := <span style="color: #000000;">&#123;</span> || <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> oBrw:<span style="color: #000000;">BookMark</span> == nselectedrow, .T., <span style="color: #00C800;">nil</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />         :<span style="color: #000000;">SetCheck</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />         :<span style="color: #000000;">nHeadBmpNo</span>    := <span style="color: #000000;">&#123;</span> || <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> Empty<span style="color: #000000;">&#40;</span> nselectedrow <span style="color: #000000;">&#41;</span>, <span style="color: #000000;">2</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br /><br />   END WITH<br /><br />      oBrw:<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: #00C800;">If</span><span style="color: #000000;">&#40;</span> nselectedrow != oBrw:<span style="color: #000000;">BookMark</span>, nselectedrow := oBrw:<span style="color: #000000;">BookMark</span>, nselectedrow := <span style="color: #00C800;">nil</span> <span style="color: #000000;">&#41;</span>, <span style="color: #00C800;">nil</span> <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>, aDevuelvo := fdevuelvo<span style="color: #000000;">&#40;</span>oRet <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br /><br />   WITH OBJECT oBrw:<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span><br />      :<span style="color: #000000;">bStrData</span> := <span style="color: #000000;">&#123;</span>|| oRet:<span style="color: #000000;">codreg</span> <span style="color: #000000;">&#125;</span><br />      :<span style="color: #000000;">nDataStrAlign</span> := AL_RIGHT<br />   END WITH<br /><br />   WITH OBJECT oBrw:<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#93;</span><br />      :<span style="color: #000000;">bStrData</span> := <span style="color: #000000;">&#123;</span>|| cotexto<span style="color: #000000;">&#40;</span>oRet:<span style="color: #000000;">concepto</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span>                <span style="color: #B900B9;">// CAMPOMEMO </span><br />      :<span style="color: #000000;">nDataStrAlign</span> := AL_LEFT<br /><br />   END WITH<br /><br />   WITH OBJECT oBrw:<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">4</span> <span style="color: #000000;">&#93;</span><br />      :<span style="color: #000000;">bStrData</span> := <span style="color: #000000;">&#123;</span>|| oRet:<span style="color: #000000;">minimo</span> <span style="color: #000000;">&#125;</span><br />      :<span style="color: #000000;">nDataStrAlign</span> := AL_RIGHT<br />   END WITH<br /><br />   WITH OBJECT oBrw:<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">5</span> <span style="color: #000000;">&#93;</span><br />      :<span style="color: #000000;">bStrData</span> := <span style="color: #000000;">&#123;</span>|| oRet:<span style="color: #000000;">tasains</span> <span style="color: #000000;">&#125;</span><br />      :<span style="color: #000000;">nDataStrAlign</span> := AL_RIGHT<br />   END WITH<br /><br />   WITH OBJECT oBrw:<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">6</span> <span style="color: #000000;">&#93;</span><br />      :<span style="color: #000000;">bStrData</span> := <span style="color: #000000;">&#123;</span>|| oRet:<span style="color: #000000;">tasanin</span> <span style="color: #000000;">&#125;</span><br />      :<span style="color: #000000;">nDataStrAlign</span> := AL_RIGHT<br />   END WITH<br /><br />   <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #0000ff;">ID</span> <span style="color: #000000;">102</span> <span style="color: #0000ff;">OF</span> odlg <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">&#40;</span>lacepto := .t., odlg:<span style="color: #000000;">end</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />   <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #0000ff;">ID</span> <span style="color: #000000;">103</span> <span style="color: #0000ff;">OF</span> odlg <span style="color: #0000ff;">ACTION</span> odlg:<span style="color: #000000;">end</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> odlg<br /><br />   <span style="color: #00C800;">if</span> lacepto<br />      <span style="color: #00C800;">return</span> aDevuelvo<br />   <span style="color: #00C800;">endif</span><br />   CIERROALIAS<span style="color: #000000;">&#40;</span>oRet:<span style="color: #000000;">cAlias</span>, oRet<span style="color: #000000;">&#41;</span><br /><br /><br /> <span style="color: #00C800;">return</span> Array<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 /><span style="color: #00C800;">function</span> cotexto<span style="color: #000000;">&#40;</span>ctext<span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">local</span> ctexto := Space<span style="color: #000000;">&#40;</span><span style="color: #000000;">85</span><span style="color: #000000;">&#41;</span><br /><br /><br />ctexto := <span style="color: #0000ff;">SubStr</span><span style="color: #000000;">&#40;</span>ctext,<span style="color: #000000;">1</span>,<span style="color: #000000;">80</span><span style="color: #000000;">&#41;</span> + CRLF + <span style="color: #0000ff;">SubStr</span><span style="color: #000000;">&#40;</span>ctext,<span style="color: #000000;">81</span>,<span style="color: #000000;">160</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">return</span> ctexto<br /><span style="color: #B900B9;">/////////////////////////////////////////////////////////////////////</span><br /><span style="color: #00C800;">function</span> fdevuelvo<span style="color: #000000;">&#40;</span>oRet <span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">local</span> aDevuelvo := Array<span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">local</span> cMinimo :=  StrTran<span style="color: #000000;">&#40;</span>oRet:<span style="color: #000000;">minimo</span>,<span style="color: #ff0000;">"."</span>,<span style="color: #ff0000;">""</span><span style="color: #000000;">&#41;</span><br />cMinimo := StrTran<span style="color: #000000;">&#40;</span>cMinimo,<span style="color: #ff0000;">","</span>,<span style="color: #ff0000;">"."</span><span style="color: #000000;">&#41;</span><br /><br />AAdd<span style="color: #000000;">&#40;</span>aDevuelvo, Val<span style="color: #000000;">&#40;</span> oRet:<span style="color: #000000;">codreg</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />AAdd<span style="color: #000000;">&#40;</span>aDevuelvo, Val<span style="color: #000000;">&#40;</span> oRet:<span style="color: #000000;">tasains</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />AAdd<span style="color: #000000;">&#40;</span>aDevuelvo, Val<span style="color: #000000;">&#40;</span>cMinimo<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">return</span> aDevuelvo<br /><br /> </div>[/code:1c6q2ucj] [url:1c6q2ucj]https&#58;//drive&#46;google&#46;com/file/d/1Tq5G-WonFwo2elniFoRGhUll9u03O1Or/view?usp=sharing[/url:1c6q2ucj] Y como puedo mostrar el campo memo completo ya que en algunos items no muestra todos los rengolone Por lo demás lo que necesito que haga lo hace, pero no puedo sacar Tdialog, estimo que el problema esta en como defino la columna del setcheck() Gracias por su atención Luis
xbrowse
Quita en la claúsula HEADERS [code=fw:38vk71fj]<div class="fw" id="{CB}" style="font-family: monospace;"><br />HEADERS <span style="color: #ff0000;">" "</span>, <span style="color: #ff0000;">"Código"</span>, <span style="color: #ff0000;">"Concepto"</span>, <span style="color: #ff0000;">"Importe Mínimo"</span>, <span style="color: #ff0000;">"Tasa Insc."</span>, <span style="color: #ff0000;">"Tasa No Inscripto"</span>;<br />&nbsp;</div>[/code:38vk71fj] y déjalo asi [code=fw:38vk71fj]<div class="fw" id="{CB}" style="font-family: monospace;"><br />HEADERS <span style="color: #ff0000;">"Código"</span>, <span style="color: #ff0000;">"Concepto"</span>, <span style="color: #ff0000;">"Importe Mínimo"</span>, <span style="color: #ff0000;">"Tasa Insc."</span>, <span style="color: #ff0000;">"Tasa No Inscripto"</span>;<br />&nbsp;</div>[/code:38vk71fj]
xbrowse
Gracias Cristobal, no lo habría podido solucionar sin tu ayuda. El código quedo así [code=fw:2yb8iu8d]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">FUNCTION</span> selgan<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">LOCAL</span> oRet, oBrw, ctext<br />   <span style="color: #00C800;">LOCAL</span> nselectedrow := <span style="color: #000000;">0</span><br />   <span style="color: #00C800;">LOCAL</span> cCodigo<br />   <span style="color: #00C800;">local</span> odlg<br />   <span style="color: #00C800;">local</span> lacepto := .f.<br />   <span style="color: #00C800;">local</span> aDevuelvo := Array<span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">IF</span> !pasaje<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"retgan830"</span> <span style="color: #000000;">&#41;</span>; <span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">nil</span>; <span style="color: #00C800;">ENDIF</span><br />   database oRet<br />   oRet:<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 /><br /><br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> odlg <span style="color: #0000ff;">RESOURCE</span> <span style="color: #ff0000;">"DIA_XBROWSE2"</span><br />   odlg:<span style="color: #000000;">cCaption</span> := <span style="color: #ff0000;">"Seleccionar Tipo de retención"</span><br /><br />   <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">XBrowse</span> oBrw <span style="color: #0000ff;">id</span> <span style="color: #000000;">101</span> odlg DATASOURCE oRet ;<br />      columns <span style="color: #000000;">&#123;</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">2</span>, <span style="color: #000000;">3</span>, <span style="color: #000000;">4</span>, <span style="color: #000000;">5</span>  <span style="color: #000000;">&#125;</span>;                <br />      LINES CELL <span style="color: #0000ff;">update</span><br /><br /><br />   WITH OBJECT oBrw<br />      :<span style="color: #000000;">nMarqueeStyle</span> := MARQSTYLE_HIGHLCELL<br />      :<span style="color: #000000;">nColDividerStyle</span> := LINESTYLE_BLACK<br />      :<span style="color: #000000;">nStretchCol</span> := STRETCHCOL_LAST<br />      :<span style="color: #000000;">lColDividerComplete</span> := .T.<br />      :<span style="color: #000000;">l2007</span> := .T.<br />      :<span style="color: #000000;">lRecordSelector</span> := .T.<br />      :<span style="color: #000000;">lAllowColHiding</span> := .F.<br />      :<span style="color: #000000;">lAllowColSwapping</span> := .F.<br />      :<span style="color: #000000;">nStretchCol</span> := STRETCHCOL_LAST<br />      :<span style="color: #000000;">nRowHeight</span> := <span style="color: #000000;">60</span><br />   END WITH<br /><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;">bEditValue</span>    := <span style="color: #000000;">&#123;</span> || <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> oBrw:<span style="color: #000000;">BookMark</span> == nselectedrow, .T., <span style="color: #00C800;">nil</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />         :<span style="color: #000000;">SetCheck</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />         :<span style="color: #000000;">nHeadBmpNo</span>    := <span style="color: #000000;">&#123;</span> || <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> Empty<span style="color: #000000;">&#40;</span> nselectedrow <span style="color: #000000;">&#41;</span>, <span style="color: #000000;">2</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <br />         :<span style="color: #000000;">nWidth</span>   := <span style="color: #000000;">30</span><br />   END WITH<br /><br />      oBrw:<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: #00C800;">If</span><span style="color: #000000;">&#40;</span> nselectedrow != oBrw:<span style="color: #000000;">BookMark</span>, nselectedrow := oBrw:<span style="color: #000000;">BookMark</span>, nselectedrow := <span style="color: #00C800;">nil</span> <span style="color: #000000;">&#41;</span>, <span style="color: #00C800;">nil</span> <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>, aDevuelvo := fdevuelvo<span style="color: #000000;">&#40;</span>oRet <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br /><br />   WITH OBJECT oBrw:<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span><br />      :<span style="color: #000000;">bStrData</span> := <span style="color: #000000;">&#123;</span>|| oRet:<span style="color: #000000;">codreg</span> <span style="color: #000000;">&#125;</span><br />      :<span style="color: #000000;">nDataStrAlign</span> := AL_RIGHT<br />      :<span style="color: #000000;">cHeader</span> :=  <span style="color: #ff0000;">"Código"</span> <br />      :<span style="color: #000000;">nWidth</span>  :=  <span style="color: #000000;">60</span><br />   END WITH<br /><br />   WITH OBJECT oBrw:<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#93;</span><br />      :<span style="color: #000000;">bStrData</span> := <span style="color: #000000;">&#123;</span>|| cotexto<span style="color: #000000;">&#40;</span>oRet:<span style="color: #000000;">concepto</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />      :<span style="color: #000000;">nDataStrAlign</span> := AL_LEFT<br />      :<span style="color: #000000;">cHeader</span> := <span style="color: #ff0000;">"Concepto"</span>  <br />      :<span style="color: #000000;">nHeadStrAlign</span> := HA_CENTER<br />      :<span style="color: #000000;">nWidth</span>  :=   <span style="color: #000000;">330</span><br />   END WITH<br /><br />   WITH OBJECT oBrw:<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">4</span> <span style="color: #000000;">&#93;</span><br />      :<span style="color: #000000;">bStrData</span> := <span style="color: #000000;">&#123;</span>|| oRet:<span style="color: #000000;">minimo</span> <span style="color: #000000;">&#125;</span><br />      :<span style="color: #000000;">nDataStrAlign</span> := AL_RIGHT<br />      :<span style="color: #000000;">cHeader</span> := <span style="color: #ff0000;">"Importe mínimo"</span>  <br />      :<span style="color: #000000;">nWidth</span>  :=   <span style="color: #000000;">85</span><br />   END WITH<br /><br />   WITH OBJECT oBrw:<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">5</span> <span style="color: #000000;">&#93;</span><br />      :<span style="color: #000000;">bStrData</span> := <span style="color: #000000;">&#123;</span>|| oRet:<span style="color: #000000;">tasains</span> <span style="color: #000000;">&#125;</span><br />      :<span style="color: #000000;">nDataStrAlign</span> := AL_RIGHT<br />      :<span style="color: #000000;">cHeader</span> := <span style="color: #ff0000;">"Tasa Insc"</span>  <br />      :<span style="color: #000000;">nWidth</span>  :=   <span style="color: #000000;">60</span><br />   END WITH<br /><br />   WITH OBJECT oBrw:<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">6</span> <span style="color: #000000;">&#93;</span><br />      :<span style="color: #000000;">bStrData</span> := <span style="color: #000000;">&#123;</span>|| oRet:<span style="color: #000000;">tasanin</span> <span style="color: #000000;">&#125;</span><br />      :<span style="color: #000000;">nDataStrAlign</span> := AL_RIGHT<br />      :<span style="color: #000000;">cHeader</span> := <span style="color: #ff0000;">"Tasa No Ins."</span> <br />      :<span style="color: #000000;">nWidth</span>  :=   <span style="color: #000000;">60</span><br />   END WITH<br /><br />   <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #0000ff;">ID</span> <span style="color: #000000;">102</span> <span style="color: #0000ff;">OF</span> odlg <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">&#40;</span>lacepto := .t., odlg:<span style="color: #000000;">end</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />   <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #0000ff;">ID</span> <span style="color: #000000;">103</span> <span style="color: #0000ff;">OF</span> odlg <span style="color: #0000ff;">ACTION</span> odlg:<span style="color: #000000;">end</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> odlg<br /><br />   <span style="color: #00C800;">if</span> lacepto<br />      <span style="color: #00C800;">return</span> aDevuelvo<br />   <span style="color: #00C800;">endif</span><br />   CIERROALIAS<span style="color: #000000;">&#40;</span>oRet:<span style="color: #000000;">cAlias</span>, oRet<span style="color: #000000;">&#41;</span><br /><br /><br /> <span style="color: #00C800;">return</span> Array<span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span><br /> </div>[/code:2yb8iu8d] [url:2yb8iu8d]https&#58;//drive&#46;google&#46;com/file/d/1PRHQAlGzISrFzm3gFMXTg5MX6apb2xNX/view?usp=sharing[/url:2yb8iu8d] Si en columns en vez de poner { 1, 2, 3, 4, 5  } ponés { 1, 2, 3, 4, 5, 6  }, como uno piensa que deberías ser, aparece el Tdialog en una 7ª columna. Luis
xbrowse
[quote:3gm0m1ml] what I need you to do is It does, but I can not remove Tdialog [/quote:3gm0m1ml] The reason is that there should be "OF" between ID number and oDlg Wrong: [code=fw:3gm0m1ml]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">xBrowse</span> oBrw <span style="color: #0000ff;">id</span> <span style="color: #000000;">101</span> oDlg ...<br />&nbsp;</div>[/code:3gm0m1ml] Correct: [code=fw:3gm0m1ml]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">xBrowse</span> oBrw <span style="color: #0000ff;">id</span> <span style="color: #000000;">101</span> <span style="color: #0000ff;">OF</span> oDlg ...<br />&nbsp;</div>[/code:3gm0m1ml]
xbrowse
This is the recommended code: [code=fw:3cuisrhq]<div class="fw" id="{CB}" style="font-family: monospace;"> &nbsp;<span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">XBROWSE</span> oBrw <span style="color: #0000ff;">ID</span> <span style="color: #000000;">101</span> <span style="color: #0000ff;">OF</span> oDlg ;<br />&nbsp; &nbsp; &nbsp; DATASOURCE oRet ;<br />&nbsp; &nbsp; &nbsp; COLUMNS <span style="color: #000000;">&#123;</span>||.f.<span style="color: #000000;">&#125;</span>, <span style="color: #ff0000;">"codreg"</span>, <span style="color: #ff0000;">"concepto"</span>, <span style="color: #ff0000;">"minimo"</span>, <span style="color: #ff0000;">"tasains"</span>, <span style="color: #ff0000;">"tasanin"</span> ;<br />&nbsp; &nbsp; &nbsp; COLSIZES <span style="color: #000000;">40</span>, <span style="color: #000000;">60</span>, <span style="color: #000000;">300</span>, <span style="color: #000000;">85</span>, <span style="color: #000000;">60</span>, <span style="color: #000000;">60</span>;<br />&nbsp; &nbsp; &nbsp; HEADERS <span style="color: #ff0000;">" "</span>, <span style="color: #ff0000;">"Código"</span>, <span style="color: #ff0000;">"Concepto"</span>, <span style="color: #ff0000;">"Importe Mínimo"</span>, <span style="color: #ff0000;">"Tasa Insc."</span>, <span style="color: #ff0000;">"Tasa No Inscripto"</span>;<br />&nbsp; &nbsp; &nbsp; JUSTIFY <span style="color: #00C800;">nil</span>, .T., .F., .T., .T., .T. ;<br />&nbsp; &nbsp; &nbsp; LINES CELL <span style="color: #0000ff;">update</span><br /><br />&nbsp; &nbsp;WITH OBJECT oBrw<br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">nMarqueeStyle</span> := MARQSTYLE_HIGHLCELL<br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">nColDividerStyle</span> := LINESTYLE_BLACK<br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">nStretchCol</span> := STRETCHCOL_LAST<br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">lColDividerComplete</span> := .T.<br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">l2007</span> := .T.<br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">lRecordSelector</span> := .T.<br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">lAllowColHiding</span> := .F.<br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">lAllowColSwapping</span> := .F.<br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">nStretchCol</span> := STRETCHCOL_LAST<br /><span style="color: #B900B9;">// &nbsp; &nbsp; &nbsp;:nRowHeight := 60 &nbsp; // Remove this line</span><br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">nDataRows</span> &nbsp; &nbsp; := <span style="color: #000000;">2</span> <span style="color: #B900B9;">// This wraps long text into multiple lines</span><br />&nbsp; &nbsp;END WITH<br /><br />&nbsp; &nbsp;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 />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:<span style="color: #000000;">bEditValue</span> &nbsp; &nbsp;:= <span style="color: #000000;">&#123;</span> || <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> oBrw:<span style="color: #000000;">BookMark</span> == nselectedrow, .T., <span style="color: #00C800;">nil</span> <span style="color: #000000;">&#41;</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: #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> Empty<span style="color: #000000;">&#40;</span> nselectedrow <span style="color: #000000;">&#41;</span>, <span style="color: #000000;">2</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp;END WITH<br /><br />&nbsp; &nbsp;oBrw:<span style="color: #000000;">bLClicked</span> &nbsp; &nbsp; := <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;<span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> nselectedrow != oBrw:<span style="color: #000000;">BookMark</span>, nselectedrow := oBrw:<span style="color: #000000;">BookMark</span>, nselectedrow := <span style="color: #00C800;">nil</span> <span style="color: #000000;">&#41;</span>, <span style="color: #00C800;">nil</span> <span style="color: #000000;">&#41;</span>, ;<br />&nbsp; &nbsp; &nbsp; oBrw:<span style="color: #000000;">RefreshCurrent</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, aDevuelvo := fdevuelvo<span style="color: #000000;">&#40;</span>oRet <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br /><br /><br /><span style="color: #B900B9;">/* <br />&nbsp; &nbsp;REMOVE THIS CODE<br />&nbsp; &nbsp;Also please never use bStrData. This is deprecated<br /><br />&nbsp; &nbsp;WITH OBJECT oBrw:aCols[ 2 ]<br />&nbsp; &nbsp; &nbsp; :bStrData := {|| oRet:codreg }<br />&nbsp; &nbsp; &nbsp; :nDataStrAlign := AL_RIGHT<br />&nbsp; &nbsp;END WITH<br /><br />&nbsp; &nbsp;WITH OBJECT oBrw:aCols[ 3 ]<br />&nbsp; &nbsp; &nbsp; :bStrData := {|| cotexto(oRet:concepto) } &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;// CAMPOMEMO <br />&nbsp; &nbsp; &nbsp; :nDataStrAlign := AL_LEFT<br /><br />&nbsp; &nbsp;END WITH<br /><br />&nbsp; &nbsp;WITH OBJECT oBrw:aCols[ 4 ]<br />&nbsp; &nbsp; &nbsp; :bStrData := {|| oRet:minimo }<br />&nbsp; &nbsp; &nbsp; :nDataStrAlign := AL_RIGHT<br />&nbsp; &nbsp;END WITH<br /><br />&nbsp; &nbsp;WITH OBJECT oBrw:aCols[ 5 ]<br />&nbsp; &nbsp; &nbsp; :bStrData := {|| oRet:tasains }<br />&nbsp; &nbsp; &nbsp; :nDataStrAlign := AL_RIGHT<br />&nbsp; &nbsp;END WITH<br /><br />&nbsp; &nbsp;WITH OBJECT oBrw:aCols[ 6 ]<br />&nbsp; &nbsp; &nbsp; :bStrData := {|| oRet:tasanin }<br />&nbsp; &nbsp; &nbsp; :nDataStrAlign := AL_RIGHT<br />&nbsp; &nbsp;END WITH<br />*/</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #0000ff;">ID</span> <span style="color: #000000;">102</span> <span style="color: #0000ff;">OF</span> odlg <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">&#40;</span>lacepto := .t., odlg:<span style="color: #000000;">end</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #0000ff;">ID</span> <span style="color: #000000;">103</span> <span style="color: #0000ff;">OF</span> odlg <span style="color: #0000ff;">ACTION</span> odlg:<span style="color: #000000;">end</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> odlg<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> lacepto<br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">return</span> aDevuelvo<br />&nbsp; &nbsp;<span style="color: #00C800;">endif</span><br />&nbsp; &nbsp;CIERROALIAS<span style="color: #000000;">&#40;</span>oRet:<span style="color: #000000;">cAlias</span>, oRet<span style="color: #000000;">&#41;</span><br /><br /><br />&nbsp;<span style="color: #00C800;">return</span> Array<span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span><br />&nbsp;</div>[/code:3cuisrhq]
xbrowse
No sé si ha podido ser tu problema, pero por si acaso, ten en cuenta que [code=fw:13qh479b]<div class="fw" id="{CB}" style="font-family: monospace;"><br />:<span style="color: #000000;">lRecordSelector</span> &nbsp;:= .T.<br />&nbsp;</div>[/code:13qh479b] Esta columna no cuenta
xbrowse
[quote="cnavarro":2bg3d7uc]No sé si ha podido ser tu problema, pero por si acaso, ten en cuenta que [code=fw:2bg3d7uc]<div class="fw" id="{CB}" style="font-family: monospace;"><br />:<span style="color: #000000;">lRecordSelector</span>  := .T.<br /> </div>[/code:2bg3d7uc] Esta columna no cuenta[/quote:2bg3d7uc] This does not make any difference.
xbrowse
[quote="nageswaragunupudi":1yuru4ns][quote="cnavarro":1yuru4ns]No sé si ha podido ser tu problema, pero por si acaso, ten en cuenta que [code=fw:1yuru4ns]<div class="fw" id="{CB}" style="font-family: monospace;"><br />:<span style="color: #000000;">lRecordSelector</span>  := .T.<br /> </div>[/code:1yuru4ns] Esta columna no cuenta[/quote:1yuru4ns] This does not make any difference.[/quote:1yuru4ns] I think you have not understood my post
xbrowse
You are right. RecordSelector column does not count.
xbrowse
Thanks Mr. Rao. Yes, just putting the "of" the original code worked. I will also make the changes for you. suggested, because they simplify my code. Luis
xbrowse
Hice los cambios, pero en la 3ª columna "Concepto" me muestra solo un renglón. Luis
xbrowse
Si quito ndatarow := 2 y pongo :nRowHeight := 60 funciona correctamente
xbrowse
I wrongly said "nDataRows". It should be nDataLines Set nDataLines := 2 // or more Let me explain: If the vertical height of the cell can display more lines, xbrowse automatically split the text and show more lines. You can do this in 2 ways. oBrw:nRowHeight := <large value> Or oBrw:nDataLines := 2 // or more depending on your requirement. Even otherwise, user can increase the row-height at runtime by dragging the row separator with mouse. Even then xbrowse displays the text in multi-line.
xbrowse
Y del código que quite deje WITH OBJECT oBrw:aCols[ 3 ] :bStrData := {|| cotexto(oRet:concepto) } :nDataStrAlign := AL_LEFT :nWidth := 330 END WITH sin esto no funciona correctamente el campo memo Luis
xbrowse
XBrowse splits the line into 2 or more, only if the horizontal width of the cell cannot display the full text. For example, if the width of the cell is less like 100, then you will see the text split into multiple lines
xbrowse
May be this is interesting for Antonio or Mr. Rao. I have an ini file with entries about login values. The password is encrypted using the function HB_Crypt(). It drove me crazy to list the ini file with xbrowse because it always crashed. Finally I found out that the characters 0x12 and 0x19 in the encryptd string caused xbrowse to fail. Here my test with FWH 22.11 and xharbour [code=fw:1tzzi3j8]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"fivewin.ch"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"xbrowse.ch"</span><br /><br /><span style="color: #00C800;">FUNCTION</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">local</span> aIni  := <span style="color: #000000;">&#123;</span>;<br />                  <span style="color: #ff0000;">"User=administrator"</span>,;<br />                  <span style="color: #ff0000;">"Pwd=”¹J±¡óí´*+¾²ïI¡²w4|L[¿ƒ¸»[uÑÙº‚»E;0¾ü øÀ"</span>;<br />               <span style="color: #000000;">&#125;</span><br /><br />   <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> len<span style="color: #000000;">&#40;</span> aIni <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />   xBrowser aIni<br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">nil</span><br /> </div>[/code:1tzzi3j8]
xbrowse
[url=https&#58;//imageshack&#46;com/i/pnrQnXdfp:2aaquzbm][img:2aaquzbm]https&#58;//imagizer&#46;imageshack&#46;com/v2/xq70/923/rQnXdf&#46;png[/img:2aaquzbm][/url:2aaquzbm]
xbrowse
Mr. Rao, did you make this with FWH 22.11 and xHarbour? I tried at least dozens of times and it always crashed. Could anyone from this forum try if my sample runs without crash?
xbrowse
Current FWH version. I set [code=fw:3ga07qcu]<div class="fw" id="{CB}" style="font-family: monospace;">FW_SetUnicode<span style="color: #000000;">&#40;</span> .t. <span style="color: #000000;">&#41;</span></div>[/code:3ga07qcu]
xbrowse
Now, I tried with FWH2210, both with xHarbour and Harbour without FW_SetUnicode() Working well for me.
xbrowse
Mr. Rao, I don't want to trouble you. But my test still fails all the time. And it doesn't matter with FW_SetUnicode() or without. [img:27xq72o4]https&#58;//www&#46;hamelau&#46;eu/tmp/testini&#46;jpg[/img:27xq72o4] I don't know what to do. Regards Detlef
xbrowse
[url=https&#58;//imageshack&#46;com/i/pntOAghgp:2monsbuu][img:2monsbuu]https&#58;//imagizer&#46;imageshack&#46;com/v2/xq70/923/tOAghg&#46;png[/img:2monsbuu][/url:2monsbuu] [code=fw:2monsbuu]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"fivewin.ch"</span><br /><br /><span style="color: #00C800;">FUNCTION</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">local</span> aIni  := <span style="color: #000000;">&#123;</span>;<br />                  <span style="color: #ff0000;">"User=administrator"</span>,;<br />                  <span style="color: #ff0000;">"Pwd=”¹J±¡óí´*+¾²ïI¡²w4|L[¿ƒ¸»[uÑÙº‚»E;0¾ü øÀ"</span>;<br />               <span style="color: #000000;">&#125;</span><br /><br /><span style="color: #B900B9;">//   FW_SetUnicode( .t. )</span><br /><br />   <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> len<span style="color: #000000;">&#40;</span> aIni <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />   xBrowser aIni<br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">nil</span></div>[/code:2monsbuu] You are not troubling me at all. I am just wondering why this is not working at your end.
xbrowse
My actual machine is a Dell with 64 bit Windows 11 Pro OS. And on this PC my Programm crashes. I copied my program to a PC with Windows 10 Home 64 Bit OS, compiled and linked my test and here it runs totally ok. This is really strange.
xbrowse
Dear Detlef, When it crashes does it generate a hb_out.log file ? If so, please post it here
xbrowse
[quote:3ae5huml]My actual machine is a Dell with 64 bit Windows 11 Pro OS.[/quote:3ae5huml] Same as my PC
xbrowse
[quote="Antonio Linares":7n7qdza7]Dear Detlef, When it crashes does it generate a hb_out.log file ? If so, please post it here[/quote:7n7qdza7] Sorry, Antonio. there's no log file created.
xbrowse
Tested the Detlef version and No error here. Result is the same as post 2 of Mr. Rao. Latest version of FWH
xbrowse
Thank you, Marc. I'm still guessing and trying to find out what causes my error. Regards, Detlef
xbrowse
Strange enough that my FWH22 lib folder on both PCs are different. [code=fw:d172jdyh]<div class="fw" id="{CB}" style="font-family: monospace;">Windows <span style="color: #000000;">10</span> runs ok                               |   Windows <span style="color: #000000;">11</span> fails<br />D:\entw\fwh22\lib                                |   C:\entw\fwh22\lib<br />                                                 |<br /><span style="color: #000000;">10.04</span><span style="color: #000000;">.2022</span>  <span style="color: #000000;">08</span>:<span style="color: #000000;">13</span>     <span style="color: #000000;">107.008</span> dolphin.lib        |   <span style="color: #000000;">02.11</span><span style="color: #000000;">.2022</span>  <span style="color: #000000;">08</span>:<span style="color: #000000;">11</span>     <span style="color: #000000;">107.008</span> dolphin.lib<br /><span style="color: #000000;">10.04</span><span style="color: #000000;">.2022</span>  <span style="color: #000000;">08</span>:<span style="color: #000000;">18</span>   <span style="color: #000000;">4.829</span><span style="color: #000000;">.696</span> FiveH.lib          |   <span style="color: #000000;">02.11</span><span style="color: #000000;">.2022</span>  <span style="color: #000000;">13</span>:<span style="color: #000000;">40</span>   <span style="color: #000000;">4.907</span><span style="color: #000000;">.008</span> FiveH.lib<br /><span style="color: #000000;">10.04</span><span style="color: #000000;">.2022</span>  <span style="color: #000000;">08</span>:<span style="color: #000000;">18</span>   <span style="color: #000000;">7.384</span><span style="color: #000000;">.082</span> FiveH32.lib        |   <span style="color: #000000;">02.11</span><span style="color: #000000;">.2022</span>  <span style="color: #000000;">13</span>:<span style="color: #000000;">40</span>   <span style="color: #000000;">7.500</span><span style="color: #000000;">.158</span> FiveH32.lib<br /><span style="color: #000000;">10.04</span><span style="color: #000000;">.2022</span>  <span style="color: #000000;">09</span>:<span style="color: #000000;">54</span>     <span style="color: #000000;">840.192</span> FiveHC.lib         |   <span style="color: #000000;">02.11</span><span style="color: #000000;">.2022</span>  <span style="color: #000000;">08</span>:<span style="color: #000000;">21</span>     <span style="color: #000000;">844.800</span> FiveHC.lib<br /><span style="color: #000000;">10.04</span><span style="color: #000000;">.2022</span>  <span style="color: #000000;">09</span>:<span style="color: #000000;">54</span>   <span style="color: #000000;">1.454</span><span style="color: #000000;">.990</span> FiveHC32.lib       |   <span style="color: #000000;">02.11</span><span style="color: #000000;">.2022</span>  <span style="color: #000000;">08</span>:<span style="color: #000000;">21</span>   <span style="color: #000000;">1.470</span><span style="color: #000000;">.298</span> FiveHC32.lib<br /><span style="color: #000000;">10.04</span><span style="color: #000000;">.2022</span>  <span style="color: #000000;">09</span>:<span style="color: #000000;">54</span>   <span style="color: #000000;">1.322</span><span style="color: #000000;">.570</span> FiveHCM.lib        |   <span style="color: #000000;">02.11</span><span style="color: #000000;">.2022</span>  <span style="color: #000000;">08</span>:<span style="color: #000000;">21</span>   <span style="color: #000000;">1.329</span><span style="color: #000000;">.932</span> FiveHCM.lib<br /><span style="color: #000000;">10.04</span><span style="color: #000000;">.2022</span>  <span style="color: #000000;">08</span>:<span style="color: #000000;">32</span>   <span style="color: #000000;">6.287</span><span style="color: #000000;">.784</span> FiveHG.lib         |   <span style="color: #000000;">02.11</span><span style="color: #000000;">.2022</span>  <span style="color: #000000;">12</span>:<span style="color: #000000;">25</span>   <span style="color: #000000;">6.379</span><span style="color: #000000;">.850</span> FiveHG.lib<br /><span style="color: #000000;">10.04</span><span style="color: #000000;">.2022</span>  <span style="color: #000000;">09</span>:<span style="color: #000000;">54</span>   <span style="color: #000000;">1.639</span><span style="color: #000000;">.806</span> FiveHGC.lib        |   <span style="color: #000000;">02.11</span><span style="color: #000000;">.2022</span>  <span style="color: #000000;">12</span>:<span style="color: #000000;">27</span>   <span style="color: #000000;">1.648</span><span style="color: #000000;">.218</span> FiveHGC.lib<br /><span style="color: #000000;">10.04</span><span style="color: #000000;">.2022</span>  <span style="color: #000000;">08</span>:<span style="color: #000000;">18</span>   <span style="color: #000000;">7.226</span><span style="color: #000000;">.164</span> FiveHM.lib         |   <span style="color: #000000;">02.11</span><span style="color: #000000;">.2022</span>  <span style="color: #000000;">13</span>:<span style="color: #000000;">23</span>   <span style="color: #000000;">7.328</span><span style="color: #000000;">.342</span> FiveHM.lib<br /><span style="color: #000000;">10.04</span><span style="color: #000000;">.2022</span>  <span style="color: #000000;">08</span>:<span style="color: #000000;">24</span>   <span style="color: #000000;">7.519</span><span style="color: #000000;">.278</span> FiveHMX.lib        |   <span style="color: #000000;">02.11</span><span style="color: #000000;">.2022</span>  <span style="color: #000000;">11</span>:<span style="color: #000000;">34</span>   <span style="color: #000000;">7.621</span><span style="color: #000000;">.422</span> FiveHMX.lib<br /><span style="color: #000000;">10.04</span><span style="color: #000000;">.2022</span>  <span style="color: #000000;">08</span>:<span style="color: #000000;">24</span>   <span style="color: #000000;">4.900</span><span style="color: #000000;">.352</span> FiveHX.lib         |   <span style="color: #000000;">02.11</span><span style="color: #000000;">.2022</span>  <span style="color: #000000;">11</span>:<span style="color: #000000;">34</span>   <span style="color: #000000;">4.972</span><span style="color: #000000;">.544</span> FiveHX.lib<br /><span style="color: #000000;">10.04</span><span style="color: #000000;">.2022</span>  <span style="color: #000000;">08</span>:<span style="color: #000000;">13</span>     <span style="color: #000000;">219.638</span> hbhpdf32.lib       |   <span style="color: #000000;">02.11</span><span style="color: #000000;">.2022</span>  <span style="color: #000000;">08</span>:<span style="color: #000000;">11</span>     <span style="color: #000000;">219.638</span> hbhpdf32.lib<br /><span style="color: #000000;">10.04</span><span style="color: #000000;">.2022</span>  <span style="color: #000000;">08</span>:<span style="color: #000000;">13</span>      <span style="color: #000000;">43.520</span> hbpgsql.lib        |   <span style="color: #000000;">02.11</span><span style="color: #000000;">.2022</span>  <span style="color: #000000;">08</span>:<span style="color: #000000;">11</span>      <span style="color: #000000;">43.520</span> hbpgsql.lib<br /><span style="color: #000000;">10.04</span><span style="color: #000000;">.2022</span>  <span style="color: #000000;">08</span>:<span style="color: #000000;">13</span>       <span style="color: #000000;">7.680</span> libcurl.lib        |   <span style="color: #000000;">02.11</span><span style="color: #000000;">.2022</span>  <span style="color: #000000;">08</span>:<span style="color: #000000;">11</span>       <span style="color: #000000;">7.680</span> libcurl.lib<br /><span style="color: #000000;">10.04</span><span style="color: #000000;">.2022</span>  <span style="color: #000000;">08</span>:<span style="color: #000000;">13</span>   <span style="color: #000000;">1.350</span><span style="color: #000000;">.602</span> libhpdf32.lib      |   <span style="color: #000000;">02.11</span><span style="color: #000000;">.2022</span>  <span style="color: #000000;">08</span>:<span style="color: #000000;">11</span>   <span style="color: #000000;">1.350</span><span style="color: #000000;">.602</span> libhpdf32.lib<br /><span style="color: #000000;">10.04</span><span style="color: #000000;">.2022</span>  <span style="color: #000000;">08</span>:<span style="color: #000000;">13</span>      <span style="color: #000000;">27.648</span> libmariadb.lib     |   <span style="color: #000000;">02.11</span><span style="color: #000000;">.2022</span>  <span style="color: #000000;">08</span>:<span style="color: #000000;">11</span>      <span style="color: #000000;">27.648</span> libmariadb.lib<br /><span style="color: #000000;">10.04</span><span style="color: #000000;">.2022</span>  <span style="color: #000000;">08</span>:<span style="color: #000000;">13</span>      <span style="color: #000000;">53.612</span> libmariadb32.lib   |   <span style="color: #000000;">02.11</span><span style="color: #000000;">.2022</span>  <span style="color: #000000;">08</span>:<span style="color: #000000;">11</span>      <span style="color: #000000;">53.612</span> libmariadb32.lib<br /><span style="color: #000000;">10.04</span><span style="color: #000000;">.2022</span>  <span style="color: #000000;">08</span>:<span style="color: #000000;">13</span>      <span style="color: #000000;">17.592</span> libmariadb64.a     |   <span style="color: #000000;">02.11</span><span style="color: #000000;">.2022</span>  <span style="color: #000000;">08</span>:<span style="color: #000000;">11</span>      <span style="color: #000000;">17.592</span> libmariadb64.a<br /><span style="color: #000000;">10.04</span><span style="color: #000000;">.2022</span>  <span style="color: #000000;">08</span>:<span style="color: #000000;">13</span>      <span style="color: #000000;">50.318</span> libmariadb64.lib   |   <span style="color: #000000;">02.11</span><span style="color: #000000;">.2022</span>  <span style="color: #000000;">08</span>:<span style="color: #000000;">11</span>      <span style="color: #000000;">50.318</span> libmariadb64.lib<br /><span style="color: #000000;">10.04</span><span style="color: #000000;">.2022</span>  <span style="color: #000000;">08</span>:<span style="color: #000000;">13</span>      <span style="color: #000000;">25.590</span> libmysql.a         |   <span style="color: #000000;">02.11</span><span style="color: #000000;">.2022</span>  <span style="color: #000000;">08</span>:<span style="color: #000000;">11</span>      <span style="color: #000000;">25.590</span> libmysql.a<br /><span style="color: #000000;">10.04</span><span style="color: #000000;">.2022</span>  <span style="color: #000000;">08</span>:<span style="color: #000000;">13</span>      <span style="color: #000000;">12.800</span> libmysql.lib       |   <span style="color: #000000;">02.11</span><span style="color: #000000;">.2022</span>  <span style="color: #000000;">08</span>:<span style="color: #000000;">11</span>      <span style="color: #000000;">12.800</span> libmysql.lib<br /><span style="color: #000000;">10.04</span><span style="color: #000000;">.2022</span>  <span style="color: #000000;">08</span>:<span style="color: #000000;">13</span>      <span style="color: #000000;">25.590</span> libmysql32.lib     |   <span style="color: #000000;">02.11</span><span style="color: #000000;">.2022</span>  <span style="color: #000000;">08</span>:<span style="color: #000000;">11</span>      <span style="color: #000000;">25.590</span> libmysql32.lib<br /><span style="color: #000000;">10.04</span><span style="color: #000000;">.2022</span>  <span style="color: #000000;">08</span>:<span style="color: #000000;">13</span>       <span style="color: #000000;">9.570</span> libmysql64.a       |   <span style="color: #000000;">02.11</span><span style="color: #000000;">.2022</span>  <span style="color: #000000;">08</span>:<span style="color: #000000;">11</span>       <span style="color: #000000;">9.570</span> libmysql64.a<br /><span style="color: #000000;">10.04</span><span style="color: #000000;">.2022</span>  <span style="color: #000000;">08</span>:<span style="color: #000000;">13</span>      <span style="color: #000000;">26.832</span> libmysql64.lib     |   <span style="color: #000000;">02.11</span><span style="color: #000000;">.2022</span>  <span style="color: #000000;">08</span>:<span style="color: #000000;">11</span>      <span style="color: #000000;">26.832</span> libmysql64.lib<br /><span style="color: #000000;">10.04</span><span style="color: #000000;">.2022</span>  <span style="color: #000000;">08</span>:<span style="color: #000000;">13</span>      <span style="color: #000000;">13.824</span> libmysqld.lib      |   <span style="color: #000000;">02.11</span><span style="color: #000000;">.2022</span>  <span style="color: #000000;">08</span>:<span style="color: #000000;">11</span>      <span style="color: #000000;">13.824</span> libmysqld.lib<br /><span style="color: #000000;">10.04</span><span style="color: #000000;">.2022</span>  <span style="color: #000000;">08</span>:<span style="color: #000000;">13</span>      <span style="color: #000000;">25.856</span> libmysqld32.lib    |   <span style="color: #000000;">02.11</span><span style="color: #000000;">.2022</span>  <span style="color: #000000;">08</span>:<span style="color: #000000;">11</span>      <span style="color: #000000;">25.856</span> libmysqld32.lib<br /><span style="color: #000000;">10.04</span><span style="color: #000000;">.2022</span>  <span style="color: #000000;">08</span>:<span style="color: #000000;">13</span>      <span style="color: #000000;">18.432</span> libpq.lib          |   <span style="color: #000000;">02.11</span><span style="color: #000000;">.2022</span>  <span style="color: #000000;">08</span>:<span style="color: #000000;">11</span>      <span style="color: #000000;">18.432</span> libpq.lib<br /><span style="color: #000000;">10.04</span><span style="color: #000000;">.2022</span>  <span style="color: #000000;">08</span>:<span style="color: #000000;">13</span>  <span style="color: #000000;">19.198</span><span style="color: #000000;">.580</span> mysqlclient.lib    |   <span style="color: #000000;">02.11</span><span style="color: #000000;">.2022</span>  <span style="color: #000000;">08</span>:<span style="color: #000000;">11</span>  <span style="color: #000000;">19.198</span><span style="color: #000000;">.580</span> mysqlclient.lib<br /><span style="color: #000000;">10.04</span><span style="color: #000000;">.2022</span>  <span style="color: #000000;">08</span>:<span style="color: #000000;">13</span>      <span style="color: #000000;">37.888</span> pgsql.lib          |   <span style="color: #000000;">02.11</span><span style="color: #000000;">.2022</span>  <span style="color: #000000;">08</span>:<span style="color: #000000;">11</span>      <span style="color: #000000;">37.888</span> pgsql.lib<br /><span style="color: #000000;">10.04</span><span style="color: #000000;">.2022</span>  <span style="color: #000000;">08</span>:<span style="color: #000000;">13</span>         <span style="color: #000000;">829</span> readme.txt         |   <span style="color: #000000;">02.11</span><span style="color: #000000;">.2022</span>  <span style="color: #000000;">08</span>:<span style="color: #000000;">11</span>         <span style="color: #000000;">829</span> readme.txt<br /><span style="color: #000000;">10.04</span><span style="color: #000000;">.2022</span>  <span style="color: #000000;">08</span>:<span style="color: #000000;">13</span>       <span style="color: #000000;">4.318</span> xfw.lib            |   <span style="color: #000000;">02.11</span><span style="color: #000000;">.2022</span>  <span style="color: #000000;">08</span>:<span style="color: #000000;">11</span>       <span style="color: #000000;">4.522</span> xfw.lib<br /><span style="color: #000000;">16.05</span><span style="color: #000000;">.2022</span>  <span style="color: #000000;">09</span>:<span style="color: #000000;">25</span> <DIR>      xhb                 |   <span style="color: #000000;">10.01</span><span style="color: #000000;">.2023</span>  <span style="color: #000000;">19</span>:<span style="color: #000000;">40</span> <DIR>          xhb</div>[/code:d172jdyh] But I didn't touch the lib files.
xbrowse
maybe a virus ?
xbrowse
I'm not sure, Antonio. Windows defender didn't find any virus. But I made a clean new install of FWH. And now it’s working as expected. Thanks to all of you who spent time about my problem. Detlef
xbrowse SparkLines
I insert the test sample into my app but I have this error [img:2qtqpj5z]http&#58;//img580&#46;imageshack&#46;us/img580/1796/errgridgraph&#46;jpg[/img:2qtqpj5z] How I can correct it pls ?
xbrowse SparkLines
Correct I inserted Maxvalue:=2000 but I cannot Know this value
xbrowse ToCalc() oSheet:SetString error ?
Hi, Xbrowse METHOD ToCalc() oSheet:GetCellByPosition( nCol-1, nRow-1 ):SetString = oCol:cHeader Error description: (DOS Error -2147352573) WINOLE/1006 Argument error: _SETSTRING Best regards! Shuming Wang
xbrowse ToCalc() oSheet:SetString error ?
Did someone find the solution to this error ? thanks
xbrowse ToCalc() oSheet:SetString error ?
Please check the value of nCol and nRow. They must range from 0 upward (I don't know what the maximum value is). EMG
xbrowse ToCalc() oSheet:SetString error ?
Please test after changing the line 7152 xbrowse.prg [b:781oyp0z]FROM[/b:781oyp0z] [code=fw:781oyp0z]<div class="fw" id="{CB}" style="font-family: monospace;"> &nbsp; &nbsp; &nbsp;oSheet:<span style="color: #000000;">GetCellByPosition</span><span style="color: #000000;">&#40;</span> nCol<span style="color: #000000;">-1</span>, nRow<span style="color: #000000;">-1</span> <span style="color: #000000;">&#41;</span>:<span style="color: #000000;">SetString</span> = oCol:<span style="color: #000000;">cHeader</span></div>[/code:781oyp0z] [b:781oyp0z]TO[/b:781oyp0z] [code=fw:781oyp0z]<div class="fw" id="{CB}" style="font-family: monospace;"> &nbsp; &nbsp; &nbsp;oSheet:<span style="color: #000000;">GetCellByPosition</span><span style="color: #000000;">&#40;</span> nCol<span style="color: #000000;">-1</span>, nRow<span style="color: #000000;">-1</span> <span style="color: #000000;">&#41;</span>:<span style="color: #000000;">SetString</span><span style="color: #000000;">&#40;</span>oCol:<span style="color: #000000;">cHeader</span><span style="color: #000000;">&#41;</span></div>[/code:781oyp0z] Please comment out the line 7184 [code=fw:781oyp0z]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">OTHERWISE</span><br /><span style="color: #B900B9;">// &nbsp; &nbsp; oSheet:GetColumns():GetByIndex( nCol-1 ):NumberFormat:="@"</span><br />&nbsp;</div>[/code:781oyp0z] Please let us know the results. Regards [b:781oyp0z]Anser[/b:781oyp0z]
xbrowse ToCalc() oSheet:SetString error ?
Yes! THis change works fine! Thanks ! Shuming Wang
xbrowse ToCalc() oSheet:SetString error ?
Anser, many thanks! <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
xbrowse ToCalc() oSheet:SetString error ?
Hi Antonio, I have the same problem with FW 12.09 (Error description: (DOS Error -2147352573) WINOLE/1006 Argument error: _SETSTRING) . The proposed changes by Anser are working ok for me, avoiding erros. Will be nice if u can include these changes in the lib. TKS
xbrowse ToCalc() oSheet:SetString error ?
Biel, Anser, Added, many thanks for the reminder! <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
xbrowse ""bEditWhen""
En cuanto a la xbrowse clase, vi que el comando bEditWhen, en la mayoría de muestras no ha podido encontrar ningún ejemplo, como validar un campo.graciasLuiz Fernando
xbrowse ""bEditWhen""
Hola Luiz, seria isto q usted precisas :<!-- m --><a class="postlink" href="http://fivetechsoft.com/forums/viewtopic.php?t=13246&highlight=beditwhen">http://fivetechsoft.com/forums/viewtopi ... =beditwhen</a><!-- m -->Saluds Ale
xbrowse ""bEditWhen""
[quote="Ale SB":2wwnrkkw]Hola Luiz, seria isto q usted precisas : <!-- m --><a class="postlink" href="http://fivetechsoft.com/forums/viewtopic.php?t=13246&highlight=beditwhen">http://fivetechsoft.com/forums/viewtopi ... =beditwhen</a><!-- m --> Saluds Ale[/quote:2wwnrkkw]Alessandro, era exatamente o que estava procurando valeu obrigado...Luiz Fernando
xbrowse (empezando)
Amigos Donde puedo sacar informacion de XBROWSE, ejemplos etc.etc <!-- s:oops: --><img src="{SMILIES_PATH}/icon_redface.gif" alt=":oops:" title="Embarassed" /><!-- s:oops: --> gracias David
xbrowse (empezando)
Hola dobfivewin en la carpeta samples estos son todos los programas que usan xbrowse (esta lista puede variar segun la version de FWH) foldxbrw.prg formdes.prg inspect.prg kineticx.prg mallorca.prg ribbon.prg testads.prg testarra.prg testblu2.prg testdtp.prg testhead.prg testmdir.prg testmerg.prg testxbr2.prg testxbr3.prg testxbr4.prg testxbr5.prg testxbr6.prg testxbrw.prg xbalpha.prg xbarra1.prg xbcell.prg xbcoladj.prg xbimg.prg xbposte.prg xbrabln.prg xbradt.prg xbrarag.prg xbrbckg1.prg xbrbtn.prg xbrchild.prg xbrgrad.prg xbrimag1.prg xbrmemo.prg xbrprogb.prg xbrstru.prg xbrwalia.prg xbrwdisk.prg xbrwedit.prg xbrwrows.prg xbrwtree.prg xbwser.prg
xbrowse (empezando)
Daniel Yo tambien estoy empezando a utilizar TXBrowse, utilizo Fwh7.12 y estoy revisando la carpeta de Fwh\samples y la mayor parte de los programas que mencionas no aparecen Te agradeceré si me los puedieras hacer llegar o si me dices donde los puedo obtener De antemano muchas gracias Juan México mi correo es : <!-- e --><a href="mailto:juan_arroyo_t@hotmail.com">juan_arroyo_t@hotmail.com</a><!-- e -->
xbrowse + EDIT_LISTBOX
Hola a todos, Tengo un xbrowse en un DIALOG y en una columna con EDIT_LISTBOX, el caso es que en edicion en vez de seguir a la columna siguiente, pasa al siguiente control, en WINDOW anda ok, el problema lo presenta en dialogos Aqui el code : [code=fw:348wm7fb]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"fivewin.ch"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"xbrowse.ch"</span><br /><br /><span style="color: #00C800;">function</span> main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> aData := <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> oWnd, oBrw, oBar<br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">define</span> <span style="color: #0000ff;">window</span> oWnd<br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">define</span> <span style="color: #0000ff;">buttonbar</span> oBar <span style="color: #0000ff;">size</span> <span style="color: #000000;">100</span>,<span style="color: #000000;">32</span> <span style="color: #0000ff;">of</span> oWnd <span style="color: #000000;">2007</span><br />&nbsp; &nbsp;<span style="color: #0000ff;">define</span> <span style="color: #0000ff;">button</span> <span style="color: #0000ff;">of</span> oBar <span style="color: #0000ff;">prompt</span> <span style="color: #ff0000;">'AddRow'</span> <span style="color: #0000ff;">action</span> AddRow<span style="color: #000000;">&#40;</span> oBrw <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #0000ff;">define</span> <span style="color: #0000ff;">button</span> <span style="color: #0000ff;">of</span> oBar <span style="color: #0000ff;">prompt</span> <span style="color: #ff0000;">'DeleteRow'</span> <span style="color: #0000ff;">action</span> DelRow<span style="color: #000000;">&#40;</span> oBrw <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">0</span>,<span style="color: #000000;">0</span> <span style="color: #0000ff;">xbrowse</span> oBrw <span style="color: #0000ff;">of</span> oWnd ;<br />&nbsp; &nbsp; &nbsp; header <span style="color: #ff0000;">'one'</span>,<span style="color: #ff0000;">'two'</span>,<span style="color: #ff0000;">'tipo'</span>, <span style="color: #ff0000;">"cuatro"</span> ;<br />&nbsp; &nbsp; &nbsp; columns <span style="color: #000000;">1</span>, <span style="color: #000000;">2</span>, <span style="color: #000000;">3</span>, <span style="color: #000000;">4</span> ;<br />&nbsp; &nbsp; &nbsp; colsizes <span style="color: #000000;">50</span>,<span style="color: #000000;">70</span>,<span style="color: #000000;">50</span>,<span style="color: #000000;">70</span> ;<br />&nbsp; &nbsp; &nbsp; pictures <span style="color: #ff0000;">'999'</span>,<span style="color: #ff0000;">'mmm dd, yyyy'</span>, <span style="color: #ff0000;">"9999.99"</span> ;<br />&nbsp; &nbsp; &nbsp; array aData lines cell fastedit footers<br /><br />&nbsp; &nbsp;WITH OBJECT oBrw<br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">bClrStd</span> &nbsp; &nbsp;:= <span style="color: #000000;">&#123;</span> || <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> oBrw:<span style="color: #000000;">KeyNo</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> % <span style="color: #000000;">2</span> == <span style="color: #000000;">0</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span> CLR_BLACK, RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">224</span>, <span style="color: #000000;">236</span>, <span style="color: #000000;">255</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span> CLR_BLACK, RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">189</span>, <span style="color: #000000;">211</span>, <span style="color: #000000;">253</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">bPastEof</span> &nbsp;:= <span style="color: #000000;">&#123;</span> || AddRow<span style="color: #000000;">&#40;</span> oBrw <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">bKeyDown</span> := <span style="color: #000000;">&#123;</span>| nKey | <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> nKey == VK_DELETE, DelRow<span style="color: #000000;">&#40;</span> oBrw <span style="color: #000000;">&#41;</span>, <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp;END<br /><br />&nbsp; &nbsp;AEval<span style="color: #000000;">&#40;</span> oBrw:<span style="color: #000000;">aCols</span>, <span style="color: #000000;">&#123;</span> |o| o:<span style="color: #000000;">nEditType</span> := EDIT_GET <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;WITH OBJECT oBrw:<span style="color: #000000;">tipo</span><br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">nEditType</span> &nbsp; &nbsp; &nbsp; &nbsp;:= EDIT_LISTBOX<br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">aEditListBound</span> &nbsp; := ;<br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">aEditListTxt</span> &nbsp; &nbsp; := <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"NOV"</span>, <span style="color: #ff0000;">"NTO"</span>, <span style="color: #ff0000;">"TOR"</span>, <span style="color: #ff0000;">"VAC"</span>, <span style="color: #ff0000;">"VAQ"</span>, <span style="color: #ff0000;">"TM "</span>, <span style="color: #ff0000;">"TH "</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp;END<br />&nbsp; &nbsp;WITH OBJECT oBrw:<span style="color: #000000;">cuatro</span><br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">nTotal</span> &nbsp; &nbsp; &nbsp; &nbsp;:= <span style="color: #000000;">0</span><br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">lTotal</span> &nbsp; &nbsp; &nbsp; &nbsp;:= .t.<br />&nbsp; &nbsp;END<br /><br />&nbsp; &nbsp;WITH OBJECT oBrw<br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">bClrStd</span> &nbsp; &nbsp;:= <span style="color: #000000;">&#123;</span> || <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> oBrw:<span style="color: #000000;">KeyNo</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> % <span style="color: #000000;">2</span> == <span style="color: #000000;">0</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span> CLR_BLACK, RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">224</span>, <span style="color: #000000;">236</span>, <span style="color: #000000;">255</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span> CLR_BLACK, RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">189</span>, <span style="color: #000000;">211</span>, <span style="color: #000000;">253</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">bPastEof</span> &nbsp;:= <span style="color: #000000;">&#123;</span> || AddRow<span style="color: #000000;">&#40;</span> oBrw <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">bKeyDown</span> := <span style="color: #000000;">&#123;</span>| nKey | <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> nKey == VK_DELETE, DelRow<span style="color: #000000;">&#40;</span> oBrw <span style="color: #000000;">&#41;</span>, <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">MakeTotals</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;END<br /><br />&nbsp; &nbsp;oBrw:<span style="color: #000000;">CreateFromCode</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oWnd:<span style="color: #000000;">oClient</span> := oBrw<br />&nbsp; &nbsp;<span style="color: #0000ff;">activate</span> <span style="color: #0000ff;">window</span> oWnd<br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #00C800;">static</span> <span style="color: #00C800;">function</span> AddRow<span style="color: #000000;">&#40;</span> oBrw <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">static</span> n := <span style="color: #000000;">0</span><br /><br />&nbsp; &nbsp;AAdd<span style="color: #000000;">&#40;</span> oBrw:<span style="color: #000000;">aArrayData</span>, <span style="color: #000000;">&#123;</span> n, date<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>+n, <span style="color: #ff0000;">"NOV"</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;n++<br />&nbsp; &nbsp;oBrw:<span style="color: #000000;">GoBottom</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oBrw:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oBrw:<span style="color: #000000;">SetFocus</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: #00C800;">static</span> <span style="color: #00C800;">function</span> DelRow<span style="color: #000000;">&#40;</span> oBrw <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> oBrw:<span style="color: #000000;">nLen</span> > <span style="color: #000000;">0</span><br />&nbsp; &nbsp; &nbsp; ADel<span style="color: #000000;">&#40;</span> oBrw:<span style="color: #000000;">aArrayData</span>, oBrw:<span style="color: #000000;">nArrayAt</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; ASize<span style="color: #000000;">&#40;</span> oBrw:<span style="color: #000000;">aArrayData</span>, oBrw:<span style="color: #000000;">nLen</span> - <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; oBrw:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">endif</span><br />&nbsp; &nbsp;oBrw:<span style="color: #000000;">SetFocus</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:348wm7fb] si alguien lo pudo resolver agradeceria comparta la solucion. Gracias. Salu2, Ariel.
xbrowse + EDIT_LISTBOX
Ariel. Ejemplo usando DIALOG [code=fw:3hfskk4w]<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: #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> aData := <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> oWnd, oBrw, oBar<br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">define</span> <span style="color: #0000ff;">dialog</span> oWnd <span style="color: #0000ff;">size</span> <span style="color: #000000;">300</span>, <span style="color: #000000;">300</span><br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">0</span>,<span style="color: #000000;">0</span> <span style="color: #0000ff;">xbrowse</span> oBrw <span style="color: #0000ff;">of</span> oWnd ;<br />&nbsp; &nbsp; &nbsp; header <span style="color: #ff0000;">'one'</span>,<span style="color: #ff0000;">'two'</span>,<span style="color: #ff0000;">'tipo'</span>, <span style="color: #ff0000;">"cuatro"</span> ;<br />&nbsp; &nbsp; &nbsp; columns <span style="color: #000000;">1</span>, <span style="color: #000000;">2</span>, <span style="color: #000000;">3</span>, <span style="color: #000000;">4</span> ;<br />&nbsp; &nbsp; &nbsp; colsizes <span style="color: #000000;">50</span>,<span style="color: #000000;">70</span>,<span style="color: #000000;">50</span>,<span style="color: #000000;">70</span> ;<br />&nbsp; &nbsp; &nbsp; pictures <span style="color: #ff0000;">'999'</span>,<span style="color: #ff0000;">'mmm dd, yyyy'</span>, <span style="color: #ff0000;">"9999.99"</span> ;<br />&nbsp; &nbsp; &nbsp; array aData lines cell fastedit footers<br /><br />&nbsp; &nbsp;WITH OBJECT oBrw<br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">bClrStd</span> &nbsp; &nbsp;:= <span style="color: #000000;">&#123;</span> || <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> oBrw:<span style="color: #000000;">KeyNo</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> % <span style="color: #000000;">2</span> == <span style="color: #000000;">0</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span> CLR_BLACK, RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">224</span>, <span style="color: #000000;">236</span>, <span style="color: #000000;">255</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span> CLR_BLACK, RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">189</span>, <span style="color: #000000;">211</span>, <span style="color: #000000;">253</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">bPastEof</span> &nbsp;:= <span style="color: #000000;">&#123;</span> || AddRow<span style="color: #000000;">&#40;</span> oBrw <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">bKeyDown</span> := <span style="color: #000000;">&#123;</span>| nKey | <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> nKey == VK_DELETE, DelRow<span style="color: #000000;">&#40;</span> oBrw <span style="color: #000000;">&#41;</span>, <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp;END<br /><br />&nbsp; &nbsp;AEval<span style="color: #000000;">&#40;</span> oBrw:<span style="color: #000000;">aCols</span>, <span style="color: #000000;">&#123;</span> |o| o:<span style="color: #000000;">nEditType</span> := EDIT_GET <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;WITH OBJECT oBrw:<span style="color: #000000;">tipo</span><br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">nEditType</span> &nbsp; &nbsp; &nbsp; &nbsp;:= EDIT_LISTBOX<br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">aEditListBound</span> &nbsp; := ;<br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">aEditListTxt</span> &nbsp; &nbsp; := <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"NOV"</span>, <span style="color: #ff0000;">"NTO"</span>, <span style="color: #ff0000;">"TOR"</span>, <span style="color: #ff0000;">"VAC"</span>, <span style="color: #ff0000;">"VAQ"</span>, <span style="color: #ff0000;">"TM "</span>, <span style="color: #ff0000;">"TH "</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp;END<br />&nbsp; &nbsp;WITH OBJECT oBrw:<span style="color: #000000;">cuatro</span><br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">nTotal</span> &nbsp; &nbsp; &nbsp; &nbsp;:= <span style="color: #000000;">0</span><br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">lTotal</span> &nbsp; &nbsp; &nbsp; &nbsp;:= .t.<br />&nbsp; &nbsp;END<br /><br />&nbsp; &nbsp;WITH OBJECT oBrw<br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">bClrStd</span> &nbsp; &nbsp;:= <span style="color: #000000;">&#123;</span> || <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> oBrw:<span style="color: #000000;">KeyNo</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> % <span style="color: #000000;">2</span> == <span style="color: #000000;">0</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span> CLR_BLACK, RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">224</span>, <span style="color: #000000;">236</span>, <span style="color: #000000;">255</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span> CLR_BLACK, RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">189</span>, <span style="color: #000000;">211</span>, <span style="color: #000000;">253</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">bPastEof</span> &nbsp;:= <span style="color: #000000;">&#123;</span> || AddRow<span style="color: #000000;">&#40;</span> oBrw <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">bKeyDown</span> := <span style="color: #000000;">&#123;</span>| nKey | <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> nKey == VK_DELETE, DelRow<span style="color: #000000;">&#40;</span> oBrw <span style="color: #000000;">&#41;</span>, <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; :<span style="color: #000000;">MakeTotals</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;END<br /><br />&nbsp; &nbsp;oBrw:<span style="color: #000000;">CreateFromCode</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oWnd:<span style="color: #000000;">oClient</span> := oBrw<br />&nbsp; &nbsp;<span style="color: #0000ff;">activate</span> <span style="color: #0000ff;">dialog</span> oWnd <span style="color: #0000ff;">on</span> <span style="color: #0000ff;">init</span> <span style="color: #000000;">&#40;</span> MakeBar<span style="color: #000000;">&#40;</span> oWnd, oBrw <span style="color: #000000;">&#41;</span>, oWnd:<span style="color: #000000;">Resize</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #00C800;">static</span> <span style="color: #00C800;">function</span> AddRow<span style="color: #000000;">&#40;</span> oBrw <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">static</span> n := <span style="color: #000000;">0</span><br /><br />&nbsp; &nbsp;AAdd<span style="color: #000000;">&#40;</span> oBrw:<span style="color: #000000;">aArrayData</span>, <span style="color: #000000;">&#123;</span> n, date<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>+n, <span style="color: #ff0000;">"NOV"</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;n++<br />&nbsp; &nbsp;oBrw:<span style="color: #000000;">GoBottom</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oBrw:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oBrw:<span style="color: #000000;">SetFocus</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: #00C800;">static</span> <span style="color: #00C800;">function</span> DelRow<span style="color: #000000;">&#40;</span> oBrw <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> oBrw:<span style="color: #000000;">nLen</span> > <span style="color: #000000;">0</span><br />&nbsp; &nbsp; &nbsp; ADel<span style="color: #000000;">&#40;</span> oBrw:<span style="color: #000000;">aArrayData</span>, oBrw:<span style="color: #000000;">nArrayAt</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; ASize<span style="color: #000000;">&#40;</span> oBrw:<span style="color: #000000;">aArrayData</span>, oBrw:<span style="color: #000000;">nLen</span> - <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; oBrw:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">endif</span><br />&nbsp; &nbsp;oBrw:<span style="color: #000000;">SetFocus</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 /><br /><span style="color: #00C800;">function</span> MakeBar<span style="color: #000000;">&#40;</span> oWnd, oBrw <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> oBar<br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">define</span> <span style="color: #0000ff;">buttonbar</span> oBar <span style="color: #0000ff;">size</span> <span style="color: #000000;">100</span>,<span style="color: #000000;">32</span> <span style="color: #0000ff;">of</span> oWnd <span style="color: #000000;">2007</span><br />&nbsp; &nbsp;<span style="color: #0000ff;">define</span> <span style="color: #0000ff;">button</span> <span style="color: #0000ff;">of</span> oBar <span style="color: #0000ff;">prompt</span> <span style="color: #ff0000;">'AddRow'</span> <span style="color: #0000ff;">action</span> AddRow<span style="color: #000000;">&#40;</span> oBrw <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #0000ff;">define</span> <span style="color: #0000ff;">button</span> <span style="color: #0000ff;">of</span> oBar <span style="color: #0000ff;">prompt</span> <span style="color: #ff0000;">'DeleteRow'</span> <span style="color: #0000ff;">action</span> DelRow<span style="color: #000000;">&#40;</span> oBrw <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">return</span> oBar<br />&nbsp;</div>[/code:3hfskk4w]