Author |
Message |
Liddle Fees #1 / 10
|
 Storing large data temporarily
Greetings, I am currently in the development stage of a module which requires access to USENET. On bringing back a list of all the available newsgroups on a specified server, I am finding that I do not have enough room in a standard text box to hold all of the data, and consequently only the first 100 or so rows are stored. When data arrives over (Winsock) the internet, I read it into a string variable. This string variable also populates a text box on the screen and writes output to a file. I know all the groups are coming back - but there is an incrediblely large amount of them. I can't say to the server "Return 100 groups", "Return next 100 groups" etc. Can anyone help with this? I need to store all the incoming data in *something*, a string being the obvious choice, but it just isn't long enough. Thankyou in advance for any help you can offer me. -- Liddle Feesh ' O 0 o <"//>< ' o'^ (Remove UNDERPANTS to reply)
|
Sun, 01 Feb 2004 00:15:44 GMT |
|
 |
Michael William #2 / 10
|
 Storing large data temporarily
Try the RichTextBox. Mike
Quote: > Greetings, > I am currently in the development stage of a module which requires access to > USENET. > On bringing back a list of all the available newsgroups on a specified > server, I am finding that I do not have enough room in a standard text box > to hold all of the data, and consequently only the first 100 or so rows are > stored. > When data arrives over (Winsock) the internet, I read it into a string > variable. This string variable also populates a text box on the screen and > writes output to a file. > I know all the groups are coming back - but there is an incrediblely large > amount of them. I can't say to the server "Return 100 groups", "Return next > 100 groups" etc. > Can anyone help with this? I need to store all the incoming data in > *something*, a string being the obvious choice, but it just isn't long > enough. > Thankyou in advance for any help you can offer me. > -- > Liddle Feesh > ' O 0 o <"//>< ' o'^ > (Remove UNDERPANTS to reply)
|
Sun, 01 Feb 2004 00:32:52 GMT |
|
 |
Liddle Fees #3 / 10
|
 Storing large data temporarily
Quote:
> Try the RichTextBox.
Okay I'll do just that and post my results back to this thread. Cheers, Mike / AKA Feesh -- Liddle Feesh ' O 0 o <"//>< ' o'^ (Remove UNDERPANTS to reply)
|
Sun, 01 Feb 2004 01:03:29 GMT |
|
 |
Dag Sund #4 / 10
|
 Storing large data temporarily
The string is only limited by your amount of virtual memory, but the textbox might stop you... I guess each "record" is separated by a Linefeed? You might "Chop off" each ng as it tickles in, and add it to a listview. Or a RichtextBox, as Michael suggested earlier... Dag.
Quote: > Greetings, > I am currently in the development stage of a module which requires access to > USENET. > On bringing back a list of all the available newsgroups on a specified > server, I am finding that I do not have enough room in a standard text box > to hold all of the data, and consequently only the first 100 or so rows are > stored. > When data arrives over (Winsock) the internet, I read it into a string > variable. This string variable also populates a text box on the screen and > writes output to a file. > I know all the groups are coming back - but there is an incrediblely large > amount of them. I can't say to the server "Return 100 groups", "Return next > 100 groups" etc. > Can anyone help with this? I need to store all the incoming data in > *something*, a string being the obvious choice, but it just isn't long > enough. > Thankyou in advance for any help you can offer me. > -- > Liddle Feesh > ' O 0 o <"//>< ' o'^ > (Remove UNDERPANTS to reply)
|
Sun, 01 Feb 2004 03:16:15 GMT |
|
 |
Frank Ad #5 / 10
|
 Storing large data temporarily
On Tue, 14 Aug 2001 17:15:44 +0100, "Liddle Feesh"
I had no problems reading 15,000+ into a combo box in my "one day surely be ready" news-reader, so a listbox sounds like the way to go. Especially if you want to do something with each group without coding your eyes out.. :) Quote: >Greetings, >I am currently in the development stage of a module which requires access to >USENET. >On bringing back a list of all the available newsgroups on a specified >server, I am finding that I do not have enough room in a standard text box >to hold all of the data, and consequently only the first 100 or so rows are >stored. >When data arrives over (Winsock) the internet, I read it into a string >variable. This string variable also populates a text box on the screen and >writes output to a file. >I know all the groups are coming back - but there is an incrediblely large >amount of them. I can't say to the server "Return 100 groups", "Return next >100 groups" etc. >Can anyone help with this? I need to store all the incoming data in >*something*, a string being the obvious choice, but it just isn't long >enough. >Thankyou in advance for any help you can offer me. >-- >Liddle Feesh > ' O 0 o <"//>< ' o'^ >(Remove UNDERPANTS to reply)
Regards, Frank.
|
Sun, 01 Feb 2004 12:53:41 GMT |
|
 |
Liddle Fees #6 / 10
|
 Storing large data temporarily
Quote:
> The string is only limited by your amount of virtual memory, > but the textbox might stop you... > I guess each "record" is separated by a Linefeed? > You might "Chop off" each ng as it tickles in, and add it to a listview. > Or a RichtextBox, as Michael suggested earlier...
Excellent, the RichtextBox worked a treat. I'll experiment with the other controls and let you know what I find. For the benefit of the USENET archives, I successfully wrote to a richtextbox a very large string containing data from Microsoft's News Servers about each newsfroup carried there. This wasn't possible with a simple textbox, as it cuts off after the first 100? Carriage Returns. -- Liddle Feesh ' O 0 o <"//>< ' o'^ (Remove UNDERPANTS to reply)
|
Sun, 01 Feb 2004 23:25:51 GMT |
|
 |
Frank Ad #7 / 10
|
 Storing large data temporarily
On Wed, 15 Aug 2001 16:25:51 +0100, "Liddle Feesh" Quote:
>For the benefit of the USENET archives, I successfully wrote to a >richtextbox a very large string containing data from Microsoft's News >Servers about each newsfroup carried there. This wasn't possible with a >simple textbox, as it cuts off after the first 100? Carriage Returns.
It cuts off after about 32Ks of text actually. That is the limit of the multiline textbox on Win9x. Regards, Frank.
|
Sun, 01 Feb 2004 23:29:40 GMT |
|
 |
Dag Sund #8 / 10
|
 Storing large data temporarily
Yes, I set up a little project when I saw your question, and the size of all the Newsgroup-names available from my news-server amounted to 1.6 Mb of text... The richtext ctrl handles it w/o problems... Dag.
Quote:
> > The string is only limited by your amount of virtual memory, > > but the textbox might stop you... > > I guess each "record" is separated by a Linefeed? > > You might "Chop off" each ng as it tickles in, and add it to a listview. > > Or a RichtextBox, as Michael suggested earlier... > Excellent, the RichtextBox worked a treat. I'll experiment with the other > controls and let you know what I find. > For the benefit of the USENET archives, I successfully wrote to a > richtextbox a very large string containing data from Microsoft's News > Servers about each newsfroup carried there. This wasn't possible with a > simple textbox, as it cuts off after the first 100? Carriage Returns. > -- > Liddle Feesh > ' O 0 o <"//>< ' o'^ > (Remove UNDERPANTS to reply)
|
Mon, 02 Feb 2004 03:45:19 GMT |
|
 |
Liddle Fees #9 / 10
|
 Storing large data temporarily
Quote:
> It cuts off after about 32Ks of text actually. That is the limit of > the multiline textbox on Win9x.
Haven't tested it, but I'm running VS6.0 Service Pack 5 on Windows 2000 -- Liddle Feesh ' O 0 o <"//>< ' o'^ (Remove UNDERPANTS to reply)
|
Mon, 02 Feb 2004 08:52:58 GMT |
|
 |
Liddle Fees #10 / 10
|
 Storing large data temporarily
Quote:
> Yes, I set up a little project when I saw > your question, and the size of all the Newsgroup-names > available from my news-server amounted to 1.6 Mb of text... > The richtext ctrl handles it w/o problems...
No probs whatsoever :) Excellent, thankyou all. -- Liddle Feesh ' O 0 o <"//>< ' o'^ (Remove UNDERPANTS to reply)
|
Mon, 02 Feb 2004 08:53:30 GMT |
|
|