Alert box with lotusscript

Hi

I am not able to alert from the lotuscript code.

sHTML=“

” + lists( counter% ) +“
”

Print(||)

This above code is not giving alert box. What is the problem? Please suggest.

Subject: Alert box with lotusscript

You are not referring to the lotusscript variable sHTML in your Print statement.Try

Print |alert(“|& sHTML & |”);|

Subject: Alert box with lotusscript

This is not lotusscript this is javascript/HTML

Subject: RE: Alert box with lotusscript

Thanks for help.

Actually i m not getting the value. Please see the below code

Set doc=view.GetFirstDocument

While Not (doc Is Nothing)

lists( counter% )=doc.ColumnValues( 10 ) + Chr(10)

Set doc = view.GetNextDocument( doc )

counter% = counter% + 1

Wend

sHTML=“

” + lists( counter% ) +“
”

Print(||)

This above code is not giving me the resulted value. But values r very well coming in “lists( counter% )” but it only alerts me

“

”

Where is the problem???

Subject: RE: Alert box with lotusscript

You increment counter at the end of the while loop so that it points to an empty position in your array lists. You then reference the empty position when setting sHTML.

Subject: RE: Alert box with lotusscript

Hi

First, I will assume that you only want to alert you with the sHTML thing in order to know what’s in ('coz alert cannot display HTML).

Second, you increase counter% before ending the loop, so lists(counter%) is obviously empty while filling sHTML.

ian