Solved

Type writer text

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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

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 41
bit defender blocks good applications 2 106
Convert VB6 MSXML2.ServerXMLHTTP process to C# 2 68
VBA Shell can't Find Word document 11 130
Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
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.
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…
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…

749 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