Code:
{let s:Strign = "123"}
{if {String {s.to-int}} == s then
{popup-message "int"}
}この方法だと、int型は判断できるのですが、小数点付きの値などもいちいちやっていくのが面倒で・・・
{let s:Strign = "123"}
{if {String {s.to-int}} == s then
{popup-message "int"}
}{define-proc public {dou? str:String}:bool
{return {regexp-match? "^(-?)([1-9][0-9]*)?[0-9](\\.[0-9]*[1-9])?$", {str.trim-clone}}}
}