Bonjour Klaus,
Thanks a lot for your help !
1 - Yes, I 've forgotten the comma in the line (it's the second day only I work on Livecode ...) and I have deleted it as it seems to work.
2 - Super ! I agree with you : my text is effectively multi-line. So, ok, I've deleted the return and put the numtochar(2) expression instead. Yet, I've another problem : the text is not saved in the database if there is an apostrophe : '. How can I do ?
2 other questions :
- I've got a button with which I open and make the connection with the database. Would it be possible to open the database directly at the startup of my program (without the use of the button) ? I've looked after this possibility but did not find.
- I'd like to do a search about a term (apb for instance) in the database and display it in the field. No result for the moment. I did this :
Code: Select all
function databaseGetInformations
## Query the database for contact details to be displayed in the field put getDatabaseID() into tDatabaseID
put getDatabaseID() into tDatabaseID
put "SELECT * from informations where infos = apb" into tSQL
put revDataFromQuery(tab,numtochar(2),tDatabaseID,tSQL) into tRecords
return tRecords
end databaseGetInformations
I don't see where is my mistake ...
Well, I've changed the code like this :
Code: Select all
put "SELECT * from informations WHERE infos = 'apb' " into tSQL
and it works ! But only if the word apb is an alone record, not in a sentence ...
Best