Print Page | Close Window

Mask Problem - Item.SetMask

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Property Grid
Forum Description: Topics Related to Codejock Property Grid
URL: http://forum.codejock.com/forum_posts.asp?TID=816
Printed Date: 28 April 2024 at 9:19am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Mask Problem - Item.SetMask
Posted By: vbuser
Subject: Mask Problem - Item.SetMask
Date Posted: 09 June 2004 at 12:39am

I've noticed that if I load values from a database into the grid and the value isn't formated according to the MASK the grid will stay empty - Will not re-format the data - This is a big drawback, because if you have added many records to a database, say a phone number, and you later change the mask, whenever you display the "old" records the grid will simply not show anything... Am I missing something?

Item.SetMask sMask, sLiteral




Replies:
Posted By: vbuser
Date Posted: 23 June 2004 at 2:06am
any help on this?


Posted By: SuperMario
Date Posted: 22 July 2004 at 6:26am
This feature has been included in version 9.0:

    Set Category = wndPropertyGrid.AddCategory("Masked")
   
    Set Item = Category.AddChildItem(PropertyItemString, "Phone", "Phone No: (800) 555-1212")
    Item.SetMask "Phone No: (000) 000-0000", "Phone No: (___) ___-____"

    'Here you can now assign unformatted text and it will use the mask
    Item.MaskedText = 8004561232#



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net