<?xml version="1.0" encoding="utf-8"?>
<Application>
	<AppTitle>Aplicación sin título</AppTitle>
	<AppShortName>MyApp</AppShortName>
	<Author>Author name</Author>
	<Version>1.0</Version>
	<DesignDeviceName>Desktop</DesignDeviceName>
	<Variables>[bbdd_conn_array(0)],[bbdd_conn_array(1)],[bbdd_conn_array(3)],[bbdd_conn_array],[bbdd_conn_cfg],[bbdd_conn_list],[bbdd_conn_val],[items_array],[items_array_length],[num],[valor]</Variables>
	<VariablesScanned>True</VariablesScanned>
	<PageWidth>1280</PageWidth>
	<PageHeight>800</PageHeight>
	<AutoSizeWidth>False</AutoSizeWidth>
	<AutoSizeHeight>False</AutoSizeHeight>
	<HideScrollbars>False</HideScrollbars>
	<PublishPlatform>WebApp</PublishPlatform>
	<EmptyBuildFolder>False</EmptyBuildFolder>
	<WebBuildTarget>C:\laragon\www</WebBuildTarget>
	<AppIcon>C:\Users\yapssr\Documents\VisualNeoWeb\Libraries\img\default-icon.png</AppIcon>
	<LanguageCode>en</LanguageCode>
	<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"/>
		<LibraryList name="Libraries"/>
		<PageList name="Main">
			<Components>
				<Page id="NewPage">
					<pageenter>.Leo el archivo para conocer las entradas escritas
    FileToVar &quot;http://localhost/cfg_conn/bbdd_conn.txt&quot; [bbdd_conn_cfg]


.FileToVar &quot;http://localhost:8000/cgi-bin/bbdd_conn.cfg&quot; [bbdd_conn_cfg]
.localhost es C:/laragon/www
.AlertBox &quot;FirstElement&quot; [bbdd_conn_array(0)] &quot;&quot;
.FileToVar &quot;http://localhost:8000/cgi-bin/bbdd_conn.cfg&quot; [bbdd_conn_cfg]
.localhost es C:/laragon/www
.DeleteVar [bbdd_conn_cfg]
.FileToVar &quot;http://localhost/cfg_conn/bbdd_conn.txt&quot; [bbdd_conn_cfg]
.SetVar [bbdd_conn_list] &quot;Apple|A,Banana|B,Cherry|C,Date|D,Egg|E,Fish|F,Gooseberry|G&quot;
.SetVar [bbdd_conn_list] [bbdd_conn_cfg]
.StrParse [bbdd_conn_list] &quot;|&quot; [bbdd_conn_array]
.AlertBox &quot;FirstElement&quot; &quot;[bbdd_conn_array(0)]&quot; &quot;&quot;

.ArrayLen [bbdd_conn_array] [items_array_length]
    .FileToVar &quot;http://localhost/cfg_conn/bbdd_conn.txt&quot; [bbdd_conn_cfg]
    .StrParse [bbdd_conn_cfg] &quot;,&quot; [bbdd_conn_array]
            .ListBoxAddItem &quot;Combobox1&quot; &quot;[bbdd_conn_array(0)]&quot; &quot;[bbdd_conn_array(0)]&quot;
            .ListBoxAddItem &quot;Combobox1&quot; &quot;[bbdd_conn_array(1)]&quot; &quot;[bbdd_conn_array(1)]&quot;
            .ListBoxAddItem &quot;Combobox1&quot; &quot;[bbdd_conn_array(2)]&quot; &quot;[bbdd_conn_array(2)]&quot;
            .ListBoxAddItem &quot;Combobox1&quot; &quot;[bbdd_conn_array(3)]&quot; &quot;[bbdd_conn_array(3)]&quot;
    .EndIf</pageenter>
					<Components>
						<Paragraph id="Paragraph1">
							<left>128px</left>
							<top>152px</top>
							<width>592px</width>
							<height>192px</height>
							<style>color:#000000;border-color:#000000;box-shadow:0px 0px 10px black</style>
							<text>file line readed: [bbdd_conn_cfg] </text>
						</Paragraph>
						<Paragraph id="Paragraph2">
							<left>128px</left>
							<top>360px</top>
							<width>1056px</width>
							<height>176px</height>
							<style>color:#000000;box-shadow:0px 0px 10px black</style>
							<text>[bbdd_conn_list]</text>
						</Paragraph>
						<Combobox id="Combobox1">
							<left>360px</left>
							<top>40px</top>
							<width>552px</width>
							<height>40px</height>
							<style>color:#000000;background-color:#FFFFFF</style>
							<prop_name>bbdd_conn_val</prop_name>
							<variable>[bbdd_conn_val]</variable>
							<multi_select>False</multi_select>
							<change>ListBoxGetSelectedItem &quot;Combobox1&quot; [bbdd_conn_val]
SetVar [valor] [bbdd_conn_val]
.ListBoxGetSelectedIndex &quot;Combobox1&quot; [valor]

</change>
						</Combobox>
						<Paragraph id="Paragraph3">
							<left>128px</left>
							<top>552px</top>
							<width>1056px</width>
							<height>184px</height>
							<style>color:#000000;box-shadow:0px 0px 10px black</style>
							<text>[bbdd_conn_array(0)]&lt;BR&gt;[bbdd_conn_array(1)]&lt;BR&gt;[bbdd_conn_array(1)]&lt;BR&gt;[bbdd_conn_array(3)]</text>
						</Paragraph>
						<PushButton id="PushButton1">
							<left>128px</left>
							<top>40px</top>
							<width>176px</width>
							<height>64px</height>
							<caption>Read File</caption>
							<icon>glyphicon-list-alt</icon>
							<kind>primary</kind>
							<click>.FileToVar &quot;http://localhost:8000/cgi-bin/bbdd_conn.cfg&quot; [bbdd_conn_cfg]
.localhost es C:/laragon/www

.AlertBox &quot;FirstElement&quot; [bbdd_conn_array(0)] &quot;&quot;


.FileToVar &quot;http://localhost:8000/cgi-bin/bbdd_conn.cfg&quot; [bbdd_conn_cfg]
.localhost es C:/laragon/www
.DeleteVar [bbdd_conn_cfg]
.FileToVar &quot;http://localhost/cfg_conn/bbdd_conn.txt&quot; [bbdd_conn_cfg]
.SetVar [bbdd_conn_list] &quot;Apple|A,Banana|B,Cherry|C,Date|D,Egg|E,Fish|F,Gooseberry|G&quot;
.SetVar [bbdd_conn_list] [bbdd_conn_cfg]
.StrParse [bbdd_conn_list] &quot;|&quot; [bbdd_conn_array]
.AlertBox &quot;FirstElement&quot; &quot;[bbdd_conn_array(0)]&quot; &quot;&quot;

SetVar [items_array_length] 0
If [items_array_length] == 0
    .Leo el archivo para conocer las entradas escritas (esto esta puesto al entrar a la pagina porque si lo pongo en el boton debo presionar dos veces para que funcione correctamente, ya que se detiene el scriot al leer el archivo y cargar las variables)
    .read the file (i put this is on page enter)
    .FileToVar &quot;http://localhost/cfg_conn/bbdd_conn.txt&quot; [bbdd_conn_cfg]
    .Paseo las lineas separadas por coma (,)
    .parsing the lines by (,)
    StrParse [bbdd_conn_cfg] &quot;,&quot; [bbdd_conn_array]
    .traigo el largo de la cadena que sería 4 en este ejemplo
    .bringing the array length
    ArrayLen [bbdd_conn_array] [items_array_length]
    .Seteo la variable items_array en 0 para empezar el calculo
    .Setting the variable items_array in cero to begin the calc
    SetVar [items_array] 0
           .Adiciono el primer array (0)
           .Adding first Item array (0)
           ListBoxAddItem &quot;Combobox1&quot; &quot;[bbdd_conn_array(0)]---&gt;[items_array]&quot; &quot;[bbdd_conn_array(0)]&quot;
           .mientras el items_array sera menor que el largo total del array formado aumenta en 1}
           .while items_array be less than or equal items_array_length sum 1
           While [items_array] &lt; [items_array_length]
                 .sumo +1
                 Math &quot;([items_array]+1)&quot; 0 [items_array]
                 .AlertBox &quot;Prueba&quot; &quot;El valor del array es: [items_array]&quot; &quot;&quot;
                 .ListBoxAddItem &quot;Combobox1&quot; &quot;[bbdd_conn_array(0)]&quot; &quot;[bbdd_conn_array(0)]&quot;
                 .Add a new item array to the combobox until complete items_array_length
                 ListBoxAddItem &quot;Combobox1&quot; &quot;[bbdd_conn_array([items_array])]---&gt;[items_array]&quot; &quot;[bbdd_conn_array([items_array])]&quot;
           EndWhile
    ListBoxSort &quot;Combobox1&quot;
EndIf</click>
						</PushButton>
						<Paragraph id="Paragraph4">
							<left>752px</left>
							<top>152px</top>
							<width>432px</width>
							<height>192px</height>
							<style>color:#000000;box-shadow:0px 0px 10px black</style>
							<text>items array length: [items_array_length] &lt;BR&gt;&lt;BR&gt;item selected value: [valor] </text>
						</Paragraph>
					</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>1280px</width>
							<height>800px</height>
							<close_button>False</close_button>
						</DialogContainer>
					</Components>
				</Page>
			</Components>
		</PageList>
	</Components>
</Application>
