Source language: Translate to:

Best Practise settings

Questions about our Advanced Database plug-in

Moderator: Neosoft Support

Best Practise settings

Postby BRobinsonS » Sat Dec 19, 2015 12:17 pm

I need an opinion as to where it's best to set grid properties.
Should it be when app starts i.e. at Open Database or on page where the grid will be displayed?

I could extend this question to global variables too.
Brian Robinson
'When all else fails, try again!'
www.ComputerSoftwareSystems.com
User avatar
BRobinsonS
 
Posts: 337
Joined: Sun Sep 25, 2005 9:00 pm
Location: Ontario, Canada

Re: Best Practise settings

Postby mishem » Sat Dec 19, 2015 12:51 pm

The properties of the grid can be set at any time.
You can also dynamically change the properties at the time when the table is already displayed.
mishem
 
Posts: 574
Joined: Mon Oct 08, 2012 1:51 pm

Re: Best Practise settings

Postby Gaev » Sat Dec 19, 2015 2:37 pm

Brian:

I need an opinion as to where it's best to set grid properties.
Should it be when app starts i.e. at Open Database or on page where the grid will be displayed?

I would suggest that you place your dbpSetGridProperties command inside a Subroutine ... one for each "different grid style you would need to deploy" ... then, just before every dbpShowGrid, you can do a ...
Code: Select all
GoSub "DefineGridForTableX"
.. if a Table is shown with different style in different parts of the Application ...
Code: Select all
GoSub "DefineGrid1ForTableX"

The additional processing time for servicing this command multiple times will be negligible (unnoticeable by user) ... but will give you ease of management of styles during the life of an application.

I could extend this question to global variables too.

You could define and populate values for such variables in your Application's StartUp section ... then change them elsewhere as necessary.
User avatar
Gaev
 
Posts: 3718
Joined: Fri Apr 01, 2005 7:48 am
Location: Toronto, Canada

Re: Best Practise settings

Postby BRobinsonS » Sun Dec 20, 2015 7:00 am

So done on Page Properties.
Therefore, don't need use ShowGrid for other pages on Startup?
Brian Robinson
'When all else fails, try again!'
www.ComputerSoftwareSystems.com
User avatar
BRobinsonS
 
Posts: 337
Joined: Sun Sep 25, 2005 9:00 pm
Location: Ontario, Canada

Re: Best Practise settings

Postby Wrangler » Sun Dec 20, 2015 11:17 am

I like to show all my grids at startup. That way they are all sitting there ready until needed.
Wrangler
--------------
"You never know about a woman. Whether she'll laugh, cry or go for a gun." - Louis L'Amour

Windows 7 Ultimate SP1 64bit
16GB Ram
Asus GTX 950 OC Strix
Software made with NeoBook
http://highdesertsoftware.com
User avatar
Wrangler
 
Posts: 1505
Joined: Thu Mar 31, 2005 11:40 pm
Location: USA


Return to NeoBookDBPro

Who is online

Users browsing this forum: No registered users and 2 guests