Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2020 : Technical Questions
Message Icon Topic: Using basic syntax Post Reply Post New Topic
Author Message
Keikoku
Senior Member
Senior Member


Joined: 01 Dec 2010
Online Status: Offline
Posts: 386
Quote Keikoku Replybullet Topic: Using basic syntax
    Posted: 03 Dec 2010 at 3:29am
I read on 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.

Edited by Keikoku - 03 Dec 2010 at 3:30am
IP IP Logged
lockwelle
Moderator
Moderator


Joined: 21 Dec 2007
Online Status: Offline
Posts: 4372
Quote lockwelle Replybullet 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
IP IP Logged
Keikoku
Senior Member
Senior Member


Joined: 01 Dec 2010
Online Status: Offline
Posts: 386
Quote Keikoku Replybullet 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.
IP IP Logged
lockwelle
Moderator
Moderator


Joined: 21 Dec 2007
Online Status: Offline
Posts: 4372
Quote lockwelle Replybullet 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.
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.