Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

item.add / item.get question

Hi @ all Gurus,

i have created a form by screen painter and added three buttons. The first button is the cancel button, the second a print button (should print some things from this form) and a the third button should calculate prices.

If i add a button by Set oItem = oForm.Items.Add("2", it_BUTTON)a button with function "cancel" will be created. This works fine, but i created this button in screen painter and i want to get the cancel function to this button. I want do this by Set oItem = oForm.Items.Item(1) but this don't work.

And next, how can i set a user defind query to a button, e.g. when i klick on this button a query will be started and a martix in this form should be filled with datas from this query. Can anyone show me VB6 Code to realize this?

Thanks a lot!

Regards Juergen

Former Member
Not what you were looking for? View more on this topic or Ask a question