Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 30
Default missing functions

when debugging I'm missing two functions that were in Power Basic.

1. Incr: Instead of "variable = variable + 1"... "Incr variable"

2.Various keyboard and hardware traps like inkey$, Input$.

inkey$ was especialy useful in stopping runaway programs.

Are there any equivilants in vb excel?

John
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 703
Default missing functions

You could write your own Sub and put it in a module, but most of us just do
Variable = Variable + 1

Public Sub Incr(Variable As Long)

Variable = Variable + 1

End Sub

As for Input$ there is an Input Box

Dim sVal As String
sVal = InputBox("Enter Value: ")

and as for stopping a runaway program try pressing Ctrl-Break. (At the
worst you will need to press Ctrl-Shift-Esc, find your program and kill it.
Make sure you know what you're doing here.)

HTH

"John" wrote:

when debugging I'm missing two functions that were in Power Basic.

1. Incr: Instead of "variable = variable + 1"... "Incr variable"

2.Various keyboard and hardware traps like inkey$, Input$.

inkey$ was especialy useful in stopping runaway programs.

Are there any equivilants in vb excel?

John

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 30
Default missing functions

It's the inkey$ I miss. If a key is pressed for any reason while the
program is running it is registered in inkey$. That meant you could hit
any key and stop or pause your program no matter what. "If inkey$""
then end"
It's a lot easier than hammering away at Ctrl Break.

John

Charlie wrote:
You could write your own Sub and put it in a module, but most of us just do
Variable = Variable + 1

Public Sub Incr(Variable As Long)

Variable = Variable + 1

End Sub

As for Input$ there is an Input Box

Dim sVal As String
sVal = InputBox("Enter Value: ")

and as for stopping a runaway program try pressing Ctrl-Break. (At the
worst you will need to press Ctrl-Shift-Esc, find your program and kill it.
Make sure you know what you're doing here.)

HTH

"John" wrote:


when debugging I'm missing two functions that were in Power Basic.

1. Incr: Instead of "variable = variable + 1"... "Incr variable"

2.Various keyboard and hardware traps like inkey$, Input$.

inkey$ was especialy useful in stopping runaway programs.

Are there any equivilants in vb excel?

John

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Combo Box in Excel 2oo3, functions missing! Tatebana Excel Worksheet Functions 3 March 29th 07 02:17 PM
On Error? Creates 1 missing worksheet then never detects any other missing worksheets Craigm[_35_] Excel Programming 2 August 1st 05 02:39 PM
Missing functions and commands Fredrik Wahlgren Excel Programming 1 May 1st 05 04:54 PM
missing mouse functions in Excel xp kp Setting up and Configuration of Excel 1 January 7th 05 07:37 AM
Missing "Save" and "Save As" functions EMSchon Excel Discussion (Misc queries) 2 December 27th 04 08:01 PM


All times are GMT +1. The time now is 10:10 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"