realbasic-nug
[Top] [All Lists]

Re: Listbox Mask

To: realbasic-nug at lists dot realsoftware dot com
Subject: Re: Listbox Mask
From: Ron Benditt <rbenditt at alienapparatus dot com>
Date: Sun, 30 Apr 2006 11:13:59 -0400
Delivered-to: realbasic-nug at lists dot realsoftware dot com
References: <20060430083526 dot 349ED122F8F3 at lists dot realsoftware dot com>
I don't know of a way to assign a mask to many cells in one shot like you suggest, but you can do it by putting this in the listbox's CellGotFocus event:

Me.ActiveCell.Mask="(###) ###-####"

If you want the mask only in a specific column, you could do this in the CellGotFocus event:

If Column=3 Then
  Me.ActiveCell.Mask="(###) ###-####"
End If

Ron Benditt
Alien Apparatus Company, Inc.
http://www.alienapparatus.com


Is it possible to set a column in a listbox with mask?   I have a
listbox that I have set the 2nd column to editable and would like to
have it have a mask so that when it is doubleclicked to edit it  a
mask property is used.

Can this be done...if so how??

Thanks a ton!!

Wade

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>


<Prev in Thread] Current Thread [Next in Thread>