On Dec 1, 2017, at 2:00 PM,Piotr Chabot Stadhouders wrote:

> But, bottom line, we are skipping the fact that still the command LISTBOX 
> INSERT COLUMN is very slow compared to all other commands
> And we wouldn't probably having this discussion if it was executed as fast as 
> the other commands

There is an old saying where a man goes to the doctor and says “when I move my 
arm like this it hurts, can you fix this” and the doctor replies “yes, don’t 
move your arm like that”. :)

Is there a reason you MUST call LISTBOX INSERT COLUMN or is it just the way you 
have designed the form and your coding style. I know a lot of people think it 
is the best way to program to build all your list boxes programmatically. Do it 
all with code and they have a dozen methods that do all the work. It’s a 
programming style.

The other option is to define your list boxes with the form editor defining all 
the columns and properties. Then when the form is loaded all that column 
definition and insertion is eliminated. That is my personal programming 
preference. 

If some of your list boxes are used for several purposes you could also create 
multiple list boxes that are stacked on top of each other, each setup exactly 
how you need it. Then you show/hide the ones you need as appropriate.

I know this is probably not what you want to hear, but if you are determined to 
cut down on load and display time, and you have found LISTBOX INSERT COLUMN is 
causing issues, you only have 2 choices:

1. Wait for 4D to make a change to fix this (who knows if/when that would 
happen)
2. Don’t use LISTBOX INSERT COLUMN

Tim

********************************************
Tim Nevels
Innovative Solutions
785-749-3444
timnev...@mac.com
********************************************

**********************************************************************
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**********************************************************************

Reply via email to