Indigo Rose Software

Professional Software Development Tools

 
+ Reply to Thread
Results 1 to 3 of 3

Thread: Code Check

  1. #1
    Join Date
    Feb 2006
    Posts
    346

    Code Check

    Not sure if my code is incorrect or if there is a bug.

    On Button Click
    Code:
    sSelectedText = TextFile.ReadToString("AutoPlay\\SoftwareDIS\\NWClient\\admin\\Unattended.txt");
    Input.SetText("Input1", sSelectedText);
    ---hide/show buttons-----
    Button.SetVisible("NWClienSave", true);
    Button.SetVisible("BatSave", false);
    I get the following error:
    On Click line 4: attempt to index global "button' (a string value)


    My Global Code
    Code:
    ---calendar----
    function SetUpTables()
    tdayofweek = {};
    tdayofweek[1] = "Sunday";
    tdayofweek[2] = "Monday";
    tdayofweek[3] = "Tuesday";
    tdayofweek[4] = "Wednesday";
    tdayofweek[5] = "Thursday";
    tdayofweek[6] = "Friday";
    tdayofweek[7] = "Saturday";
    tmonth = {};
    tmonth[1] = "January";
    tmonth[2] = "February";
    tmonth[3] = "March";
    tmonth[4] = "April";
    tmonth[5] = "May";
    tmonth[6] = "June";
    tmonth[7] = "July";
    tmonth[8] = "August";
    tmonth[9] = "September";
    tmonth[10] = "October";
    tmonth[11] = "November";
    tmonth[12] = "December";
    end

    Not sure why setting a button to visible or hidden would cause this error. Thanks

  2. #2
    Join Date
    Apr 2007
    Location
    Raalte, OV, Netherlands
    Posts
    3,287
    that could be caused because somewhere you have a variable called button that has a string in it
    Bas Groothedde
    Imagine Programming :: Blog :: Familiar people here

    My AMS Plugins:

  3. #3
    Join Date
    Feb 2006
    Posts
    346
    Your are correct. Don't know how I missed that. Thanks

Similar Threads

  1. Code Check requested? (re. FTP)
    By mystica in forum AutoPlay Media Studio 7.5
    Replies: 3
    Last Post: 09-29-2008, 01:52 AM
  2. Article: Using Authenticode Code Signing Certificates
    By Ted Sullivan in forum Setup Factory 8.0 Examples
    Replies: 4
    Last Post: 10-31-2007, 09:03 AM
  3. New Check Boxes on Preload code
    By civil78 in forum Setup Factory 7.0
    Replies: 3
    Last Post: 03-16-2006, 09:57 AM
  4. Need a code that will check for installed programs.
    By Quantrac in forum AutoPlay Media Studio 5.0
    Replies: 2
    Last Post: 02-07-2005, 12:07 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