Quantcast
Channel: VBForums - Reporting
Viewing all articles
Browse latest Browse all 594

Extract a string

$
0
0
Hi

I have written the below in Crustal reports Designer Code Section

If Field4.Value = "Maxim Ltd " Then
Set Picture1.FormattedPicture = LoadPicture("d:\test\max.jpg")
Else
Set Picture1.FormattedPicture = LoadPicture("d:\test\man.jpg")
End If

Instead of testing the condition with "Maxim Ltd" . i want to compare with first 3 characters of fields2.value i.e if "Max" then

Set Picture1.FormattedPicture = LoadPicture("d:\test\max.jpg")
Else
Set Picture1.FormattedPicture = LoadPicture("d:\test\man.jpg")
End If

Can we use Mid function is Crystal reports Designer Code section.

Thanks

Viewing all articles
Browse latest Browse all 594

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>