<?xml version="1.0" encoding="utf-8"?>
<Application>
	<AppTitle>Untitled Application</AppTitle>
	<AppShortName>MyApp</AppShortName>
	<Author>Author name</Author>
	<Version>1.0</Version>
	<VariablesScanned>False</VariablesScanned>
	<PageWidth>1024</PageWidth>
	<PageHeight>600</PageHeight>
	<AutoSizeWidth>False</AutoSizeWidth>
	<AutoSizeHeight>False</AutoSizeHeight>
	<HideScrollbars>False</HideScrollbars>
	<ResponsiveSize>False</ResponsiveSize>
	<PublishPlatform>WebApp</PublishPlatform>
	<EmptyBuildFolder>False</EmptyBuildFolder>
	<LanguageCode>en</LanguageCode>
	<DisplayMode>standalone</DisplayMode>
	<ServiceWorker>Offline page</ServiceWorker>
	<ThemeColor>#000000</ThemeColor>
	<PwaScope>/</PwaScope>
	<MobileOSTypes>[AndroidOS,iOS,WindowsPhoneOS]</MobileOSTypes>
	<WindowState>normal</WindowState>
	<TitleBar>True</TitleBar>
	<Sizeable>True</Sizeable>
	<MaximizeBtn>False</MaximizeBtn>
	<MinimizeBtn>True</MinimizeBtn>
	<SystemMenu>True</SystemMenu>
	<ContextMenu>False</ContextMenu>
	<AlwaysOnTop>False</AlwaysOnTop>
	<ShowInTaskbar>True</ShowInTaskbar>
	<SingleInstance>False</SingleInstance>
	<ChromeKioskMode>False</ChromeKioskMode>
	<startup>SetVar [myvar] &quot;&quot;</startup>
	<Components>
		<FunctionList name="Subroutines"/>
		<LibraryList name="Libraries"/>
		<PageList name="Main">
			<Components>
				<Page id="NewPage">
					<Components>
						<TextArea id="TextArea1">
							<left>245px</left>
							<top>30px</top>
							<width>740px</width>
							<height>535px</height>
							<variable>[myvar]</variable>
						</TextArea>
						<PushButton id="PushButton1">
							<left>30px</left>
							<top>30px</top>
							<width>185px</width>
							<height>50px</height>
							<caption>Add new text line</caption>
							<click>If [myvar] == &quot;&quot;
  SetVar [myvar] &quot;New line of text&quot;
Else
  SetVar [myvar] &quot;[myvar]\nNew line of text&quot;
EndIf</click>
						</PushButton>
						<PushButton id="PushButton2">
							<left>30px</left>
							<top>150px</top>
							<width>185px</width>
							<height>55px</height>
							<caption>Get lines</caption>
							<click>StrParse &quot;[myvar]&quot; &quot;\n&quot; [thelines]
AlertBox &quot;Total lines&quot; &quot;You have [thelines.length] lines in your text&quot; &quot;&quot;</click>
						</PushButton>
						<PushButton id="PushButton3">
							<left>30px</left>
							<top>215px</top>
							<width>185px</width>
							<height>55px</height>
							<caption>Get last word in line 1</caption>
							<click>StrParse &quot;[myvar]&quot; &quot;\n&quot; [thelines]
StrParse &quot;[thelines(0)]&quot; &quot; &quot; [thewords]
ArrayLen [thewords] [totalwords]
SetVar [lastword] [totalwords]-1
AlertBox &quot;Last word&quot; &quot;Last word in line 1 is: [thewords([lastword])]&quot; &quot;&quot;</click>
						</PushButton>
						<PushButton id="PushButton4">
							<left>30px</left>
							<top>280px</top>
							<width>185px</width>
							<height>55px</height>
							<caption>Get second word in line 3</caption>
							<click>StrParse &quot;[myvar]&quot; &quot;\n&quot; [thelines]

.arrays start counting on 0
StrParse &quot;[thelines(2)]&quot; &quot; &quot; [thewords]
ArrayLen [thewords] [totalwords]

.arrays start counting on 0
SetVar [secondword] 1
AlertBox &quot;Second word&quot; &quot;Second word in line 3 is: [thewords([secondword])]&quot; &quot;&quot;</click>
						</PushButton>
						<PushButton id="PushButton5">
							<left>30px</left>
							<top>90px</top>
							<width>185px</width>
							<height>50px</height>
							<caption>Add new text line above</caption>
							<click>If [myvar] == &quot;&quot;
  SetVar [myvar] &quot;New line of text above&quot;
Else
  SetVar [myvar] &quot;New line of text above\n[myvar]&quot;
EndIf</click>
						</PushButton>
						<PushButton id="PushButton6">
							<left>30px</left>
							<top>345px</top>
							<width>185px</width>
							<height>55px</height>
							<caption>Clear all text</caption>
							<click>SetVar [myvar] &quot;&quot;</click>
						</PushButton>
					</Components>
				</Page>
			</Components>
		</PageList>
		<PageList name="Master">
			<Components>
				<Page id="MasterPage"/>
			</Components>
		</PageList>
		<PageList name="Dialog">
			<Components>
				<Page id="NewDialog">
					<Components>
						<DialogContainer id="DialogContainer1">
							<left>0px</left>
							<top>0px</top>
							<width>1024px</width>
							<height>768px</height>
							<close_button>False</close_button>
							<kind>custom</kind>
						</DialogContainer>
					</Components>
				</Page>
			</Components>
		</PageList>
	</Components>
</Application>
