Hi,
Got a strange error that I can't quite understand. Rnd function expects two min/max integers to be given, and I am passing two integers to it, which are the dimensions of a view which has already been added.
Which is throwing the following error: java.lang.IllegalArgumentException
Any ideas what I am doing wrong? Do I need to create a separate int for the two joined values from the view and pass that instead?
Got a strange error that I can't quite understand. Rnd function expects two min/max integers to be given, and I am passing two integers to it, which are the dimensions of a view which has already been added.
B4X:
Dim rndXRight As Int
rndXRight = Rnd(ivNation.Left + ivNation.Width,ivNation.Width * 2)
Which is throwing the following error: java.lang.IllegalArgumentException
Any ideas what I am doing wrong? Do I need to create a separate int for the two joined values from the view and pass that instead?