From 44613a0a000d472bf3e2e88854acc2f6ec01cede Mon Sep 17 00:00:00 2001 From: Tom Verbeek Date: Mon, 11 Jun 2001 12:30:33 +0000 Subject: fixed dim bug and removed msgboxes --- wizards/source/template/Autotext.xba | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'wizards/source/template') diff --git a/wizards/source/template/Autotext.xba b/wizards/source/template/Autotext.xba index 4f18ed757289..f7ca325e1895 100644 --- a/wizards/source/template/Autotext.xba +++ b/wizards/source/template/Autotext.xba @@ -2,11 +2,12 @@ Public UserfieldDataType(14) as String Public oDocument as Object +Public oCursor as Object Public BulletList(7) as Integer Sub Main() ' Initialization... - BasicLibraries.LoadLibrary("Tools") + BasicLibraries.LoadLibrary("Tools") UserfieldDatatype(0) = "COMPANY" UserfieldDatatype(1) = "FIRSTNAME" @@ -129,9 +130,6 @@ Dim MaxIndex as Integer oPlaceholder = oDocument.CreateInstance("com.sun.star.text.TextField.JumpEdit") sFoundList() = ArrayoutofString(sFoundContent, ":" & chr(34),MaxIndex) ' Delete The Double-quotes - msgbox(DeleteStr(sFoundList(2),chr(34))) - msgbox(DeleteStr(sFoundList(1),chr(34))) - oPlaceHolder.Hint = DeleteStr(sFoundList(2),chr(34)) oPlaceHolder.placeholder = DeleteStr(sFoundList(1),chr(34)) oCursor.Text.InsertTextContent(oCursor,oPlaceholder,True) -- cgit v1.2.3