Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations sizbut on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do you declare a variable using Dim?

Status
Not open for further replies.

arachnoid

Programmer
Jun 14, 2002
108
US
The title says it all.

Any insight will be appreciated.
 
You don't, you just use:

Stringvar MyString;
or you can qualify the variable with one of the following;

local
global
shared

so:

local Stringvar MyString;

Check the help file under variable scopes.

-k kai@informeddatadecisions.com
 
If your Crystal doesn't like SV's solution...

In the formula editor:
Next to the "?" you should see either "Crystal Syntax" or Basic Syntax" Change this to the one you prefer using.

To change it for all of your new reports:
Go to File/Options... On the "Reprting" ta, the same option is available at the bottom. Mike
If you're not part of the solution, you're part of the precipitate.
 
Then why does it use the Dim statement in the Crystal Users Guide?

 
If the User's Guide is anyhting like the Help file, it shows both Basic and Crystal syntax examples. I think it's because some people like (myself included) the Crystal Syntax (I have very little Basic background) and other users have the Basic background and are more comforable with Basic. Mike
If you're not part of the solution, you're part of the precipitate.
 
I didn't realize that you might be using Crystal's Basic syntax, it works like this:

Dim MyString As String

I would suggest using Crystal syntax as most developers are familiar with it, so your technical resources are much better.

They're not that much different, Crystal syntax is very basic like anyway.

-k
kai@informeddatadecisions.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top