Indigo Rose Software

Professional Software Development Tools

 
+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Join Date
    Mar 2007
    Posts
    18

    what is wrong with this code ? help plz

    hi there

    PHP Code:
    tbl_reg Registry.GetValueNames(HKEY_LOCAL_MACHINE"SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run");
    for 
    j,k in tbl_reg do
      
    ListBox.AddItem("ListBox1"k"");
    end 
    this code is working , but the problem is , if there is no application in startup it will appear

    a window error

    i want to make this code with no window error if there is no application on startup

    i should write something ...can you correct it for me please

    thank you

    the picture is attached
    Attached Images

  2. #2
    Join Date
    Mar 2007
    Location
    HeaveN
    Posts
    534
    Try like that

    Code:
    tbl_reg = Registry.GetValueNames(HKEY_LOCAL_MACHINE, "SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run"); 
    if tbl_reg ~= "" then
      for j,k in tbl_reg do 
        ListBox.AddItem("ListBox1", k, ""); 
      end  
    end

  3. #3
    Join Date
    Mar 2007
    Posts
    18
    thank you jackdaniels ...you are the best

Similar Threads

  1. Can you correct this code plz .....thank you
    By melissa in forum AutoPlay Media Studio 7.5
    Replies: 2
    Last Post: 04-01-2009, 02:24 PM
  2. what's wrong with this code ???
    By GoOgLe in forum AutoPlay Media Studio 7.5
    Replies: 7
    Last Post: 11-17-2008, 11:27 AM
  3. 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
  4. can you help me where i put this code plz
    By jack in forum AutoPlay Media Studio 6.0
    Replies: 6
    Last Post: 04-02-2007, 08:08 AM
  5. Wrong Error Code (When not reaching host)
    By Thierry_Zoller in forum Setup Factory 6.0
    Replies: 0
    Last Post: 04-21-2004, 05:53 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