How to make an app - Andromo App Maker


No announcement yet.

It Is Possible?

  • Filter
  • Time
  • Show
Clear All
new posts

  • It Is Possible?

    found = File.Find("C:\\", "*.exe", true, false);
    Label.SetText("Search", found);

    Serach *.exe File And SetLable While Serarching == SerachFile(Found Or No)
    Sorry.My English Is Very Bad.
    Please Help Me.

  • #2
    Please clear your message up cause i dont understand what you want to do.


    • #3
      Hi,Please View This Code:

      StatusDlg.Show(MB_ICONNONE, false);
      found = File.Find("C:\\", "*.exe", true, false);
      When Searching File,Searched Files Shown In StatusDlg.
      I Want To Don't View StatusDlg And Set a Lable Object abreast Searched Files.
      Please Help Me,It Is Very Important.


      • #4

        If I understand you correctly, try this attachement. It first prompts you for a search folder. If none is found, it promtps the user as such. If one is found, it displays the name of the file and if multiple files are found, then it prompts the user and asks if they'd like to see the results.

        And don't worry, your English is better than my Persian.
        Attached Files
        Last edited by Protocol; 01-03-2008, 10:18 AM.


        • #5
          No,It Is Not Correct.
          Instead Of Showing Searched Files In The Statusdlg Show Them In The A Lable Object.In Other Words Lable Equals Searched Files.
          Please View This Files.

          Click image for larger version

Name:	File.gif
Views:	1
Size:	15.0 KB
ID:	280953


          • #6
            Short answer is yes. This is possible.

            Unfortunately, I don't think you can do this through the built-in file find function. There may be a way through the callback function, but I never use it, so I wouldn't know off-hand how to use that element (plus it would seem like a waste of the function since you don't seem to want the Status Dialos anyways). One way I would do it is to build your own search function that would list all of the files and files within subfolders, it would then split the path of each file found and compare extensions. All-the-while, the results would update the label object of your choice. Additionally, you could place a cancel condition in your search parameters to effectively emulate the cancel function in the Status Dialog box.

            I would build this for you, but I spent too much time building the last one and I'm falling behind on my freelance projects. Someone else can help you with this, but I would suggest following the recipe above.

            Have fun!
            Last edited by Protocol; 01-03-2008, 01:21 PM.


            • #7
              Hi.Please Help Me With A Project.:o


              • #8
                This might help:

                function FileFound(path)
                Label.SetText("Label1", path);
                return true;
                found = File.Find("C:\\", "*.exe", true, false, nil, FileFound);
                Never know what life is gonna throw at you. ZubTech


                • #9
                  Hi,Thank You Very Much Dear Blue.
                  I Want To Abort (Cancel) Seraching Operation With A Cancel Button.
                  What Is It Way?
                  Sorry,My English Is Very Bad.


                  • #10
                    Hi,Please View This Project.
                    It Is A Correct Way For Cancel Searching Operation Or No.