Solved

Count is not a member of String

Posted on 2007-04-03
3
720 Views
Last Modified: 2013-11-07
Hello,

I have this code and gives me a error "count is not a member of String"....?


'++++++++++++ Start Code +++++++++++++
Dim sNeeded As String = sBenodigheden
y += 10

While sNeeded.Length > 0
    Dim i As Integer = sNeeded.IndexOf("<")
    If i > 0 Then
        If (sNeeded.Substring(0, i).count > 10) Then
            sc.Add(265, y, New RepString(fpText, "•" + " " + sNeeded.Substring(0, 10)))
            y += 10
            sc.Add(265, y, New RepString(fpText, "•" + " " + sNeeded.Substring(10, i)))
        Else
            sc.Add(265, y, New RepString(fpText, "•" + " " + sNeeded.Substring(0, i)))
        End If
        sNeeded = sNeeded.Remove(0, i + 4)
    Else
        sc.Add(265, y, New RepString(fpText, "•" + " " + sNeeded))
        Exit While
    End If
    y += 10
End While
'++++++++++++ End Code +++++++++++++

Thank,
HP van Hagen
WvR
0
Comment
Question by:WvR
  • 2
3 Comments
 
LVL 19

Accepted Solution

by:
DreamMaster earned 125 total points
ID: 18842053
Try using length instead of count.

Regards,
Max.
0
 
LVL 1

Author Comment

by:WvR
ID: 18842114
Thanks Max!
0
 
LVL 19

Expert Comment

by:DreamMaster
ID: 18842126
You're very welcome WvR,

Regards,
Max.
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question