Search found 10 matches

by padawan
Jan 17, 2019 15:56
Forum: Beginners
Topic: DIR does list (some) files as directories
Replies: 14
Views: 858

Re: DIR does list (some) files as directories

Same command but different problem. (It could very well solve your next problem ...) No question the thread you posted a link to is interesting when dealing with the DIR() command. What I meant was, I did use the board search and I found that thread before, but it didn´t solve my problem. So I alre...
by padawan
Jan 17, 2019 15:17
Forum: Beginners
Topic: DIR does list (some) files as directories
Replies: 14
Views: 858

Re: DIR does list (some) files as directories

MrSwiss wrote: DIR() question
(Assume it to be FBC 64 bit compatible too, older stuff may have problems.)
Forum-Search is your friend ...

Same command but different problem.
by padawan
Jan 17, 2019 14:57
Forum: Beginners
Topic: DIR does list (some) files as directories
Replies: 14
Views: 858

Re: DIR does list (some) files as directories

I understand... could it be a way to 100% determine a directory to check if CHDIR returns 1 or 0? I mean like

Code: Select all

IF CHDIR(isItAFileOrAFolder) = 0 THEN
   PRINT "It´s a file"
ELSE
   PRINT "It´s a folder"
END IF
by padawan
Jan 17, 2019 12:20
Forum: Beginners
Topic: DIR does list (some) files as directories
Replies: 14
Views: 858

Re: DIR does list (some) files as directories

Boah... that´s weird! What could be the reason that I get wrong results on my 2 Workstations?
by padawan
Jan 17, 2019 11:00
Forum: Beginners
Topic: DIR does list (some) files as directories
Replies: 14
Views: 858

Re: DIR does list (some) files as directories

Thanks, fxm. I see you changed the loop condition. But I get the same wrong output with your code (the output I posted in my first post) . I don´t get an error like a runtime error or so, it´s just that the results are wrong. Files are listed as folders. Files are marked with the attribute fbDirecto...
by padawan
Jan 17, 2019 9:13
Forum: Beginners
Topic: DIR does list (some) files as directories
Replies: 14
Views: 858

DIR does list (some) files as directories

I´ve discovered a strange phenomenon. I played around with the following code example I found on the german Freebasic portal on this page: https://www.freebasic-portal.de/befehlsreferenz/dir-197.html The only amend I did is the CHDIR in Line 3 because I wanted to try the code in various folders. The...
by padawan
Jan 11, 2019 11:24
Forum: Tips and Tricks
Topic: TinyDialog a simple Windows and Linux user interface.
Replies: 100
Views: 20105

Re: TinyDialog a simple Windows and Linux user interface.

Wow... that is a cool concept. Thank you very much for the hints!
by padawan
Jan 11, 2019 11:12
Forum: Tips and Tricks
Topic: TinyDialog a simple Windows and Linux user interface.
Replies: 100
Views: 20105

Re: TinyDialog a simple Windows and Linux user interface.

A creative idea, I like it :-) is "chain" a certain tool or function, or do you just mean the detour via a text file?
by padawan
Jan 10, 2019 23:34
Forum: Tips and Tricks
Topic: TinyDialog a simple Windows and Linux user interface.
Replies: 100
Views: 20105

Re: TinyDialog a simple Windows and Linux user interface.

Ah, well, I got the point... it compiles fine when I use the 32 bit version of the FreeBasic compiler.
by padawan
Jan 10, 2019 13:58
Forum: Tips and Tricks
Topic: TinyDialog a simple Windows and Linux user interface.
Replies: 100
Views: 20105

won't compile *cry*

This looks extremely helpfull and usage seems pretty easy to understand. I would love to test it in some smaller projects. The Test01.exe works fine, but unfortunately I don´t manage to compile the "Test01.bas". The compiler throws errors. Looks like compatibility issues, but I don´t reall...

Go to advanced search