Indigo Rose Software

Professional Software Development Tools

 
+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Join Date
    Nov 2009
    Posts
    24

    Like Dos cmd : FIND /c

    Hello,

    I use is dos batch the cmd : Find /c "think" file.txt

    Pease help me to find this command is AMS

    Thancks

  2. #2
    Join Date
    Nov 2009
    Posts
    24
    So i try

    getfile = TextFile.ReadToString("AutoPlay\\Docs\\"..Input.Ge tText("REGATE")..".txt");
    test = String.Find(getfile, Application.LoadValue("Ident", "Ident"), 1, false);
    result = Dialog.Message("Test", test, MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1);

    The variable is ok and result is 307

    So want dos it meen "307" ?

    ...

  3. #3
    Join Date
    May 2006
    Posts
    5,380
    it means the word 'Ident' was found at position 307 in the file

    use String.Mid to retrieve the text at that position
    Open your eyes to Narcissism, Don't let her destroy your life!!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts