Connecting Tech Pros Worldwide Help | Site Map

Pls help me resolve this TO DO

Newbie
 
Join Date: Sep 2009
Posts: 3
#1: Sep 8 '09
Following is the code in VB

Expand|Select|Wrap|Line Numbers
  1.   #If useMTS Then
  2.         Set MyObjectContext = GetObjectContext()
  3.     #End If
  4.  
and its Green code in VB.Net is


Expand|Select|Wrap|Line Numbers
  1. #If useMTS Then
  2.  
  3. 'UPGRADE_TODO: (1035) #If #EndIf block was not upgraded because the expression useMTS did not evaluate to True or was not evaluated. More Information: http://www.vbtonet.com/ewis/ewi1035.aspx
  4.  
  5. Set MyObjectContext = GetObjectContext()
  6.  
  7. #End If
tlhintoq's Avatar
Moderator
 
Join Date: Mar 2008
Location: Arizona, USA
Posts: 1,745
#2: Sep 8 '09

re: Pls help me resolve this TO DO


The "green code" is a comment. It was probably left by the previous programmer.

The comments pretty clearly state what the problem was:
Quote:
#If #EndIf block was not upgraded because the expression useMTS did not evaluate to True or was not evaluated.
You need to look at the property "useMTS" and see why it was not being evaluated as expected, or not returning a true/false value as was expected.
Reply