PC SOFT

FORUMS PROFESSIONNELS
WINDEVWEBDEV et WINDEV Mobile

Accueil → WINDEV 2024 → positioning the table selector at the just inserted new recor
positioning the table selector at the just inserted new recor
Débuté par Christine schokkaert, 29 nov. 2004 12:12 - 3 réponses
Posté le 29 novembre 2004 - 12:12
Hello,
ON my form is a table and the fields .
I add a record with Hadd
and just want to position the table selector on this just added record.
I do not know which parameter i have to use to get this.
taCurrentSelection = i tried them all four parameters ...
my code :
screentofile
HAdd()
TableDisplay(TABLE,taCurrentSelection)
FileToScreen()
Posté le 29 novembre 2004 - 12:44
Hello Christine,
TableDisplay(TABLE,taCurrentFirst) should do the job.
Best regards,
Piet
Posté le 29 novembre 2004 - 12:47
Thanks, It works this way...

Hello Christine,
TableDisplay(TABLE,taCurrentFirst) should do the job.
Best regards,
Piet
Posté le 29 novembre 2004 - 12:48
Hello,
ON my form is a table and the fields .
I add a record with Hadd
and just want to position the table selector on this just added record.
I do not know which parameter i have to use to get this.
taCurrentSelection = i tried them all four parameters ...
my code :
screentofile
HAdd()
TableDisplay(TABLE,taCurrentSelection)
FileToScreen()

Hello,
After Tabledisplay, you can look in the table for the new added record with the tableseek function.
Then you can use the result of the tableseek function in the TableSelectPlus function to select the record.
Bart