Re: REVISION OF GRID/BROWSE
Posted: Sat Jul 04, 2015 11:55 pm
... too many thing altogether ...Roberto Lopez wrote:...
The times are changing... and IMHO the xBase Browse way belongs to the past...
...
Exclusive forum for HMG, a Free / Open Source xBase WIN32/64 Bits / GUI Development System
http://hmgforum.com/
... too many thing altogether ...Roberto Lopez wrote:...
The times are changing... and IMHO the xBase Browse way belongs to the past...
...
Rightly said Master.Roberto Lopez wrote:As I've explained a couple of times already, the last years I'm mainly using NETIO with excellent results. I use remote procedures, so, all the data handling is done in the server.mol wrote:I'm still using dbfs and browse control. I think it should always be updated.
I remember Roberto words, where he turned back from words this control is obsolete.
Great advantage of dbfs is this system is portable.
You can say that sqlite exists, but it hasn't still some types of fields.
Moreover, when I occasionally need to work with local data, I do not use Browse, nor DataGrid.
I use simple grids that are loaded with the required data from dbfs, using constructs like LOCATE FOR... DO WHILE FOUND()... CONTINUE... ENDDO. In some cases, the use of conditional, temporary indexes, is a good technique too.
The grid is automatically updated, after append, delete, and modify operations, or manually (by the user) via a simple [Refresh] button.
IMHO, this is the more efficient and simple way to work, and since the users are habituated to think in 'client/server' way, because the web, there is no problem on that side either.
If I were starting a new GUI library now, I'm pretty sure that I could not include data bound controls in it.
I guess that the only required thing, could be a method, to assign to the grid, a two dimensional array (the recordset) in an efficient, very fast way.
The times are changing... and IMHO the xBase Browse way belongs to the past...
I admit that my decision of tagging browse as obsolete was premature, but, IMHO, sooner or later, that will happen, simply because 'the world' is switching to client/server and because it is a better way to work.
An additional benefit of this approach is the separation between user interface (presentation) and data handling... another 'unavoidable' thing... I can assure you, that this will make your programmer life a lot easier
tnx for the advise mr pablo but when i am using BROWSE it is also similar with the GRID because the DBF records will be stored to the array then display, what if i have 1M of records to display? unlike the DBEDIT functions even how many records do u want to display it will not get slower just because if u want to display 20 records per page, data[20] arrays only you will use. everytime a loop does, the function itself substitute the remaining records to the 20 arrays. even in the SQL i think we can use my suggestion. tnx and more power!Pablo César wrote:What we have to understand is GRID and BROWSE are different controls.
When you said like dbEdit, must be cleared something: an control for exclusive use for DBFs, right ?
Because dbEdit only works with databases and also it's hard to work on to conciliate both: arrays and databases in GRIDs.
Otherwise Joselito (brain), why are you requesting this ?
BROWSE is deprecated (descontinued) in HMG and not implementations have been done over this control.
My suggestion is to work on the BROWSE or with other similar name for only and exclusive use for DBFs and working similar of TBrowseDB of old Clipper but in this time in GUI. I'm not sure if this is posible and also I do not know if it's worth it considering many users are migrating to SQL usage instead DBFs.
Hi Marekmol wrote:Hi guys!
I want to refresh this topic and present modified sample 38 of grid. My friend was testing this sample with few version of HMG and got a lot of strange behaviours.
The display content of the grid becomes blank when you divide by 0 (call upper menu -> Divide -> Divide 3/0).
The display also stay blank when you lock LOCK.DBF file eg. by dbu before running this sample.
I'm attaching sample with .dbf files.
Regards, Marek