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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CASE STATEMENT FOR IMAGES PATH

Status
Not open for further replies.

mibeach7

MIS
Jun 18, 2003
35
US
i WILL BE PASSING IN A PARAMETER FROM AN ASP PAGE FOR GROUP NUMBER, THE CASE STATEMENT SHOULD THEN EVALUATE AND DISPLAY THE CORRECT IMAGE ON THE REPORT. NOT SURE IF IMAGES NEED TO BE IN A DATABASE OR NOT. ALSO, THE BASIC CASE STATEMENT GETS ERROR MESSAGES. DO I NEED SEMICOLONS AND WHY?
tHANKS FOR YOUR IDEAS.... HAPPY CRYSTALLING TOO ALL!!

Select Case {PHARM.ACTIVE_GROUP.GROUP_NUMBER}
Case Is = 'MBA11168' //ALE
image = \\griswold\PTI Web Site\ Case Is = 'NPSAHC' //AHC
image = \\griswold\PTI Web Site\ Case else
image = ""
end select
 
I believe that Crystal syntax is the following:

Select Case {PHARM.ACTIVE_GROUP.GROUP_NUMBER}
Case 'MBA11168' : yourimage1
Case 'NPSAHC' : yourimage2
default : default-samedatatype

I can't answer your question about how to work with images though.

-LB

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top