Field-level and interfield validations

Field-level and interfield validations

Question:
Field-level validations should be done when the user visits the field. How can this be done?

Interfield validations on the same screen also should be done when the user visits the latter field. Is this possible?

Answer:
The perfect method for validation is the aptly named Validate(), fired whenever a user changes a value in a fieldand leaves the field.

Regarding interfield validation, your description is slightly off base. Ina graphical application, you have no way of controlling which field is ‘last’ to be visited. The way I would implement this isto declare a user-defined method and call the method from theValidate() method for all of the the fields that participate in thevalidation.

Share the Post:
Heading photo, Metadata.

What is Metadata?

What is metadata? Well, It’s an odd concept to wrap your head around. Metadata is essentially the secondary layer of data that tracks details about the “regular” data. The regular

XDR solutions

The Benefits of Using XDR Solutions

Cybercriminals constantly adapt their strategies, developing newer, more powerful, and intelligent ways to attack your network. Since security professionals must innovate as well, more conventional endpoint detection solutions have evolved

AI is revolutionizing fraud detection

How AI is Revolutionizing Fraud Detection

Artificial intelligence – commonly known as AI – means a form of technology with multiple uses. As a result, it has become extremely valuable to a number of businesses across

AI innovation

Companies Leading AI Innovation in 2023

Artificial intelligence (AI) has been transforming industries and revolutionizing business operations. AI’s potential to enhance efficiency and productivity has become crucial to many businesses. As we move into 2023, several