Gossamer Forum
Home : Products : DBMan : Installation :

THANK YOU Eliot, but &get_date error

Quote Reply
THANK YOU Eliot, but &get_date error
Thank you Eliot for all yr patience. I've come to find out this is like a rubik's cube, you can never figure it out ... but refuse to put it down 'til ya get it right <g>

Today's question has got to be easier:
I've got the &get_date in my &db_def (see below), but thought it was supposed to throw today's date in there automatically. What I see is what I go to add is ... &get_date in the Date field, :-0. Unless I manually type in 11-Sep-99, I get the error ...

What am I missing?

%db_def = (
'ID' => [0, 'alpha', 5, 8, 1, '', '' ],
'Date' => [1, 'date', 12, 15, 0, '&get_date', '' ],
'Year Grad' => [2, 'numer', 4, 4, 0, '', '' ],
'Last Name/Married Name' => [3, 'alpha', 20, 50, 1, '', '' ],
'First Name/Nickname' => [4, 'alpha', 20, 50, 1, '', '' ],
'Address (Street, City, State/Country, ZIP/APO/FPO, Phone' => [5, 'alpha', '40x3', 500, 0, '', '' ],
'Email' => [6, 'alpha', 20, 50, 0, '', '' ],
'Homepage/URL' => [7, 'alpha', 20, 50, 0, '', '' ],
'Comments' => [8, 'alpha', '40x3', 500, 0, '', '' ],
'UserID' => [9, 'alpha', -2, 15, 1, '', '' ]
);

Quote Reply
Re: THANK YOU Eliot, but &get_date error In reply to
Joe - to get mine to work I had to remove the ' ' that contained the '&get_date' so that it appeared this way -

'Date' => [1, 'date', 12, 15, 0, &get_date, '' ],

Try this - you may also have to add some code to your modify forms to get the date to appear (like a "Last Modified") - I have that also if you need it.

Hope this helps !
------------------
donm



Quote Reply
Re: THANK YOU Eliot, but &get_date error In reply to
WOW, don't I feel like a dumb *expletive*, lol.
THANKS DON, :-)
Quote Reply
Re: THANK YOU Eliot, but &get_date error In reply to
Hey no problem - I feel that way alot of times myself. Especially with the gurus around like JPD and Eliot ! <g>

Just glad I could return a little of what I have learned to help someone else !

-----------------
donm
Quote Reply
Re: THANK YOU Eliot, but &get_date error In reply to
Glad that donm helped you with that. Smile

Sorry, I wasn't around. I was having dinner with the President of a Board that I am on, discussing business for this year's Conference.

But, I am glad that you worked it out!

BTW: Thanks, donm. But the real guru and expert in these parts is Carol (JPDeni). I am only trying to return something back to the DBMAN community, like you. Smile

Good job!

Regards,

------------------
Eliot Lee
Founder and Editor
Anthro TECH, L.L.C
http://www.anthrotech.com/
info@anthrotech.com
==========================
Coconino Community College
http://www.coco.cc.az.us/
Web Technology
Coordinator
elee@coco.cc.az.us

[This message has been edited by Eliot (edited September 11, 1999).]