I will have to put it my set of tools to think of, in the past I have always used filters, and checked numrows or resulting array.

-- 

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

On Oct 24, 2006, at 7:38 AM, Robert Shubert wrote:

If you use a 2-dimentional array, the value will be checked against all cells.

 

Also, you can  use the old <@VAR my_array[*,1]> or <@VAR my_array[2,*]> to designate one column/row of a two-dimensional array on-the-fly.

 

Robert

 


From: Stefan Gonick [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 24, 2006 9:49 AM
To: [email protected]
Subject: Re: Witango-Talk: Contains

 

Contains only works on one column or one row arrays.

At 11:50 PM 10/23/2006, you wrote:

Yes, I see that, just looked at docs. Haven't used it that way, and it doesn't describe if and how it works on arrays with more than one column, and how to specify that column. Do you use it this way?

--

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 Oct 23, 2006, at 7:36 PM, Stefan Gonick wrote:


Actually, contains does work on arrays.

At 09:44 PM 10/23/2006, you wrote:

contains is a string function, not an array function. It checks if a piece of text is in another piece of text. Take a look at <@filter>

--

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 Oct 23, 2006, at 6:27 PM, David Mark Weiss wrote:


Hi,

I would as I create a dynamic "select " statement, i would like to see if the option value is IN an array. or if the array contains the field as I loop through.


I have tried:

<@if expr="<@var name="array2"> contains @@list[<@currow>, 1]">
do nothing
<@else>
<option value="@@list[<@currow>, 1]">@@list[<@currow>, 1]</option>
</@if>

No Joy.

Can someone tell me what I am doing wrong?

Thanks for the help


Mark Weiss
http://trustthechildren.blogspot.com



 
________________________________________________________________________
TO UNSUBSCRIBE: Go to
 
http://www.witango.com/developer/maillist.taf



 
________________________________________________________________________
TO UNSUBSCRIBE: Go to
 
http://www.witango.com/developer/maillist.taf

=====================================================
Database WebWorks: Dynamic web sites through database integration
http://www.DatabaseWebWorks.com

CoachVille: For coaches and people taking teleclasses
http :// www.cvcommunity.com?af=69474

 
________________________________________________________________________
TO UNSUBSCRIBE: Go to
http://www.witango.com/developer/maillist.taf

 

 
________________________________________________________________________
TO UNSUBSCRIBE: Go to
http://www.witango.com/developer/maillist.taf

=====================================================
Database WebWorks: Dynamic web sites through database integration
http://www.DatabaseWebWorks.com

CoachVille: For coaches and people taking teleclasses
http :// www.cvcommunity.com?af=69474

________________________________________________________________________
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf
________________________________________________________________________
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf


________________________________________________________________________
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf

Reply via email to