{{tag>category:"IDE(New 10+)" author:"rdhull50" author:"Andrew McAuley" author:"Donald Bakke"}}
[[https://www.revelation.com/the-works|Join The Works program to have access to the most current content, and to be able to ask questions and get answers from Revelation staff and the Revelation community]]
==== Window form - Valid property (IDE(New 10+)) ====
=== At 28 JUN 2020 09:14:37AM rdhull50 wrote: ===
Can a Window Form control have more than one (Validation) Valid property?
I want a control to NOT contain a value that is in a table AND also be numeric.
I have for the Valid property,[b] [/b] which works, but also want to add either
[b]nN or (MD0)[/b] as a validation.
Adding it as a second line doesn't work.
e.g.
[b][/b]
[b](MD0)[/b]
----
=== At 28 JUN 2020 09:50AM Andrew McAuley wrote: ===
Multiple lines [i]should[/i] work but they don't seem to.
I have just experimented with _0N and it does what you want.
[url=https://www.sprezzatura.com]The Sprezzatura Group[/url]
[url=https://www.sprezzatura.com/blog]The Sprezzatura Blog[/url]
[i]World leaders in all things RevSoft[/i]
[img]https://www.sprezzatura.com/zz.gif[/img]
----
=== At 28 JUN 2020 10:17AM rdhull50 wrote: ===
Thanks, Andrew
----
=== At 29 JUN 2020 12:21AM Donald Bakke wrote: ===
Multiple lines [i]should[/i] work but they don't seem to.
Did you mean multiple lines don't work [u]at all[/u] or don't work [u]the way rdhull50 was expecting them to[/u]? I thought concatenating validations on the same line with a delimiter was always the way to perform an implicit AND. Validations on multiple lines was how to perform an implicit OR.
[url=mailto:dbakke@srpcs.com]Don Bakke[/url]
[url=http://www.srpcs.com]SRP Computer Solutions, Inc.[/url]
----
=== At 29 JUN 2020 05:20AM Andrew McAuley wrote: ===
Don, you are, of course, correct. I tested incorrectly looking for the wrong result whilst simultaneously confusing VALID with ICONVs which stack as ANDed when multivalued.
[url=https://www.sprezzatura.com]The Sprezzatura Group[/url]
[url=https://www.sprezzatura.com/blog]The Sprezzatura Blog[/url]
[i]World leaders in all things RevSoft[/i]
[img]https://www.sprezzatura.com/zz.gif[/img]
[[https://www.revelation.com/revweb/oecgi4p.php/O4W_HANDOFF?DESTN=O4W_RUN_FORM&INQID=WORKS_READ&SUMMARY=1&KEY=3574CC1AF5CADD4CB1D4515CD895BDBA|View this thread on the Works forum...]]