Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem with stringVar in Record Selection

Status
Not open for further replies.

Colvic

Programmer
Nov 4, 2005
24
0
0
NO
Hi,

can someone help me with this problem?

In my "Record Selection" I have this sentence:

{World.Land} like ["Sweeden", "Denmark", "USA"]

This sentence work fine, but I will store the variable in a Formula Fields "varLand"
like this:

iLand := ["Sweeden", "Denmark", "USA"]


and in "Record Selection" I use this sentence:

{PROBSUMMARYM1.CLOSED_BY} like [{@varLand}]

But it will not work.

Thanks in advance.
 
Try
Code:
{PROBSUMMARYM1.CLOSED_BY} in {@varLand}

To test, put the statement in a formula field and display it beside unselected date. It should come out as True or False and you can fine-tune if necessary.

It helps to give your Crystal version - 8, 8.5, 9, 10, 11 or whatever. Methods sometimes change between versions, and higher versions have extra options.


[yinyang] Madawc Williams (East Anglia, UK). Using Windows XP & Crystal 10 [yinyang]
 
Hi Madawc,
thank you.

It works.

Sorry, the sentence should be
{World.Land} like [{@varLand}]

In the Formula Fields "varLand" the sentence is now:

stringVar Array myArray := ["Sweeden", "Denmark", "USA"];
Join(myArray,",");
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top