Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

Create a MaskEdit field for IP address


2 replies to this topic

Asaf Vishna

Asaf Vishna
  • Members
  • 6 posts

Posted 15 January 2002 - 10:23

I have created a MaskEdit field for IP address ###.###.###.###
When a user type 11 Tab 12 Tab 13 Tab 14 Tab
Then in the property that old the value of the IP address a get  11_.12_ .13_ .14_ where _ is space

Does any one know  how to prevent/fix this?


Kurt Schneider

Kurt Schneider
  • Members
  • 98 posts

Posted 15 January 2002 - 15:04

Well, you could create a Custom Action to strip out the spaces in the Property.  Here's some VBScript to do it:

Option Explicit

Main()

Sub Main

Dim sVar
Dim sNewString
sVar = Session.Property("IPPROPERTY")
sNewString = Replace(sVar, " ", "", vbTextCompare)
Session.Property("IPPROPERTY') = sNewString

End Sub

Just sequence this Action to trigger when the user hits the next button on the dialog containing the IP field.

Good Luck

Kurt


Asaf Vishna

Asaf Vishna
  • Members
  • 6 posts

Posted 17 January 2002 - 19:55

10x