Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: remove brackets around a value Post Reply Post New Topic
Author Message
johnwsun
Senior Member
Senior Member


Joined: 28 May 2008
Location: Australia
Online Status: Offline
Posts: 179
Quote johnwsun Replybullet Topic: remove brackets around a value
    Posted: 07 Apr 2009 at 4:17pm
Hi
 
I wish to remove a pair of brackets ( ) around a value:
 
if left(gvalue,1) <> '('  then
    sub_value_amt := sub_value_amt + tonumber({@get_value})
else
   sub_value_amt := sub_value_amt - tonumber({@get_value})
 
 
Note:
{@get_value} contains a cost something like '($5.00)' , it's a string, after removing the brackets, then it converts to number type
 
Thanks in advance.
 
John
IP IP Logged
Post Reply Post New Topic
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



This page was generated in 0.031 seconds.