Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Read Excel column data
#4
Function IsNumeric
Code:
Copy      Help
;/
function! $s

;Returns 1 if s begins with a number. Returns 0 if not.
;Before the number can be spaces and - or +.

;EXAMPLE
;str s="10"
;if IsNumeric(s)
,;out "Numeric"
;else
,;out "Text"


val s 2 _i
ret _i!0


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)