Click here to Skip to main content
15,500,921 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
this code how to write on vb.net

SQL
If DFrm = "Frm_OutMaintenance" Then
             WhereCondition = " Where (TBL_MAINTENANCE.RMNO <> 0) And (TBL_MAINTENANCE.RMFLG = 0) And ((TBL_MAINTENANCE.MTYPE = 1) OR (TBL_MAINTENANCE.MTYPE IS NULL)) And "
         ElseIf DFrm = "Frm_InMaintenance" Then
             WhereCondition = " Where (TBL_MAINTENANCE.RMNO <> 0) And (TBL_MAINTENANCE.RMFLG = 0) And ((TBL_MAINTENANCE.MTYPE = 0) OR (TBL_MAINTENANCE.MTYPE IS NULL)) And "
         Else
             WhereCondition = " Where (TBL_MAINTENANCE.RMNO <> 0 ) And "
         End If
Posted

1 solution

There is nothing to convert.
I can only guess that is a code which returns WhereCondition as part of query-string.

By The Way: there is no simple way to convert VB6 code to CB.NET.
Please, read it: converting vb6 code to vb.net[^]
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900