My disabling button last, is now working. I manage to figure out that the record is the last record.
I will post the pseudocode if wanted.
thanks,
here is the psedocode:
check first the property of data source "InsertAtEnd" = yes
void clicked()
{
boolean flag=false;
;
super();
record_ds.next();
record_ds.next(); //check if the next record is null
If(record.next() == null) // i use strcontrol in my form so if(strcontrol.valustr=="")
{
record_ds.prev();//
button.enable(false);
flag=true;
}
elseif(flag==false)//if not null
{
record_ds.prev();
}
flag=false;
record_ds.refresh();
}
I will post the pseudocode if wanted.
thanks,
here is the psedocode:
check first the property of data source "InsertAtEnd" = yes
void clicked()
{
boolean flag=false;
;
super();
record_ds.next();
record_ds.next(); //check if the next record is null
If(record.next() == null) // i use strcontrol in my form so if(strcontrol.valustr=="")
{
record_ds.prev();//
button.enable(false);
flag=true;
}
elseif(flag==false)//if not null
{
record_ds.prev();
}
flag=false;
record_ds.refresh();
}