Netduino home hardware projects downloads community

Jump to content

The Netduino forums have been replaced by new forums at This site has been preserved for archival purposes only and the ability to make new accounts or posts has been turned off.


Member Since 04 Apr 2012
Offline Last Active Oct 25 2014 12:07 PM

#50760 String.Contains - Error with custom 'Contains'

Posted by gfcwfzkm on 24 June 2013 - 01:42 PM



i want to search in a text some stuff.

i have a message like this:

GET /PIN=TOGGLE HTTP/1.1 Host: User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:21.0) Gecko/20100101 Firefox/21.0 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Accept-Language: de-de,de;q=0.8,en-us;q=0.5,en;q=0.3 Accept-Encoding: gzip, deflate Connection: keep-alive Cache-Control: max-age=0


And i want to search for 'Chrome' or 'Safari'. Theres no Safari/chrome in that message, but the Contains-Function give me always a True back. i have my Contains-Function from http://forums.netdui...stringcontains/

    <System.Runtime.CompilerServices.Extension()> _    Public Function Contains(ByVal _src As [String], ByVal _search As Char) As Boolean        For i As Integer = _src.Length - 1 To 0 Step -1            If _src.IndexOf(_search) >= 0 Then                Return True            End If        Next        Return False    End Function

Where is the problem :S






I uploaded the Full code, its a webserver for the netduino plus (.MF 4.2)

Attached Files

#27972 Netduino Firmware v4.2.0 RC4 (Netduino + Netduino Plus)

Posted by gfcwfzkm on 23 April 2012 - 09:35 PM

Hi, i have a little Problem. I cant type the old MAC-Address. I have Netduino+ The Error: "Network Configuration" - Unable to write configuration And: Pinging... TinyBooter Bootloader build info: Netduino Plus (v4.2.0.0 RC4) by Secret Labs LLC Chk signature Signature FAIL Please, i need help in this. thx gfcwfzkm - Beginner

home    hardware    projects    downloads    community    where to buy    contact Copyright © 2016 Wilderness Labs Inc.  |  Legal   |   CC BY-SA
This webpage is licensed under a Creative Commons Attribution-ShareAlike License.