⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mf_st_isfmt.hlp

📁 是一个经济学管理应用软件 很难找的 但是经济学学生又必须用到
💻 HLP
字号:
{smcl}
{* 08feb2005}{...}
{cmd:help mata st_isfmt()}
{hline}
{* index st_isfmt()}{...}
{* index st_isnumfmt()}{...}
{* index st_isstrfmt()}{...}

{title:Title}

{p 4 4 2}
{bf:[M-5] st_isfmt() -- Whether valid %fmt}


{title:Syntax}

{p 8 12 2}
{it:real scalar}
{cmd:st_isfmt(}{it:string scalar s}{cmd:)}

{p 8 12 2}
{it:real scalar}
{cmd:st_isnumfmt(}{it:string scalar s}{cmd:)}

{p 8 12 2}
{it:real scalar}
{cmd:st_isstrfmt(}{it:string scalar s}{cmd:)}


{title:Description}

{p 4 4 2}
{cmd:st_isfmt(}{it:s}{cmd:)}
returns 1 if {it:s} contains a valid Stata {cmd:%}{it:fmt} and 0 otherwise.

{p 4 4 2}
{cmd:st_isnumfmt(}{it:s}{cmd:)}
returns 1 if {it:s} contains a valid Stata numeric {cmd:%}{it:fmt} and 0
otherwise.

{p 4 4 2}
{cmd:st_isstrfmt(}{it:s}{cmd:)}
returns 1 if {it:s} contains a valid Stata string {cmd:%}{it:fmt} and 0
otherwise.


{title:Conformability}

{p 4 4 2}
{cmd:st_isfmt(}{it:s}{cmd:)},
{cmd:st_isnumfmt(}{it:s}{cmd:)},
{cmd:st_isstrfmt(}{it:s}{cmd:)}:
{p_end}
		{it:s}:  1 {it:x} 1
	   {it:result}:  1 {it:x} 1


{title:Diagnostics}

{p 4 4 2}
{cmd:st_isfmt(}{it:s}{cmd:)},
{cmd:st_isnumfmt(}{it:s}{cmd:)}, and
{cmd:st_isstrfmt(}{it:s}{cmd:)}
abort with error if {it:s} is a view.


{title:Source code}

{p 4 4 2}
Functions are built-in.


{title:Also see}

{p 4 13 2}
Manual:  {hi:[M-5] st_isfmt()}

{p 4 13 2}
Online:  help for 
{bf:{help m4_stata:[M-4] stata}}
{p_end}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -