|
-
May 6th, 2000, 04:21 AM
#1
Ok, im trying to take a Sub if found in a QBasic program and put it in VBasic. What the sub does is instead of just putting text onto the screen, it puts up one letter at a time. Its like someone was typing it.
Here is the code for it in QBasic..
---Start Code---
SUB printit (pstring AS STRING, row1 AS INTEGER, row2 AS INTEGER, c1 AS INTEGER, c2 AS INTEGER)
length = LEN(pstring$): xnuym = 0
FOR i = 1 to length
xum = xnum + 1
CurrentTimer! = TIMER: WHILE TIMER < (CurrentTimer! + (4 / 100))
WEND
LOCATE row1, row2
COLOR c1, c2: PRINT LEFT$(pstring$, xnum)
NEXT i
END SUB
---End Code---
The problem is, i dont know of a control that uses the command PRINT. If you know of a control i should use, or if you have an idea of what i should do, or if you think it wont work for some reason, please let me know.
Thanks...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|