Aus der VBScript Doc ;-)
"Returns the position of the first occurrence of one string within another."
MyPos = Instr(4, SearchString, SearchChar, 1)
' A textual comparison starting at position 4. Returns 6.
MyPos = Instr(1, SearchString, SearchChar, 0)
' A binary comparison starting at position 1. Returns 9.
MyPos = Instr(SearchString, SearchChar)
' Comparison is binary by default (last argument is omitted). Returns 9.
MyPos = Instr(1, SearchString, "W")
' A binary comparison starting at position 1. Returns 0 ("W" is not found).
Wie war das nochmals????
Gruss
Roman Pittroff
Consulting
Bangkok, Thailand
>-----Original Message-----
>From: [EMAIL PROTECTED]
>[mailto:[EMAIL PROTECTED] On Behalf Of Thomas Bandt
>Sent: 28 November 2003 02:52
>To: [EMAIL PROTECTED]
>Subject: RE: [Coffeehouse] if
>
>inStr liefert nicht die Position zur�ck, sondern _ob_ der
>String im anderen vorhanden ist.
>
>Ich mache es immer �ber Cbool(inStr(string1,string2)) -
>aufpassen muss man nur, wenn die Variable nicht gef�llt wird,
>daher h�nge ich bei der Deklaration immer noch ein & "" dran...
>
>Dann s�he das Ganze so aus:
>
>if ((Cbool(INSTR(varLine,"="))) AND not
>(Cbool(INSTR(varLine,"##")))) then
>
>Greetings, Thomas
>_____________________________________________________
>If only women came with pull-down menus & online help
>
>> Vieleicht bin ich ein wenig wirre aber instr bringt doch zahlen der
>> position zurueck?? dann kann das doch so net gehen.
>>
>> Aber ist auch schon spaet, vieleicht verstehe ich das net mehr ;-)
>>
>> Gruss
>>
>> Roman Pittroff
>> Consulting
>> Bangkok, Thailand
>>
>>
>>
>> >-----Original Message-----
>> >From: [EMAIL PROTECTED]
>> >[mailto:[EMAIL PROTECTED] On Behalf Of
>> >[EMAIL PROTECTED]
>> >Sent: 28 November 2003 00:53
>> >To: '[EMAIL PROTECTED]'
>> >Subject: [Coffeehouse] if
>> >
>> >Ich hab hier einen Knoten im Hirn
>> >
>> >if ((INSTR(varLine,"=")) AND (not INSTR(varLine,"##"))) then
>> >
>> >Warum geht das nicht ?? ein string mit ## flutscht da durch ?
>> >
>> >HH
>> >_______________________________________________
>> >Coffeehouse mailing list
>> >[EMAIL PROTECTED]
>> >http://www.glengamoi.com/mailman/listinfo/coffeehouse
>> >
>>
>> _______________________________________________
>> Coffeehouse mailing list
>> [EMAIL PROTECTED]
>> http://www.glengamoi.com/mailman/listinfo/coffeehouse
>>
>
>
>_______________________________________________
>Coffeehouse mailing list
>[EMAIL PROTECTED]
>http://www.glengamoi.com/mailman/listinfo/coffeehouse
>
_______________________________________________
Coffeehouse mailing list
[EMAIL PROTECTED]
http://www.glengamoi.com/mailman/listinfo/coffeehouse