I’m just starting out with embeding controls into notes forms (so pointing me to any documentation would be nice).
I’m having a problem setting and retrieving values from a control. When I have lotus script debuging on, it works fine. But if I don’t have debuging turned on, I can’t access the properties.
Here’s a simple form that recreates the problem (this is not the control I’m using, but it should be one that everyone has):
-
Create a new form
-
Create a new object
-
Select Control and then choose Microsoft Rich Textbox Control
-
Change the name of the control to ole1
-
Change (RunReadOnly) to True
-
Change the Text property to “TEST”
-
In the form’s Postopen put the following code
Sub Postopen(Source As Notesuidocument)
Dim ole1 As Variant
Set ole1 = source.GetObject("ole1")
Msgbox ole1.Text
End Sub
-
Turn on lotusscript debuging
-
Preview the document (you should see a msgbox with “TEST” in it)
-
Turn off lotusscript debuging
-
Preview the document (you should see a blank msgbox)