Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ SQL » sql + editstring
Re: sql + editstring [message #33083 is a reply to message #32347] Wed, 06 July 2011 10:33 Go to previous messageGo to previous message
sergeynikitin is currently offline  sergeynikitin
Messages: 748
Registered: January 2008
Location: Moscow, Russia
Contributor

spotted an error in the code!



begnur wrote on Tue, 10 May 2011 17:48

how to pass WString from EditString to Sql and from Sql To EditString

for example (below exmaples are only for demonstration I need how to do this. and again characters are non ascii

EditString editstr
 String s = editstr->GetString()
// s contains "þþþýýçç" , database contains p,q,r where p,q,r as string
Sql sql
sql * Select(p).From(databse).Where(q = s)

// clearing s string
s.Clear();
while(sql.Fetch())
   s.Append(sql[p]);

editstr->SetString(s);






In line
sql * Select(p).From(databse).Where(q = s)


Must be
sql * Select(p).From(databse).Where(q == s)


SergeyNikitin<U++>( linux, wine )
{
    under( Ubuntu || Debian || Raspbian );
}
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Sqlite Delete not working [SOLVED]
Next Topic: More .sch files?
Goto Forum:
  


Current Time: Thu Aug 28 23:13:42 CEST 2025

Total time taken to generate the page: 0.07400 seconds