VistaDB 5






VistaDB.Provider Namespace > VistaDBConnection Class : IsViewSyntaxCorrect Method
SQL Command Text
Line number in the text, where mistake occurred
Symbol number in the text, where mistake occurred
Error message
IsViewSyntaxCorrect Method
Check SQL command correctness of CREATE VIEW statement
Syntax
'Declaration
 
Public Function IsViewSyntaxCorrect( _
   ByVal text As System.String, _
   ByRef lineNo As System.Integer, _
   ByRef symbolNo As System.Integer, _
   ByRef errorMessage As System.String _
) As System.Boolean
'Usage
 
Dim instance As VistaDBConnection
Dim text As System.String
Dim lineNo As System.Integer
Dim symbolNo As System.Integer
Dim errorMessage As System.String
Dim value As System.Boolean
 
value = instance.IsViewSyntaxCorrect(text, lineNo, symbolNo, errorMessage)
public System.bool IsViewSyntaxCorrect( 
   System.string text,
   out System.int lineNo,
   out System.int symbolNo,
   out System.string errorMessage
)
public function IsViewSyntaxCorrect( 
    text: System.String;
   Out  lineNo: System.Integer;
   Out  symbolNo: System.Integer;
   Out  errorMessage: System.String
): System.Boolean; 
public function IsViewSyntaxCorrect( 
   text : System.String,
   lineNo : System.int,
   symbolNo : System.int,
   errorMessage : System.String
) : System.boolean;
public: System.bool IsViewSyntaxCorrect( 
   System.string* text,
   [PARAMFLAG::Out] System.int lineNo,
   [PARAMFLAG::Out] System.int symbolNo,
   [PARAMFLAG::Out] System.string* errorMessage
) 
public:
System.bool IsViewSyntaxCorrect( 
   System.String^ text,
   [Out] System.int lineNo,
   [Out] System.int symbolNo,
   [Out] System.String^ errorMessage
) 

Parameters

text
SQL Command Text
lineNo
Line number in the text, where mistake occurred
symbolNo
Symbol number in the text, where mistake occurred
errorMessage
Error message

Return Value

Returns true if syntax is correct otherwise returns false
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also