How to delete input field? [closed]

asked 2014-02-21 13:01:55 +0200

gma gravatar image

updated 2015-09-12 12:02:48 +0200

Alex Kemp gravatar image
  dim Field as object
  Field = ThisComponent.createInstance("com.sun.star.text.TextField.Input")
  Field.Hint = "Field1"
  Field.Content = "abc"
  ThisComponent.getText.InsertTextContent(ThisComponent.getText.createTextCursor, Field, True)
  Field.getAnchor.getText.RemoveTextContent(Field)

Field was not deleted! But why?

LibreOffice 4.2 windows. In OO it works fine.

edit retag flag offensive reopen merge delete

Closed for the following reason question is not relevant or outdated by Alex Kemp
close date 2016-02-19 11:37:22.487567

Comments

To delete it, you should try ThisComponent.getText().RemoveTextContent(Field)

librebel gravatar imagelibrebel ( 2017-08-25 03:28:24 +0200 )edit