is below, I removed some of the IF statements that do not get called. If I
do a dump of the array at the top of the udf there is 41 elements in the
array. I can even use the same bit of code "listlen(fieldelement[25],"~")"
at the top of the UDF and it does not cause a problem. But this generates
and error:
The element at position 25 of dimension 1, of array variable
"FIELDELEMENT," cannot be found
What has changed that could cause this error??
<cffunction name="IsLF_multifield" hint="Returns true or false if the
passed field is a multi-part field">
<cfargument name="fieldelement" required="false" hint="The
list,array, or attribute struct containing a fields properties" default="">
<cfargument name="datatype" required="false" hint="struct,array or
attribute" default="">
<cfif datatype is "array">
<!--- chech for a match using array style --->
<cfif listlen(fieldelement[25],"~") gt 1 and
fieldelement[1] is "preset">
<cfreturn TRUE>
<cfelse>
<cfreturn FALSE>
</cfif>
</cfif>
<cfreturn false>
</cffunction>
Brook Davies
logiforms.com
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

