Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Michael Gill
  Where is Michael Gill?
 Illinois - United States
 Michael Gill
 To: Marcia Hawkins
 Fort Myers
 Marcia Hawkins
Subject: RE: InputMask Problem
Thread ID: 15573 Message ID: 15925 # Views: 3 # Ratings: 0
Version: Unknown Category: General VFP Topics
Date: Friday, October 4, 2002 5:04:50 AM         

> > > > I want to set a textbox's InputMask property to 'BIN9999' but since N is reserved for "Letters and Digits Only" as a format property my N doesn't show up in my textbox as I would like it to. Is there a way to offset the N in the InputMask property to make foxPro realize it is suppose to be an actual N as a character? Please let me know if this is possible...thank you.
> > > >
> > > > Jared Baszler
> > > > Computer Programmer
> > > > Mid-West Seed Services, Inc.
> > >
> > > Can you claify? The InputMask property works something like a PICTURE statement on a GET or a SAY. Its symbols, like '9' for numbers only, 'Y' for "YN" on a logical, etc., are a trigger for the internal function to apply appropriate formatting code or validation.
> > >
> > > It looks like you want the textbox to display the literal string 'BIN' in front of 4 numbers. Is that what you intend? If so, you can't put this literal in the mask.
> > >
> > > Patrick
> > >
> > >
> > >
> >
> > That is exactly what I want to do. I want to put that literal in the mask and as far as I'm concerned it would work if 'N' wasn't a reserved symbol in the InputMask property. What is another way of going about this so 'BIN' is already there and the user cannot edit those 3 letters.
> >
> > Jared Baszler
> > Web Developer
> > Mid-West Seed Services, Inc.
> Dear Jared, Just put the word BIN on the form, set your Inputmask to 9999, max length to 4. then string together the word BIN with what is in the text box for the save routine. Will that work for you? Another possiblity, put two textboxes side by side, bumped up against each other, one with the substr(field,1,3) the other with substr(field,4,4). Disable the first one.Marcia

Since they can never change the letters BIN anyway, use Marcia's idea.


www.foxite.com - The Home of the Visual FoxPro Experts


InputMask Problem Posted by Jared Baszler @ 9/25/2002 4:55:40 AM
RE: InputMask Problem Posted by Patrick Dowd @ 9/27/2002 9:12:23 PM
RE: InputMask Problem Posted by Jared Baszler @ 10/3/2002 4:18:05 PM
RE: InputMask Problem Posted by Marcia Hawkins @ 10/3/2002 4:32:58 PM
RE: InputMask Problem Posted by Steve Bloodsworth @ 10/3/2002 5:01:16 PM
RE: InputMask Problem Posted by Jared Baszler @ 10/4/2002 12:17:35 AM
RE: InputMask Problem Posted by Michael Gill @ 10/4/2002 5:04:50 AM