Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Format inputmask and VFP 9
Message
From
15/04/2005 12:59:06
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01005159
Message ID:
01005194
Views:
20
This message has been marked as the solution to the initial question of the thread.
>Hi,
>bonjour,
>
>I should like a textbox for entry a hour.( ex 10H23)
>under vfp8 my code functioned well but any more under vfp9.
>
>that I badly made?
>
>
>
>**************************************************
>*-- Form:         form1 (c:\cdbk90\amline\form1.scx)
>*-- ParentClass:  form
>*-- BaseClass:    form
>*-- Time Stamp:   04/15/05 05:52:01 PM
>*
>DEFINE CLASS form1 AS form
>
>
>	DoCreate = .T.
>	Caption = "Form1"
>	Name = "Form1"
>
>
>	ADD OBJECT text1 AS textbox WITH ;
>		Format = "R", ;
>		Height = 23, ;
>		InputMask = "99H99", ;
>		Left = 216, ;
>		Top = 72, ;
>		Width = 100, ;
>		Name = "Text1"
>
>
>ENDDEFINE
>*
>*-- EndDefine: form1
>**************************************************
>
>
>
>Thank in advance
>
>bernhart

try this on VFP8 and 9
? TRANSFORM('1256',"@R 99H99")
Read VFP9 InputMask doc:

H Prevents entry of non-hexadecimal symbols in the specified position.


This is a VFP3 bad/bug design.
Every time VFPT add a new cMask character,
all VFP developers forgiveness this character as separator.

A possible char is:
? TRANSFORM('1256',"@R 99:99")
but it can dead on VFP10!
Previous
Reply
Map
View

Click here to load this message in the networking platform