To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=69732





------- Additional comments from [EMAIL PROTECTED] Fri Jul 13 11:04:30 +0000 
2007 -------
Using the macro below will give an error at 'gettextfieldmaster' 
It works only if the commented line is active. After the fix the macro will work
as expected. 

(Note: The variable name "mymaster" has to be changed at each call or the
related field type has to be deleted in the fields dialog)

Sub Main
varfield = 
thiscomponent.createinstance("com.sun.star.text.TextField.SetExpression")
varfieldtype =
thiscomponent.createinstance("com.sun.star.text.FieldMaster.SetExpression")
varfieldtype.name = "mymaster"
varfield.attachTextFieldMaster(varfieldtype)
'varfield.attach( thiscomponent.text.getstart )
xtest = varfield.gettextfieldmaster
End Sub


---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to