Re: Help creating a function

Tech-Archive recommends: Fix windows errors by optimizing your registry



Gary,

The mid function in VBNet is the same as in VB6

Dim myString As String = "The fox jumps over whatever"
Dim FirstWord As String = Mid(MyString, 1, 3)
MessageBox.Show(Mid(myString, 5, 3))

shows "fox"

Cor


.



Relevant Pages

  • Re: TextBox display decimal problem
    ... I would first set option stricht on in your program. ... Math.Round surely does not return a string. ... Cor ... Prev by Date: ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Handling string and null value?
    ... You can handle binary nulls 00, however the IDE breaks those when a string ... Cor ... Prev by Date: ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: StreamReader Help
    ... dim myfile as string = oReader.ReadToEnd ... Cor ... Prev by Date: ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Restructuring Database table in VB.NET 2003 help please
    ... Ken gave you the answer "Alter", with a lot of code in a sample, how to ... He also gave you this string for the syntax. ... Cor ... Prev by Date: ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Type.GetType with two projects
    ... Cor: what do you mean by FormToOpen ... Public Sub OpenForm(ByVal FormToOpen As String, ... Dim frm As FrontierForm = DirectCast(objNewForm, ... execption handling code ...
    (microsoft.public.dotnet.languages.vb)