Table of Content
HAL Forum
function string GetTabTextFromArea (
integer LineNr,integer Skip,area Data)
Description:
Returns a part of the area as a string. The length of the extracted string is determined by tab (chr 9) termination.
Parameters:
LineNr The line number from where to extract the tab-terminated text (0 being the first line).
Skip Determines how many tab terminated strings to skip before the extraction
Data Data that holds tab separated text (e.g HansaWorld export files)
// This will run right after HansaWorld has been started
global
updating procedure OnApplicationStartup()
begin
  area data;
  string 1 tab,nline;
  
  tab = chr(9);
  nline = chr(10);
  AddTextToArea("Hello" & tab & "World!" & tab & nline & "Line 2" & tab,data);
  stopalert(GetTabTextFromArea(0,1,data));
  stopalert(GetTabTextFromArea(1,0,data));

  return;
end;
Related topics:
««