Home
Crystal Reports Training
Crystal Reports XI
Crystal Reports .NET
Crystal Reports Forum
News
Tech Support
Active Topics
Memberlist
Search
Help
Register
Login
Technical Questions
Crystal Reports Forum
:
Crystal Reports 9 through 2020
:
Technical Questions
Topic: Setting Text Value in Code
Oldest Post First
Newest Post First
Author
Message
vgillis
Newbie
Joined: 05 Mar 2013
Online Status: Offline
Posts: 10
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 Logged
DBlank
Moderator
Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
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 Logged
Printable version
Forum Jump
-- Select Forum --
Announcements
Talk with the Author
Self-Publishing
Job Postings
New feature request
Report Design
Data Connectivity
Technical Questions
Tips and Tricks
Crystal Xcelsius
Report Design
Data Connectivity
Writing Code
Tips and Tricks
Report Design
Data Connectivity
Writing Code
Tips and Tricks
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.
HOME
|
FREE EBOOK
|
PROGRAMMING GUIDE
|
PURCHASE
|
REVIEWS
|
CONTACT ME
|
FAQ
|
LINKS
|
CLICK PLAYS
|
COACH FORUMS
|
TROPICAL FISH
© 2004-2024 Brian Bischof. All Rights Reserved.