This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Re: IP Address Condition
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 23, 2008
08:42 AM
IP Address Condition
Hello,
i am trying to use a field for ip address value, using the ### as the property to change.
i want to make sure that only Valid IP addresses can be filled in the value field.
i understand that i need to use a condition for 0 < 255 ...
i`m working with instalshield 2008 pro.
can anyone please post how do i set this condition for the IP value ???
thanks
i am trying to use a field for ip address value, using the ### as the property to change.
i want to make sure that only Valid IP addresses can be filled in the value field.
i understand that i need to use a condition for 0 < 255 ...
i`m working with instalshield 2008 pro.
can anyone please post how do i set this condition for the IP value ???
thanks
(10) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 23, 2008
10:41 AM
i managed to set the field to accept only <255 but now i can only press the Next button if i fill 3 characters in the field (###)
so that if i need the IP : 191.162.10.5 i need to input 191.162.010.005
what to do ???
how do i fix it ???
thanks
so that if i need the IP : 191.162.10.5 i need to input 191.162.010.005
what to do ???
how do i fix it ???
thanks
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 23, 2008
02:59 PM
Buaron wrote:
i managed to set the field to accept only <255 but now i can only press the Next button if i fill 3 characters in the field (###)
so that if i need the IP : 191.162.10.5 i need to input 191.162.010.005
what to do ???
how do i fix it ???
thanks
Are you using MaskEdit control in MSI or SendMessage windows API to create IP Address control on the fly?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 27, 2008
04:50 AM
hey Gvarma,
i am using MaskedEdit in MSI, using ###.###.###.### as the Mask.
it`s the same if i`m using seperate MaskedEdit boxes usin ### mask for each one.
i am using MaskedEdit in MSI, using ###.###.###.### as the Mask.
it`s the same if i`m using seperate MaskedEdit boxes usin ### mask for each one.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 27, 2008
09:56 AM
Buaron wrote:
hey Gvarma,
i am using MaskedEdit in MSI, using ###.###.###.### as the Mask.
it`s the same if i`m using seperate MaskedEdit boxes usin ### mask for each one.
Ok then instead of using #### , do this
hth
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 27, 2008
10:14 AM
if i am using ??? instead of ### i get the same problem as before- i need three characters to be filled in order for the condition to work.
in addition, if i use ???, i can also input Letters and not only Numbers, like the ### gives me...
so not only it didnt solve the problem, it added a new problem...
could it be that maybe i am missing something else? :confused:
do i need to set anything besides the Mask?
maybe the condition itself is wrong?
all i have there is: [Propety]<255 , this works fine in limiting the numbers but thats it...
in addition, if i use ???, i can also input Letters and not only Numbers, like the ### gives me...
so not only it didnt solve the problem, it added a new problem...
could it be that maybe i am missing something else? :confused:
do i need to set anything besides the Mask?
maybe the condition itself is wrong?
all i have there is: [Propety]<255 , this works fine in limiting the numbers but thats it...
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 27, 2008
10:55 AM
Buaron wrote:
if i am using ??? instead of ### i get the same problem as before- i need three characters to be filled in order for the condition to work.
in addition, if i use ???, i can also input Letters and not only Numbers, like the ### gives me...
so not only it didnt solve the problem, it added a new problem...
could it be that maybe i am missing something else? :confused:
do i need to set anything besides the Mask?
maybe the condition itself is wrong?
all i have there is: [Propety]<255 , this works fine in limiting the numbers but thats it...
OK now i understand
you need to add this to mask <###.###.###.###> include greater then and less then sign.
This will accept 1 two or three degits but will not validate your entered IP address ( > 255) which I assume you are already doing it.
This will work
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 28, 2008
04:01 AM
using the <###.###.###.###> as mask causes two problems for me:
1. it creates gaps between the fields of the IP (example- 192.168._10.__5 instead of 192.168.10.5)
2. i cant control the IP range, which means that any number can be the field (it can even be 999.999.999.999) since the mask is for the entire IP address and not for each box by itself.
what i need to create [IPADDRESS] = [IP1].[IP2].[IP3].[IP4]
and i need to control each one of the [IP%] to be under 255.
but i keep getting into the same loop that i need three characters to filled or the the Next button doesnt work...:(
1. it creates gaps between the fields of the IP (example- 192.168._10.__5 instead of 192.168.10.5)
2. i cant control the IP range, which means that any number can be the field (it can even be 999.999.999.999) since the mask is for the entire IP address and not for each box by itself.
what i need to create [IPADDRESS] = [IP1].[IP2].[IP3].[IP4]
and i need to control each one of the [IP%] to be under 255.
but i keep getting into the same loop that i need three characters to filled or the the Next button doesnt work...:(
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 28, 2008
09:14 AM
Buaron wrote:
using the <###.###.###.###> as mask causes two problems for me:
1. it creates gaps between the fields of the IP (example- 192.168._10.__5 instead of 192.168.10.5)
2. i cant control the IP range, which means that any number can be the field (it can even be 999.999.999.999) since the mask is for the entire IP address and not for each box by itself.
what i need to create [IPADDRESS] = [IP1].[IP2].[IP3].[IP4]
and i need to control each one of the [IP%] to be under 255.
but i keep getting into the same loop that i need three characters to filled or the the Next button doesnt work...:(
You will have to write some custom code to LTRIM and RTRIM your vars/property where you are accepting ip adress. Using these two functions you could easily remove left and right spaces.
For ranges as well, you could write a custom function in which you set the PROPERTY to 0, if it exceeds 255 or less then 0 and dont let the dialog box process further unless conditions are met.
you could easily achieve this in MSI, as dialog properties lets you have control over the dialog box.
Alternatively you could import a SD..rul script for existing dialog box, define you IP MASK control there, and customize it for accepting IPADDRESS validation.
HTH
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 02, 2008
04:40 AM
thanks for the help...
i was hoping i didnt need to use code for this operation, however, i see no other solution...
i thought that the MaskedEdit will provide the answer by it self.
thanks again !!!
i was hoping i didnt need to use code for this operation, however, i see no other solution...
i thought that the MaskedEdit will provide the answer by it self.
thanks again !!!
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 03, 2008
04:09 PM
Buaron wrote:
thanks for the help...
i was hoping i didnt need to use code for this operation, however, i see no other solution...
i thought that the MaskedEdit will provide the answer by it self.
thanks again !!!
MaskEdit (as the name says) is just a maskEdit control NOT a ipaddress controller, though you could customize it to make a ipaddress control.
I dont wanna confuse you but with little code change you could use "IP Address Dialog Box" written by Robert Dickau on installsite.org
URL is
http://www.installsite.org/pages/en/isp_ui.htm
but there also you will have to write some code to customize, create, instialize your control
HTH