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 2022
:
Technical Questions
Topic: Strange Variable behavior
Author
Message
nalfein
Groupie
Joined: 07 Jul 2008
Online Status: Offline
Posts: 47
Topic: Strange Variable behavior
Posted: 18 Jun 2013 at 1:47am
Hi all
in one field I've put this code
booleanvar test=true;
I've put in the report and, surprise, when I make a preview it print false.
Dunno why and strager is that if I put this code
numbervar test=1;
It still print false!!! Is supposed to print 1 right?
Where am I wrong?
Thank you for answers
IP Logged
DBlank
Moderator
Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Posted: 18 Jun 2013 at 3:37am
you are not assigning the value you are checking to see if the value is True (or 1)
you useĀ := to assign the vaue
booleanvar test := true;
IP Logged
Sastry
Moderator
Joined: 16 Jul 2012
Online Status: Offline
Posts: 537
Posted: 18 Jun 2013 at 3:39am
HI
Here you are comparing test with true and test with 1, find below is how you can assign value to a variable
Wrong : test=true or test=1
Correct : test:=true; or test:=1
Thanks,
Sastry
IP Logged
nalfein
Groupie
Joined: 07 Jul 2008
Online Status: Offline
Posts: 47
Posted: 19 Jun 2013 at 9:24pm
You're all right.
Mistake was in the syntax.
Thank you
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
HOME
|
FREE EBOOK
|
PROGRAMMING GUIDE
|
PURCHASE
|
REVIEWS
|
CONTACT ME
|
FAQ
|
LINKS
|
PRIVACY
|
CLICK PLAYS
|
KONACAD
© 2004-2026 Brian Bischof. All Rights Reserved.