From: Lane S. <la...@op...> - 2004-03-01 23:56:56
|
Keats wrote: >I'd be willing to change the default behaviour of $Form to return empty >strings instead of nulls, as this seems more useful. Any objections? > No. I think throwing an exception is a harsh error in the current context. Do it! -Lane > >I would also add a method to check if a parameter exist, e.g., >$Form.Exists.formVar. > >btw, what problems are you having with FastWriter? You should be able to >just ignore it altogether with 2.0. > >Keats >----- Original Message ----- >From: "Tim Pizey" <ti...@pa...> >To: <web...@li...> >Sent: Friday, February 27, 2004 10:09 AM >Subject: Re: [WebMacro-user] Problems upgrading Melati to WebMacro 2.0b1 > > >On Friday 27 February 2004 2:50 pm, Keats wrote: > > >>Hey Tim, >> >>I'm not aware of any change to the $Form tool, but perhaps some other >>change impacted this. >> >> > >Something has definitely changed since 1.1, >$Form.unusedVariable produced "", now throws exception. > > > >>Anyway the recommended approach AFAIK is: >> >>#if ($Form.unusedVariable){ -- do something -- } >> >>This is a bit tedious. I have added a method to the Form class called >>getNoNull(), so you can just say: >> >> $Form.NoNull.someField >> >>which will return the value of "someField" or an empty string. I can >>commit this if noone objects. >> >> > >What about changing the behavior of $Form >(not the general behaviour of null handling) ? > > > >>Keats >> >> > > >thanks >TimP >I am having a horrible time with the FastWriter code. > > > >------------------------------------------------------- >SF.Net is sponsored by: Speed Start Your Linux Apps Now. >Build and deploy apps & Web services for Linux with >a free DVD software kit from IBM. Click Now! >http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click >_______________________________________________ >Webmacro-user mailing list >Web...@li... >https://lists.sourceforge.net/lists/listinfo/webmacro-user > > > -- Lane Sharman For Protection from SPAM and Virus, Extend to the Network Your Perimeter of Defense: http://www.opendoors.com 858-755-2868 |