PDA

View Full Version : What in the H.E. Double cock roach am I doing wrong?


Bruce
05-31-2005, 06:49 PM
LOL what am I doing wrong here...
On the first page I have a button that reads a text file to a variable:

houseinfo = TextFile.ReadToString("AutoPlay\\houses\\house1\\info.txt");

On another page I have the page read the variable to a paragraph object:

Paragraph.SetText("Info_Paragraph", houseinfo);

All I get is: home-> OnShow, Line1: Augument 2 must be of type string.??

Anyone?

Derek
05-31-2005, 07:10 PM
Sounds like the text file is not being read.

Check the button to ensure the script is in the right place .. and is the button being clicked etc?

Corey
05-31-2005, 07:14 PM
I agree. Are you sure your "houses" folder is inside your AutoPlay folder and not perhaps inside your "Docs" folder?

Bruce
05-31-2005, 08:03 PM
Hummm
Take a look at this: Movie (http://www.diginetx.com/help.wvx)

Worm
05-31-2005, 08:13 PM
The Page.Jump before you set the variable is getting you. The execution is stopped in that code at the Jump.

Bruce
05-31-2005, 08:22 PM
I'll look Thanks!

YEP THAT'S IT! Thanks Worm!

Worm
05-31-2005, 08:26 PM
fer sure dude!

TJ_Tigger
05-31-2005, 10:06 PM
5.0.2.0 changed how the Page.Jump action worked with a block of scripting. IR added "_NoExitScriptOnPageJump" variable so that if you had projects with a Page.Jump before other script in a block the actions after the Page.Jump would still execute if the "_NoExitScriptOnPageJump" was set to true.

Tigg

Bruce
05-31-2005, 11:19 PM
oh... HELLO!