PDA

View Full Version : ObjectPal: action


Nikolaus
09-16-03, 07:53
Hello,

the down-mentioned program is ok, but only the last 2 lines don't work.
Is it possible that ActionEditCommands don't work in Forms or do I have
another problem ?

Thanks for your help

Klaus



method init(var eventInfo Event)
Var
siteForm Form
endVar

if siteForm.attach("Formular : KundForm.fsl") then
if siteForm.isVisible() then
siteForm.moveTo()
else
siteForm.show()
endif
else
siteForm.open("KundForm.fsl")
endif

siteForm.action(DataBegin )
siteForm.action(DataFastForward)

siteForm.action(FieldLast)
siteForm.action(FieldUp )

siteForm.action(DataBeginEdit)

siteForm.action(SelectSelectAll)

siteForm.action(EditDeleteSelection)
siteForm.action(EditPaste)

endMethod

Shores
10-09-03, 14:19
You can try to send the action directly to the field you need:

Instead of this:

siteForm.action(FieldLast)
siteForm.action(FieldUp )

siteForm.action(DataBeginEdit)

siteForm.action(SelectSelectAll)

siteForm.action(EditDeleteSelection)
siteForm.action(EditPaste)

Try this:

siteForm.nameOfTheField.action(DataBeginEdit)
siteForm.nameOfTheField.action(SelectSelectAll)
siteForm.nameOfTheField.action(EditDeleteSelection )
siteForm.nameOfTheField.action(EditPaste)

Bye!