zachatFTC
09-27-2006, 04:10 PM
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);
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);