Skip to content

Instantly share code, notes, and snippets.

@craibuc
Last active December 30, 2015 10:19
Show Gist options
  • Select an option

  • Save craibuc/7815565 to your computer and use it in GitHub Desktop.

Select an option

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.
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