hi michael,

you have to use something like:

function getPropertyDescriptionList(){
 var pl = propList();
 tmp = propList();
 tmp.setAProp(symbol("comment"), symbol("What file to open?"));
 tmp.setAProp(symbol("format"), symbol("string"));
 tmp.setAProp(symbol("default"), "");
 pl.setAProp(symbol("pFile"), tmp);
 return pl;
}

you need to take into account in which world you reside. javascript doesn't know anything about lingo constructs like "#" or "[:]".

cheers,
valentin


Mendelsohn, Michael wrote:
Hi list...

I'm trying to convert a GPDL handler from lingo syntax to js syntax.
I
keep getting illegal character errors.  I've tried many different
combinations of quotemarks and pound signs denoting symbols as lingo
symbols or strings, but I can't figure this out.  Anyone done this
before?

Thanks,
- Michael M.


// goodness, gracious.

function getPropertyDescriptionList(){
 var theList = new Array();//[:];
 theList[#pFile] = [:];
 theList[#pFile][#comment] = "What file to open?";
 theList[#pFile][#format] = #string;
 theList[#pFile][#default] = "";
 theList[#pFile] = listy;
 return theList;
}


[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!]

[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