mdebla

unread,
Jan 26, 2018, 9:09:56 PM1/26/18
to MIT App Inventor Forum
I'm trying to create my first app (a swim time converter). There's a lot of complicated math equations that go into it, and the specific functions change depending on what information the user inputs. When I try to run my app on the Ai Companion, I'm seeing the error message: "Runtime Error, The operation * cannot accept the arguments: , [true], [6000]
Note: You will not see another error reported for 5 seconds." Also, the main function of the app (the math equation based on user input) isn't working at all and I'm just getting the initialized variable.

This is what the biggest chunk of blocks looks like, but it continues down for a while:


Chris Ward

unread,
Jan 27, 2018, 8:25:43 AM1/27/18
to MIT App Inventor Forum
Hello mdebla

In the Blocks view, right-mouse click "Download Blocks as Image" and upload that to your post here.

If you can share your project file, that might help us to help you: Top Menu, Projects, Export selected project (.aia) to my computer.

All the volunteers are busy people so please be patient.

Chris Ward

unread,
Jan 27, 2018, 8:28:58 AM1/27/18
to MIT App Inventor Forum
Hello again mdebla

One thing I can point out is that you have not given the components meaningful names
 - it is much easier to understand the flow of the code when they are named properly.

Abraham Getzler

unread,
Jan 27, 2018, 5:02:00 PM1/27/18
to MIT App Inventor Forum
 The operation * cannot accept the arguments: , [true], [6000]

The last time I saw this type of error, the app author had confused
textbox.Text with textbox.NumbersOnly, and was expecting to
find the input number in .numbersOnly.

Prove me wrong!

ABG

 

mdebla

unread,
Jan 27, 2018, 5:38:53 PM1/27/18
to MIT App Inventor Forum
I fixed the problem, it was as you said. Thanks!

Abraham Getzler

unread,
Jan 27, 2018, 5:54:40 PM1/27/18
to MIT App Inventor Forum
Reply all
Reply to author
Forward
0 new messages