KB-29409: Creating a table link at runtime, via scripts.

Question:

How can I create a table link in runtime via scripts?

Solution:

To do so, you must first use CreateLink method to create the link, and pass parameter “4” to indicate a table connection. Then, you must use InsertRow method to add rows, values and limits to the table.

Example:

set obj = Screen.Item("Rectangle1")
set bind = obj.Links.CreateLink("ForegroundColor", "Data1.InternalTag1.Value", 4)
bind.InsertRow()
bind.Item(1).Value = RGB(255,0,0)
bind.Item(1).Min = 0
bind.Item(1).Max = 10
bind.InsertRow()
bind.Item(2).Value = RGB(0,255,0)
bind.Item(2).Min = 11
bind.Item(2).Max = 20
bind.InsertRow()
bind.Item(3).Value = RGB(0,0,255)
bind.Item(3).Min = 21
bind.Item(3).Max = 30

Obs.: Attached is a sample application developed with E3 version 3.1 Build 270.

Attachments:

KB29409en.zip

Print Friendly, PDF & Email

Este artigo foi útil? Was this helpful?

Classificação média - Average rating 0 / 5. Count: 0

Leave a Reply

Your email address will not be published.Required fields are marked *