Brad Landis

Show:

What's happening?

  • Comment: UDT Default Value Array

    One way to get around the issue, is to use to use two separate constructors (Add "Constructor TypeA() ")

    2009-09-09 20:39:56 UTC in FreeBASIC Compiler

  • UDT Default Value Array

    It gives a segfault if the default value is an empty string, and I try to do anything with that string (Printing or assigning). Try this code: ---- test.bas ---- Type TypeA v As String Declare Constructor(v As String = "") End Type Constructor TypeA(v As String) '' Comment this out and no segfault occurs. Print v End Constructor Print "Declare"...

    2009-09-09 20:00:59 UTC in FreeBASIC Compiler

  • Show Only Unread Messages

    Even though the messages disappear after I click it, it seems to check for messages that have already been read. Can you please add a flag that says "Unread Only"?.

    2009-07-15 15:42:12 UTC in Gmail Notifier

  • Comment: Dir in linux only lists owned files

    So is that the way the original BASIC did it? If it is, then fine, but it's still not intuitive to me. I dunno. In my own mind, I would only care to have it filter files, or folders. If it didn't break API, I would prefer to have one flag for file/directory/system, and another for hidden/readonly. Whatever the case, it should work the same on all operating systems.

    2009-07-06 21:36:12 UTC in FreeBASIC Compiler

  • Comment: Dir in linux only lists owned files

    In my own opinion, I don't even need to set a readOnly flag when getting a list of files or directories. If I say I want the directories listed, I want ALL directories, not just the ones that aren't marked as read only. The read only flag is only important on the return flag. It just doesn't make sense to me. If I want a list of directories, why would I want it to be filtered by some...

    2009-07-06 18:32:22 UTC in FreeBASIC Compiler

  • Comment: Shell() does not close /dev/tty after opening (Linux)

    Someone made the fix on their own fbc compiler here: http://www.freebasic.net/forum/viewtopic.php?p=120093#120093.

    2009-06-26 14:47:13 UTC in FreeBASIC Compiler

  • Comment: Dir in linux only lists owned files

    Oh wait, the comments are in reverse order and it has been a while since I looked at this... It looks like I have to put the fbReadOnly flag for it to work. The attributes are fbDirectory and fbReadOnly when I pass in the variable. Am I required to have the readOnly flag set as well? In actuality, it's not readOnly, because as the root user, nothing is really readOnly.

    2009-06-24 19:14:51 UTC in FreeBASIC Compiler

  • Comment: Dir in linux only lists owned files

    It still does not show with the 3 flags set. Is this calling a c routine behind the BASIC?.

    2009-06-24 19:01:07 UTC in FreeBASIC Compiler

  • Comment: Dir in linux only lists owned files

    It still does not show the directory with those to attributes added. But if I add fbNormal, the directory does show up, as well as all files, no matter who the owner the owner is. If there was a function isDir(), it could be worked around, but I don't see one.

    2009-04-17 14:06:28 UTC in FreeBASIC Compiler

  • Dir in linux only lists owned files

    I set up a directory structure as follows: a/ a/b/ a/c/ a/d/ If you set chown anotheruser a/c/, and try to use dir to list the files, it will not show c/. Here's my test code: #include "dir.bi" Dim As String fname fname = Dir("a/*",fbDirectory) Do Until fname = "" Print fname fname = Dir() Loop I ran this as root, so it's not a permissions problem.

    2009-04-07 19:01:42 UTC in FreeBASIC Compiler

About Me

  • 2003-08-19 (6 years ago)
  • 847380
  • bradlis7 (My Site)
  • Brad Landis

  • SQL-based MySQL Linux Apple Mac OS X Microsoft Windows XP C++ Java PHP HTML/XHTML

Send me a message