Reply to Re: Function like "in" in Delphi?

Your name:

Reply:


Posted by tons on 10/27/06 14:57

In article <zC5ltJAyddQFFwZF@eminent.demon.co.uk>,
peterfox@eminent.demon.co.uk.not.this.bit.no.html says...
> Following on from Sonnich's message. . .
> >Hi
> >
> >Is the such a function like IN in delphi:
> >
> >if( $somechar in ["a", "b", "d"])
> > dsafsakjldg;
> >
> >where true is for the characters mentioned above.
> >
> >BR
> >S
> >
>
> Delphi's in is an operation on a set of enumerated values. So strictly
> speaking the answer is no.
>
> If you're looking at finding substrings then RTM.
> If you're looking at finding an element or a key in an array then RTM
> My preferred version of the manual is the Windows compiled help one.
>
>
>
>
> --
> PETER FOX Not the same since the deckchair business folded
> peterfox@eminent.demon.co.uk.not.this.bit.no.html
> 2 Tees Close, Witham, Essex.
> Gravity beer in Essex <http://www.eminent.demon.co.uk>
>

Delphi includes a group of operators that implement an area of
mathematics known as "set theory"

This is a very simple to understand area that I personally wish
was used wider - its probably easy enough for you to implement
some set constructs in whatever language you use yourself.

The other functions do the same job but operating on sets can often make
code very much clearer and hence easier to write/debug/maintain.

Do a google for "set theory" or similar - I expect there's a lot more
there.

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация