I am use this trick :
.Create()
$bNewRecord = True
When save :
if $bNewRecord then
.MoveLast() 'if your new data show in last row
or maybe
.MoveFirst() 'if your new data show in first row
On Mon, Apr 11, 2016 at 3:48 AM, Martin McGlensey
wrote:
> Hello,
>
>
>
>
>
> I have a datasource on a form. Data controls are within the datasource.
> When
> I add a record to the datasource using X.Create(True) a new record is
> created and the datacontrols on the form add data to the datasource. Then I
> save the data to the datasource using X.Save. This appears to work OK.
> The problem is that after a save the form datacontrols are empty. I want
> the
> form to display the data I just entered and saved. How can I do this. I
> want
> to add a record. Then enter data and save the record and have the data
> appear on the form after the save. I know it should be possible but, I need
> help to do it.
>
>
>
> Regards,
>
> Marty
>
>
> --
> Find and fix application performance issues faster with Applications
> Manager
> Applications Manager provides deep performance insights into multiple
> tiers of
> your business applications. It resolves application problems quickly and
> reduces your MTTR. Get your free trial! http://pubads.g.doubleclick.net/
> gampad/clk?id=1444514301=/ca-pub-7940484522588532
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
--
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial! http://pubads.g.doubleclick.net/
gampad/clk?id=1444514301=/ca-pub-7940484522588532
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user