File.GetAttributes Problem

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • mustafa06
    Forum Member
    • Jul 2007
    • 287

    File.GetAttributes Problem

    ----

    folder = Dialog.FileBrowse(true, "Locate File", _DesktopFolder, "All Files (*.*)|*.*|", "", "dat", false, false);

    attrib = File.GetAttributes(folder[1]);
    bReadOnly = attrib.ReadOnly;
    strCreationDate = attrib.CreationDate;
    rich = RichText.GetText("Rich1", true);
    RichText.SetText("Rich1", folder[1], true);
    RichText.SetText("Rich1", rich.."\r\n"..bReadOnly, true);
    RichText.SetText("Rich1", rich.."\r\n"..strCreationDate, true);

    ----

    I show this message "bReadOnly" ( a boolean value )

    What is problem ?
  • ShadowUK
    No longer a forum member
    • Oct 2007
    • 1321

    #2
    Originally posted by mustafa06 View Post
    ----

    folder = Dialog.FileBrowse(true, "Locate File", _DesktopFolder, "All Files (*.*)|*.*|", "", "dat", false, false);

    attrib = File.GetAttributes(folder[1]);
    bReadOnly = attrib.ReadOnly;
    strCreationDate = attrib.CreationDate;
    rich = RichText.GetText("Rich1", true);
    RichText.SetText("Rich1", folder[1], true);
    RichText.SetText("Rich1", rich.."\r\n"..bReadOnly, true);
    RichText.SetText("Rich1", rich.."\r\n"..strCreationDate, true);

    ----

    I show this message "bReadOnly" ( a boolean value )

    What is problem ?

    Code:
    folder = Dialog.FileBrowse(true, "Locate File", _DesktopFolder, "All Files (*.*)|*.*|", "", "dat", false, false);
    
    attrib = File.GetAttributes(folder[1]);
    bReadOnly = attrib.ReadOnly;
    strCreationDate = attrib.CreationDate;
    rich = RichText.GetText("Rich1", true);
    RichText.SetText("Rich1", folder[1], true);
    RichText.SetText("Rich1", rich.."\r\n"..assert(tostring(bReadOnly)), true);
    RichText.SetText("Rich1", rich.."\r\n"..strCreationDate, true);

    Comment

    • mustafa06
      Forum Member
      • Jul 2007
      • 287

      #3
      Originally posted by ShadowUK View Post
      Code:
      folder = Dialog.FileBrowse(true, "Locate File", _DesktopFolder, "All Files (*.*)|*.*|", "", "dat", false, false);
      
      attrib = File.GetAttributes(folder[1]);
      bReadOnly = attrib.ReadOnly;
      strCreationDate = attrib.CreationDate;
      rich = RichText.GetText("Rich1", [COLOR="Red"]true[/COLOR]);
      RichText.SetText("Rich1", folder[1], [COLOR="Red"]true[/COLOR]);
      RichText.SetText("Rich1", rich.."\r\n"..assert(tostring(bReadOnly)), [COLOR="Red"]true[/COLOR]);
      RichText.SetText("Rich1", rich.."\r\n"..strCreationDate, [COLOR="Red"]true[/COLOR]);
      İf ı write this code ı dont show anytext in rich1
      but ı change "true" ( red text ) "false" then ı show only strCreationData ( Monday etc.. )

      Help

      Comment

      • ShadowUK
        No longer a forum member
        • Oct 2007
        • 1321

        #4
        look at my attach.
        Attached Files

        Comment

        • mustafa06
          Forum Member
          • Jul 2007
          • 287

          #5
          its true but ı want on richtext not paragraph :yes

          Comment

          • ShadowUK
            No longer a forum member
            • Oct 2007
            • 1321

            #6
            Attached Files

            Comment

            • mustafa06
              Forum Member
              • Jul 2007
              • 287

              #7
              very thx man

              Comment

              Working...
              X