Hi Don,

On Mar 12, 2007, at 8:09 PM, Don Jungk wrote:

>> Instead of an array though, use string constants for the literals. No
>> code problems then, right?
>
> Hi Erick,
> I'm sort of self-taught and have always used string arrays for  
> things like
> this. I have not used constants. If you have a few spare minutes:
> 1) What is the difference between them?

I'm not positive how you guys are using string arrays, but if you use  
constants that are located in a global module, then you can have an  
easier time making your apps work in other languages and my guess on  
this spelling thing is that you can maybe export that module as XML  
for spell checking it in something like TextWrangler.

> 2) By "code problems" are you referring to text encoding?

No, I mean that if you have XML code (like HTML), then I think that  
TextWrangler will only check the spelling of text in between tags  
like this:

<someTag>s="Mississippi"</someTag>

What the others were pointing out is that now you have to worry about  
it spell checking all of the code that occurs within the tag. My  
guess, and I'll admit this is only a guess, is that if you constants,  
then you'll have something like this:

<someTag>Mississippi</someTag>

And then when you spell check it in TextWrangler, it will check  
Mississippi not s="Mississippi". But golly, I just checked this on my  
own and you can't export a module alone as XML (just the complete  
project), so there goes that idea. Sorry for the confusion. I suppose  
you could export the whole project and then look through the XML for  
your constants module and try to spell check just that text. Long- 
winded way of saying RB needs spell check, I guess. :-)

Erick
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to