Solved

Type writer text

Posted on 1998-10-25
2
275 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
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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
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 Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…

758 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now