918-git-images-111dconfigfileconfigure-oglivegit-imageslgromero-new-oglivemainmaint-cronmount-efivarfsmultivmmultivm-ogboot-installerogClonningEngineogboot-installer-jenkinsoglive-ipv6test-python-scriptsticket-301ticket-50ticket-50-oldticket-577ticket-585ticket-611ticket-612ticket-693ticket-700ubu24tplunification2use-local-agent-oglivevarios-instalacionwebconsole3
Rev | Line | |
---|
[3ec149c] | 1 | function IsNumeric(sText) |
---|
| 2 | { |
---|
| 3 | var ValidChars = "0123456789."; |
---|
| 4 | var IsNumber=true; |
---|
| 5 | var Char; |
---|
| 6 | |
---|
| 7 | |
---|
| 8 | for (i = 0; i < sText.length && IsNumber == true; i++) |
---|
| 9 | { |
---|
| 10 | Char = sText.charAt(i); |
---|
| 11 | if (ValidChars.indexOf(Char) == -1) |
---|
| 12 | { |
---|
| 13 | IsNumber = false; |
---|
| 14 | } |
---|
| 15 | } |
---|
| 16 | return IsNumber; |
---|
| 17 | |
---|
| 18 | } |
---|
| 19 | |
---|
Note: See
TracBrowser
for help on using the repository browser.