PC SOFT

PROFESSIONAL NEWSGROUPS
WINDEVWEBDEV and WINDEV Mobile

Home → WINDEV Mobile 2024 → Calling Java Code
Calling Java Code
Started by GS IT, Oct., 04 2023 2:35 PM - 1 reply
Registered member
2 messages
Posted on October, 04 2023 - 2:35 PM
Can anyone post a example of how to call some java code in a global function.

Some as simple as in global procedures you have

public static int getNumber()
{
return 5;
}

how do you call that function in the App. for example, when I try numb = getNumber() in windev mobile code , it says my code is not compatible?
Registered member
7 messages
Posted on October, 31 2023 - 5:24 PM
https://doc.windev.com/…

i've manage to do it without the warning
nUmb is int
<Compile IF TypeConfiguration=Android>
nUmb = getNumber()
<END>
Info(nUmb)