We help IT Professionals succeed at work.

Startswith in Crystal

rporter45
rporter45 asked
on
94 Views
Last Modified: 2015-01-29
Hi there,
I'd like to consolidate my coding and currently have:

or Not Isnull ({CnGf_1AttrCat_1.CnGf_1AttrCat_1_Import_ID})
and {CnGf_1AttrCat_1.CnGf_1AttrCat_1_Comments} startswith "K12-"
or Not Isnull ({CnGf_1AttrCat_1.CnGf_1AttrCat_1_Import_ID})
and {CnGf_1AttrCat_1.CnGf_1AttrCat_1_Comments} startswith "K17-"
or Not Isnull ({CnGf_1AttrCat_1.CnGf_1AttrCat_1_Import_ID})
and {CnGf_1AttrCat_1.CnGf_1AttrCat_1_Comments} startswith "K18-"

Is there are something similar to the "in" function that will allow me to say
Not Isnull ({CnGf_1AttrCat_1.CnGf_1AttrCat_1_Import_ID})
and {CnGf_1AttrCat_1.CnGf_1AttrCat_1_Comments} in (startswith ["K12-" , "K17", "K18"]) just to consolidate it to make it easier for future reference?

Thanks in advance,
CS
Comment
Watch Question

Professor Emeritus of MIS at Penn State Erie and Owner, Millet Software
CERTIFIED EXPERT
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION

Author

Commented:
Now that sounds better! I will try and get back to you - I have been staring at this way too long,

take care,
CS
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.