<?xml version="1.0" encoding="utf-8"?>
<Application>
	<AppTitle>Untitled Application</AppTitle>
	<AppShortName>MyApp</AppShortName>
	<Author>Author name</Author>
	<Version>1.0</Version>
	<DesignDeviceName>Desktop</DesignDeviceName>
	<Variables>[allText],[Headline1],[Headline2],[Paragraph1]</Variables>
	<VariablesScanned>True</VariablesScanned>
	<PageWidth>640</PageWidth>
	<PageHeight>480</PageHeight>
	<AutoSizeWidth>False</AutoSizeWidth>
	<AutoSizeHeight>False</AutoSizeHeight>
	<HideScrollbars>False</HideScrollbars>
	<ResponsiveSize>False</ResponsiveSize>
	<PublishPlatform>WebApp</PublishPlatform>
	<EmptyBuildFolder>True</EmptyBuildFolder>
	<AppIcon>C:\Users\Gaev Keeka\Documents\VisualNeoWeb\Libraries\img\default-icon.png</AppIcon>
	<LanguageCode>en</LanguageCode>
	<DisplayMode>standalone</DisplayMode>
	<ServiceWorker>OfflineCopyOfPages</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>
	<Components>
		<FunctionList name="Subroutines">
			<Components>
				<Function name="setupVariables2">
					<Code>
beginjs
 cadenas=$App.allText;
 let partes = cadenas.split(&quot;\r\n&quot;);
 let resultado = {};

 for (let i = 0; i &lt; partes.length; i++) {
     let subcadena = partes[i].trim();
     if (subcadena.length &gt; 0) {
        let match = subcadena.match(/([^=]+)=([\s\S]*)/);
            if (match) {
               resultado[match[1]] = match[2];
               neo.carga(match[1],match[2]);

               }
       }
 }
console.log(resultado);

console.log(resultado[&quot;Headline1&quot;]);
console.log(resultado[&quot;Headline2&quot;]);
console.log(resultado[&quot;Paragraph1&quot;]);
console.log(resultado[&quot;TextInput1&quot;]);

endjs
</Code>
				</Function>
				<Function name="carga">
					<Code>SetVar [resultado] [match]





</Code>
					<Params>[resultado]|VARNAME|;[match]|STRING|</Params>
				</Function>
			</Components>
		</FunctionList>
		<LibraryList name="Libraries"/>
		<PageList name="Main">
			<Components>
				<Page id="NewPage">
					<Components>
						<Container id="Results">
							<left>22px</left>
							<top>196px</top>
							<width>600px</width>
							<height>264px</height>
							<style>border-width:1px;border-style:solid;background-color:#fff;</style>
							<html>
This container shows the values of each of the variables for your verification&lt;br/&gt;&lt;br/&gt;

Value of variable &lt;strong&gt;Headline1&lt;/strong&gt; is &lt;i&gt;[Headline1]&lt;/i&gt;&lt;br/&gt;&lt;br/&gt;

Value of variable &lt;strong&gt;Headline2&lt;/strong&gt; is &lt;i&gt;[Headline2]&lt;/i&gt;&lt;br/&gt;&lt;br/&gt;

Value of variable &lt;strong&gt;Paragraph1&lt;/strong&gt; is &lt;i&gt;[Paragraph1]&lt;/i&gt;&lt;br/&gt;&lt;br/&gt;

Value of variable &lt;strong&gt;TextInput1&lt;/strong&gt; is &lt;i&gt;[TextInput1]&lt;/i&gt;&lt;br/&gt;&lt;br/&gt;</html>
						</Container>
						<Container id="Container1">
							<left>19px</left>
							<top>8px</top>
							<width>598px</width>
							<height>46px</height>
							<style>font-size:18pt;background-color:#fff;border-width:1px</style>
							<html>Sample Script to Load Variables</html>
						</Container>
						<Container id="Container2">
							<left>25px</left>
							<top>104px</top>
							<width>596px</width>
							<height>83px</height>
							<style>border-width:1px;border-style:solid;background-color:#fff;</style>
							<html>[allText]</html>
						</Container>
						<PushButton id="PushButton2">
							<left>22px</left>
							<top>61px</top>
							<width>110px</width>
							<height>32px</height>
							<caption>Just Do It 3&apos;</caption>
							<click>... load the contents of the txt file into a single variable
FileToVar &quot;https://servicefinder.gr/en.txt&quot; [allText]
Watch [allText] &quot;setupVariables2&quot;

... All Done</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>640px</width>
							<height>480px</height>
							<close_button>False</close_button>
							<kind>custom</kind>
						</DialogContainer>
					</Components>
				</Page>
			</Components>
		</PageList>
	</Components>
</Application>
