on 01-11-2004 10:40 AM
As I promissed in the webex session - I'm attaching a sample of using the LinkedBtn object.
Please notice that this object isn't available inside a matrix column (cell) for version 6.2-6.5
While creating your new form - you can add a linked button item.
'Adding link button code sample
Set Itm = Frm.Items.Add("Link1", it_LINKED_BUTTON)
'Allocating the new item in reference to other items on the form
Itm.Top = Frm.Items("EditTxt1").Top
Itm.Left = Frm.Items("EditTxt1").Left + Frm.Items("EditTxt1").Width + 5
'Connecting the linked button to the relevant field on the form
Itm.LinkTo = "EditTxt1"
Please tell me if you need more help.
Miki
Hi Miki,
I tried the above, but does not work. I am using 6.5 and VB. Any idea why?
The yellow arrow does not appear in my form.
regards,
LuanBoo
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Luan,
the above example seems to be incomplete.
You to also need set the Object you want to link to by using the LinkedObject property.
The sample below should work properly.
HTH Lutz Morrien
Answer: Use Link Button Item (orange arrow).
Set Itm = Frm.Items.Add("Link1", it_LINKED_BUTTON)
Itm.LinkTo = "EditTxt1"
Set linkBtn = Itm.Specific
linkBtn.LinkedObject = lf_BusinessPartner
Thank you for the INFO. Frank
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
107 | |
12 | |
11 | |
6 | |
5 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.