633 views
in GUI Development by
A reference of string is defined in a class. How can set  a constant string to the reference by the IDE?

1 Answer

0 votes
by
 
Best answer

Hello,

do you mean with constant string the constant member intended to store a string value?

In such case, constant strings can't be changed. The initialization value of a constant has to be a constant expression (in case of a string this can be a literal like "hello world"). Initializing a constant with a value defined within a class is not possible.

Best regards

Paul Banach

Ask Embedded Wizard - Archive

Welcome to the Ask Embedded Wizard archive. This community forum served us well for many years, but we've evolved our support approach!

Your resources:

The Embedded Wizard Online Documentation provides comprehensive documentation, tutorials, examples and ready-to-use software packages.

For dedicated assistance, explore our Embedded Wizard Product Support.

You can still browse the valuable discussions from our community history here.

Embedded Wizard Website | Privacy Policy | Imprint

...