- Mark as New
- Follow
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report
Hi,
Is this a code fragment from the click event of the "Delete Last Row" button?, I think you just need to swap the "=<" to "<=", this should have given you a syntax error, or is this just from getting the code into the forum?,
Anyway, try this in the delete button click event;
Page1.Subform2.Table1._Row2.removeInstance(Page1.Subform2.Table1._Row2.count - 1);
if (Page1.Subform2.Table1._Row2.count <= 0)
{
this.presence = "invisible";
}
and this in the add button click event;
Page1.Subform2.Table1._Row2.addInstance(true);
if (Page1.Subform2.Table1._Row2.count > 0)
{
DeleteLastRow.presence = "visible";
}
Bruce
Views
Replies
0 Likes
Total Likes