Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 9 of 9
  1. #1
    Join Date
    Jun 2001
    Location
    California
    Posts
    2,014

    What in the H.E. Double cock roach am I doing wrong?

    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\\i nfo.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?

  2. #2
    Join Date
    May 2001
    Location
    51.531249 | -0.610962
    Posts
    1,244
    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?
    -
    = Derek
    ["All glory comes from daring to begin" - fortune cookie]

  3. #3
    Corey is offline Indigo Rose Staff Alumni
    Join Date
    Aug 2002
    Posts
    9,746
    I agree. Are you sure your "houses" folder is inside your AutoPlay folder and not perhaps inside your "Docs" folder?

  4. #4
    Join Date
    Jun 2001
    Location
    California
    Posts
    2,014
    Hummm
    Take a look at this: Movie

  5. #5
    Join Date
    Jul 2002
    Location
    USA
    Posts
    3,959
    The Page.Jump before you set the variable is getting you. The execution is stopped in that code at the Jump.

  6. #6
    Join Date
    Jun 2001
    Location
    California
    Posts
    2,014
    I'll look Thanks!

    YEP THAT'S IT! Thanks Worm!

  7. #7
    Join Date
    Jul 2002
    Location
    USA
    Posts
    3,959
    fer sure dude!

  8. #8
    Join Date
    Sep 2002
    Location
    Sol 3
    Posts
    3,160
    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
    TJ-Tigger
    "A common mistake that people make when trying to design something completely foolproof was to underestimate the ingenuity of complete fools."
    "Draco dormiens nunquam titillandus."
    Map of IR Forum Users - IR Project CodeViewer - Online Help - TiggTV - QuizEngine

  9. #9
    Join Date
    Jun 2001
    Location
    California
    Posts
    2,014
    oh... HELLO!

Posting Permissions

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