Print Page | Close Window

Using basic syntax

Printed From: Crystal Reports Book
Category: Crystal Reports 9 through 2020
Forum Name: Technical Questions
Forum Discription: Formulas, charting data, Crystal syntax, etc.
URL: http://www.crystalreportsbook.com/forum/forum_posts.asp?TID=11780
Printed Date: 01 May 2024 at 8:09pm


Topic: Using basic syntax
Posted By: Keikoku
Subject: Using basic syntax
Date Posted: 03 Dec 2010 at 3:29am
I read on http://www.crystalreportsbook.com/Forum/new_topic_form.asp?FID=7 - here that crystal supports basic syntax, so I decided to try it out with the example it gives


Dim Var As String
Var = "This is a string"


But then crystal tells me "the special variable 'Formula' must be assigned within the formula"

Did I do something wrong? Or forget to do something?
I set the syntax to basic, figuring that would be enough.



Replies:
Posted By: lockwelle
Date Posted: 03 Dec 2010 at 3:50am
you can do that, but since it is the last line in the formula, it needs to return something, and that something is always called 'formula' in basic syntax.
 
At least this is what I would presume is happening.  I don't bother with basic syntax...don't get me wrong, I like basic, just that it is simpler for me  to use Crystal syntax.
 
HTH


Posted By: Keikoku
Date Posted: 03 Dec 2010 at 3:54am
Oh. Alright, maybe I'll stick with crystal instead.
Seems like both provide the same amount of built-in functions to work with anyways.


Posted By: lockwelle
Date Posted: 03 Dec 2010 at 4:05am
it's up to you.  It's like C# vs VB.Net, they both do the same thing with pretty much the same command, it is just a matter of which way you want to type.
 
Same goes for Crystal vs Basic syntax, each has it's quircks, but they are both basically the same.



Print Page | Close Window