<?xml version="1.0" encoding="utf-8"?>
<Application>
	<AppTitle>Application sans titre</AppTitle>
	<AppShortName>MyApp</AppShortName>
	<Author>Author name</Author>
	<Version>1.0</Version>
	<DesignDeviceName>Nokia Lumia 520</DesignDeviceName>
	<Variables>[num1],[num2]</Variables>
	<VariablesScanned>True</VariablesScanned>
	<PageWidth>320</PageWidth>
	<PageHeight>480</PageHeight>
	<AutoSizeWidth>False</AutoSizeWidth>
	<AutoSizeHeight>False</AutoSizeHeight>
	<HideScrollbars>False</HideScrollbars>
	<ResponsiveSize>False</ResponsiveSize>
	<PublishPlatform>WebApp</PublishPlatform>
	<EmptyBuildFolder>False</EmptyBuildFolder>
	<AppIcon>E:\Philippe\Documents\VisualNeoWeb\Libraries\img\default-icon.png</AppIcon>
	<LanguageCode>en</LanguageCode>
	<DisplayMode>standalone</DisplayMode>
	<ServiceWorker>Offline page</ServiceWorker>
	<ThemeColor>#000000</ThemeColor>
	<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="DisplayWatch">
					<Code>SetVar [msg] &quot;Tests made &lt;br&gt;&quot;
SetVar [msg] &quot;[msg] IfEx &apos;[num1]&apos; &gt; 13 or &apos;[num1]&apos; &lt; 0 or &apos;[num1]&apos; == &apos;&apos; or &apos;[num1]&apos; == null &lt;br&gt;&quot;
SetVar [msg] &quot;[msg] IfEx &apos;[num2]&apos; &gt; 13 or &apos;[num2]&apos; &lt; 0 or &apos;[num2]&apos; == &apos;&apos; or &apos;[num2]&apos; == null &lt;br&gt;&quot;
SetVar [msg] &quot;[msg] IfEx &apos;[num2]&apos; == 0 and &apos;[num1]&apos; == 0 &lt;br&gt;&quot;
SetObjectHtml &quot;Container1&quot; &quot;[msg] Variables values Num1:  [num1] &lt;br&gt; Num2:  [num2]&quot;</Code>
				</Function>
			</Components>
		</FunctionList>
		<LibraryList name="Libraries"/>
		<PageList name="Main">
			<Components>
				<Page id="NewPage">
					<Components>
						<PushButton id="PushButton1">
							<left>92px</left>
							<top>271px</top>
							<width>122px</width>
							<height>40px</height>
							<caption>Dialog</caption>
							<click>SetVar [num1] null
SetVar [num2] null
Watch [num1] &quot;DisplayWatch&quot;
Watch [num2] &quot;DisplayWatch&quot;
FocusObject &quot;NumericInput1&quot;
OpenDialog &quot;NewDialog&quot;
FocusObject &quot;NumericInput1&quot;
</click>
						</PushButton>
						<Container id="Container2">
							<left>30px</left>
							<top>35px</top>
							<width>261px</width>
							<height>175px</height>
							<style>border-width:1px;border-style:solid;background-color:#fff;</style>
							<html>I want to give the focus to numericinput1 (see pushbutton code) using FocusObject &quot;NumericInput1&quot;
&lt;br&gt;
In the dialog box I can enter a value between 0 and 13 but my test fail with 0 ?</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>400px</width>
							<height>480px</height>
							<close_button>False</close_button>
							<kind>custom</kind>
							<Components>
								<NumericInput id="NumericInput1">
									<left>183px</left>
									<top>84px</top>
									<width>63px</width>
									<height>33px</height>
									<variable>[num1]</variable>
								</NumericInput>
								<NumericInput id="NumericInput2">
									<left>184px</left>
									<top>132px</top>
									<width>63px</width>
									<height>33px</height>
									<variable>[num2]</variable>
								</NumericInput>
								<Headline id="Headline1">
									<left>22px</left>
									<top>89px</top>
									<width>128px</width>
									<height>25px</height>
									<text>Number 1</text>
									<kind>h4</kind>
								</Headline>
								<Headline id="Headline2">
									<left>22px</left>
									<top>142px</top>
									<width>128px</width>
									<height>25px</height>
									<text>Number 2</text>
									<kind>h4</kind>
								</Headline>
								<PushButton id="PushButton2">
									<left>96px</left>
									<top>179px</top>
									<width>77px</width>
									<height>31px</height>
									<caption>OK</caption>
									<click>IfEx [num1] &gt; 13 or [num1] &lt; 0 or [num1] == &quot;&quot; or [num1] == null
    AlertBox &quot;Error&quot; &quot;Number 1, Enter a number between 0 and 13&quot; &quot;&quot;
    FocusObject &quot;NumericInput1&quot;
    Return 0
EndIf
IfEx [num2] &gt; 13 or [num2] &lt; 0 or [num2] == &quot;&quot; or [num2] == null
    AlertBox &quot;Error&quot; &quot;Number 2, Enter a number between 0 and 13&quot; &quot;&quot;
    FocusObject &quot;NumericInput2&quot;
    Return 0
EndIf
IfEx [num2] == 0 and [num1] == 0
    AlertBox &quot;Error&quot; &quot;There can&apos;t be a null match at 0&quot; &quot;&quot;
    FocusObject &quot;NumericInput1&quot;
    Return 0
EndIf

CloseDialog</click>
								</PushButton>
								<PushButton id="PushButton3">
									<left>208px</left>
									<top>179px</top>
									<width>77px</width>
									<height>31px</height>
									<caption>Quit</caption>
									<click>CloseDialog</click>
								</PushButton>
								<Container id="Container1">
									<left>12px</left>
									<top>276px</top>
									<width>380px</width>
									<height>174px</height>
									<style>border-width:1px;border-style:solid;background-color:#fff;</style>
								</Container>
							</Components>
						</DialogContainer>
					</Components>
				</Page>
			</Components>
		</PageList>
	</Components>
</Application>
