B4A Question IDE sub folding - Erel (first post)    Jul 5, 2012 The site search works quite good.
If you search for: Basic4android Search: Sub Folding then the first result mentions #Region directive.
Searching for Basic4android Search: Sub Collapse will point... B4A Tutorial [B4X] Resumable subs that return values (ResumableSub) - Erel    Aug 25, 2020   (41 reactions)   tags: wait, Comm, Code, B4X, Dialog ResumableSub, Wait For Remember that that a call to Sleep or Wait For in a resumable sub causes the code flow to return to the parent. Example: Sub Button1_Click Sum(1, 2) Log("after sum") End Sub Sub Sum... Sub Output: after sum 3 This is the reason why it is not possible to simply return a value. Solution Resumable subs can return a new type named ResumableSub. Other subs can use this value to wait for the sub to complete and get the desired return value. Sub Button1_Click Wait For(Sum(1, 2... B4J Tutorial [B4X] Resumable Subs - Sleep / Wait For - Erel    Feb 22, 2018   (50 reactions)   tags: Reference, Comm, download, Resumable Subs, Code, Wait For New video tutorial: 255570732 Resumable subs is a new feature added in B4J v5.50 / B4i v4.00... of stackless coroutines.) The special feature of resumable subs is that they can be paused, without... sub to be continued. Other events will be raised as usual. Any sub with one or more calls to Sleep or Wait For is a resumable subs. The IDE shows an indicator next to the sub declaration: https://www...) Sleep(1000) Log(2) The sub will be paused for 1000 milliseconds and then be resumed. You can call... B4J Code Snippet Resumable Subs (wait for / sleep) in server handlers - Erel    Feb 16, 2020   (15 reactions) Resumable subs can only work when there is a message queue. By default, server handlers end when the Handle sub is completed. They do not create a message loop. If you want to wait for an event then... a page and returns it as the response: Sub Handle(req As ServletRequest, resp As ServletResponse) Download(resp) StartMessageLoop '<--- End Sub Sub Download (resp As ServletResponse... j.Release StopMessageLoop '<---- End Sub The Handle sub cannot be a resumable sub... Wish Mouse hover - Select sub - somed3v3loper (first post)    Jul 20, 2022 Did you try folding the sub then double clicking it and then copying it ?
I think that copies all the sub code... B4A Question Do you have a fold-able device? could you test this routine - Robert Valentino    Oct 19, 2023   (1 reaction) is fold-able and wrote this code
#Region IsDeviceFoldable
Private Sub IsDeviceFoldable As Boolean... Try
End Sub
#end Region
I don't have a fold-able device so on all my devices this returns... B4A Class [B4X] CallSubPlus - CallSub with explicit delay - Erel    Nov 30, 2015   (26 reactions) it much simpler. You just need to call CallSubPlus with the target sub and the delay. Internally it uses a (one shot) timer together with CallSubDelayed or CallSub. There are four methods: CallSubPlus, CallSubPlus2, CallSubDelayedPlus and CallSubDelayedPlus2. CallSubPlus and CallSubDelayedPlus should be used with subs with no parameters. The others should be used with subs with a single parameter. The parameter type must be an array of objects. For example: Sub Activity_Click Log... B4J Question DiskUtils: get free space of Linux path (drive) - peacemaker    Sep 20, 2023 Private Sub Get_FreeSpace(Fold As String) As Long '(ArrayList) '(MyMap) {C... DetectOS = "windows" Then Dim drive As String = Fold.SubString2(0, 3).ToUpperCase...) Dim res As Int = (100-((t - u)/t) * 100) 'Log (res) Return res End Sub Sub DetectOS... If End Sub But as i can understand - it's not an universal way to get the info about any Linux... B4A Tutorial Using CallSubDelayed to interact between activities and services - Erel    Jun 14, 2012   (17 reactions)   tags: activity, two activity pass value, interact, between process global variables. CallSubDelayed makes it much simpler. It allows you to call a sub in... automatically. When the target module is ready, the sub will be called. CallSubDelayed doesn't immediately call the target sub. It sends a message to the message queue. The internal framework manages this message and passes it to the target module when it is ready. CallSubDelayed can also be used to call subs in the current module. It is useful in cases where you want to run some code "right... B4A Library FoldingCell - DonManfred (first post)    Jan 15, 2017   (2 reactions)
Private fcell As FoldingCell
End Sub
Sub Activity_Create(FirstTime As Boolean)
Activity..." & CRLF & "Eeee", "e")
End Sub
Sub FoldingCell_click()
Log..., "Parent_Layout", 1000, args)
Dim cell As FoldingCell = args(2)
cell.toggle(args(3))
End Sub... Page: 1   2   3   4   5   6   7   |