Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2020 : Technical Questions
Message Icon Topic: Setting Text Value in Code Post Reply Post New Topic
Author Message
vgillis
Newbie
Newbie


Joined: 05 Mar 2013
Online Status: Offline
Posts: 10
Quote vgillis Replybullet Topic: Setting Text Value in Code
    Posted: 06 Mar 2013 at 5:42am
Hi all.
I have a question that seems like it should be simple..
 
I want to set the text of a text box in code based on a condition in a formula
 
If strString = "N" then
textbox = "NOC"
else
textbox =  "
 
 
 
How do I do this? Please help.
 
 
Thanks!
 
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 06 Mar 2013 at 7:02am
you can either create a formula field and display it on the canvas (or insert it into a text box if you need to
If strString = "N" then "NOC"else ""
 
Or you can use a dispalya s formula on the strString field
If currentfieldvalue = "N" then "NOC"else ""
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.032 seconds.