After mobilePick, script may or may not continue.

Ralph DiMola rdimola at evergreeninfo.net
Wed Oct 16 14:05:53 EDT 2013


I demonstrated a variation of this bug to Ian at RR 13. Ian was looking into
it. If you notice that the next user action(only the next one) will be
ignored because the pick list is actually active just not visible. 

Ralph DiMola
IT Director
Evergreen Information Services
rdimola at evergreeninfo.net
Phone: 518-636-3998 Ex:11
Cell: 518-796-9332

-----Original Message-----
From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf
Of Roger Eller
Sent: Sunday, October 13, 2013 8:21 PM
To: How to use LiveCode
Subject: After mobilePick, script may or may not continue.

 The script below always fires the first pick list.  What seems strange to
me is that after making this choice, the next pick list may or may not ever
happen.  Why?  Is is a bug, or should I be doing something differently here?
Thanks in advance.

on touchEnd pid
   put "PRIMARY" & cr \
         & "SECONDARY" & cr \
         & "THIRD" & cr into tList0
   put lineoffset("SECONDARY", tList0) into tInitialIndex0
   mobilePick tList0, tInitialIndex0

   put the result into tChoice1 -- returns 1, 2 or 3

   switch tChoice1
   case 1
   put "X1" & cr \
         & "X2" & cr \
         & "X3" & cr \
         & "X4" & cr into tList1
   put lineoffset("X2", tList1) into tInitialIndex1
   mobilePick tList1, tInitialIndex1
   break

   case 2
   put "Y1" & cr \
         & "Y2" & cr \
         & "Y3" & cr \
         & "Y4" & cr into tList2
   put lineoffset("Y2", tList2) into tInitialIndex2
   mobilePick tList2, tInitialIndex2
   break

   case 3
   put "Z1" & cr \
         & "Z2" & cr \
         & "Z3" & cr \
         & "Z4" & cr into tList3
   put lineoffset("Z2", tList4) into tInitialIndex3
   mobilePick tList3, tInitialIndex3
   break
   end switch
   put the result into tChoice2 -- returns 1, 2, 3 or 4

   answer tChoice1 && tChoice2
end touchEnd

~Roger
_______________________________________________
use-livecode mailing list
use-livecode at lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode





More information about the Use-livecode mailing list