Network Engineer -- A Looking Glass

A look into my work as a Network Engineer

Thursday, April 30, 2015

Build Array from String, Count Each Element Index


myStr = "this sentence is just fine"

msg = Split(myStr)

numStr = UBound(msg) + 1

MsgBox numStr

'For Each word In msg
' MsgBox word
' If word = "is" Then
' MsgBox msg(word)
' End If
'Next


For x = LBound(msg) To UBound(msg)
MsgBox msg(x) & " " & x
If x <> UBound(msg) Then
MsgBox msg(x+1)
End If
Next
Posted by Scot Geer at 7:04 PM
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

Favorite Blogs

  • I ♥ WiFi
  • Network Fun!!!

Blog Archive

  • ►  2016 (2)
    • ►  August (1)
    • ►  February (1)
  • ▼  2015 (8)
    • ►  June (4)
    • ►  May (1)
    • ▼  April (3)
      • Build Array from String, Count Each Element Index
      • Parse File, Write to a Different File
      • Using VMware ESXi 5.5 for Virtual Networking Labs
  • ►  2014 (7)
    • ►  August (1)
    • ►  July (2)
    • ►  June (2)
    • ►  May (2)
  • ►  2013 (2)
    • ►  May (2)
  • ►  2010 (1)
    • ►  October (1)
  • ►  2008 (1)
    • ►  August (1)
  • ►  2007 (1)
    • ►  May (1)
  • ►  2006 (11)
    • ►  March (1)
    • ►  February (6)
    • ►  January (4)
  • ►  2005 (4)
    • ►  December (4)
Simple theme. Theme images by luoman. Powered by Blogger.