[Gambas-user] DataView Help

Benoit Minisini benoit.minisini at gambas-basic.org
Thu Jul 13 01:06:44 CEST 2023


Le 13/07/2023 à 00:31, Gianluigi a écrit :
>>
>> In the last commit, calling DataSource.Save() on a new record 
>> automatically moves it to the newly created record.
>>
>> After having called DataSource.Save(), you just have to read 
>> DataSource.Index to get the index of the newly created record.
>>
>> Regards,
>>
> Hi Benoit,
> 
> Maybe I didn't understand but if in the last project(*) I do:
> 
> Public Sub btnSave_Click()
> 
>    DataSource1.Save
>    $iCurrentIndex = DataSource1.Index
>    Print $iCurrentIndex ' <--------------------------------------- Get -1 !
> 
> End
> 
> Regards
> Gianluigi
> 
> (*) https://paste.c-net.org/ConfirmMarches
> 

Did you recompile with the very last commit?

-- 
Benoît Minisini.



More information about the User mailing list