473,799 Members | 3,190 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 9346
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***@mailinat or.com> wrote in message
news:43******** *************** @ptn-nntp-reader03.plus.n et...
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 howMuchIsTooMuc h()
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***@mailinat or.com> wrote in message
news:43******** *************** @ptn-nntp-reader03.plus.n et...
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(Option al v1, Optional v2, Optional v3, Optional v4, Optional
v5, Optional v6)
Dim ifile As Integer
Dim sfile As String

sfile = "c:\debug.t xt"
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***@mailinat or.com> wrote in message
news:43******** *************** @ptn-nntp-reader03.plus.n et...
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***@mailinat or.com> wrote in message
news:43******** *************** @ptn-nntp-reader03.plus.n et...
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
1533
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
12832
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
3437
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 I can find it. Also, is there a trick now to single step. I can't find that anywhere either. Thanks Russ Stevens
5
5646
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. In VB 2005 this approach either doesn't work or I need to do it some different way. Of course VB 2005 environment allows to see values right in the code window, but it's true only for not too long strings. With a long string I still need Immediate...
2
2598
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 of ok but doesn't have intellisense. Documentation shows that editions above Express do have immediate windows. We've looked under Debug, View, and just about everywhere else. I don't see the Immediate window under View on my system either,...
6
2842
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 your cursor was somewhere in the middle of the text output, then there would be no scrolling. In VS2005, the Immediate Window scrolls regardless of where the cursor is which is very annoying. Sometimes you want to go back up in the window to...
4
3093
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 execute MsgBox(DateTime.Now.Kind)
4
2120
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 immediate command window that we used in VB 7. Thanks.
0
2251
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 immediate window does bring up a command window but we're looking for the immediate command window that we have used in VB 7. Thanks.
0
9538
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10470
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10247
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9067
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7561
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6803
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5459
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5583
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2935
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.