473,398 Members | 2,368 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

A2K - limit on lines that can be printed in immediate window?

I'm just looping through some tables and printing the names to the immediate
window. I notice that I lose the first few after the code has run. If I
step through they do get printed intially. It's about 100 tables. Is the
immediate window limited to the number of lines it can display?

thanks
Martin
Jan 17 '06 #1
6 9280
It's been a few years but I think it was around 190 lines in the buffer for
the Debug window in A2K. If you search GoogleGroups you will be able to find
the exact amount.

--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
"Deano" <de***@mailinator.com> wrote in message
news:43***********************@ptn-nntp-reader03.plus.net...
I'm just looping through some tables and printing the names to the
immediate
window. I notice that I lose the first few after the code has run. If I
step through they do get printed intially. It's about 100 tables. Is the
immediate window limited to the number of lines it can display?

thanks
Martin

Jan 17 '06 #2
acourse, you could just run a test...

Function howMuchIsTooMuch()
Dim intCount As Integer
For intCount = 500 To 1 Step -1
Debug.Print intCount
Next intCount
End Function

or I could...
it's 199.

Jeremy
--
Jeremy Wallace
Fund for the City of New York

Jan 17 '06 #3
"Deano" <de***@mailinator.com> wrote in message
news:43***********************@ptn-nntp-reader03.plus.net...
I'm just looping through some tables and printing the names to the
immediate
window. I notice that I lose the first few after the code has run. If I
step through they do get printed intially. It's about 100 tables. Is the
immediate window limited to the number of lines it can display?

thanks
Martin

Of course it wouldn't be too much coding to write your own version which
wrote to an external file. Just append a new line each time and you would
bypass the limitations of debug.print.
Jan 17 '06 #4
Sub txtprint(Optional v1, Optional v2, Optional v3, Optional v4, Optional
v5, Optional v6)
Dim ifile As Integer
Dim sfile As String

sfile = "c:\debug.txt"
ifile = FreeFile
Open sfile For Append As #ifile
If Not IsMissing(v1) Then Print #ifile, v1;
If Not IsMissing(v2) Then Print #ifile, , v2;
If Not IsMissing(v3) Then Print #ifile, , v3;
If Not IsMissing(v4) Then Print #ifile, , v4;
If Not IsMissing(v5) Then Print #ifile, , v5;
If Not IsMissing(v6) Then Print #ifile, , v6;
Print #ifile,
Close #ifile

End Sub
That runs a lot slower than debug.print because if flushes the
file on every line. To make it run faster, take out the open
and close lines, and run them seperately.

(david)

"Deano" <de***@mailinator.com> wrote in message
news:43***********************@ptn-nntp-reader03.plus.net...
I'm just looping through some tables and printing the names to the
immediate
window. I notice that I lose the first few after the code has run. If I
step through they do get printed intially. It's about 100 tables. Is the
immediate window limited to the number of lines it can display?

thanks
Martin

Jan 17 '06 #5
Or just make a query on msysobjects.

Jan 18 '06 #6
"Anthony England" <ae******@oops.co.uk> wrote in
news:dq**********@nwrdmz02.dmz.ncs.ea.ibs-infra.bt.com:
"Deano" <de***@mailinator.com> wrote in message
news:43***********************@ptn-nntp-reader03.plus.net...
I'm just looping through some tables and printing the names to
the immediate
window. I notice that I lose the first few after the code has
run. If I step through they do get printed intially. It's about
100 tables. Is the immediate window limited to the number of
lines it can display?


Of course it wouldn't be too much coding to write your own version
which wrote to an external file. Just append a new line each time
and you would bypass the limitations of debug.print.


Or to an unbound control on a form.

Or to a variable, and then display the variable in a control on a
form.

--
David W. Fenton http://www.dfenton.com/
usenet at dfenton dot com http://www.dfenton.com/DFA/
Jan 18 '06 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: MLH | last post by:
After running some code on some forms and in some modules... I am getting stuff like this in the immediate window... 9 9 9 9 9 9 9
2
by: Jon Davis | last post by:
How do I get the Immediate window back? It seems to be gone. Command window doesn't work. "View" menu items don't seem to show it Jon
3
by: Russell Stevens | last post by:
Can anyone tell me how to get to the immediate window in VS2005. The help file says (when debugging) to click Debug, Windows, Immediate. There is no Immediate window listed there, nor anywhere else...
5
by: vul | last post by:
In VB6 I used to use Immediate Window to get or change values of variables. It is very convenient while debugging. I used drag and drop operation to paste the variable name into Immediate Window....
2
by: dgk | last post by:
Using VS2005 Standard Edtion, I have an Immediate window during ASP debugging. My co-worker, using VS2005 Team Edtion does not have an Immediate window. He does have a Command window, which is sort...
6
by: Frank Rizzo | last post by:
I am using the Immediate Window a lot to see the progress of the application. In VS2003, if your cursor was at the very bottom, the window would scroll down whenever something new showed up. If...
4
by: Armin Zingler | last post by:
Hi, I feel fooled.. In the immediate window, if I enter ? DateTime.Now.Kind I get "Unspecified {0}". The result - I expected "local" - lead to some time consuming deliberations. Today, I...
4
by: mgfine | last post by:
We're new to using VB 9 and we cannot invoke an immediate command window from an immediate window. Typing >cmd in the immediate window does bring up a command window but we're looking for the...
0
by: mgfine | last post by:
This question was first posted in the VB forum: We're new to using VB 9 (Visual Studio.Net 2007) and we cannot invoke an immediate command window from an immediate window. Typing >cmd in the...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.