sql - How to break a line in VB6 -


i need break line of code not know how:

sql = "select [id], [first name], [last name], [mark 1 eng], [mark 2 eng], [mark 3 eng], [mark 1 mat], [mark 2 mat], [mark 3 mat], [mark 1 sci], [mark 2 sci], [mark 3 sci] table1 [active] <> 'no'" 

this mean when break:

    if txtfirstname.text = "" or txtlastname.text = "" or txtmarks(0).text = "" or txtmarks(1).text = "" or txtmarks(2).text = "" _     or txtmarks(3).text = "" or txtmarks(4).text = "" or txtmarks(5).text = "" or txtmarks(6).text = "" or txtmarks(7).text = "" _     or txtmarks(8).text = "" 

where put underscores in line because wherever put them gives me error.

you have split string via concatenation:

sql = "select [id], [first name], [last name], [mark 1 eng], [mark 2 eng], " & _      "[mark 3 eng], [mark 1 mat], [mark 2 mat], [mark 3 mat], [mark 1 sci], " & _      "[mark 2 sci], [mark 3 sci] table1 [active] <> 'no'" 

Comments

Popular posts from this blog

java - SSE Emitter : Manage timeouts and complete() -

jquery - uncaught exception: DataTables Editor - remote hosting of code not allowed -

java - How to resolve error - package com.squareup.okhttp3 doesn't exist? -