R
R
Romanson2016-03-17 10:13:31
Android
Romanson, 2016-03-17 10:13:31

Why doesn't this code work on android from Delphi xe 10?

On windows works on android no, why?
procedure TForm1.ListBox1ItemClick(const Sender: TCustomListBox;
const Item: TListBoxItem);
varn
, i: integer;
s, k, c, v, d: string;
begin
ListBox2.Clear;
n := ListBox1.ItemIndex;
k := ListBox1.Items[ListBox1.ItemIndex];
if length(k) = 1 then
s := k
else
s := k[2];
if n = strtoint(s) then
begin
for i := 0 to Memo1.Lines.Count - 1 do
begin
v := Memo1.Lines.Strings[i];
if length(v) = 1 then
c := v
else
begin
c := v[2];
if c = s then
begin
d := Memo1.Lines.Strings[i];
ListBox2.Items.Add(d);
end;
end;
end;
end;
end;

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander, 2016-03-17
@NeiroNx

Due to the peculiarities of converting your pascal to java. It is better to program in Java for android, because it is not known how well the code is converted.

R
Romanson, 2016-03-17
@Romanson

I decided

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question