Table of Content
HAL Forum
function boolean IsDigit (
string Char)
Description:
Returns TRUE if the specified string variable (len:1) holds a numeric value.
Parameters:
Char String that holds the value that will be checked
function boolean IsStringNumeric(string s)
begin
  integer i;
  boolean res;
  
  res = true;
  for (i=0;i<len(s);i=i+1) begin
    if (IsDigit(mid(s,i,1))==false) then begin
      res = false;
      i = len(s)+1;
    end;
  end;
  
  IsStringNumeric = res;
  return;
end;
Related topics:
««