Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
What's dynamic about DynamicInputMask?
Message
From
28/11/2003 11:37:01
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
What's dynamic about DynamicInputMask?
Miscellaneous
Thread ID:
00854232
Message ID:
00854232
Views:
71
From the online help:

The following demonstrates a typical format for cInputMask:

Column1.DynamicInputMask = "@R$ ###,###,###.##"
For additional information about the format of cFunction and cMask, see the Format and InputMask properties.

Now why anyone would want to hardcode something that's supposed to be dynamic is beyond me, but I guess, as Ed Rauh, may the Lord bless his soul, once replied to one of my frequent questions: It may be one of those cases where I'm totally clueless.

The reason I'm asking, is because I have a customer who, depending on the data, would like the individual fields in a row (not column) formatted according to the number of decimals in the nDecimals field in the underlying table.

So something like this came to mind:

.Column1.DynamicInputMask = ;
'#####'+ IIF(cTable.cField > 0,'.'+ REPLICATE('#',cTable.cField),'')

As far as I can see, that does nothing.

Any ideas on how to achieve this?


TIA

Peter
Peter Pirker


Whosoever shall not fall by the sword or by famine, shall fall by pestilence, so why bother shaving?

(Woody Allen)
Next
Reply
Map
View

Click here to load this message in the networking platform