kenneth2k1 Posted November 17, 2003 Posted November 17, 2003 Hi I have a stamp script that will put a date/time stamp in a field for when comments are added. It works ok, except that I want it to go to the top first posistion in the field before stamping instead of the end. I looked around a little, and tried a couple of things, but couldn't realize a way to do it (I give myself a C- for effort, though). I was hoping that someone had done this before and had a ready-made calculation, so I can save precious brain cells that haven't already been destroyed by drugs and alcohol! Thanks
kenneth2k1 Posted November 17, 2003 Author Posted November 17, 2003 Hi: No, it is a text field. Right now the script goes like this: Insert Calculated Result [comments, ""
Kundinger Posted November 18, 2003 Posted November 18, 2003 Hi Ken, I'm assuming you use a 'SetField' step in your script... you probably have it as: SetField("History","History & ' - 11/17/2003'") to display: Called John - 11/17/2003 - or - SetField("History","History & '
Lee Smith Posted November 18, 2003 Posted November 18, 2003 Hi Kenneth, Maybe something like this file shows? Notes Log by: John Mark Osborne at this URL: http://www.databasepros.com HTH Lee
John Caballero Posted November 18, 2003 Posted November 18, 2003 Create a global text field called gStamp. Set Field[gStamp, ""
kenneth2k1 Posted November 18, 2003 Author Posted November 18, 2003 Thanks for your guys' replies. John: I'm feeling you, but this would put the stamp at the top which is good, but it would not put the cursor below the stamp and above the other contents. That DOES solve the problem, sort of. Lee: I'm glad you pointed me to that site (the flash version of the site put my resources on blast, though). He realized the same problem I did: you cannot position the cursor at the beginning of a field w/text using script steps. Although I would prefer to use just one field and one script to accomplish this (whoa, that's asking too much), I think this solution works the best because it sorts it by date, and I can tweak it a little. Thanks again guys, Ken
Ugo DI LUCA Posted November 18, 2003 Posted November 18, 2003 But why not use the TextField itself. SetField[TextField, & "________________________" & "
kenneth2k1 Posted November 20, 2003 Author Posted November 20, 2003 Hi Ugo: You are right - there is no need for Insert Calc Result here, but there is no need not to either. I just wanted something that would put that info in the field and not clear the current contents (the way set field would). I appreciate your suggestion, but this does not put the cursor after the stamp and before the text thats already in that field. I am going to stick with Osbourne's sample that Lee gave. Thanks all Ken
Recommended Posts
This topic is 7674 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now