Setting var = undefined has no effect. They are part of a class object
being sent thru the gateway so maybe that is why. Some objects in the
parent object may be null while others may not be. I will try deleting
the ones that need to be null and see what happens.

--- In [email protected], "Tracy Spratt" <[EMAIL PROTECTED]> wrote:
>
> What happens when you set the variable = undefined?  I would have
> expected this to work.
> 
> If you delete a variable: delete myVar;  then try to access it, it
> returns undefined.  Maybe you could use that behavior.
> 
> Tracy
> 
> -----Original Message-----
> From: [email protected] [mailto:[EMAIL PROTECTED] On
> Behalf Of Libby
> Sent: Wednesday, January 11, 2006 5:02 PM
> To: [email protected]
> Subject: [flexcoders] Null vs undefined vs ""
> 
> Hello people!
> This question is about Flex 1.5.
> 
> My app passes some String vars thru the Flex gateway to Java.
> When the var = undefined on the Flex side, it translates to null on
> the java side, which is great. When the var = "" (null String) on the
> flex side, it translates to a String("") on the java side, which ain't
> null. I would like to check for "" on the Flex side and convert those
> values to something that translates thru the gateway as a null object,
> but so far I can't get it to happen. Values are only undefined before
> they are used; once used and cleared out, they become "" and can
> evidently never be set back to undefined again.
> 
> So my actual question is, what can I set the object to be that will
> translate as null going thru the gateway? I have tried: 
> setting them to undefined;
> setting myVar = null;
> setting myVar = x  (an undefined variable);
> several other combinations.
> 
> Thanks,
> Libby
> 
> 
> 
> 
> 
> 
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives:
> http://www.mail-archive.com/flexcoders%40yahoogroups.com 
> Yahoo! Groups Links
>






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to