Jump to content
Developer Wiki and Function Reference Links ×

Variables in search criteria


JoelS

Recommended Posts

Why does this not work?

LN := GetLName(ActLayer);

Hide( ( (L= LN) & NOT (R IN ['Tree Record']) ));

It should be possible to substitute any string in the search criteria with the value returned by a variable.

This does not seem to apply for search criteria unless there is a special syntax for making programmatic searches.

Thanks in advance.

Joel.

----

I believe I found the problem myself.

The statement won't compile if the variable name is short - I used 15 character names for the variables used in search criteria and it works as expected.

Interestingly, reducing the name back down to two characters after a longer one has been entered and run is not a problem.

I have not yet determined what is the minimum length of variable name that can be used but 15 always works. Bug here somewhere.

Joel.

[ 06-13-2002: Message edited by: JoelS ]

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...