[Gambas-user] gb.web - two observations
T Lee Davidson
t.lee.davidson at gmail.com
Mon Jul 1 15:29:08 CEST 2019
Observation 1: The single-quote is for comments. Within a line it comments out all the text that follows it. So yes, it is
correct editor behavior.
Observation 2: With DB.Subst, DB represents a current database connection. It requires that a connection is first established
before using it. Subst, on the other hand, has no such requirement.
On 7/1/19 8:02 AM, Vinode Singh Ujlain wrote:
> _*Observation 1:*_
> When a session key is enclosed in Single quote .. it spreads after [ (see attached image). Double quoted key works fine. Is this
> correct editor behavior ?
> Session[ ' inpString ' ] = "test"
> Session["inpString"] = "test"
> _*Observation 2:*_
> Strange behavior observed with DB.Subst whilst using in GB.Web application. Any clues
> SQL = DB.Subst("SELECT * FROM USERS where Loginid = &1 and Passwd = &2", userid, password) ' Does not work - throws error
> No Current Connection ....
> SQL = Subst("SELECT * FROM USERS where Loginid = '&1' and Passwd = '&2'", userid, password) ' Works Fine
> regards - UZI
> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]----
More information about the User