Our full technical support staff does not monitor this forum. If you need assistance from a member of our staff, please submit your question from the Ask a Question page.


Log in or register to post/reply in the forum.

Initializing strings in CRBasic


dryden Feb 29, 2012 10:03 PM

Using CRBasic for CR1000 version std24

I get a bong sound and an error message when I enter the following code line :
Public ProgDate As String * 8 = "02/28/12"

The error message is
line 108: You have declared one or more invalid variable names containing embedded spaces......

It compiles without objection when I compile and save. The example line in Help "Public" entry which uses 'StringVar' behaves identically.

Is there some alternate formatting that avoids the bong sound? Shall I just assume it will work and that the bong is a false indicator?


Dana Mar 2, 2012 08:51 PM

Hi Dryden,

What version of the Editor? I am not seeing a problem using the most recent release. I just copied your text above into my editor.

Dana


dryden Mar 2, 2012 11:03 PM

CRBasic Editor 2.9.0.22 on first blue page of About


Dana Mar 6, 2012 04:35 PM

With a copy of Dryden's program, I see the problem in 2.9 & 3.0, but not 3.1. So it looks like something that was resolved in LN 4.0 release.

Dana W.


dryden Mar 6, 2012 07:41 PM

As far as I can tell, the code works in the logger. Thank you for checking in to it.

Log in or register to post/reply in the forum.