Utilizzata TToken_string::get_char invece di get()[0]

git-svn-id: svn://10.65.10.50/trunk@109 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
guy 1994-08-31 12:19:45 +00:00
parent 6518ee1fac
commit 11cbb99740
3 changed files with 14 additions and 15 deletions

View File

@ -921,11 +921,11 @@ int CG0500_application::re_write(const TMask& m,bool rewrite)
continue; continue;
desc = riga.get(0); desc = riga.get(0);
const char tipo_cf = riga.get()[0]; const char tipo_cf = riga.get_char();
const int g = riga.get_int(); const int g = riga.get_int();
const int c = riga.get_int(); const int c = riga.get_int();
long s = riga.get_long(); long s = riga.get_long();
char sezione = riga.get()[0]; char sezione = riga.get_char();
desc = riga.get(); desc = riga.get();
coddesc = riga.get(); coddesc = riga.get();
@ -933,14 +933,14 @@ int CG0500_application::re_write(const TMask& m,bool rewrite)
if (g > 0 || c > 0 || s > 0L) if (g > 0 || c > 0 || s > 0L)
{ {
rcaus->zero(); rcaus->zero();
rcaus->put (RCA_CODCAUS, (const char *)cau); rcaus->put (RCA_CODCAUS, cau);
rcaus->put (RCA_NRIGA, i+1); // Numerare da uno! rcaus->put (RCA_NRIGA, i+1); // Numerare da uno!
rcaus->put (RCA_GRUPPO , g); rcaus->put (RCA_GRUPPO , g);
rcaus->put (RCA_CONTO , c); rcaus->put (RCA_CONTO , c);
rcaus->put (RCA_SOTTOCONTO, s); rcaus->put (RCA_SOTTOCONTO, s);
rcaus->put (RCA_SEZIONE, sezione); rcaus->put (RCA_SEZIONE, sezione);
rcaus->put (RCA_DESC , (const char *)desc); rcaus->put (RCA_DESC , desc);
rcaus->put (RCA_CODDESC, (const char *)coddesc); rcaus->put (RCA_CODDESC, coddesc);
rcaus->put (RCA_TIPOCF, tipo_cf); rcaus->put (RCA_TIPOCF, tipo_cf);
if (rewrite) if (rewrite)
{ {

View File

@ -1,4 +1,3 @@
#include "cg0500.h" #include "cg0500.h"
PAGE "" -1 -1 68 11 PAGE "" -1 -1 68 11
@ -12,14 +11,14 @@ END
LISTBOX 102 1 11 LISTBOX 102 1 11
BEGIN BEGIN
PROMPT 33 1 "C/F " PROMPT 33 1 "C/F "
ITEM " |Conto" ITEM " |Conto"
MESSAGE SHOW,105|HIDE,205|HIDE,305 MESSAGE SHOW,105|HIDE,205|HIDE,305
ITEM "C|Cliente" ITEM "C|Cliente"
MESSAGE SHOW,205|HIDE,105|HIDE,305 MESSAGE SHOW,205|HIDE,105|HIDE,305
ITEM "F|Fornitore" ITEM "F|Fornitore"
MESSAGE SHOW,305|HIDE,105|HIDE,205 MESSAGE SHOW,305|HIDE,105|HIDE,205
FLAGS "DG" FLAGS "DG"
GROUP 1 GROUP 1
// FLAGS "U" // FLAGS "U"
END END

View File

@ -1,7 +1,7 @@
#define CG43_BUT_SEL 102 #define CG43_BUT_SEL 102
#define CG43_BUT_MEM 103 #define CG43_BUT_MEM 103
#define CG43_BUT_ANN 104 #define CG43_BUT_ANN 104
#define CG43_BUT_CHK 114 #define CG43_BUT_CHK 116
#define CG43_LST_MESE 105 #define CG43_LST_MESE 105
#define CG43_LST_TRIM 110 #define CG43_LST_TRIM 110
#define CG43_FLD_ANNO 106 #define CG43_FLD_ANNO 106