Search found 4 matches
- Thu Dec 18, 2008 4:20 pm
- Forum: QBASIC and QB64 Questions & Answers
- Topic: how to "input" into 2d random file?
- Replies: 2
- Views: 4700
reply to Ted
thanks Ted for your answer I am learning arrays and two dimensional random files which I thought when I start all I had to do was like: type records name as string * 20 address as string * 20 end type dim pencil(26,5) as records open "c:\ rec.data" for random as #1 len= len(pencil(x,y)) th...
- Fri Dec 12, 2008 6:24 pm
- Forum: QBASIC and QB64 Questions & Answers
- Topic: how to "input" into 2d random file?
- Replies: 2
- Views: 4700
how to "input" into 2d random file?
'I have built the 2d array but I can't figure how to get it into a 2d random 'file such as open"c:\jon.data" for random as #1 len=len(rec(x,y)) TYPE records name AS STRING * 30 job AS STRING * 35 END TYPE DEFINT A-Z DIM table(100) AS INTEGER DIM rec(26, 5) AS records DIM ray(50) AS records...
- Wed Dec 10, 2008 4:49 pm
- Forum: QBASIC and QB64 Questions & Answers
- Topic: saving to a file with a 2 dimential array using records
- Replies: 3
- Views: 8508
putting records into a 2d, random file
this isn't the whole program the rest uses the 26 for the alphabet to sort the names TYPE people name AS STRING * 30 job AS STRING * 30 age AS STRING * 3 END TYPE 10 CLS DIM SHARED ray(26, 2) AS people OPEN "c:\docume~1\publib2\desktop\store.data" FOR RANDOM AS #1 LEN = LEN(ray(o%, p%)) FO...
- Sun Dec 07, 2008 5:48 pm
- Forum: QBASIC and QB64 Questions & Answers
- Topic: saving to a file with a 2 dimential array using records
- Replies: 3
- Views: 8508
saving to a file with a 2 dimential array using records
the put and get command put #1,record#, varible
i enter it put#1, array(x,y), array(x,y) and put#1,I,array(x,y)
and it doesn't except it
what is a correct way to enter it
i enter it put#1, array(x,y), array(x,y) and put#1,I,array(x,y)
and it doesn't except it
what is a correct way to enter it