Abdalla Elawad

Abdalla Elawad

  • NA
  • 1k
  • 215.2k

how test Prefix IDs and Save item after testing

Feb 28 2017 5:22 AM
Hello Developers
 
Please help me , i have prefix IDs Items when we insert all items not save if its not code testing for Barcode IDs . I mean that before the insert item to check Prefix and then save item .
 
now i know who to test Prefix IDs like below : 
 
//check if prefix is true
Decimal FirstFourDigits = Decimal.Parse(TextBox4.Text.Substring(0,3));
if (FirstFourDigits != 120)
{
Label8.Text = "This Barcode Is'Not Correct !";
}
else
{
label8.Text= " Is correct"; 
 
 
and alse i need to apply for Searching 

Answers (2)