Stata 15 help for _on_colon_parse

Title

[P] _on_colon_parse -- Splitting text on the colon character

Syntax

_on_colon_parse [text_before] : [text_after]

Description

_on_colon_parse is a programmer's tool, written for the purpose of parsing prefix commands, see _prefix.

Examples

. _on_colon_parse : . sreturn list

. _on_colon_parse stuff before : stuff after . sreturn list

macros: s(after) : " stuff after" s(before) : "stuff before "

Stored results

_on_colon_parse stores the following in s():

Macros: s(before) text_before s(after) text_after


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index