iOS Question B4XRadioButton

Claude Brun

Active Member
Licensed User
Longtime User
Hi,
I use b4xradiobutton in my app. Everything works perfectly.
but I would like to be able to change the button selection programmatically and I can't do it.

thank you in advance for your help
 

Claude Brun

Active Member
Licensed User
Longtime User
indeed, but I'm not at home right now and I don't remember the error message
As soon as I get back I will post the error message
 
Upvote 0

Claude Brun

Active Member
Licensed User
Longtime User
Back Home

Class_Globals:
Sub Class_Globals
    Public Root As B4XView 'ignore
    Public xui As XUI 'ignore
    Public NavControl As NavigationController
    Public CSel_cha As CLVSelections
    Public clv_cha As CustomListView
    Public App As Application
    Public hd As HUD
    Public Drw4 As B4XDrawer
    Public BBCodeView1 As BBCodeView
    Public TextEngine As BCTextEngine
    Public rbparm1, rbparm2, rbparm3, rbparm4, rbparm5, rbparm6 , m4_labdat As B4XView
    Public m4_pickdev, m4_pickcpt As Picker
    Public par_swpart As Switch
    Public pan_paramg, pan_pardev, pan_parcha, pan_parcpt, pan_parmod, pan_parben, menu4_chxdev, menu4_chxcpt, menu4_chxdat As Panel
    Public par_txtnom, par_txtval, par_txtdev, par_txtdeb, par_txtfin, par_txtnb, par_txtkm As TextField
    Public Page2, Page3 As B4XPage2
    Public m4_pickdat As DatePicker
    Public appel As String
    Public r As Boolean
End Sub



rabiobutton_Checked:
Sub rbparm1_Checked
    Dim res As Boolean
    res = rbparm1.Checked
    aff_panrb(1)
End Sub

line 292 is line 3

Error occurred on line: 292 (B4XPage8)
Method not found: Checked, target: [_meventname=rbparm1, _mcallback=[_root=<B4XViewWrapper: <B4IPanelView: 0x1067c87d0; frame = (0 20; 375 647); backgroundColor = UIExtendedSRGBColorSpace 0 0 0 1; layer = <CALayer: 0x2805c5400>>>, _xui=<B4IXUI: 0x280755550>, _navcontrol=<B4INavigationControllerWrapper: <B4INavigationController: 0x10a80aa00>>
, _csel_cha=[_mode_single_item_temp=1, _mode_single_item_permanent=2, _mode_multiple_items=3
, _mcurrentmode=2, _selecteditems=[_map=[_map=NSMapTable {
}
, _list=<B4IList: (
)>, _dateutils=<b4i_dateutils: (null)>
, _main=<b4i_main: (null)>, _dateperso=<b4i_dateperso: (null)>, _dbutils=<b4i_dbutils: (null)>
, _b4xpages=<b4i_b4xpages: (null)>, _b4xcollections=<b4i_b4xcollections: (null)>, _httputils2service=<b4i_httputils2service: (null)>
, _xuiviewsutils=<b4i_xuiviewsutils: (null)>], _dateutils=<b4i_dateutils: (null)>, _main=<b4i_main: (null)>
, _dateperso=<b4i_dateperso: (null)>, _dbutils=<b4i_dbutils: (null)>, _b4xpages=<b4i_b4xpages: (null)>
, _b4xcollections=<b4i_b4xcollections: (null)>, _httputils2service=<b4i_httputils2service: (null)>, _xuiviewsutils=<b4i_xuiviewsutils: (null)>
], _selectioncolor=-8473380
, _mclv=[_mbase=<B4XViewWrapper: <B4IPanelView: 0x10a6ea4e0; frame = (0 0; 310 240); clipsToBounds = YES; backgroundColor = UIExtendedSRGBColorSpace 1 1 1 0; layer = <CALayer: 0x2805d3f60>>>, _sv=<B4XViewWrapper: <UIScrollView: 0x108083e00; frame = (0 0; 310 240); clipsToBounds = YES; gestureRecognizers = <NSArray: 0x280bc6880>; layer = <CALayer: 0x2805c5a40>; contentOffset: {0, 0}; contentSize: {310, 270}; adjustedContentInset: {0, 0, 0, 0}>>, _items=<B4IList: (
"[IsInitialized=0, Panel=<B4XViewWrapper: <B4IPanelView: 0x10e51f060; frame = (0 0; 310 30); clipsToBounds = YES; gestureRecognizers = <NSArray: 0x280b926d0>; backgroundColor = UIExtendedSRGBColorSpace 1 1 1 1; layer = <CALayer: 0x2805ff0e0>>>, Size=30\n, Value=1, Color=-1, TextItem=0\n, Offset=0]",
"[IsInitialized=0, Panel=<B4XViewWrapper: <B4IPanelView: 0x10e51e930; frame = (0 30; 310 30); clipsToBounds = YES; gestureRecognizers = <NSArray: 0x280b941b0>; backgroundColor = UIExtendedSRGBColorSpace 1 1 1 1; layer = <CALayer: 0x2805cfaa0>>>, Size=30\n, Value=2, Color=-1, TextItem=0\n, Offset=30]",
"[IsInitialized=0, Panel=<B4XViewWrapper: <B4IPanelView: 0x10e5200c0; frame = (0 60; 310 30); clipsToBounds = YES; gestureRecognizers = <NSArray: 0x280b94420>; backgroundColor = UIExtendedSRGBColorSpace 1 1 1 1; layer = <CALayer: 0x280580800>>>, Size=30\n, Value=3, Color=-1, TextItem=0\n, Offset=60]",
"[IsInitialized=0, Panel=<B4XViewWrapper: <B4IPanelView: 0x10e5214f0; frame = (0 90; 310 30); clipsToBounds = YES; gestureRecognizers = <NSArray: 0x280b95170>; backgroundColor = UIExtendedSRGBColorSpace 1 1 1 1; layer = <CALayer: 0x280581460>>>, Size=30\n, Value=4, Color=-1, TextItem=0\n, Offset=90]",
"[IsInitialized=0, Panel=<B4XViewWrapper: <B4IPanelView: 0x10e522920; frame = (0 120; 310 30); clipsToBounds = YES; gestureRecognizers = <NSArray: 0x280b95ec0>; backgroundColor = UIExtendedSRGBColorSpace 1 1 1 1; layer = <CALayer: 0x280582000>>>, Size=30\n, Value=5, Color=-1, TextItem=0\n, Offset=120]",
"[IsInitialized=0, Panel=<B4XViewWrapper: <B4IPanelView: 0x10e523d50; frame = (0 150; 310 30); clipsToBounds = YES; gestureRecognizers = <NSArray: 0x280b96c70>; backgroundColor = UIExtendedSRGBColorSpace 1 1 1 1; layer = <CALayer: 0x280582b60>>>, Size=30\n, Value=6, Color=-1, TextItem=0\n, Offset=150]",
"[IsInitialized=0, Panel=<B4XViewWrapper: <B4IPanelView: 0x10e525180; frame = (0 180; 310 30); clipsToBounds = YES; gestureRecognizers = <NSArray: 0x280b98330>; backgroundColor = UIExtendedSRGBColorSpace 1 1 1 1; layer = <CALayer: 0x280583700>>>, Size=30\n, Value=7, Color=-1, TextItem=0\n, Offset=180]",
"[IsInitialized=0, Panel=<B4XViewWrapper: <B4IPanelView: 0x10e5265b0; frame = (0 210; 310 30); clipsToBounds = YES; gestureRecognizers = <NSArray: 0x280b98690>; backgroundColor = UIExtendedSRGBColorSpace 1 1 (message truncated)...
Stack Trace: (
CoreFoundation A900B459-0127-379E-9CBA-0EAB9C5D559F + 40128
libobjc.A.dylib objc_exception_throw + 60
CoreFoundation A900B459-0127-379E-9CBA-0EAB9C5D559F + 1012260
New_Voy +[B4I runDynamicMethod:method:throwErrorIfMissing:args:] + 336
New_Voy -[B4IShell runMethod:] + 420
New_Voy -[B4IShell raiseEventImpl:method:args::] + 1472
New_Voy -[B4IShellBI raiseEvent:event:params:] + 1360
New_Voy __33-[B4I raiseUIEvent:event:params:]_block_invoke + 52
libdispatch.dylib 5D16936B-4E4C-3276-BA7A-69C9BC760ABA + 8992
libdispatch.dylib 5D16936B-4E4C-3276-BA7A-69C9BC760ABA + 16044
libdispatch.dylib 5D16936B-4E4C-3276-BA7A-69C9BC760ABA + 75428
libdispatch.dylib _dispatch_main_queue_callback_4CF + 44
CoreFoundation A900B459-0127-379E-9CBA-0EAB9C5D559F + 625704
CoreFoundation A900B459-0127-379E-9CBA-0EAB9C5D559F + 501088
CoreFoundation CFRunLoopRunSpecific + 612
GraphicsServices GSEventRunModal + 164
UIKitCore 7D57A1D1-856F-338D-97DB-880C4EC8B02E + 3788632
UIKitCore UIApplicationMain + 340
New_Voy main + 100
dyld C3FC2EE4-367F-3086-BEB8-420AD442BF88 + 89580
)
 
Upvote 0

Claude Brun

Active Member
Licensed User
Longtime User
that's what I did and I got an error.
I just redid it and it actually works correctly.

I don't know what I had done. maybe a typo

THANKS
 
Upvote 0
Top