Peter,
thank you very much for sharing.
Matthias
Am 30.08.2011 um 00:19 schrieb Peter M. Brigham, MD:
> I collected some of my utilities into a library that I want to make available
> to anyone who could use such a thing. They are mostly text processing
> routines, since my LC work mostly involves heavy text crunching and parsing.
> Here is a list of handlers:
>
> commandKeyDown -- ctrl-cmd-v pastes plain text (matching formatting of target
> field)
> controlKeyDown -- in any field, ctrl-d inserts the date; ctrl-/ swaps
> interchanged letters
> mouseup -- lock and unlock fields with a mouseclick
> doAge() -- returns the age given a birthdate and an optional "asOf" date
> getLastLine() -- returns the line number of the last occurrence of a string
> in a container
> howMany() -- returns the number of occurrences of a string in a container
> isAfter() -- true if the given date is after the reference date
> isLower() -- true if a character is a lowercase letter, otherwise false
> isUpper() -- true if a character is an uppercase letter, otherwise false
> itemOffsets() -- returns all the itemoffsets of a string in a container
> lastThing() -- returns the last item of a string, given an itemdelimeter
> lineOffsets() -- returns all the lineoffsets of a string in a container
> mergeLists() -- merge 2 lists without duplicates or empty lines/items
> noDupes() -- remove duplicate lines/items from a list
> offsets() -- returns all the offsets of a string in a container
> popChoose() -- one-line popup choice command (requires a button, included)
> q() -- returns the submitted string, in quotes
> returns() -- returns a string of n cr's
> rRandom() -- a more random random number generator
> spaces() -- returns a string of n spaces
> sq() -- returns the submitted string, in single quotes
> sws() -- strip white space from start & end of a string
> tabs() -- returns a string of n tabs
> toTitleCase() -- returns the string in title case ("The Mutiny on the Bounty")
> truncate() -- truncate a string to no more than n chars, followed by "…"
> (ellipsis)
> wordOffsets() -- returns all the wordoffsets of a string in a container
> setprop writable -- a virtual field property to lock/unlock a field
> getprop writable -- a virtual field property to lock/unlock a field
>
> Available at:
> (mac) http://db.tt/qpGsGak
> (win) http://db.tt/uBQlc24
>
> -- Peter
>
> Peter M. Brigham
> [email protected]
> http://home.comcast.net/~pmbrig
>
>
>
> _______________________________________________
> use-livecode mailing list
> [email protected]
> Please visit this url to subscribe, unsubscribe and manage your subscription
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
_______________________________________________
use-livecode mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode