Search found 213 matches
- Oct 18, 2017 8:37
- Forum: Tips and Tricks
- Topic: DIR statement : file attributes for Newbies
- Replies: 46
- Views: 2645
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...
- Oct 18, 2017 0:35
- Forum: Tips and Tricks
- Topic: DIR statement : file attributes for Newbies
- Replies: 46
- Views: 2645
Re: DIR statement : file attributes for Newbies
No , I didn't , what I did was to defend myself against the derailing thing here , which I could not just ignore : viewtopic.php?p=238011#p238011deltarho[1859] wrote:You stayed with it.
Accusation with no link link to reality , the only reason that the view or opinion of other people were ever brought up were as a response to this post where I tried to explain that people were negative (as opposed to positive) : viewtopic.php?p=237963#p237963deltarho[1859] wrote:I am now convinced that my artist post was correct and what we have here is a response to a failure to get a "seeking for appreciation for your initial post".
Whatever :-)deltarho[1859] wrote:It is with regret then that I have decided to put Trinity on my ignore list; which had been empty..
- Oct 17, 2017 23:41
- Forum: Tips and Tricks
- Topic: DIR statement : file attributes for Newbies
- Replies: 46
- Views: 2645
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...
- Oct 17, 2017 22:44
- Forum: Tips and Tricks
- Topic: DIR statement : file attributes for Newbies
- Replies: 46
- Views: 2645
Re: DIR statement : file attributes for Newbies
Yeah , well , it certainly has taught me to reconsider more than once if I ever get that urge again ;-) :-DKuron wrote:Your experience is an example of why many will never post code, tutorials, etc.
- Oct 17, 2017 22:23
- Forum: Tips and Tricks
- Topic: DIR statement : file attributes for Newbies
- Replies: 46
- Views: 2645
Re: DIR statement : file attributes for Newbies
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 :-Dgrindstone wrote:Maybe this thread should be renamed and shifted to "Community Discussion" <smirk>
- Oct 17, 2017 12:17
- Forum: Tips and Tricks
- Topic: DIR statement : file attributes for Newbies
- Replies: 46
- Views: 2645
Re: DIR statement : file attributes for Newbies
I will add, the self-proclaimed experts tend to be the annoying folks who belittle and demean and flat out tell you you are doing wrong and should do it their way. Those are the folks that are best stuck on ignore. Not saying anybody in this thread falls into that category, and I have NOT read any ...
- Oct 16, 2017 22:26
- Forum: Tips and Tricks
- Topic: DIR statement : file attributes for Newbies
- Replies: 46
- Views: 2645
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...
- Oct 16, 2017 20:15
- Forum: Tips and Tricks
- Topic: DIR statement : file attributes for Newbies
- Replies: 46
- Views: 2645
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...
- Oct 16, 2017 19:55
- Forum: Tips and Tricks
- Topic: DIR statement : file attributes for Newbies
- Replies: 46
- Views: 2645
Re: DIR statement : file attributes for Newbies
The correct way to extract the properties could be implemented like this: Did I ever mention(yes I did in another thread) that I am not good at Boolean either why I am trying to adopt the use of AndAlso and OrElse rather than relying on the Boolean logic operators which I do not master yet. (Please...
- Oct 16, 2017 19:29
- Forum: Tips and Tricks
- Topic: DIR statement : file attributes for Newbies
- Replies: 46
- Views: 2645
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...
- Oct 16, 2017 19:11
- Forum: Tips and Tricks
- Topic: DIR statement : file attributes for Newbies
- Replies: 46
- Views: 2645
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...
- Oct 16, 2017 19:06
- Forum: Tips and Tricks
- Topic: DIR statement : file attributes for Newbies
- Replies: 46
- Views: 2645
Re: DIR statement : file attributes for Newbies
The Wikipedia article I've linked above is a good start. Once you comprehend bit masks you won't need that list anymore. Probably you should also read the articles about binary numbers and bitwise operations in general: https://en.wikipedia.org/wiki/Binary_number https://en.wikipedia.org/wiki/Bitwi...
- Oct 16, 2017 18:52
- Forum: Tips and Tricks
- Topic: DIR statement : file attributes for Newbies
- Replies: 46
- Views: 2645
Re: DIR statement : file attributes for Newbies
I'd strongly recommend to extract attributes with binary logic as shown in the wiki. I'd even consider your implementation "bad style". 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. (Have learned abou...
- Oct 16, 2017 18:24
- Forum: Tips and Tricks
- Topic: DIR statement : file attributes for Newbies
- Replies: 46
- Views: 2645
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...
- Oct 16, 2017 17:20
- Forum: Tips and Tricks
- Topic: DIR statement : file attributes for Newbies
- Replies: 46
- Views: 2645
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...