Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
If/then Statement issues
#1
Solved: 8 Years, 8 Months, 3 Weeks ago Sad 
I have this If statement multiple times for different WorkCenters but this one with the letter in it is giving me errors...(the L at the end of 45205L in the first line is the issue)

Code:
If DataTable.Value("WC","ApexProcessMOs")=45205L Then
    EWC="45205L-FABRIC LAM & ASSM LAUNCH (45205L)"
End If

It's giving me an EXPECTED 'THEN' error along with an "EXPECTED END OF STATEMENT" error
Reply
#2
Solved: 8 Years, 8 Months, 3 Weeks ago
Try this.
Code:
If DataTable.Value("WC","ApexProcessMOs")="45205L" Then
Thanks,
SUpputuri
Reply
#3
Solved: 8 Years, 8 Months, 3 Weeks ago
try the below syntax


Code:
If (DataTable.Value("WC","ApexProcessMOs") = "45205L") Then
   EWC="45205L-FABRIC LAM & ASSM LAUNCH (45205L)"
End If
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)