Search found 213 matches

by Trinity
Oct 18, 2017 8:37
Forum: Sources, Examples, Tips and Tricks
Topic: DIR statement : file attributes for Newbies
Replies: 46
Views: 7627

Re: DIR statement : file attributes for Newbies

@ critics , when you have a clear head, reread this : I do not yet master "binary logic as shown in the wiki" and have no intention having to spend time on learning about it now. ref. : https://www.freebasic.net/forum/viewtopic.php?p=237951#p237951 I woke up with a smile on my lips this mo...
by Trinity
Oct 18, 2017 0:35
Forum: Sources, Examples, Tips and Tricks
Topic: DIR statement : file attributes for Newbies
Replies: 46
Views: 7627

Re: DIR statement : file attributes for Newbies

You stayed with it. No , I didn't , what I did was to defend myself against the derailing thing here , which I could not just ignore : https://www.freebasic.net/forum/viewtopic.php?p=238011#p238011 I am now convinced that my artist post was correct and what we have here is a response to a failure t...
by Trinity
Oct 17, 2017 23:41
Forum: Sources, Examples, Tips and Tricks
Topic: DIR statement : file attributes for Newbies
Replies: 46
Views: 7627

Re: DIR statement : file attributes for Newbies

The thing is that it is showing other newbies a suboptimal implementation. <BLAH BLAH BLAH> You are repeating yourself (Keeps writing the same stuff over and over just using different ways of writing the same) Examples demonstating bad practices are not helpful for anybody, and especially not for b...
by Trinity
Oct 17, 2017 22:44
Forum: Sources, Examples, Tips and Tricks
Topic: DIR statement : file attributes for Newbies
Replies: 46
Views: 7627

Re: DIR statement : file attributes for Newbies

Kuron wrote:Your experience is an example of why many will never post code, tutorials, etc.
Yeah , well , it certainly has taught me to reconsider more than once if I ever get that urge again ;-) :-D
by Trinity
Oct 17, 2017 22:23
Forum: Sources, Examples, Tips and Tricks
Topic: DIR statement : file attributes for Newbies
Replies: 46
Views: 7627

Re: DIR statement : file attributes for Newbies

grindstone wrote:Maybe this thread should be renamed and shifted to "Community Discussion" <smirk>
It's not my fault if people have run amok over my initial post - I think it helpful but apparently not considered so by those that it's not supposed to help - go figure :-D
by Trinity
Oct 17, 2017 12:17
Forum: Sources, Examples, Tips and Tricks
Topic: DIR statement : file attributes for Newbies
Replies: 46
Views: 7627

Re: DIR statement : file attributes for Newbies

One thing to keep in mind, there is no such thing as an expert when it comes to programming. There is always somebody who is going to know more than somebody else. The industry changes too rapidly for anybody to be an expert. So, never be intimidated. Most can remember what it was like being a begi...
by Trinity
Oct 16, 2017 22:26
Forum: Sources, Examples, Tips and Tricks
Topic: DIR statement : file attributes for Newbies
Replies: 46
Views: 7627

Re: DIR statement : file attributes for Newbies

The comments were meant as helpful feedback. We all have our own way of learning something new and that you are excited enough about your discoveries to put them out there is a good thing but it will also mean you have the benefit of feedback from some the more advanced and knowledgeable programmer...
by Trinity
Oct 16, 2017 20:15
Forum: Sources, Examples, Tips and Tricks
Topic: DIR statement : file attributes for Newbies
Replies: 46
Views: 7627

Re: DIR statement : file attributes for Newbies

By the way , this is a link to only one of *many* pages I visited this afternoon (I Googled the subject intensely to study it) when studying the file attribute thing : http://www.pcguide.com/ref/hdd/file/fatAttributes-c.html (So I have been aware of the bit notation thing during the whole of this di...
by Trinity
Oct 16, 2017 19:55
Forum: Sources, Examples, Tips and Tricks
Topic: DIR statement : file attributes for Newbies
Replies: 46
Views: 7627

Re: DIR statement : file attributes for Newbies

That is why I strongly recommended (or even insisted on) learning how to use bit masks first. You don't even have to know a lot about bit masks if you just use the code fragments from the manual. In my opinion you are being very unreasonable and close to showing zero understanding for how it is to ...
by Trinity
Oct 16, 2017 19:29
Forum: Sources, Examples, Tips and Tricks
Topic: DIR statement : file attributes for Newbies
Replies: 46
Views: 7627

Re: DIR statement : file attributes for Newbies

attrib_mask = 35 is bad coding. # include "dir.bi" attrib_mask = fbArchive Or fbHidden OR fbReadOnly is right coding. Thank you , but where did I use "attrib_mask = 35" ?` ? , I am not saying that I wouldn't write code as bad as that , I am just asking where I did ? I did the op...
by Trinity
Oct 16, 2017 19:11
Forum: Sources, Examples, Tips and Tricks
Topic: DIR statement : file attributes for Newbies
Replies: 46
Views: 7627

Re: DIR statement : file attributes for Newbies

You definitely should. Binary operations is what a computer is built upon and how it works. Learning programming a computer without knowing the basics of how a computer works is no good idea IMHO. I know , and I do understand, and having programmed at bit in assembler years back I may still underst...
by Trinity
Oct 16, 2017 19:06
Forum: Sources, Examples, Tips and Tricks
Topic: DIR statement : file attributes for Newbies
Replies: 46
Views: 7627

Re: DIR statement : file attributes for Newbies

That list ist not needed and IMHO even misleading. Well , then FXM will most likely not put it in the Manual then. By the way , I do not know if you have noticed this , but this thread is in the Tips and tricks and subject is marked for Newbies. So 1) I have *not* posted this as a manual suggestion...
by Trinity
Oct 16, 2017 18:52
Forum: Sources, Examples, Tips and Tricks
Topic: DIR statement : file attributes for Newbies
Replies: 46
Views: 7627

Re: DIR statement : file attributes for Newbies

The manual explicitly mentions that the out_attr value is a bit mask. Sounds as critique to me , and the relevance to my list is what ? Your code is a lot more complicated than the example on the wiki. And so ? , I haven't asked that the examples be swapped ! I'd strongly recommend to extract attri...
by Trinity
Oct 16, 2017 18:24
Forum: Sources, Examples, Tips and Tricks
Topic: DIR statement : file attributes for Newbies
Replies: 46
Views: 7627

Re: DIR statement : file attributes for Newbies

For me, the manual page is complete: Good for you :-) But as always , then what may seem obvious to the "trained eye" or the experienced programmer may not be equally obvious to the beginner / Newbie. Personally I am always appreciative of the huge work that has already been done on docum...
by Trinity
Oct 16, 2017 17:20
Forum: Sources, Examples, Tips and Tricks
Topic: DIR statement : file attributes for Newbies
Replies: 46
Views: 7627

DIR statement : file attributes for Newbies

DIR statement : file attributes for Newbies As a Newbie I have spent some time trying to find out about the "out_attrib" when using the DIR statement (ref. FB manual : https://www.freebasic.net/wiki/wikka.php?wakka=KeyPgDir) I think that the manual is a bit thin on the information on the F...