PC SOFT

PROFESSIONAL NEWSGROUPS
WINDEVWEBDEV and WINDEV Mobile

Home → WINDEV 2024 → Strange behaviour of function TableInsert in WD7.5
Strange behaviour of function TableInsert in WD7.5
Started by Filip De Sutter, Aug., 05 2003 6:40 PM - 3 replies
Posted on August, 05 2003 - 6:40 PM
Hi guys,
Some days ago I posted a message concercing the TableInsert function. I figured some things out by now that might be of interest to you all. IF you have a TableSort function active BEFORE inserting a line it stays active while inserting the line. Because I inserted an empty line it was always placed as first line in my table, due to the activated TableSort; no matter what indexed I used.
This is indeed different behaviour (not strange once you get the hang of it) as with WD55.
Keep it cool (hard to do nowadays her in Belgium).
Filip.
Posted on August, 08 2003 - 3:43 PM
Hi guys,
Some days ago I posted a message concercing the TableInsert function. I figured some things out by now that might be of interest to you all. IF you have a TableSort function active BEFORE inserting a line it stays active while inserting the line. Because I inserted an empty line it was always placed as first line in my table, due to the activated TableSort; no matter what indexed I used.
This is indeed different behaviour (not strange once you get the hang of it) as with WD55.
Keep it cool (hard to do nowadays her in Belgium).
Filip.

Thanks Filip for returning us your findings and experiences on this matter...
Lieven De Nys. Member of the Benelux Windev Developpers Group.
Posted on August, 23 2003 - 5:24 PM
Hi guys !

I have got same troubles, but I found a turnaround.

Sorry, my code is in french, and i dont know the exact english translation
of all the functions :

In the Table treatment "Selection line" write :
Si Table..modifie alors
table..modifie=faux
tableaffiche(table,tacourantbandeau)
fin

If you use a button "delete" or "modify", you have to put the following
lines, just at the end of their Clic treatment :
table..modifie=faux
tableaffiche(table,tacourantbandeau)

It works well, and i don't have troubles anymore.


"Filip De Sutter" <filip.desutter@excite.com> a écrit dans le message de
news:3f4233fe@news....
Hi guys,
Some days ago I posted a message concercing the TableInsert function. I

figured some things out by now that might be of interest to you all. IF you
have a TableSort function active BEFORE inserting a line it stays active
while inserting the line. Because I inserted an empty line it was always
placed as first line in my table, due to the activated TableSort; no matter
what indexed I used.
> This is indeed different behaviour (not strange once you get the hang of
it) as with WD55.
Keep it cool (hard to do nowadays her in Belgium).
Filip.









Posted on August, 23 2003 - 5:32 PM
filip,
You will have same trouble if you modify data in the column which is use to
sort the table.
As example, if you sort on "Name" : replace a name by a name which is before
(in sort order) the current name. Then when you move the cursor up and down,
you will see a name twice in the list... (that's just a display bug. if you
wuit and go back, all is ok)
I gave you the turnaround for that.

"Filip De Sutter" <filip.desutter@excite.com> a écrit dans le message de
news:3f4233fe@news....
Hi guys,
Some days ago I posted a message concercing the TableInsert function. I

figured some things out by now that might be of interest to you all. IF you
have a TableSort function active BEFORE inserting a line it stays active
while inserting the line. Because I inserted an empty line it was always
placed as first line in my table, due to the activated TableSort; no matter
what indexed I used.
> This is indeed different behaviour (not strange once you get the hang of
it) as with WD55.
Keep it cool (hard to do nowadays her in Belgium).
Filip.