Results 1 to 2 of 2
  1. #1
    Join Date
    Nov 2003
    Posts
    3

    Unanswered: Field names properties

    A form contains fields (UIObjects) which have fieldnames.
    I want to color one field corresponding to the value of another field named "Von".
    Code:
    #formdata1.enumFieldNames(Feldnames) ; works fine
    for i from 1 to maxFields
      if Feldnames[i] = Von then   ; works fine
          Feldnames[i].color = green  ;; Error while compiling.
      endif
    endfor
    I get back the value (content) of Feldnames[i], but I want to modify a property!

    Thanks in advance for a hint!
    Uli

  2. #2
    Join Date
    Aug 2003
    Location
    Bologna - Italy
    Posts
    209
    enumFieldNames is NOT what you think: it is a function which returns an array of strings containing the names of the fields of the table associated with the control, or the main table of the form's data model.

    That has NO connection at all to the uiobjects that you have put on the form!

    You could simply write:

    #formdata1.(Von).color=green;
    The only failure is not trying to do it.

Posting Permissions

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