That's in the category of "just the way Director works".  The symbol table stores the 
case of the first occurrence of any new symbol.  Any future use/lookup is 
case-insensitive, but the original case will always be returned.  So you evidently had 
a preexisting #pt.  Now you get...

put symbol ( "PT" )
-- #pt
put symbol ( "pT" )
-- #pt
put symbol ( "Pt" )
-- #pt

and so on.

At 1353 -0400 05/13/2004, Mendelsohn, Michael wrote:
>Hi list...
>
>Here's a weird one.  The lingo below generates a preferences file if it
>doesn't previously exist.  The default prefs file (a prop list) is
>theHeaderString.  All well and good until it is read back in by FileIO
>where property pT morphs from pT in the first list to pt in the second
>list.
>[#pEnabled:"all", #pEmail:"", #pMgrEmail:"", #pLastAt:[#pC:"", #pM:"",
>#pS:"", #pT:""], #pBeenTo:[:]]
>[#pEnabled: "all", #pEmail: "", #pMgrEmail: "", #pLastAt: [#pC: "", #pM:
>"", #pS: "", #pt: ""], #pBeenTo: [:]]
>
>Why did property pT become pt?
>
>Below is my lingo at that point.
>
>Thanks,
>Michael M.
>
>theHeaderString = "[#pEnabled:" & QUOTE & "all" & QUOTE & ", #pEmail:" &
>QUOTE & QUOTE & ", #pMgrEmail:" & QUOTE & QUOTE & ", #pLastAt:[#pC:" &
>QUOTE & QUOTE & ", #pM:" & QUOTE & QUOTE & ", #pS:" & QUOTE & QUOTE & ",
>#pT:" & QUOTE & QUOTE & "], #pBeenTo:[:]]"    
>gFileIO.writeString(theHeaderString)
>theError = gFileIO.status()
>if theError <> 0 then
>    alert("X")
>else  
>    gFileIO.openFile(pSavedFiles.pProgressPath, 0)
>    gFileIO.setPosition(0)
>    pProgress = value(gFileIO.readFile()) -- morphs to pt from pT
>end if
>...
[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email [EMAIL 
PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping 
with programming Lingo.  Thanks!]

Reply via email to