NISUS Archives

April 2011

NISUS@LISTSERV.DARTMOUTH.EDU

Options: Use Monospaced Font
Show Text Part by Default
Condense Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Mime-Version:
1.0 (Apple Message framework v1084)
Content-Type:
text/plain; charset=iso-8859-1
Date:
Mon, 4 Apr 2011 01:27:11 +0200
Reply-To:
Subject:
From:
Þorvarður Davíðsson <[log in to unmask]>
Content-Transfer-Encoding:
quoted-printable
Sender:
A discussion list for Nisus & NisusWriter <[log in to unmask]>
Comments:
Parts/Attachments:
text/plain (34 lines)
Hello,

I make a search in a macro and need to know whether something was found or not. How can I do that?

This tells me whether some text is selected in the document

$textExpression = Read Selection
if $textExpression == ''
	prompt "You need to select some text."
	exit
End 


It works fine, so why does *this* not work?

$textFound = Read Selection
if $textFound == ''
	prompt "Nothing found."
	exit
End 


I have also tried 

if $textFound >1
or
if $textFound >0


but that does not make any difference.



Žorvaršur

ATOM RSS1 RSS2