Solved

Getting text for certain line in textbox

Posted on 2004-08-30
1
163 Views
Last Modified: 2010-08-05
I have a textbox on my form Text1 and a Timer, Timer1

I want the timer to go to text1 and get the text from line1 and display it in a messageboxand then on the next internval goto line2 and get the text from that line and display it in a messagebox

Thanx in advance!
0
Comment
Question by:mad_psyso
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 18

Accepted Solution

by:
JR2003 earned 100 total points
ID: 11936695
Private Sub Timer1_Timer()

    Static iTimesRun As Long
    Dim MyArray As Variant
    MyArray = Split(text1.Text, vbNewLine)
    MsgBox MyArray(iTimesRun)
    iTimesRun = iTimesRun + 1

End Sub
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Suggested Courses
Course of the Month11 days, 8 hours left to enroll

623 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