<?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>
	<VariablesScanned>False</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="setupVariables">
					<Code>... I am using &quot;sm&quot; as the line separator, but you can use any string of characters that are not part of any variable content
... just make sure that every line in the txt (i.e. variable name) starts with the same prefix
SetVar &quot;[lineSeparator]&quot; &quot;sm&quot;


... now split the content into one array item per line
StrParse &quot;[allText]&quot; &quot;[lineSeparator]&quot; [myVariableItems]

... even though the help file mentions that ...
... The count variable will be set to the number of elements stored in the array.
... this is not true; so I am using Javascript commands to get the number of items in the array

BeginJS
  myVariableItemsArray = $App.myVariableItems;
  myVariableItemsLength = myVariableItemsArray.length;
  myVariableItemsMax = myVariableItemsLength - 1;
  $App.maxLineNumber = myVariableItemsMax;
  //alert($App.maxLineNumber);
EndJS

... now loop through all the items in the array called [myVariablelines]
Loop 1 [maxLineNumber] [thisLineNumber]
   SetVar &quot;[thisLineText]&quot; [myVariableItems([thisLineNumber])]
   ...AlertBox &quot;Line Info&quot; &quot;[thisLineNumber]. [thisLineText]&quot; &quot;&quot;

   ... split the text on either side of the equal sign into 2 parts
   StrParse &quot;[thisLineText]&quot; &quot;=&quot; [thisLinePart]
   ... use the two parts to create/populate the variables
   SetVar &quot;[LineVarName]&quot; &quot;[thisLinePart(0)]&quot;
   SetVar &quot;[LineVarValue]&quot; &quot;[thisLinePart(1)]&quot;
   ...AlertBox &quot;Part Info&quot; &quot;[thisLineNumber]. [thisLineText]&lt;br/&gt;[LineVarName]&lt;br/&gt;[LineVarValue]&quot; &quot;&quot;
   SetCompVar [[lineSeparator][LineVarName]] &quot;[LineVarValue]&quot;
EndLoop
</Code>
				</Function>
			</Components>
		</FunctionList>
		<LibraryList name="Libraries"/>
		<PageList name="Main">
			<Components>
				<Page id="NewPage">
					<Components>
						<PushButton id="JustDoIt">
							<left>16px</left>
							<top>61px</top>
							<width>110px</width>
							<height>32px</height>
							<caption>Just Do It</caption>
							<click>... load the contents of the txt file into a single variable
... this command temporarily commented out until file is setup (under CORS policy) to allow access
... FileToVar &quot;https://servicefinder.gr/en.txt&quot; [allText]

... instead [allText] is hard coded with expected value
SetVar &quot;[allText]&quot; &quot;smGreeting=HellosmIntroduction=My name is Visual NEO GPTsmAbout=I am your AI RobotsmName=What is your name ?smHelpTopic=What can I help you with today ?&quot;

setupVariables

... All Done
</click>
						</PushButton>
						<Container id="Results">
							<left>20px</left>
							<top>99px</top>
							<width>600px</width>
							<height>224px</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;smGreeting&lt;/strong&gt; is &lt;i&gt;[smGreeting]&lt;/i&gt;&lt;br/&gt;&lt;br/&gt;

Value of variable &lt;strong&gt;smIntroduction&lt;/strong&gt; is &lt;i&gt;[smIntroduction]&lt;/i&gt;&lt;br/&gt;&lt;br/&gt;

Value of variable &lt;strong&gt;smAbout&lt;/strong&gt; is &lt;i&gt;[smAbout]&lt;/i&gt;&lt;br/&gt;&lt;br/&gt;

Value of variable &lt;strong&gt;smName&lt;/strong&gt; is &lt;i&gt;[smName]&lt;/i&gt;&lt;br/&gt;&lt;br/&gt;

Value of variable &lt;strong&gt;smHelpTopic&lt;/strong&gt; is &lt;i&gt;[smHelpTopic]&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>
					</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>
