Documentation
Back to website >

SplitCity (Pascalscript)

Description

The SplitCity function extracts the location name from a complete location specification, which contains the country, zip code and city.

Syntax

function SplitCity(const S: string): string;

Arguments

The function filters the pure city name from a long city name, consisting of country, zip code and city name.

Excample

var
  S1: String;
  S2: String;
begin
  S1:='D 65527 Niedernhausen';
  S2:=SplitCity(S1);
  ShowMessage(S2);
end;

Rules to understand the script can be found here.

The text'D 65527 Niedernhausen' is assigned to the string variable S1. The SplitCity function filters out the pure location name and assigns it to the variable S2.

ShowMessage shows: Niedernhausen