Dr. Inferno
February 16th, 2000, 05:42 PM
If you have VB5 or above, I will say you make the following sub:
public sub pause(Howlong as double)
'pauses the program for a period of time
current=timer
do while timer-current<val(howlong)
doevents
loop
end sub
Now when you call to it in another procedure, it will show a yellow box which says:
public sub pause(Howlong as double)
You should know what I mean. I am making an editor which edits DOS code. So far, I have 22 functions. Here is what I want to be able to do.
--------------
One of the functions is "echo". In DOS, "echo" prints text to the computer so the user can see it (like PRINT in basic). When the user types in echo in the editor, just as if the user types in pause in the VB CODE editor, I want the same thing to happen:
echo [text]
so the user knows the format is to have text after the command echo. How can I do that? I have 22 different functions for which I want to do this...
public sub pause(Howlong as double)
'pauses the program for a period of time
current=timer
do while timer-current<val(howlong)
doevents
loop
end sub
Now when you call to it in another procedure, it will show a yellow box which says:
public sub pause(Howlong as double)
You should know what I mean. I am making an editor which edits DOS code. So far, I have 22 functions. Here is what I want to be able to do.
--------------
One of the functions is "echo". In DOS, "echo" prints text to the computer so the user can see it (like PRINT in basic). When the user types in echo in the editor, just as if the user types in pause in the VB CODE editor, I want the same thing to happen:
echo [text]
so the user knows the format is to have text after the command echo. How can I do that? I have 22 different functions for which I want to do this...