Patch level : 12.0 no-patch

Files correlati     : 
Commento            : Aggiunte funzioni get_real e get_date

git-svn-id: svn://10.65.10.50/branches/R_10_00@24369 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
mtollari 2018-02-09 15:38:29 +00:00
parent 5e997281d3
commit 92bbd9e862
2 changed files with 13 additions and 2 deletions

View File

@ -4,4 +4,15 @@
/******************************************************************************
* SSimpleQuery *
* Classe per esecuzioni di query temporanee (wrapper semplice per SACommand) *
******************************************************************************/
******************************************************************************/
TDate SSimpleQuery::sqGetDate(const char * field)
{
#ifdef DBG
warning_box("Guarda qua! Non so se funziona! (sqGetDate)");
#endif // DBG
TString val = sqGet(field);
val.cut(val.find('T'));
return val;
}

View File

@ -161,7 +161,7 @@ public:
/**< Ritorna il valore nel campo (field) in formato (TDate) */
TDate sqGetDate(const char* field);
/**< Ritorna il valore nel campo (field) in formato (real) */
real sqGetReal(const char* field);
real sqGetReal(const char* field) { return sqGet(field); }
/**< Ritorna il valore nel campo (field) in formato (SADateTime), Campo non gestisce le ore */
//SADateTime sqGetDateTime(const char* field) { get_short(field); }
/**< Ritorna il valore nel campo (field) passato come (const char *) in formato (const char *) */