JoelS Posted June 11, 2002 Share Posted June 11, 2002 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 ] Quote Link to comment
MullinRJ Posted June 11, 2002 Share Posted June 11, 2002 This question is to VW tech support: What is the TYPE definition of <CRITERIA>? [ 06-11-2002: Message edited by: MullinRJ ] Quote Link to comment
Recommended Posts
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.