View Single Post
  #1 (permalink)  
Old February 26th, 2014, 08:51 AM
stefankemp stefankemp is offline
Registered User
Points: 11, Level: 1
Points: 11, Level: 1 Points: 11, Level: 1 Points: 11, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Feb 2014
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Referencing controls

Hi, in a List view I want a particular control (textbox) to have a red background color if it has a certain value. I have tried the following:

Click on the textbox then click the Data icon in the context sensitive controls that appear. I can then see that the name of the control is First_NameTextBox. I then click anywhere on the List view and click the Actions icon in the context controls that appear to the right of the view. I select "On Current". I then create two steps that should be executed whenever a new record is activated:

Code:
If [First_NameTextBox] = "somevalue" Then
    SetProperty
        Control Name     [First_NameTextBox]
        Property            BackColor
        Value                #FF0000
End If
However, this turns the textbox red no matter what the value in First_NameTextBox is. How do I reference the CURRENT value of the textbox?
Reply With Quote