Search found 1020 matches

by jevans4949
May 16, 2020 12:16
Forum: Beginners
Topic: A$="123,45,1,89,22" how do I get column 4, which is 89?
Replies: 10
Views: 737

Re: A$="123,45,1,89,22" how do I get column 4, which is 89?

You could use the C function sscanf (in crt/stdio library) and ingnore the first three values
by jevans4949
Apr 23, 2020 17:01
Forum: General
Topic: print#,write" not working
Replies: 3
Views: 260

Re: print#,write" not working

badidea wrote:"p:csvreader.log" is that legal? "p:\csvreader.log"?

it created the file on my remote drive. Trouble is, nothing got written to it.
by jevans4949
Apr 23, 2020 10:11
Forum: General
Topic: print#,write" not working
Replies: 3
Views: 260

print#,write" not working

#Include Once "crt/stdio.bi" #Include "jevans4949/csvread.bi" #Include "jevans4949/getfname.bi" '*********************************************************************** ' Test Driver '*********************************************************************** Dim y As csvf...
by jevans4949
Jun 03, 2019 8:15
Forum: Beginners
Topic: How to get and use a dictionary
Replies: 14
Views: 7422

Re: How to get and use a dictionary

Probably what you need is not a "dictionary" but a "word list"; try searching for that. There appears to be one on Github in text format. I got one for a Boggle-type game I developed in Freebasic years ago, building on somebody else's idea. Such lists may contain non-English word...
by jevans4949
Apr 14, 2019 11:34
Forum: General
Topic: Endian
Replies: 14
Views: 1422

Re: Endian

IBM S/360 mainframes were big-endian, and the most popular machines when the internet was invented. I believe some minicomputers had little-endian format, but based around 16-bit "words"; I distinctly remember seeing one application transferring data to/from a mini-computer which included ...
by jevans4949
Dec 26, 2018 0:41
Forum: Community Discussion
Topic: Let it snow
Replies: 5
Views: 1021

Re: Let it snow

My kids say it reminds them of Christmas Jetpack!
by jevans4949
Sep 10, 2018 15:04
Forum: Community Discussion
Topic: relocation advice
Replies: 10
Views: 1543

Re: relocation advice

1. I don't believe in work. 2. I believe in a cushy lifestyle. Good food, clean water, nice clothes. I love programming but I might love the beach even more! There is only one solution: Marry a rich woman who lives near the beach. In some countries, you could marry a rich man, of course. But then w...
by jevans4949
Sep 10, 2018 15:01
Forum: Community Discussion
Topic: relocation advice
Replies: 10
Views: 1543

Re: relocation advice

Ah, Work -the curse of the drinking classes.

The curse of the smoking classes too, nowadays.
by jevans4949
Jul 27, 2018 1:34
Forum: General
Topic: Big Endian -> Little Endian
Replies: 17
Views: 1624

Re: Big Endian -> Little Endian

According to Wikipedia, MIDI predates the home computer, and originated in the synthesiser business. The Standard Midi File format was a bit of an add-on.
by jevans4949
Jul 27, 2018 1:13
Forum: General
Topic: Big Endian -> Little Endian
Replies: 17
Views: 1624

Re: Big Endian -> Little Endian

First computer I used as a student, Elliott 4100, had 24-bit integers and floats as standard, 6-bit character codes. Think ICT 1900/2900 used similar format. Intel 4004 calculator chip, predecessor of all Intels, had 4-bit integers. Only need 4 for a decimal digit! Depended how many transistors or v...
by jevans4949
Jul 27, 2018 0:51
Forum: General
Topic: Big Endian -> Little Endian
Replies: 17
Views: 1624

Re: Big Endian -> Little Endian

... but I've never heard of a 3-byte integer ... The MIDI fie specification includes one instance of 3-byte integer, and also wierd variable-length integers - lower 7 bits of each byte are data and top bit indicates another byte follows - e.g &h'8307' decodes to &h'0187'. All integers are b...
by jevans4949
Jul 26, 2018 23:38
Forum: General
Topic: Big Endian -> Little Endian
Replies: 17
Views: 1624

Re: Big Endian -> Little Endian

jj2007 has the simplest answer for Singles or 4-byte integers - well done! My code contains solutions for 2- and 3-byte signed and unsigned integers. Note, however, that my code assumes a 32-bit compile - assumes sizeof(integer) and sizeof(pointer), and does not include 64-bit integers at all. Obvio...
by jevans4949
Jul 24, 2018 21:18
Forum: General
Topic: Big Endian -> Little Endian
Replies: 17
Views: 1624

Re: Big Endian -> Little Endian

Some stuff I wrote a while back, using asm. (To do with MIDI files) '*********************************************************************** ' Big-endian integer Handling '*********************************************************************** #include once "jevans4949/bigend/bigend.bi" '*...
by jevans4949
Jul 04, 2018 11:30
Forum: General
Topic: Specifying Default Arrays on Function Headers
Replies: 2
Views: 381

Re: Specifying Default Arrays on Function Headers

Thanks, @sancho3, I'll give it a spin. (My example was simplified).)
by jevans4949
Jul 03, 2018 23:07
Forum: General
Topic: Specifying Default Arrays on Function Headers
Replies: 2
Views: 381

Specifying Default Arrays on Function Headers

Is dementia setting in? The following code compiles OK Dim x(0 To 255) As LongInt Function y (z As Long, a() As LongInt) As Integer Function = 0 End Function The following throws error 58: Illegal specification, at parameter 2 (a) of y() in 'Function y ... Dim x(0 To 255) As LongInt Function y (z As...

Go to advanced search