Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

If Then Statement Help

Status
Not open for further replies.

vbplg

IS-IT--Management
Mar 30, 2003
22
US
I am new to this stuff, so please bear with me. I have a Clrion 5.0b app that has a browse to display a listing of items. Currently the listing is color code somehow automatically. What I need is for the listing to be color coded based off of the following:

If CUS:LoadColor='Green' Then DIS:Round='1'
ELSE
If etc.....


Could someone please help from the basics. I don't know where to start with all of this.
 
I would try putting the code below in the embed point Browse.SetQueueRecord before the parent call.
The parent call to the base class is where the listbox columns or hotfields are written to the queue.

CASE CUS:LoadColor
OF 'GREEN'
DIS:Round = '1'
OF 'RED'
DIS:Round = '2'
OF 'BLUE'
DIS:Round = '3'
OF 'BLACK'
DIS:Round = 'C'
END

Note: This will only set the value in the listbox's queue it wont change DIS:round value in the table.
 
Perfect.....That's it. It works great. I even learned some new Clarion stuff.


Thanks a lot!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top