Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 3 of 3
  1. #1
    Join Date
    Nov 2006
    Location
    Quebec, Canada.
    Posts
    432

    Display System Informations

    Hi everyone,

    I'm practicing by doing some little apps. So, I wanted to display the OS Name. I suceeded.
    But now, I want to display the User Info. Here is the code I used (Lines 08 to 10):

    Code:
    ---Setup User Info
    Name = System.GetUserInfo();
    Paragraph.SetText("UserInfo", Name);
    ---Setup User Info Ends
    So what's wrong ? The error message is:
    Main -- On Show, Line 10: Argument 2 must be of type String.

    It's the samething for this:
    Code:
    ---Setup Memory Display
    memory = System.GetMemoryInfo();
    Paragraph.SetText("Memory", memory);
    ---Setup Memory Display Ends
    Can someone help me? I'm sure yes

    Thanks a lot,
    FoxLeader

  2. #2
    Join Date
    May 2006
    Posts
    5,380
    System.GetUserInfo(); returns a table so you have to access the the string in the table


    here, this should work
    ---Setup User Info
    name = System.GetUserInfo();
    Paragraph.SetText("UserInfo", name.RegOwner);
    ---Setup User Info Ends
    and for the memory
    ---Setup Memory Display
    memory = System.GetMemoryInfo();
    Paragraph.SetText("Memory", memory.AvailableRAM);
    ---Setup Memory Display Ends
    Last edited by RizlaUK; 11-16-2006 at 05:39 AM.
    Open your eyes to Narcissism, Don't let her destroy your life!!

  3. #3
    Join Date
    Nov 2006
    Location
    Quebec, Canada.
    Posts
    432
    Thanks a lot! I think I understand how it works !
    I'll try with other systeminfos... just to see if I really got the trick

    Thanks and have a good day!

Similar Threads

  1. Collect System Informations
    By Gianni in forum AutoPlay Media Studio 5.0
    Replies: 1
    Last Post: 01-09-2005, 11:30 PM
  2. Display system info
    By pjhiggins in forum AutoPlay Media Studio 5.0
    Replies: 3
    Last Post: 02-25-2004, 08:32 AM
  3. Display System Time in Project
    By Mythwyn in forum AutoPlay Media Studio 5.0
    Replies: 5
    Last Post: 12-27-2003, 09:53 AM
  4. HOWTO: Display Conditional Text Based Upon a List Box Selection
    By Support in forum AutoPlay Media Studio 4.0 Examples
    Replies: 0
    Last Post: 10-15-2002, 10:54 AM
  5. HOWTO: Make a Program Run Every Time the System Starts
    By Support in forum Setup Factory 6.0 Knowledge Base
    Replies: 0
    Last Post: 10-01-2002, 09:44 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