Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Property Grid
  New Posts New Posts RSS Feed - Mask Problem - Item.SetMask
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Mask Problem - Item.SetMask

 Post Reply Post Reply
Author
Message
vbuser View Drop Down
Newbie
Newbie


Joined: 22 January 2004
Status: Offline
Points: 39
Post Options Post Options   Thanks (0) Thanks(0)   Quote vbuser Quote  Post ReplyReply Direct Link To This Post Topic: Mask Problem - Item.SetMask
    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

Back to Top
vbuser View Drop Down
Newbie
Newbie


Joined: 22 January 2004
Status: Offline
Points: 39
Post Options Post Options   Thanks (0) Thanks(0)   Quote vbuser Quote  Post ReplyReply Direct Link To This Post Posted: 23 June 2004 at 2:06am
any help on this?
Back to Top
SuperMario View Drop Down
Admin Group
Admin Group
Avatar

Joined: 14 February 2004
Status: Offline
Points: 18057
Post Options Post Options   Thanks (0) Thanks(0)   Quote SuperMario Quote  Post ReplyReply Direct Link To This Post 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#
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.219 seconds.