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