Last active
December 30, 2015 10:19
-
-
Save craibuc/7815565 to your computer and use it in GitHub Desktop.
Determines if a string value is contained in an array of strings in Crystal Reports.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Function (Stringvar Array Items, Stringvar Value) | |
| Numbervar i; | |
| Booleanvar flag:=False; | |
| If Ubound(Items)>0 Then | |
| For i := 1 To Ubound(Items) Do ( | |
| If Items[i]=Value Then ( | |
| flag:=True; | |
| Exit For | |
| ) | |
| ) | |
| //End If | |
| ; | |
| //return result | |
| flag; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment