Print Page | Close Window

String Comparison

Printed From: Crystal Reports Book
Category: Crystal Reports 9 through 2020
Forum Name: Data Connectivity
Forum Discription: How to connect to data sources and export reports
URL: http://www.crystalreportsbook.com/forum/forum_posts.asp?TID=21804
Printed Date: 27 Apr 2024 at 9:39am


Topic: String Comparison
Posted By: Franc
Subject: String Comparison
Date Posted: 10 Dec 2015 at 7:13am

Heloo all
How can I compare two string in Crystal REPORTS 11?

database field = 'Z888888'
databsase field <> 'Z888888'


database field is
Character string
VARCHAR(n)

thanks in advance



Replies:
Posted By: praveeng
Date Posted: 27 Dec 2015 at 8:46pm
Hi,

As per my understanding, you want to categerize numbers and Varchars then use below logic,

If IsNumeric(Database_Field) then
     "Number field"
Else
     "Varachar Filed"

--Praveen G

-------------
Praveen Guntuka,
praveen_guntuka@yahoo.com



Print Page | Close Window