Reload one specific textbox on the form

Simple question I think, I need a way to do this instead of using oForm.Reload and messing the navigation.

oForm = oDoc.DrawPage.Forms.getByName("MainForm")
Text = oForm.getByName("textbox")
Text.Reload()

Basically this would reload only one control of the form and not the whole form. Is there a way to write this macro how I want it?

I tried the way it is written on the example but unfortunately it didn’t work.

Have a look at the properties of “Text” in your macro by mri or xray. There is no property “reload”.

You could only reload the complete saved row.

DIM var AS VARIANT
var = oForm.getBookmark()
loRow = oForm.getRow()
oForm.reload()
IF loRow = 0 THEN
   oForm.MoveToInsertRow()
ELSE
   oForm.MoveToBookmark(var)
END IF

You could reload the form with this code. So the form will be set to the current row again after reloading.

1 Like