﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>Millisecond Forums » Millisecond Forums » Inquisit 4  » restrict integer</title><generator>InstantForum 2017-1 Final</generator><description>Millisecond Forums</description><link>https://forums.millisecond.com/</link><webMaster>Millisecond Forums</webMaster><lastBuildDate>Tue, 28 Jul 2026 12:52:21 GMT</lastBuildDate><ttl>20</ttl><item><title>restrict integer</title><link>https://forums.millisecond.com/Topic26799.aspx</link><description>Hello, &lt;br/&gt;I´m a really beginner and I need some help, please.&lt;br/&gt;&lt;br/&gt;How can I create an expression with an restricted input from an integer from 01001 to 99998? These are our possible ZIP-Codes, therefore I need the zero in the beginning and the limitation to 5 digits.&lt;br/&gt;Can somebody help, please?&lt;br/&gt;Thank you!&lt;br/&gt;&lt;br/&gt;</description><pubDate>Mon, 15 Apr 2019 06:33:27 GMT</pubDate><dc:creator>S.Weber</dc:creator></item><item><title>RE: restrict integer</title><link>https://forums.millisecond.com/Topic26803.aspx</link><description>&lt;div data-id="26800" class="if-quote-wrapper" unselectable="on" data-guid="1555335184847"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="26800" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="26800" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="26800" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Monday, April 15, 2019&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-26800"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="26799" class="if-quote-wrapper" unselectable="on" data-guid="1555335184847"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="26799" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="26799" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="26799" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;S.Weber - Monday, April 15, 2019&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-26799"&gt;&lt;div class="if-quote-message-margin"&gt;Hello, &lt;br/&gt;I´m a really beginner and I need some help, please.&lt;br/&gt;&lt;br/&gt;How can I create an expression with an restricted input from an integer from 01001 to 99998? These are our possible ZIP-Codes, therefore I need the zero in the beginning and the limitation to 5 digits.&lt;br/&gt;Can somebody help, please?&lt;br/&gt;Thank you!&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="26799"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;If you are using a &amp;lt;textbox&amp;gt; or &amp;lt;openended&amp;gt; to collect the ZIP-code, you should not need any expression. You should be able to use the /mask attribute set to uszipcode&lt;br/&gt;&lt;br/&gt;&lt;a href="https://www.millisecond.com/support/docs/v4/html/language/attributes/mask.htm"&gt;&lt;a href="https://www.millisecond.com/support/docs/v4/html/language/attributes/mask.htm"&gt;https://www.millisecond.com/support/docs/v4/html/language/attributes/mask.htm&lt;/a&gt;&lt;/a&gt;&lt;br/&gt;&lt;br/&gt;Alternatively, you can tailor a regular expression to your needs (see e.g. &lt;a href="https://www.oreilly.com/library/view/regular-expressions-cookbook/9781449327453/ch04s14.html)"&gt;&lt;a href="https://www.oreilly.com/library/view/regular-expressions-cookbook/9781449327453/ch04s14.html)"&gt;https://www.oreilly.com/library/view/regular-expressions-cookbook/9781449327453/ch04s14.html)&lt;/a&gt;&lt;/a&gt; and put that in the /mask attribute.&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="26800"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;Perfect! Thank you!</description><pubDate>Mon, 15 Apr 2019 06:33:27 GMT</pubDate><dc:creator>S.Weber</dc:creator></item><item><title>RE: restrict integer</title><link>https://forums.millisecond.com/Topic26800.aspx</link><description>&lt;div data-id="26799" class="if-quote-wrapper" unselectable="on" data-guid="1555333502389"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="26799" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="26799" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="26799" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;S.Weber - Monday, April 15, 2019&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-26799"&gt;&lt;div class="if-quote-message-margin"&gt;Hello, &lt;br/&gt;I´m a really beginner and I need some help, please.&lt;br/&gt;&lt;br/&gt;How can I create an expression with an restricted input from an integer from 01001 to 99998? These are our possible ZIP-Codes, therefore I need the zero in the beginning and the limitation to 5 digits.&lt;br/&gt;Can somebody help, please?&lt;br/&gt;Thank you!&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="26799"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;If you are using a &amp;lt;textbox&amp;gt; or &amp;lt;openended&amp;gt; to collect the ZIP-code, you should not need any expression. You should be able to use the /mask attribute set to uszipcode&lt;br/&gt;&lt;br/&gt;&lt;a href="https://www.millisecond.com/support/docs/v4/html/language/attributes/mask.htm"&gt;https://www.millisecond.com/support/docs/v4/html/language/attributes/mask.htm&lt;/a&gt;&lt;br/&gt;&lt;br/&gt;Alternatively, you can tailor a regular expression to your needs (see e.g. &lt;a href="https://www.oreilly.com/library/view/regular-expressions-cookbook/9781449327453/ch04s14.html)"&gt;https://www.oreilly.com/library/view/regular-expressions-cookbook/9781449327453/ch04s14.html)&lt;/a&gt; and put that in the /mask attribute.&lt;br/&gt;&lt;br/&gt;</description><pubDate>Mon, 15 Apr 2019 06:09:18 GMT</pubDate><dc:creator>Dave</dc:creator></item></channel></rss>