Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 11 of 11
  1. #1
    Join Date
    Sep 2004
    Posts
    38

    String.Find has a BUG

    String.Find and String.ReverseFind have a BUG.

    result = String.ReverseFind("SR123456789BR&123&435", "&", false);

    This code generates an error: attempt to index a string value.

    Any suggestion?

    I tried to convert a string to a table.

    The function DelimitedStringToTable does not Work because String.Find has a BUG.

    My OS is Windows XP SP2, all updates, AMD Mobile Sempron 3100.

    Thanks

  2. #2
    Join Date
    Jan 2000
    Posts
    2,002
    Thanks for the report. We will look into that. REF: 16663

  3. #3
    Join Date
    Feb 2001
    Location
    Indigo Rose Software
    Posts
    2,728
    For the record, it works fine here. (Returns 18.)
    --[[ Indigo Rose Software Developer ]]

  4. #4
    Join Date
    Aug 2003
    Posts
    2,427
    Same here and String.Find returns 14.

    What other code is there, must be that that's causing the error.

  5. #5
    Join Date
    Apr 2004
    Location
    Vancouver, Canada
    Posts
    1,790
    Works fine here too, returns 18.
    Dermot

    I am so out of here

  6. #6
    Join Date
    Nov 2003
    Location
    Florida
    Posts
    113
    Worke here, reverse = 18 normal = 14, no errors.

  7. #7
    Join Date
    Sep 2004
    Posts
    38
    Hi.

    The problem happend when a used a variable called "string".

  8. #8
    Join Date
    Nov 2003
    Location
    Florida
    Posts
    113
    You are correct, if "string" is used as a variable the first run is ok but the second run produces "Error, attempt to index a number value"

  9. #9
    Join Date
    Feb 2001
    Location
    Indigo Rose Software
    Posts
    2,728
    "string" is the name of a table containing string functions in Lua (some of which are used by the String actions in AutoPlay, including String.Find).

    If you use "string" as a variable name you remove access to the built-in Lua string functions.
    --[[ Indigo Rose Software Developer ]]

  10. #10
    Join Date
    May 2005
    Posts
    1,115
    Yeah, this is not a bug.
    Never know what life is gonna throw at you.
    (Based on a true story.)

  11. #11
    Join Date
    Sep 2004
    Posts
    38
    OK, sorry. My mistake.

Similar Threads

  1. TrueUpdate 2.0 Update (v2.0.6.0) Released
    By Brett in forum TrueUpdate 2.0
    Replies: 0
    Last Post: 10-31-2006, 01:10 PM
  2. New Setup Factory 7.0 (v 7.0.3.0) Available
    By Darryl in forum Setup Factory 7.0
    Replies: 3
    Last Post: 06-19-2005, 12:59 AM
  3. New Setup Factory 7.0 (v 7.0.2.0) Available
    By Darryl in forum Setup Factory 7.0
    Replies: 9
    Last Post: 03-06-2005, 01:57 PM
  4. AutoPlay Media Studio 4.0.0.4 Released
    By Colin in forum AutoPlay Media Studio 4.0
    Replies: 0
    Last Post: 04-01-2003, 10:16 AM
  5. AutoPlay Media Studio 4.0.0.3 Released
    By Brett in forum AutoPlay Media Studio 4.0
    Replies: 0
    Last Post: 12-11-2002, 08:39 AM

Posting Permissions

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