At 04:38 PM 8/31/2008, Claudine Robbins wrote:

Does anyone have the expression syntax to use Hint Expression in
DBGrid column properties?

Claudine,

Say you would like to define a hint with "Company Name" when you
mouse over the "CustID" cell of DB Grid based on Customer table
in RRBYW14 (Running R:BASE Your Way! Part 14).

In order to achieve that goal, while in form designer:

01. Right-click on DB Grid control | Object Properties | Columns

    From the selected list of columns:

    Click on CustID | Column Properties

    Column Properties (CustID) | Hint Expression

    [x] Use Hint Expression

    Expression:

    Company IN Customer WHERE CustID = CustID

    You may also customize Hint Background Color and Hint Font,
    if you wish.

    Click on [OK] button to save Column Properties

    Click on [OK] button to save DB Grid Properties

02. Save the form and click on Run Form button or [Ctrl+F9] to
    preview

03. Mouse over on CustID cell and notice the "Company Name" for
    each CustID.


Long story short, I can’t update my SAT2007 files to the 10/07
update (where a demo for this function is located) because I’m
missing the key to remove the previous version…

Here's the key for SAT2007:

{26162DF2-BB4D-43C9-9F79-7F5070E46C61}

SAT Sample Application:

Implementing DBGrid Column Popup Menus and Hint Expressions

Folder: \ImplementingDBGridColumnPopupMenusAndHintExpressions

Database: DBGridPH
Associated Forms:
. DBGridPopupHint_01 (DB Grid Column Properties - Hint Expressions)
. DBGridPopupHint_02 (DB Grid Column Properties - Popup Menus and
                      Hint Expressions)
Command File:
. ImplementingDBGridColumnPopupMenusAndHintExpressions.DAT

Have fun!

Very Best R:egards,

Razzak.


Reply via email to