Page 1 of 1

Missing Browse Samples

Posted: Tue Feb 05, 2019 6:31 pm
by Zimbo
Hello. I hope I have missed something very simple but I cannot find any samples for BROWSE. I have seen other posts saying to look at c:\hmg\samples\browse_x (x = 1 to 5)...

When I look at c:\hmg.3.4.4\samples\ I cannot find any samples for browse. There is one

I am trying to learn how to use browse but need to refer to a sample that uses a DBF. Anyone able to point me to a simple, clear example?

Thanks!

Z

Re: Missing Browse Samples

Posted: Tue Feb 05, 2019 7:04 pm
by ljubacirovic
Hi Zimbo,

As I understood you, you are interested in the command BROWSE. As I can tell, this is a deprecated Clipper command, replaced by dbedit() function in Clipper 5.x and Browse() function in Harbour implementation.
You can find detailed explanations and simple examples for both functions in the help file installed with HMG IDE (file:///C:/hmg.3.4.4/doc/data/index.htm), under the branch "External Guides and Tutorials - Harbour Reference - Clipper 5.3 index".
I hope this helps.

Re: Missing Browse Samples

Posted: Tue Feb 05, 2019 10:08 pm
by EduardoLuis
Hi Zimbo:

I don't know why but browses were not included on samples since several versions.-
I atach a zip file with a colection of browses samples.-
Browse command is still in use for long number of record in a dbf.-
Grid is similar but recommended for use with virtual multidimentional arrays.
Hope these helps you.
With regards.
Eduardo

Re: Missing Browse Samples

Posted: Wed Feb 06, 2019 1:10 pm
by dragancesu
Look at topic http://hmgforum.com/viewtopic.php?f=10&t=3249

There you will find my attempt to do something to ease programming, and HMG was new to me and it was not easy, it takes time

If you have the will to see how others are doing, download the HMGCASE program and other, it have icons and instructions

It will make it easier for you to have a data dictionary, create a form, with one or two linked tables, reports, menus, and more

In attachment you have little demo program

Re: Missing Browse Samples

Posted: Wed Feb 06, 2019 3:28 pm
by Zimbo
Thank you for the replies and examples! I think I understand now and I have been able to get a browse control up and running. I have also been looking through numerous other posts for more information on Browse and grid.

What I was looking at was using the browse control to display certain fields contained within records held in a DBF file. I understand that this is preferable over GRID where a DBF contains a large number of records.

The GRID control can be used on a DBF but if I am right, this starts to suffer performance problems when a large number of records are in a DBF.

I am simply learning how to use both GRID and BROWSE - I know they do broadly similar things BUT GRID is preferred unless the DBF contains a lot of records?

Thank you all for your help and input. I appreciate the help!

Re: Missing Browse Samples

Posted: Wed Feb 06, 2019 6:23 pm
by mustafa
Hola amigo Zimbo
Si quieres experimentar con Browse, aquí tienes un sample
http://www.hmgforum.com/viewtopic.php?f ... afa#p55405
"DBF_Sample_WebCam.zip"

Haber si te puede servir, tienes las opciones básicas
de Nuevo, Cambio,Borrar, Listados Impresora etc.

Saludos
Mustafa

*----------------------------------- Google --------------------------------------*
Hello friend Zimbo
If you want to experiment with Browse, here is a sample
http://www.hmgforum.com/viewtopic.php?f ... afa#p55405
"DBF_Sample_WebCam.zip"

If you can serve, you have the basic options
New, Change, Delete, Listings Printer etc.

Regards
Mustafa

Re: Missing Browse Samples

Posted: Wed Feb 06, 2019 7:53 pm
by andyglezl
The GRID control can be used on a DBF but if I am right, this starts to suffer performance problems when a large number of records are in a DBF.

Thank you all for your help and input. I appreciate the help!
Quizá esto te sirva...
*------------------------------
Maybe this will help ...

http://www.hmgforum.com/viewtopic.php?f ... ock#p45910

Re: Missing Browse Samples

Posted: Thu Feb 07, 2019 7:49 am
by dragancesu
Welcome to the HMG club

and I used the clippers, it's nice to do it, but it has limitations. I believe that's the case with you
The clippers are good, but you have one defined screen and you're doing everything there, but the windows screen uses a little bit differently so you have to adjust it
You have objects (controls) in your program but also in the rest, and that's all Windows watches and processes
It requires that each control defines what it looks like and what to do when it clicks
Everything is equal, it's up to you to use that one you like
BROWSE or GRID, the question is now? When I work with dbf then I get better (faster) browse, when working with arrays, then the grid

Try it and see what's right for you