Re: [Ql-Users] Connecting a QL to a VGA Monitor

2010-09-05 Thread Dilwyn Jones
Does anyone have any thoughts as to whether this would work - and 
could it be

used to connect to a more modern SVGA?



I'm afraid it won't work at all. It's a real pity modern SVGA's 
don't do

multisync as in the good old days :(

On the other way, I've managed to work it out using a RGB-to-VGA 
converter, as
used for connecting JAMMA boards to VGA monitors. I wrote a review 
(spanish, but
with a lot of pictures, so even without translation you'll get an 
idea) about it

here:
http://www.zonadepruebas.com/modules/smartsection/item.php?itemid=1225


An English translation (machine translation, but readable) can be seen 
at:


http://translate.google.co.uk/translate?u=http%3A%2F%2Fwww.zonadepruebas.com%2Fmodules%2Fsmartsection%2Fitem.php%3Fitemid%3D1225sl=estl=enhl=ie=UTF-8

Dilwyn Jones 




___
QL-Users Mailing List
http://www.q-v-d.demon.co.uk/smsqe.htm


[Ql-Users] Merge Sort

2010-09-05 Thread Dilwyn Jones

(This is a Quanta helpline query!)

Does anyone have a handy little merge sort routine (in s*basic), to
merge two sorted lists (plain text word lists), maintaining the sorted
order in the output file.

That is, merge file A and file B (both already sorted) and output as
file C (also sorted, containing both files A and B merged).

Dilwyn Jones



___
QL-Users Mailing List
http://www.q-v-d.demon.co.uk/smsqe.htm


Re: [Ql-Users] Merge Sort

2010-09-05 Thread Miguel Angel Rodriguez Jodar

El 05/09/2010 18:31, Dilwyn Jones escribió:

(This is a Quanta helpline query!)

Does anyone have a handy little merge sort routine (in s*basic), to
merge two sorted lists (plain text word lists), maintaining the sorted
order in the output file.

That is, merge file A and file B (both already sorted) and output as
file C (also sorted, containing both files A and B merged).


It's a very common routine. This is not SuperBASIC, but it may help you:

Open file A input
Open file B input
Open file C output

Read line from A into L1
Read line from B into L2

Repeat
  If L1L2 then
While L1L2 and not eof(A)
  Write line from L1 into C
  Read line from A into L1
End While
If eof(A)
  Write remaining lines of B into C
End If
  Else If L2=L1 then
While L2=L1 and not eof(B)
  Write line from L2 into C
  Read line from B into L2
End While
If eof(B)
  Write remaining lines of A into C
End If
  End If
Until eof(A) and eof(B)

Close A
Close B
Close C

___
QL-Users Mailing List
http://www.q-v-d.demon.co.uk/smsqe.htm


Re: [Ql-Users] Merge Sort

2010-09-05 Thread Dilwyn Jones

Does anyone have a handy little merge sort routine (in s*basic), to
merge two sorted lists (plain text word lists), maintaining the 
sorted

order in the output file.

That is, merge file A and file B (both already sorted) and output 
as

file C (also sorted, containing both files A and B merged).


It's a very common routine. This is not SuperBASIC, but it may help 
you:

Thank you - it should be easy enough to write this in superbasic.

I will pass this on to the person who asked the question.

Dilwyn Jones 




___
QL-Users Mailing List
http://www.q-v-d.demon.co.uk/smsqe.htm