Operating System - OpenVMS
1828458 Members
3441 Online
109978 Solutions
New Discussion

Re: String constants in SDL

 
SOLVED
Go to solution
Brian Reiter
Valued Contributor

String constants in SDL

Hi Folks,

Is it possible to define a string constant using SDL? If so, can anyone tell me the syntax, the documentation isn't really clear to whether or not its possible.

cheers

Brian
2 REPLIES 2
Hoff
Honored Contributor
Solution

Re: String constants in SDL

Try:

CONSTANT strnam EQUALS STRING "This ""quoted"" string 'is' a test";

That's the ancient VAX SDL rune; I haven't tested this on a recent Alpha SDL version.

The ability to declare string descriptors is a comparatively recent feature to Alpha SDL. I don't know if that mechanism shipped out in the Alpha SDL V2.3 kit off-hand, but it was added very recently.

You can also emulate various structures with an iflanguage end_iflanguage construction, or potentially through post-processing of the SDL file.

The Alpha SDL V2.3 kit is on the Freeware. Don't be fooled by the Alpha SDL name, it's a kit containing SDL images for all three architectures.

Brian Reiter
Valued Contributor

Re: String constants in SDL

Thanks for that :)

Must have been the combination I didn't try.