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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

dBase Expression in lookup.ini

Status
Not open for further replies.

Calvertfan

Technical User
Feb 15, 2008
1
0
0
GB
Hello

I have an expression field in Goldmine that displays a date based on the values in two other fields, that I would like to store the date properly, as opposed to just displaying the result on the screen. It would seem lookup.ini is the way to go, but I can't seem to get it to accept my expression.
The expression field is currently:-
WDATE(CTOD(STR(Day(contact2->uindate))+"/"+STR(Month(contact2->uindate))+"/"+STR((Year(contact2->uindate)+VAL(contact1->secr)),0)

This is taking the date help in CONTACT2->UINDATE, and then adding a number of years to it based on the value held in SECR.
Now I've tried putting this into lookup.ini, so that I have a
[UOUTDATE]
otherwise=&WDATE(CTOD(STR(Day(contact2->uindate))+"/"+STR(Month(contact2->uindate))+"/"+STR((Year(contact2->uindate)+VAL(contact1->secr)),0)


but this doesn't work. Any help would be greatfully received!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top