Table of Content
HAL Forum
procedure AddStringToArea (
string StrVal,Area Data)
Description:
Adds a string and it's length (in character encoded format) to the end of an area. The length will be placed before the string. Use AddTextToArea if adding the length byte is not desired or eneded.
Parameters:
StrVal The string to be added
Data Area variable that will receive the string variable value.
global
procedure OnApplicationStartup() 
begin
  area a;
  
  AddStringToArea("Hi!",a);
  stopalert(Asc(GetStringFromArea(a,0,1)));
  stopalert(GetStringFromArea(a,1,100));
  return;
end;
Related topics:
««