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 > How do I get the field of a form to data-dependent change the color?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-04-03, 05:51
DevilsAngel DevilsAngel is offline
Registered User
 
Join Date: Jun 2003
Location: Cologne, Germany
Posts: 1
Exclamation How do I get the field of a form to data-dependent change the color?

Hi!
I am working with Paradox 10.

I have created a form where you can enter Data to a table. If the user leaves one of the fields blank, I want this field on the form to turn red.
I have tried it with this code, but it doesn't work:

method action(var eventInfo ActionEvent)
if eventInfo.id() = DataArriveRecord then
doDefault
if Seminarnummer.Value = ("blank") then
self.Color = red
else
self.Color = transparent
endif
endif
endmethod

I also tried this method, but Paradox 10 seems to not know this method:

method changeColor()
if Seminarnummer.Value = ("blank") then
self.Color = red
else
self.Color = transparent
endif
endMethod


How can I solve this Problem?
Reply With Quote
  #2 (permalink)  
Old 08-27-03, 16:21
Shores Shores is offline
Registered User
 
Join Date: Aug 2003
Location: Bologna - Italy
Posts: 209
You should experiment with the two methods NewValue and ChangeValue.

Do remember that they're visible only if you've turned on the Avdanced ObjectPAL mode from paradox's options dialog box.

Bye!
__________________
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