Ask Your Question
0

Need Build-in Function about "FIND()" and "SEARCH()"

asked 2012-09-14 12:24:26 +0200

Kenjiro43 gravatar image Kenjiro43
1 2

updated 2013-02-23 01:14:02 +0200

qubit gravatar image qubit flag of United States
5816 3 50 43

I want to create my function in LibreOffice Calc. How do i find text? I couldn't use "FIND()" and "SEARCH()" just like i use in Calc. Did libreoffice have build-in function to find text?

Thank You
Kenjiro43

UPDATE: When I call FIND i got error. They said function FIND didn't exist

For example:

Dim temp as Integer
temp=FIND("-","This-is string")

I got error

delete close flag offensive retag edit

Comments

Of course this is a mistake. In BASIC is written as: temp=InStr("This-is string","-")

JohnSUN ( 2012-09-14 17:10:12 +0200 )edit

Where i can find references about libreoffice BASIC language?

Kenjiro43 ( 2012-09-14 17:26:01 +0200 )edit

Help or very good book of Andrew Pitonyak - English Macro Document

JohnSUN ( 2012-09-14 17:51:57 +0200 )edit

2 Answers

Sort by » oldest newest most voted
0

answered 2013-02-23 01:14:59 +0200

qubit gravatar image qubit flag of United States
5816 3 50 43

(comment -> Answer for Resolution)

@JohnSUN writes:

Of course this is a mistake. In BASIC is written as: temp=InStr("This-is string","-")

link delete flag offensive edit
0

answered 2012-09-14 12:28:12 +0200

RQuadling gravatar image RQuadling
3 2

I use FIND() ...

=LEFT(A1, FIND(" / ", A1))

I've just used this function to create a clipped version of a description, truncating the text to the first ' / '.

link delete flag offensive edit

Login/Signup to Answer

Donate

LibreOffice is made available by volunteers around the globe, backed by a charitable Foundation. Please support our efforts: Your donation helps us to deliver a better product!

Question tools

Follow

subscribe to rss feed

Stats

Asked: 2012-09-14 12:24:26 +0200

Seen: 310 times

Last updated: Feb 23