Difference between @string and @ + lines?

Sometimes, when I want to pass a value to a string reference, I use @ string / blabla, but sometimes it gives me an error that I can run the code if I do not change @string to @+string What is the difference between them? Any answer would be so helpful. Thanks at Advance!

+7
source share
3 answers

+ means that this identifier will be added to the resources. You declare that it exists somewhere and use it simultaneously. Not sure if this really applies to strings, but I think it does. This explains why you are not getting errors.

And I doubt it is useful to use + to make it work. You can get a string declaration without the actual contents of the string, which is likely to crash.

If it does not work without + , try creating / updating a project. If the string is defined in one of your xml files, you can use @string

+6
source

@String - values ​​obtained from the string file.

+1
source

Hey guys, use the latest elipse, there is a little difference between it and the old ones. I think the zapl answer is correct, the + sign should add it to the links. Hi guys!

0
source

All Articles