Hi Jussi,
thanks.
I have updatet to the last SVN, relase 2660. (thanks for the tip with
svn info, one never learns out). It all now works fine again. Still this
small stuff makes one hang for hours, and does not let you loose - why
is it so :) in 100-es of lines it works, in one - nada.
btw -o
OK, I tested;
S = SF & "SQL = SQL " & Chr(34) & " user = '" & Chr(34) & " &
mOPT.CurUser & " & Chr(34) & "',"
hf2 = Open "somepath/testaus.txt" For Create
Print #hf2, S
Close hf2
No error messages.
Result was file with string; SQL = SQL " user = '" & mOPT.CurUser & "', in it.
I think there is s
hi,
yes, because this is generated, and the user logged in is stored in
CurUser, and the variable then will be used. if not in quotes, there
would be the CurUser at the generation time (that would then always be
me). the finnished sub looks like this:
01 Public Sub but_DATA_BUD_New_Click()
02
> gambas 3 (or 2.99), revision i can't see :-(
svn info
> S = SF & "SQL = SQL " & Chr(34) & " user = '" & Chr(34) & " & mOPT.CurUser &
> " & Chr(34) & "',"
" & mOPT.CurUser & " is inside of quote marks??
Jussi
> then write it with:
> Print #hf2, S
>
> Meanwhile I have solved it in anoth
Hi,
gambas 3 (or 2.99), revision i can't see :-(
SQL is string
S is STRING
mOPT.CurUser is string
the code line is:
S = SF & "SQL = SQL " & Chr(34) & " user = '" & Chr(34) & " &
mOPT.CurUser & " & Chr(34) & "',"
then write it with:
Print #hf2, S
Meanwhile I have solved it in another manner; be
I don't understand your problem.
What is your Gambas version and revision?
What are data types of SQL, S and mOPT.CurUser (I assume string)?
And what is the exact line of code that generates described error message?
With Gambas3 rev 2660 (@Ubuntu 9.10 64bit) I couldn't reproduce your problem.
Juss
Hi all,
I can't figure out what I have wrong here. I am generating subs and
functions, and use a lot of string-handling. In just one line I become
the error: Non terminated String, looks like this:
(1)
SQL = SQL & "user ='" & mOPT.CurUser & "',"
the source generating is:
(2)
S = SF & "SQL = SQ