wd error in android

10 views
Skip to first unread message

Thomas Arneson

unread,
Jun 7, 2026, 7:56:43 PM (10 days ago) Jun 7
to fo...@jsoftware.com

The wd child control dspinbox works for me in windows, but not in android. I seem to remember some other things like this from a few years back too. Are there other forum members who write scripts for J android?

-- showing the error --
load '/storage/emulated/0/Android/data/com.jsoftware.j.android/files/j-user/temp/1.ijs (http://com.jsoftware.j.android/files/j-user/temp/1.ijs)'
|domain error in wd, executing monad 11!:0
| wd'cc wt dspinbox 1 198 0.1 208 200.1'
Press ENTER to inspect

-- script which caused the error --
coclass 'tom'
onStart=:{{
wd'pc a1'
wd'cc done button; cn "done"'
wd'cc wt dspinbox 1 198 0.1 208 200.1'
wd'close button'
wd'pshow'
}}
wd'activity ',>coname''

Raul Miller

unread,
Jun 7, 2026, 8:05:02 PM (10 days ago) Jun 7
to fo...@jsoftware.com
Using Ed Gottsman's arrayportal.com I found a reference to an android
domain error involving wd.

The resolution was
https://www.jsoftware.com/pipermail/programming/2017-January/046469.html

FYI,

--
Raul
> To unsubscribe from this group and stop receiving emails from it, send an email to forum+un...@jsoftware.com.
>

bill lam

unread,
Jun 7, 2026, 8:17:26 PM (10 days ago) Jun 7
to fo...@jsoftware.com
I suspect android dspinbox accepts integers only.

Thomas Arneson

unread,
Jun 7, 2026, 9:41:25 PM (10 days ago) Jun 7
to fo...@jsoftware.com

Bill, I copied the following from https://code.jsoftware.com/wiki/Guides/Window_Driver/ChildClasses
It takes reals in windows, The d prefix implies double.

https://code.jsoftware.com/wiki/Guides/Window_Driver/ChildClasses

dspinbox c
A spinbox control for real numeric values.
Qt class: QDoubleSpinBox (http://doc.qt.io/qt-5/qdoublespinbox.html).

Create: wd'cc id dspinbox [dec min step max val]' creates a real-value spinbox that displays dec decimal places, starting with min, increasing by step, to a value of max, with val as the starting value.

Set commands:

decimals - wd'set id decimals dec ' change display to dec decimal places.

min - wd'set id min minval ' changes the minimum value to minval.

max - wd'set id max maxval ' changes the maximum value to maxval.

readonly - wd'set id readonly [0|1]' makes the control readonly [1] or editable [0]. The 1 can be elided.

step - wd'set id step stepval ' changes the step size to stepval.

value - wd'set id value val ' displays the value val in the control.

Events:

formname_childname_changed when the value is changed

Names Created When Any Event Is Signaled:

childname is a character string that, when converted to numeric, gives the selected value

It would be a huge help to me if it worked in android.

------------------------------
> On 06/07/2026 5:17 PM MST bill lam <bbil...@gmail.com> wrote:
>
>
> I suspect android dspinbox accepts integers only.
>
>
> On Mon, Jun 8, 2026 at 7:56 AM Thomas Arneson <t...@tomarneson.com> wrote:
> >
> > The wd child control dspinbox works for me in windows, but not in android. I seem to remember some other things like this from a few years back too. Are there other forum members who write scripts for J android?
> >
> > -- showing the error --
> > load '/storage/emulated/0/Android/data/com.jsoftware.j.android/files/j-user/temp/1.ijs (http://com.jsoftware.j.android/files/j-user/temp/1.ijs) (http://com.jsoftware.j.android/files/j-user/temp/1.ijs)'

bill lam

unread,
Jun 7, 2026, 9:51:38 PM (10 days ago) Jun 7
to fo...@jsoftware.com
I checked again, dspinbox is not supported on android. you can get
informative error message using
wd 'qer'

only spinbox is supported on android. This is a platform feature.
Reply all
Reply to author
Forward
0 new messages