Table of Content
HAL Forum
procedure SortStringArray (
array string StrArray)
Description:
Sorts the array based on it's contents
Parameters:
StrArray Unsorted array of string type variables.
global
procedure OnApplicationStartup() 
begin
  array string 255 a;
  integer i;
  
  a[i+=1] = "Wolf";
  a[i+=1] = "Dog";
  a[i+=1] = "Bear";
  a[i+=1] = "Fox";
  a[i+=1] = "Ape";

  SortStringArray(a);
  
  for(i=1;nonblank(a[i]);i=i+1) begin
    stopalert(a[i]);
  end;

  return;
end;
Related topics:
««