TIP: Click on subject to list as thread! ANSI
echo: power_bas
to: ALL
from: JOHN FRITZ
date: 1998-03-31 15:33:00
subject: MBF vs TYPE...END TYPE pr

From: John Fritz 
Subject: MBF vs TYPE...END TYPE problems
 
I still compile QuickBasic (4.0) using /MBF to continue to use my old
data files. I would like to set up a random access file where each
record has about 6,000 elements, so that I can GET a record and quickly
get the 6,000 elements in that record in an array, but I get an:
 
		OUT OF STRING SPACE error
 
when I run the compiled program, because I have to dimension a set of
string variables, say, I=6,000:DIM G$(I) for my FIELD definition setup.
I have PLENTY of FREE MEMORY.
 
Can someone tell me how to set aside more string space (more than 64 K)
in the program?
 
	The other solution is for me to convert my data files and use:
 
		TYPE...END TYPE,
 
but I don't see how to set up a record with 6,000 elements, since I seem
to be forced to EXPLICITLY define each element (for me, 6,000 of them)
in the TYPE...END TYPE setup.
 
	Am I missing something here?
 
	Someone in the comp.lang.basic.misc newsgroup suggested I use BINARY
files, but I have timed the two and using RANDOM access files with 3,000
elements (which I can do) and getting one record and reading the 3,000
elements into an array is about 12 times faster that 3,000 gets from a
BINARY file. Speed is VERY important to me.
 
Thanks for any help.
 
John Fritz
 
*** QwkNews (tm) v2.1
 * [TN71] Toast House Import
--- GEcho 1.20/Pro
---------------
* Origin: Toast House Remote (1:100/561)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.