A
Agnes
For my company's vfp application. I need to perform same event in .net
1) E.g the user inputs the companycode, system check the companycode,
setfocus to that field if the code is invalid, HOWEVER, user can press
'Unsave' button to cancel this invoice or press 'upper arrow' to pass away
that field.
Question, in .net if i set .focus .the cursor must stay on that field until
I input valid companycode.
2) In my vfp, every textbox's valid event will call the method
"FieldValidation" and pass its type to that method e.g
"FieldValidation('txtCompanyCode')', e.g
"FieldValidation('txtInvoiceDate')'. if the user press "SAVE", it will pass
"ALL" as parameter
For this method , the following code is
PARAMETER pField
If pField = "txtCompanyCode" .OR. pField = "ALL"
'check........
endif
If pField = "txtDate" .OR. pField = "ALL"
'check........
endif
So, I will do twice field validation. Now, for .net new design. I am wonder
is this a good design to do that ???
Someone suggest that I should do' field validation' as the user press 'save'
only. <-- However, it is rejectable by my boss. MY BOSS insist the back-end
design must according to the vfp design or should better than b4.
I am headache about it ~~~
Any Suggestion ~~~ ???
1) E.g the user inputs the companycode, system check the companycode,
setfocus to that field if the code is invalid, HOWEVER, user can press
'Unsave' button to cancel this invoice or press 'upper arrow' to pass away
that field.
Question, in .net if i set .focus .the cursor must stay on that field until
I input valid companycode.
2) In my vfp, every textbox's valid event will call the method
"FieldValidation" and pass its type to that method e.g
"FieldValidation('txtCompanyCode')', e.g
"FieldValidation('txtInvoiceDate')'. if the user press "SAVE", it will pass
"ALL" as parameter
For this method , the following code is
PARAMETER pField
If pField = "txtCompanyCode" .OR. pField = "ALL"
'check........
endif
If pField = "txtDate" .OR. pField = "ALL"
'check........
endif
So, I will do twice field validation. Now, for .net new design. I am wonder
is this a good design to do that ???
Someone suggest that I should do' field validation' as the user press 'save'
only. <-- However, it is rejectable by my boss. MY BOSS insist the back-end
design must according to the vfp design or should better than b4.
I am headache about it ~~~
Any Suggestion ~~~ ???