Forum > Android-JVM
jvm IntToStr function
(1/1)
m.abudrais:
Hi
I created an Android project using ppcjvm.exe
but i miss many basic function, how i can convert integer to string?
--- Code: Pascal [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---procedure MainActivity.onClick(para1: AVView);var but: AWButton; ClickNum, k: integer; Ones: String;begin Inc(GlobalClickNum); but := para1 as AWButton;// i want to convert GlobalClickNum to string but.setText(JLString( 'kkk'));end;
marcov:
inttostr() (possibly unit sysutils)
.tostring
Thaddy:
Both will do. Both require sysutils. And both work 8-)
There are other options too, like using jlInteger and call the Java methods on it (these are supported). And val and str also work.
m.abudrais:
JLInteger.Create(GlobalClickNum).toString(); worked for me thanks.
but when I try sysutils I get this Error :
unit1.pas(7,17) Fatal: Cannot find sysutils used by Unit1 of the Project Inspector.
I searched the C:\FPC\3.0.4\units but I didn't find sysutils.pp file.
may be I have problem in the compiler installation?
Navigation
[0] Message Index