When you run into these things, best to just workaround. You will bang
your had trying to figure out why. It would seem that one of those
nested methods is throwing an exception in witango.exe that isn't
being trapped properly, and it crashes. There are many places like
that, you found one, now test your date end, before putting it in that
nested set of tags, and it won't crash.
--
Robert Garcia
President - BigHead Technology
VP Application Development - eventpix.com
13653 West Park Dr
Magalia, Ca 95954
ph: 530.645.4040 x222 fax: 530.645.4040
[EMAIL PROTECTED] - [EMAIL PROTECTED]
http://bighead.net/ - http://eventpix.com/
On Dec 4, 2007, at 7:02 PM, Wayne Irvine wrote:
Witango 5.5 on the Mac is pretty intolerant. If you have a datasource
problem it crashes.
But this is a new one. I have a form with Date and DateEnd fields.
If you only enter a Date value and leave DateEnd blank it kills
Witango.
Here is the offending code:
<@ASSIGN NAME=date SCOPE=local VALUE='<@if exp="<@left str=<@arg date
format='datetime:%Y'> numchars=3><200"><@arg date
format='datetime:%d/%m/'>200<@right str=<@arg date format='datetime:
%Y'>
numchars=1><@else><@arg date format="datetime:%d/%m/%Y"></@if>'>
<@ASSIGN NAME=dateEnd SCOPE=local VALUE='<@if exp="<@left str=<@arg
dateEnd
format='datetime:%Y'> numchars=3><200"><@arg dateEnd
format='datetime:%d/%m/'>200<@right str=<@arg dateEnd
format='datetime:%Y'>
numchars=1><@else><@arg dateEnd format="datetime:%d/%m/%Y"></@if>'>
<@ASSIGN NAME=date SCOPE=local VALUE='<@if expr="<@ISDATE VALUE=<@VAR
date>>"><@VAR date><@ELSE></@IF>'>
<@ASSIGN NAME=dateEnd SCOPE=local VALUE='<@if expr="<@ISDATE
VALUE=<@VAR
dateEnd>>"><@VAR dateEnd><@ELSE></@IF>'>
(It's actually in a Assign Action but I converted to text)
I realise it's a bit clutzy (I didn't write it BTW) but I still
don;t know
why it kills Witango. Anyone know?
Wayne
Byte Services Pty Ltd
http://www.byteserve.com.au/
[EMAIL PROTECTED]
Ph 02 9960 6099 Mob 0409 960 609 Fax 02 9960 6088
________________________________________________________________________
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf
________________________________________________________________________
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf