On Fri, 14 Jul 2017 08:04:51 -0400 <james at productionautomation.net> wrote: > >What's the type of each variable? > > Last_GS,G_End : longint; > Max_Program_to_Display : Word; Last_GS:=G_End-(longint(Max_Program_To_Display)-1); Mattias