Results 1 to 3 of 3

Thread: Read-only property - Forms

  1. #1
    Join Date
    Jul 2007
    Location
    Missouri
    Posts
    318
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Read-only property - Forms

    I've been trying to learn forms and such, I just posted a thread on Freddy's forum but I noticed that activity was low. Maybe i can get faster help here. Here is a link to my post on Freddy's forum: http://freddy1990.com/forums/index.php?topic=3329.0

    Edit: Post From Freddy's forum.
    Trying to learn forms and I keep getting this error:

    SCAR Code:
    Line 371: [Error] (371:37): Read-only property in script C:\Program Files\SCAR 3.20\Scripts\Made\FormTest.scar

    Line 371:
    SCAR Code:
    Arial.ItemName:= 'Abadi MT Condensed';

    and declared Arial as:
    SCAR Code:
    Arial : TNxFontComboBox;

    I've gone through quite a few different options and trying to fix it and I dont understand why i'm getting this error.

    Any help?

  2. #2
    Join Date
    Apr 2007
    Posts
    3,152
    Mentioned
    3 Post(s)
    Quoted
    1 Post(s)

    Default

    Arial.font.name := 'Abadi MT Condensed'; (just like Freddy already told you.)

    You're trying to change a property that can't be changed, which is where your error is coming from. Its like trying to change the index number something.
    SCAR Tutorials: The Form Tutorial | Types, Arrays, and Classes
    Programming Projects: NotePad | Tetris | Chess


  3. #3
    Join Date
    Jan 2008
    Location
    California, US
    Posts
    2,765
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    You can't change that as it is read only ...however, to change the font of w/e you wanted you would just do what Freddy/Dan already said. That is a property you would read i.e if Arial.ItemName = 'x' then ...

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 0
    Last Post: 08-04-2007, 06:33 PM
  2. Everything Done But Forms:
    By IEatJ00erBaybees in forum OSR Help
    Replies: 4
    Last Post: 05-12-2007, 10:39 PM
  3. Need help in forms!
    By Pentti in forum OSR Help
    Replies: 5
    Last Post: 11-04-2006, 06:15 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
  •