Michael J. Babcock, MCP wrote:
> I'd like to simply add an Intellisense script whereby when I enter my
> initials, it then substitutes the following:
>
> && mjb <current_date> -
>
> ... and leaves the cursor right after the dash so that I add comments
> easier. I've stabbed at this but just can't seem to get it.
>
Add a new Intellisense abbreviation (I used mbi - for Michael Babcock
Initials), and edit it:
type: U
abbreve: mbi
cmd: {}
DATA:
LPARAMETERS oFoxcode
LOCAL cInit
IF oFoxcode.Location = 0
RETURN "header"
ENDIF
oFoxcode.valuetype = "V"
cInit = InputBox("Initials?", "Enter Initials", "Initials already")
TEXT TO lcHeader TEXTMERGE NOSHOW
&& <<cInit>> <<date() >> ~
ENDTEXT
RETURN lcHeader
The tilde is the secret to "Place cursor here"
I'm sure there are other ways to do it, I just cannabilized one of my
own scripts.
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/[EMAIL PROTECTED]
** All postings, unless explicitly stated otherwise, are the opinions of the
author, and do not constitute legal or medical advice. This statement is added
to the messages for those lawyers who are too stupid to see the obvious.