PC SOFT

PROFESSIONAL NEWSGROUPS
WINDEVWEBDEV and WINDEV Mobile

Home → WINDEV 2024 → Re: Strange behavior of TableInsert function in WD7.5
Re: Strange behavior of TableInsert function in WD7.5
Started by filip.desutter, Jul., 29 2003 11:12 PM - No answer
Posted on July, 29 2003 - 11:12 PM
Hi guys !
I have a perfect running application in WD55 that uses the TableInsert function to insert a line in a memory table. By using the 'index' I (the user of the system) decides WHERE the line has to be added. This can be anywhere in the table and that works fine.
For a while now I am converting this application, window per window to the WD75 environment (actually using English version 01-75204ou) and everything goes well, until I used the TableInsert function.
According to the help files the 'Index' of the TableInsert function determines WHERE in the table the line has to be added. But I can't get that to work. No matter whitch value I use for the 'Index' the line is ALWAYS added as first line in my table. And that's not what I want !
Anybody has the same experience ? Is this a bug or do I miss something ? Anybody knows a 'way around' ?
Thanks for you help.
Filip.
TableInsert works fine with english 75205su, although tableinsertline is recommendend

One hint from the online help:
Position of the inserted row
By default, the row is inserted at the specified position.
If the table is sorted using the TableSort function, the inserted row is positioned in the table based on the current sort order and not based on the specified index.
If the table is sorted by the end-user, the sort is not taken into account when inserting the row. The row is inserted at the specified position.
heinz

Thanks for your reply Heinz.
I upgraded to 205su just now but that doesn't change a thing. The TableInsert (or even TableInsertLine - I tried that one too) always gives me a new line either at the beginning or the end (if I don't specify an Index) of my table but NEVER at the row that is selected.
Any suggestion ?
Filip.