Solved

Getting text for certain line in textbox

Posted on 2004-08-30
1
160 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
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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
VBA error replacing data 6 40
Using "ScreenUpdating" 6 73
How to hault or freeze parent form when a 2d form is open in vb6 3 39
which modules are active in VB6 project? 6 39
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…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

790 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