I've seen the API function that does this, although over time I have forgotten. If anyone knows and is willing to share, please post.