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 » Community » Newbie corner » SQL query generator
Re: SQL query generator [message #32976 is a reply to message #32948] Mon, 27 June 2011 15:54 Go to previous messageGo to previous message
jibe is currently offline  jibe
Messages: 294
Registered: February 2007
Location: France
Experienced Member
Hi BioBytes,

Thanks for your kind and efficient help !

Reading your sample, I finally made this :
where = (SqlId)(~field) == ~val;

This works well Smile Finally, the solution was only to cast to the right type !!!

However, I see that you use switch/case to choose the condition. It seems a heavy solution ! Does somebody knows a better way to do that ? Seems better to have :
where = (SqlId)(~field) COND ~val;

where COND is ==, !=; <, > etc. But what type should be COND so that it works ?
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Converting HTML to "normal" text
Next Topic: Foreign Languages - For FileSel, PromptOK, and other
Goto Forum:
  


Current Time: Mon May 13 08:26:20 CEST 2024

Total time taken to generate the page: 0.01272 seconds