Solved

Type writer text

Posted on 1998-10-25
2
289 Views
Last Modified: 2010-05-18
Hi
I've been trying to fix a intro to a small game..
I'd like it to scroll character by character..like a Type writer text, the first letter is fixed..does'nt move, then
the next letter adds, and the next.

I've fooled around with len left and right function +1 -1
But it seems like they are fooling around with me

Can anyone help me out
coffeeman@swipnet.se
0
Comment
Question by:az1
[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
2 Comments
 
LVL 1

Accepted Solution

by:
rakkas earned 50 total points
ID: 1441573
Hi!

here's an example. In this one It prints to a label named label1. You should use the timer function instead of the for-loop so the time will be the same on all systems and computers.


Dim sText As String
sText = "This is a message..."
For i = 1 To Len(sText)
    Label1.Caption = Mid(sText, 1, i)
    DoEvents 'Let the system do some stuff, ie draw your string to the screen!!
        For a = 1 To 1000000 'use a timer or something instead of this for-loop to make a pause
        Next a
Next i
0
 

Author Comment

by:az1
ID: 1441574
thanks
It works like a charm
0

Featured Post

Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

Question has a verified solution.

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

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
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…
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…

734 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