Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: val() function Post Reply Post New Topic
Author Message
Beau
Newbie
Newbie


Joined: 06 May 2014
Online Status: Offline
Posts: 2
Quote Beau Replybullet Topic: val() function
     Posted: 06 May 2014 at 11:53am
Hello All,
I'm quite new to Crystal Reports. Can someone tell me as to why val() of a string with a value "24 hrs" returns a value of 24 but for a string "<= 24 hrs. " returns a value of 0?
Thank you in advance for your help.
IP IP Logged
kevlray
Admin Group
Admin Group
Avatar

Joined: 29 Oct 2009
Online Status: Offline
Posts: 1587
Quote kevlray Replybullet Posted: 06 May 2014 at 12:31pm
If I recall correctly, val will only work 'correctly' if the string begins with a numeric.
IP IP Logged
Beau
Newbie
Newbie


Joined: 06 May 2014
Online Status: Offline
Posts: 2
Quote Beau Replybullet Posted: 06 May 2014 at 1:05pm
Thank you kevlray!
IP IP Logged
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum