One Star

How to show a Integer in a Message Box?

How to show a Integer in a Message Box?
When I try to show a Integer in a Message Box the following error occurs:
Exception in thread "main" java.lang.Error: Unresolved compilation problem:
Type mismatch: cannot convert from Integer to String
at tel_cob.job_diario_carga_0_1.job_DIARIO_CARGA.tLoop_1Process(job_DIARIO_CARGA.java:1888)
at tel_cob.job_diario_carga_0_1.job_DIARIO_CARGA.tFileInputDelimited_1Process(job_DIARIO_CARGA.java:686)
at tel_cob.job_diario_carga_0_1.job_DIARIO_CARGA.runJobInTOS(job_DIARIO_CARGA.java:2826)
at tel_cob.job_diario_carga_0_1.job_DIARIO_CARGA.main(job_DIARIO_CARGA.java:2699)
3 REPLIES
One Star

Re: How to show a Integer in a Message Box?

try adding this at the start of the Message box in tMsgBox
"" +

cause that worked for me, see attached pics
One Star

Re: How to show a Integer in a Message Box?

or you can convert the integer to a string
Integer.toString(context.NewInteger)

info about the Integer.toString() function: http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Integer.html
One Star

Re: How to show a Integer in a Message Box?

Thank you guys! Smiley Happy