Forum Discussion
Dmitry_Nikolaev
15 years agoStaff
Hi Savitri,
No, you are using incorrect syntax. There is no way to perform type casting like in C++ or Delphi languages while you are working with scripts, since scripting languages are typeless languages. Please find more information on scripts in the Writing Scripts - Overview help topic.
You can do what you want in the following way:
var maskEdit = Aliases.Patient_Administration.EditPatientDialog.groupBoxPatient.maskedTextBoxDateOfBirth;
var maskEditProperties = maskEdit.Properties;
Log.Message(maskEdit.Text);
Log.Message(maskEditProperties.EditMask);
/* strDob is a string read from excel sheet
If not IsNull(strDob) Then
ctlCheckBox.maskedTextBoxDateOfBirth.Click() /* path to DOB masked text box in my application
ctlCheckBox.maskedTextBoxDateOfBirth.wText=strDob
end if
Doesn't the code work for you? If it does not, please let me know what exact error is posted to the log and what the exact value of the 'strDob' variable is.
Related Content
- 2 years ago
Recent Discussions
- 2 hours ago