Index
2011-08-04 12:02Jerry Foote : FORMAT AND INPUTMASK IN WITH TEXTBOX
2011-08-04 12:04Grigore Dolghin : Re: FORMAT AND INPUTMASK IN WITH TEXTBOX
2011-08-04 12:43Jerry Foote : RE: FORMAT AND INPUTMASK IN WITH TEXTBOX
2011-08-04 12:57Frank Cazabon : Re: FORMAT AND INPUTMASK IN WITH TEXTBOX
2011-08-04 13:03Jerry Foote : RE: FORMAT AND INPUTMASK IN WITH TEXTBOX
2011-08-04 13:10Ken Kixmoeller (ProFox) : Re: FORMAT AND INPUTMASK IN WITH TEXTBOX
2011-08-04 13:51Fred Taylor : Re: FORMAT AND INPUTMASK IN WITH TEXTBOX
2011-08-04 13:53Fred Taylor : Re: FORMAT AND INPUTMASK IN WITH TEXTBOX
2011-08-04 13:55Jerry Foote : RE: FORMAT AND INPUTMASK IN WITH TEXTBOX
2011-08-04 14:45Rafael Copquin : Re: FORMAT AND INPUTMASK IN WITH TEXTBOX
Back to top
FORMAT AND INPUTMASK IN WITH TEXTBOX

Author: Jerry Foote

Posted: 2011-08-04 12:02:01   Link

I am trying to use the "M" in format with a string in the inputmask to

restrict data entry in 1 particular field.

If I have "LIQUOR,BEER,WINE" as a literal the selection is limited to one of

the selections.

I would like to use a variable to define the selections.

Does anybody know how to format the string to use in inputmask.

I'v tried (),&

Can't get it working

Thanks Jerry

--- StripMime Report -- processed MIME parts ---

multipart/alternative

text/plain (text body -- kept)

text/html

---

_______________________________________________

Post Messages to: ProFox@leafe.com

Subscription Maintenance: http://leafe.com/mailman/listinfo/profox

OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech

Searchable Archive: http://leafe.com/archives/search/profox

This message: http://leafe.com/archives/byMID/profox/EC81E66E1D494FD4AF78C81ED10ADEAF@jerryfootePC

** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

©2011 Jerry Foote
Back to top
Re: FORMAT AND INPUTMASK IN WITH TEXTBOX

Author: Grigore Dolghin

Posted: 2011-08-04 12:04:44   Link

Use a combobox instead.

On Thu, Aug 4, 2011 at 7:02 PM, Jerry Foote <jerryfoote@bellsouth.net> wrote:

> I am trying to use the "M" in format with a string in the inputmask to

> restrict data entry in 1 particular field.

>

>

>

> If I have "LIQUOR,BEER,WINE" as a literal the selection is limited to one of

> the selections.

>

>

>

> I would like to use a variable to define the selections.

>

>

>

> Does anybody know how to format the string to use in inputmask.

>

>

>

> I'v tried (),&

>

>

>

> Can't get it working

>

>

>

> Thanks Jerry

>

>

>

> --- StripMime Report -- processed MIME parts ---

> multipart/alternative

>  text/plain (text body -- kept)

>  text/html

> ---

>

[excessive quoting removed by server]

_______________________________________________

Post Messages to: ProFox@leafe.com

Subscription Maintenance: http://leafe.com/mailman/listinfo/profox

OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech

Searchable Archive: http://leafe.com/archives/search/profox

This message: http://leafe.com/archives/byMID/profox/CAH=CQDJFj5Zz6mk3-0oVufx5WsVZcMNe5-e3Ky1mB03xeb97-g@mail.gmail.com

** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

©2011 Grigore Dolghin
Back to top
RE: FORMAT AND INPUTMASK IN WITH TEXTBOX

Author: Jerry Foote

Posted: 2011-08-04 12:43:32   Link

It's so much easier to just press the first letter of the desired option

than navigating the combo box.

Jerry

-----Original Message-----

From: profox-bounces@leafe.com [mailto:profox-bounces@leafe.com] On Behalf

Of Grigore Dolghin

Sent: Thursday, August 04, 2011 11:05 AM

To: profox@leafe.com

Subject: Re: FORMAT AND INPUTMASK IN WITH TEXTBOX

Use a combobox instead.

On Thu, Aug 4, 2011 at 7:02 PM, Jerry Foote <jerryfoote@bellsouth.net>

wrote:

> I am trying to use the "M" in format with a string in the inputmask to

> restrict data entry in 1 particular field.

>

>

>

> If I have "LIQUOR,BEER,WINE" as a literal the selection is limited to one

of

> the selections.

>

>

>

> I would like to use a variable to define the selections.

>

>

>

> Does anybody know how to format the string to use in inputmask.

>

>

>

> I'v tried (),&

>

>

>

> Can't get it working

>

>

>

> Thanks Jerry

>

>

>

> --- StripMime Report -- processed MIME parts ---

> multipart/alternative

>  text/plain (text body -- kept)

>  text/html

> ---

>

[excessive quoting removed by server]

_______________________________________________

Post Messages to: ProFox@leafe.com

Subscription Maintenance: http://leafe.com/mailman/listinfo/profox

OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech

Searchable Archive: http://leafe.com/archives/search/profox

This message: http://leafe.com/archives/byMID/profox/DE0F2FC8F6E14802BF058C272C8E396C@jerryfootePC

** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

©2011 Jerry Foote
Back to top
Re: FORMAT AND INPUTMASK IN WITH TEXTBOX

Author: Frank Cazabon

Posted: 2011-08-04 12:57:22   Link

But you can do that in a dropdown list too :)

Frank.

Frank Cazabon

Samaan Systems Ltd. - Developing Solutions

www.SamaanSystems.com

On 04/08/2011 12:43 PM, Jerry Foote wrote:

> It's so much easier to just press the first letter of the desired option

> than navigating the combo box.

> Jerry

>

> -----Original Message-----

> From: profox-bounces@leafe.com [mailto:profox-bounces@leafe.com] On Behalf

> Of Grigore Dolghin

> Sent: Thursday, August 04, 2011 11:05 AM

> To: profox@leafe.com

> Subject: Re: FORMAT AND INPUTMASK IN WITH TEXTBOX

>

> Use a combobox instead.

>

> On Thu, Aug 4, 2011 at 7:02 PM, Jerry Foote<jerryfoote@bellsouth.net>

> wrote:

>> I am trying to use the "M" in format with a string in the inputmask to

>> restrict data entry in 1 particular field.

>>

>>

>>

>> If I have "LIQUOR,BEER,WINE" as a literal the selection is limited to one

> of

>> the selections.

>>

>>

>>

>> I would like to use a variable to define the selections.

>>

>>

>>

>> Does anybody know how to format the string to use in inputmask.

>>

>>

>>

>> I'v tried (),&

>>

>>

>>

>> Can't get it working

>>

>>

>>

>> Thanks Jerry

>>

>>

>>

>> --- StripMime Report -- processed MIME parts ---

>> multipart/alternative

>> text/plain (text body -- kept)

>> text/html

>> ---

>>

[excessive quoting removed by server]

_______________________________________________

Post Messages to: ProFox@leafe.com

Subscription Maintenance: http://leafe.com/mailman/listinfo/profox

OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech

Searchable Archive: http://leafe.com/archives/search/profox

This message: http://leafe.com/archives/byMID/profox/4E3ACF72.9020407@gmail.com

** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

©2011 Frank Cazabon
Back to top
RE: FORMAT AND INPUTMASK IN WITH TEXTBOX

Author: Jerry Foote

Posted: 2011-08-04 13:03:39   Link

Ok, ok I just wanted to use the "M" and string if I could.

Jerry

-----Original Message-----

From: profox-bounces@leafe.com [mailto:profox-bounces@leafe.com] On Behalf

Of Frank Cazabon

Sent: Thursday, August 04, 2011 11:57 AM

To: profox@leafe.com

Subject: Re: FORMAT AND INPUTMASK IN WITH TEXTBOX

But you can do that in a dropdown list too :)

Frank.

Frank Cazabon

Samaan Systems Ltd. - Developing Solutions

www.SamaanSystems.com

On 04/08/2011 12:43 PM, Jerry Foote wrote:

> It's so much easier to just press the first letter of the desired option

> than navigating the combo box.

> Jerry

>

> -----Original Message-----

> From: profox-bounces@leafe.com [mailto:profox-bounces@leafe.com] On Behalf

> Of Grigore Dolghin

> Sent: Thursday, August 04, 2011 11:05 AM

> To: profox@leafe.com

> Subject: Re: FORMAT AND INPUTMASK IN WITH TEXTBOX

>

> Use a combobox instead.

>

> On Thu, Aug 4, 2011 at 7:02 PM, Jerry Foote<jerryfoote@bellsouth.net>

> wrote:

>> I am trying to use the "M" in format with a string in the inputmask to

>> restrict data entry in 1 particular field.

>>

>>

>>

>> If I have "LIQUOR,BEER,WINE" as a literal the selection is limited to one

> of

>> the selections.

>>

>>

>>

>> I would like to use a variable to define the selections.

>>

>>

>>

>> Does anybody know how to format the string to use in inputmask.

>>

>>

>>

>> I'v tried (),&

>>

>>

>>

>> Can't get it working

>>

>>

>>

>> Thanks Jerry

>>

>>

>>

>> --- StripMime Report -- processed MIME parts ---

>> multipart/alternative

>> text/plain (text body -- kept)

>> text/html

>> ---

>>

[excessive quoting removed by server]

_______________________________________________

Post Messages to: ProFox@leafe.com

Subscription Maintenance: http://leafe.com/mailman/listinfo/profox

OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech

Searchable Archive: http://leafe.com/archives/search/profox

This message: http://leafe.com/archives/byMID/profox/E33E9AEFDA9D48D0BF86A648624D0579@jerryfootePC

** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

©2011 Jerry Foote
Back to top
Re: FORMAT AND INPUTMASK IN WITH TEXTBOX

Author: Ken Kixmoeller (ProFox)

Posted: 2011-08-04 13:10:01   Link

On Thu, Aug 4, 2011 at 11:43 AM, Jerry Foote <jerryf@footegroup.com> wrote:

> It's so much easier to just press the first letter of the desired option

> than navigating the combo box.

Comboboxes work that way, too. I agree: show them the choices.

Ken

_______________________________________________

Post Messages to: ProFox@leafe.com

Subscription Maintenance: http://leafe.com/mailman/listinfo/profox

OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech

Searchable Archive: http://leafe.com/archives/search/profox

This message: http://leafe.com/archives/byMID/profox/CAFyV=L=XM4K7kUhWOfSBQ4_xNW2Q=SKd=jmjs9oYD_hhEm8-yA@mail.gmail.com

** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

©2011 Ken Kixmoeller (ProFox)
Back to top
Re: FORMAT AND INPUTMASK IN WITH TEXTBOX

Author: Fred Taylor

Posted: 2011-08-04 13:51:51   Link

While ComboBoxes are the preferred way to do it, you can still use the M

format and a variable or property to set the .InputMask value.

You should be able to change the value of choices by just resetting the

.InputMask to a constant, variable or property.

from some method on your form:

thisform.textbox.inputmask = "val1,val2,val3"

cList = "One,Two"

thisform.textbox.inputmask = cList

etc.

Fred

On Thu, Aug 4, 2011 at 9:02 AM, Jerry Foote <jerryfoote@bellsouth.net>wrote:

> I am trying to use the "M" in format with a string in the inputmask to

> restrict data entry in 1 particular field.

>

>

>

> If I have "LIQUOR,BEER,WINE" as a literal the selection is limited to one

> of

> the selections.

>

>

>

> I would like to use a variable to define the selections.

>

>

>

> Does anybody know how to format the string to use in inputmask.

>

>

>

> I'v tried (),&

>

>

>

> Can't get it working

>

>

>

> Thanks Jerry

>

>

>

> --- StripMime Report -- processed MIME parts ---

> multipart/alternative

> text/plain (text body -- kept)

> text/html

> ---

>

[excessive quoting removed by server]

_______________________________________________

Post Messages to: ProFox@leafe.com

Subscription Maintenance: http://leafe.com/mailman/listinfo/profox

OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech

Searchable Archive: http://leafe.com/archives/search/profox

This message: http://leafe.com/archives/byMID/profox/CAJCBksro8dRdLrE_0GdU+rZk9dNzCPtw_QU8=CZcu_omWQEOZA@mail.gmail.com

** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

©2011 Fred Taylor
Back to top
Re: FORMAT AND INPUTMASK IN WITH TEXTBOX

Author: Fred Taylor

Posted: 2011-08-04 13:53:55   Link

Just be aware that if you use the M format, the input mask length is

limited. If it gets to be too long, VFP just mysteriously exits! Sorry, I

don't recall the length that causes that, 255 maybe?

Fred

On Thu, Aug 4, 2011 at 9:02 AM, Jerry Foote <jerryfoote@bellsouth.net>wrote:

> I am trying to use the "M" in format with a string in the inputmask to

> restrict data entry in 1 particular field.

>

>

>

> If I have "LIQUOR,BEER,WINE" as a literal the selection is limited to one

> of

> the selections.

>

>

>

> I would like to use a variable to define the selections.

>

>

>

> Does anybody know how to format the string to use in inputmask.

>

>

>

> I'v tried (),&

>

>

>

> Can't get it working

>

>

>

> Thanks Jerry

>

>

>

> --- StripMime Report -- processed MIME parts ---

> multipart/alternative

> text/plain (text body -- kept)

> text/html

> ---

>

[excessive quoting removed by server]

_______________________________________________

Post Messages to: ProFox@leafe.com

Subscription Maintenance: http://leafe.com/mailman/listinfo/profox

OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech

Searchable Archive: http://leafe.com/archives/search/profox

This message: http://leafe.com/archives/byMID/profox/CAJCBkspwec+jB_GtvixC5=Hb0uidZQnaBUhMrHr=OMRVwt422g@mail.gmail.com

** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

©2011 Fred Taylor
Back to top
RE: FORMAT AND INPUTMASK IN WITH TEXTBOX

Author: Jerry Foote

Posted: 2011-08-04 13:55:05   Link

That is what I was looking for.

Thanks Jerry

-----Original Message-----

From: profox-bounces@leafe.com [mailto:profox-bounces@leafe.com] On Behalf

Of Fred Taylor

Sent: Thursday, August 04, 2011 12:52 PM

To: ProFox Email List

Subject: Re: FORMAT AND INPUTMASK IN WITH TEXTBOX

While ComboBoxes are the preferred way to do it, you can still use the M

format and a variable or property to set the .InputMask value.

You should be able to change the value of choices by just resetting the

.InputMask to a constant, variable or property.

from some method on your form:

thisform.textbox.inputmask = "val1,val2,val3"

cList = "One,Two"

thisform.textbox.inputmask = cList

etc.

Fred

On Thu, Aug 4, 2011 at 9:02 AM, Jerry Foote <jerryfoote@bellsouth.net>wrote:

> I am trying to use the "M" in format with a string in the inputmask to

> restrict data entry in 1 particular field.

>

>

>

> If I have "LIQUOR,BEER,WINE" as a literal the selection is limited to one

> of

> the selections.

>

>

>

> I would like to use a variable to define the selections.

>

>

>

> Does anybody know how to format the string to use in inputmask.

>

>

>

> I'v tried (),&

>

>

>

> Can't get it working

>

>

>

> Thanks Jerry

>

>

>

> --- StripMime Report -- processed MIME parts ---

> multipart/alternative

> text/plain (text body -- kept)

> text/html

> ---

>

[excessive quoting removed by server]

_______________________________________________

Post Messages to: ProFox@leafe.com

Subscription Maintenance: http://leafe.com/mailman/listinfo/profox

OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech

Searchable Archive: http://leafe.com/archives/search/profox

This message: http://leafe.com/archives/byMID/profox/EE607E65DBE140498E15FC6AC56F60E8@jerryfootePC

** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

©2011 Jerry Foote
Back to top
Re: FORMAT AND INPUTMASK IN WITH TEXTBOX

Author: Rafael Copquin

Posted: 2011-08-04 14:45:17   Link

Configure your textbox like this:

format property--------------> M

inputmask property---------> =thisform.cMask (do not forget to put the

= sign as a first character)

In your form, create a property called cMask

thisform.cMask = 'Apples, Bananas, Mangos, Oranges, Peaches'

run the form and press the space bar to change your selection or the

first letter of each option (assuming each option has a different first

letter)

Rafael Copquin

_______________________________________________

Post Messages to: ProFox@leafe.com

Subscription Maintenance: http://leafe.com/mailman/listinfo/profox

OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech

Searchable Archive: http://leafe.com/archives/search/profox

This message: http://leafe.com/archives/byMID/profox/4E3AE8BD.1020901@fibertel.com.ar

** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

©2011 Rafael Copquin