I've done some more experimenting with the coerase problem:

NB. ---------------------------------------------------------
NB. Exit button
guiform_b1_button=: 3 : 0
  wd'pclose'
  cocurrent 'base'
  coerase <'birthday' NB. erase the locale
  NB.   guiform_close ''
)

I moved the coerase into a button verb and also set the current locale to 
'base' before the coerase.

when my form closes, locale 'birthday' still exists, but there are no longer 
any names it the locale. There were 11 names in it  before the coerase.
coerase is doing something as I saved its return value and that is 1 as I'd 
expect, and it does destroy the contents of the locale.  

The condition of asyncj seems to make no difference, as I tried both wd'setj 
asyncj 0' and  wd'setj asyncj 1', with an exit from j between tries.

Engine: j805/j64/android
Beta-13: commercial/2016-10-27T10:00:38
Library: 8.05.06
J Android: 1.0.12/23
Platform: Android 64 (arm64-v8a)
Installer: unknown
InstallPath: /storage/emulated/0/Android/data/com.jsoftware.j.android/files
Contact: www.jsoftware.com

-----Original Message-----
From: Tom Arneson [mailto:[email protected]] 
Sent: Tuesday, November 1, 2016 14:42
To: '[email protected]' <[email protected]>
Subject: bug? in jandroid

I'm trying to write scripts that run in both windows and android.

the following verb:

NB. ---------------------------------------------------------
guiform_close=: 3 : 0
  coerase <'birthday' NB. erase the locale
  wd'pclose'
)

exits a form in both OSs, but does not remove locale 'birthday' in android, it 
does in windows.

----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to