PDA

View Full Version : Special Characters part 2



NewsArchive
08-19-2008, 02:01 AM
Ok, ran into another special character issue.
Set Variable %PWD% to "abc#def#ghi#jkl" fails on compile.
error GEN1020: Unknown string resource name: def

My solution so far has been to:
Set Variable %PWD% to "abc#"
Set Variable %PWD% to "def#" (append)
Set Variable %PWD% to "ghi#" (append)
Set Variable %PWD% to "jkl" (append)

This appears to work.

Any ideas?

Glenn Paschal

NewsArchive
08-19-2008, 02:01 AM
Glenn,

> Ok, ran into another special character issue.
> Set Variable %PWD% to "abc#def#ghi#jkl" fails on compile.
> error GEN1020: Unknown string resource name: def
>
> My solution so far has been to:
> Set Variable %PWD% to "abc#"
> Set Variable %PWD% to "def#" (append)
> Set Variable %PWD% to "ghi#" (append)
> Set Variable %PWD% to "jkl" (append)
>
> This appears to work.
>
> Any ideas?

Definitely a compiler limitation. The compiler assumes that #def# and #ghi#
are text resources. We'll see what we can do for the next build.

Friedrich

NewsArchive
10-17-2008, 12:56 AM
You truely are a gentilman and a scholar.

and, i probably misspelled both of those... however...

Programmers need not spell acurately... only consistantly.

Glenn Paschal

NewsArchive
10-17-2008, 12:57 AM
Compilers are brutal editors.


> Programmers need not spell acurately... only consistantly.


--
Russell B. Eggen
www.radfusion.com
Skype Clarion chat: http://tinyurl.com/2273lm

NewsArchive
12-12-2009, 02:29 AM
I noticed this is still a problem in ver 7.
Just hit it again.
Any word on when this might be fixed?

Thanks,
-Glenn.

NewsArchive
12-13-2009, 07:34 AM
Glenn,

> I noticed this is still a problem in ver 7.
> Just hit it again.
> Any word on when this might be fixed?

We'll document this restriction in the next build.

When setting a variable to "abc#def#ghi#jkl", the compiler assumes that
#def# and #ghi# are "text resources". Because both text resources are not
defined, the compiler (correctly) reports it as an error.

Friedrich