If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > PC based Database Applications > Corel Paradox > Field names properties

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-20-07, 05:20
HUW_DE HUW_DE is offline
Registered User
 
Join Date: Nov 2003
Posts: 3
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
Reply With Quote
  #2 (permalink)  
Old 06-11-07, 10:32
Shores Shores is offline
Registered User
 
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.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On