Search found 3132 matches

by MrSwiss
Aug 17, 2019 12:40
Forum: General
Topic: namespace problem
Replies: 38
Views: 6852

Re: namespace problem

The error message is not wrong, though some might split hairs over the difference between declaration versus definition. I think the term: definition , is ambiguous and better replaced with: implementation . (if in context with: declaration ) On definition : a #Define (comes to mind, straight away)...
by MrSwiss
Aug 14, 2019 17:13
Forum: Beginners
Topic: Can FB simple animations be run on a website?
Replies: 8
Views: 413

Re: Can FB simple animations be run on a website?

TimG wrote: I got a little preoccupied with another project and didn't get back to this forum until today.
Let me guess ... that project was titled: "vacations/holidays". ;-D
by MrSwiss
Aug 13, 2019 0:04
Forum: Hardware Interfaces / Communication
Topic: FreeBasic communication with Arduino logic error?
Replies: 42
Views: 1475

Re: FreeBasic communication with Arduino logic error?

You can change the port any time you like, but the Arduino must be connected to the system (COM3 is default for Arduino, if not already used otherwise). I assume that you're using Windows (on Linux it would be a TTY device). "Control Panel\Hardware and Sound\Device Manager" then open "...
by MrSwiss
Aug 12, 2019 17:49
Forum: Tips and Tricks
Topic: StringArray Sort (case independent)
Replies: 60
Views: 1993

Re: StringArray Sort (case independent)

:lol: that is exactly, what I've been trying to tell you, all the time.

Remember: "more code, more trouble, less speed"
by MrSwiss
Aug 06, 2019 22:10
Forum: Projects
Topic: Serial.bi
Replies: 8
Views: 353

Re: Serial.bi

@coderJeff, nice summary ... There may also exist a certain amount of differences, depending on the model of Arduino used. Mine is a "old" Duemillanove/Diecimilla: ATMEGA 168/16 MHz. @MrSwiss don't use USB cables from $ store :-) There seems to be a misunderstanding: I don't have problems,...
by MrSwiss
Aug 06, 2019 12:15
Forum: Projects
Topic: Serial.bi
Replies: 8
Views: 353

Re: Serial.bi

It seems to be doing what mine did? Returns the previous input rather than the current input? Nope, not on my systems. Everything is A-OK. Please check: are you also using my Aduino Sketch? (from the same post?) speed: 19200 baud (PC & Arduino) timeout: 0.25 (or larger) length of USB cable: 6 f...
by MrSwiss
Aug 06, 2019 0:28
Forum: Hardware Interfaces / Communication
Topic: FreeBasic communication with Arduino logic error?
Replies: 42
Views: 1475

Re: FreeBasic communication with Arduino logic error?

BasicCoder2 wrote:Permission denied. Forgot how to fix that.
You must run it as "root" ... as explained by Joshy (D.J.Peters).

This applies to all UNIX based systems: LINUX / MAC / BSD e.t.c.
(excluded are only: WIN and DOS)
by MrSwiss
Aug 05, 2019 17:45
Forum: Hardware Interfaces / Communication
Topic: FreeBasic communication with Arduino logic error?
Replies: 42
Views: 1475

Re: FreeBasic communication with Arduino logic error?

You might want to have a look at: Serial.bi, which I've written to simplify
the feared "first step", as much as possible ... (in serial communication).
by MrSwiss
Aug 05, 2019 17:30
Forum: Projects
Topic: Serial.bi
Replies: 8
Views: 353

Re: Serial.bi

As a first example a test with a Arduino, that does "nothing" except acting as a "loopback device". Whatever sent is instantly returned to the "sender". Note: from FB one can send a String, but the Arduino is returning single characters, until the string is done ... (th...
by MrSwiss
Aug 05, 2019 17:16
Forum: Projects
Topic: Serial.bi
Replies: 8
Views: 353

Serial.bi

This is a "header only" implementation, of the four mostly used commands in "serial-communication". (like Arduino or any other, serial controllable device which supports VCP over USB) It does it with "full error checking" (often neglected) in code I've come across, so f...
by MrSwiss
Aug 03, 2019 19:17
Forum: Beginners
Topic: Can FB simple animations be run on a website?
Replies: 8
Views: 413

Re: Can FB simple animations be run on a website?

1. Can my programs be adapted for presentation on a web site? I whould not do that, the risks of running them "off the Web-Server" is simply to high. (even WebRun advises against it, they state "Intranet" only, which means site/company internal) I would zip them up (compression)...
by MrSwiss
Aug 02, 2019 15:33
Forum: Tips and Tricks
Topic: StringArray Sort (case independent)
Replies: 60
Views: 1993

Re: StringArray Sort (case independent)

And I remain equally convinced, acting on the maxim of:

"more code, more trouble, less speed"

that your tool is of no consequence, at least, as far as it concerns myself.
(Btw. if you don't stop your "advertising campaign", I'm going to report you!)
by MrSwiss
Jul 29, 2019 23:44
Forum: General
Topic: Using "PRINT #" and "INPUT ()" on binary files
Replies: 24
Views: 671

Re: Using "PRINT #" and "INPUT ()" on binary files

Yes, I've also noted, that someone must have been "diddling", with the forum SW.
(just check the massively increased "max. users online on date", was at "201")
by MrSwiss
Jul 29, 2019 23:33
Forum: General
Topic: Using "PRINT #" and "INPUT ()" on binary files
Replies: 24
Views: 671

Re: Using "PRINT #" and "INPUT ()" on binary files

Input() on a string? Are you sure you aren't confusing it with Mid?
No, but Line Input is better, if the file containes delimited strings.
You could even run it in a loop, to fill a string array.
by MrSwiss
Jul 29, 2019 23:26
Forum: General
Topic: Using "PRINT #" and "INPUT ()" on binary files
Replies: 24
Views: 671

Re: Using "PRINT #" and "INPUT ()" on binary files

In your example how can someone use "Input()" in the main code, since you already closed the file in the routine? Maybe from the string, that is returned by the function? ' main Dim As String file = "blah.dat", FC = loadfile(file) ' now use input on: FC (string) In case there is...

Go to advanced search