Getting an error when using a LotusScript Library in a database

I have an issue with using a script library in my action (view… and have tried it on a form), I am getting a syntax error - variable not declared: GETALL

I have the following code in a view action:

(options)

Option Declare

Use “test”

Sub Click(Source As Button)

dim test as string

test = getAll(“help me”)

End Sub

The function in the LS library is:

Function getAll(test As String) As String

getAll = test

End function

This was a test I implemented after attempting to instantiate an object of a class which was in a script library stopped working during testing. I began receiving the same sort of errors trying to instantiate the object, which indicated that the library could not be accessed. I have manually recompiled all of the Lotusscript, resulting in the same error.

Subject: Works for me… case sensitive

I did exactly as you posted and don’t have a problem with it. Normally the biggest culprit that might explain your problem is the script library names are case sensitive. So if your script libary is Test… but you specified use “test” in you view action… it would not find your function in the script library

Subject: Copied elements to a new .nsf

It’s all good now. Just some issue with the database store itself, I guess.