Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 4 of 4
  1. #1
    Join Date
    Sep 2006
    Posts
    3

    Please help me fix this error

    I am getting an error message on one of my projects that only comes up on certain machines. All of the machines I have tested so far are using Windows XP. For about half of the machines my project runs fine, but for the other half I get this error

    Page 1 -> On Timer, Line 17 Argument 1 must be a type of string

    here is my script code if this helps

    -- set
    curTime = Math.Round(Audio.GetCurrentPos(CHANNEL_USER1), 2);
    if String.Find(curTime, ".", 1, false)==-1 then
    curTime = String.Concat(curTime, ".");
    end
    decPos = String.Find(curTime, ".", 1, false);
    strLen = String.Length(curTime);
    zerosNeeded = 2 - (strLen - decPos);
    if zerosNeeded > 0 then
    for count = 1, zerosNeeded do
    curTime = curTime.."0";
    end
    end
    Paragraph.SetText("Paragraph1", curTime);

    -- set "now playing" display
    myChar = String.Left(title, 1);
    title = String.Right(title, (String.Length(title)-1));
    title = title..myChar;
    titleText = String.Left(title, 20);
    Paragraph.SetText("Paragraph2", titleText);

  2. #2
    Join Date
    Dec 2003
    Location
    Location! Location!
    Posts
    6,137
    What initially is "title" set as? Back track that variable.
    Intrigued

  3. #3
    Join Date
    Sep 2006
    Posts
    3
    I fixed it, for some reasons on some machines it would start the variable at a negative number, so I set it to 0 to on show

  4. #4
    Join Date
    Dec 2003
    Location
    Location! Location!
    Posts
    6,137
    Glad to have been apart of the great "fix".

    Intrigued

Similar Threads

  1. New TrueUpdate 2.0 (v 2.0.2.0) Available
    By Darryl in forum TrueUpdate 2.0
    Replies: 0
    Last Post: 06-27-2005, 02:11 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. ZipExtract "callback" error
    By Darwin in forum AutoPlay Media Studio 5.0
    Replies: 2
    Last Post: 02-21-2005, 06:34 PM
  5. SUF6.0.0.2 -- installer hangs.
    By jassing in forum Setup Factory 6.0
    Replies: 4
    Last Post: 12-19-2001, 11:28 PM

Posting Permissions

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