Post Reply 
Periodic table (Elements) - solved
04-25-2016, 09:51 PM
Post: #11
RE: Periodic table (Elements) - solved
(04-25-2016 08:49 PM)salvomic Wrote:  Stephen,
the problem could be in this chunk of code:
Code:

IF KK==30 THEN //ENTER
ML:=INPUT(SY,"Enter element name or Symb");
IF ML THEN
FOR EL FROM 1 TO NELE DO
IF SY==Z_ELEMENTNAMES(EL,2) OR SY==Z_ELEMENTNAMES(EL,3) THEN
RECT_P(0,0,320,220);
DRW_ELE_BOX(POS_ELE_BOX(EL),EL,Z_ELEMENTNAMES(EL,2));
DRWNAME(Z_ELEMENTNAMES(EL,3));
WAIT;
END;
END;


If I put
RETURN {ML, SY};
after the ML:=Input... line I get {0,""}, so the input isn't seen at all, here...

That code seems fine here using the Android emulator.
I only see 0 if I select Cancel for that Input, otherwise it is 1 (true) and the string.

I only have the Android emulator here... Do you have 8151 available for testing - to confirm there is a difference between the versions?

Stephen Lewkowicz (G1CMZ)
https://my.numworks.com/python/steveg1cmz
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Periodic table (Elements) - solved - StephenG1CMZ - 04-25-2016 09:51 PM



User(s) browsing this thread: 3 Guest(s)