B4A Code Snippet [B4X] GUID - Erel    Oct 31, 2019   (22 reactions) Sub GUID As String
Dim sb As StringBuilder
sb.Initialize
For Each stp As Int In Array(8, 4, 4, 4, 12)
If sb.Length > 0 Then sb.Append("-")
For n = 1 To stp
Dim c As Int = Rnd(0, 16)
If c < 10 Then c = c + 48 Else c = c + 55
sb.Append(Chr(c))
B4J Question design help needed - Erel (first post)    Mar 11, 2021 1. Add Image() As Byte to DBCommand.
2. Modify the client code and add the image bytes to DBCommand.
3. Modify RDCHandler. Generate a random GUID. Save the image with File.WriteBytes, and continue with adding the GUID and other information to the database.
You can also generate the GUID on the clien B4i Question RevenueCat stuck at Connect SDK - Alexander Stolte (first post)    Oct 28, 2024 I have updated the example project.
Please do the following:
Add this function:
'Generates a new GUID
Public Sub GUID As String
Dim sb As StringBuilder
sb.Initialize
For Each stp As Int In Array(8, 4, 4, 4, 12)
If sb.Length > 0 Then sb.Append("-")
For n = 1 To stp
B4J Code Snippet [BANano]: Sharing the goodness - Mashiane (first post)    Jun 14, 2019   (1 reaction) GUID Generator & Test
I recently came across this javascript script because I need a way to have some UUID for my app.
Add the js to banano headers, i.e. uuid-random.min.js
'generate guid
Sub GUID As String
Dim res As String = BANano.RunJavascriptMethod("uuid",Null)
Return res
End Sub
' B4A Question How to make random string and numbers - Jeffrey Cameron (first post)    Apr 25, 2018 You may find many examples here of how to generate a GUID:
https://www.b4x./?query=generate+guid B4A Tutorial [B4X] CloudKVS - synchronized key / value store - Erel (first post)    Mar 14, 2016   (2 reactions) You can use a large random number as the key or to generate a random GUID: https://www.b4x.com/android/forum/threads/how-do-you-generate-a-guid.16195/#post-92012 B4A Question How do you generate a GUID?? - emockler (first post)    Jun 05, 2016 I would normally not necropost, but my question is highly relevant.
I am using the above verbatim, a button click should make a new uuid
however, I am getting java lang NoSuchMethodException:tostring
as I test, I would add msgbox("my new uuid","") and see my correctly generated uuid, but I am unsu B4J Code Snippet Generate UUID in B4J - Lucas Siqueira (first post)    Sep 21, 2024   (1 reaction) converted to lowercase
Return sb.ToString.ToLowerCase
End Sub
https://www.b4x.-vs-uuid-can-i-use-guid-as-uuid.110970/post-692302
https://www.b4x.com/android/forum/threads/b4x-uuid-version-4-generator.110975/ B4i Question GUID - daxydoggie    Jul 16, 2015 What is the B4i equivalent of the following code to generate a GUID?
Sub GetGUID() As String
Dim r As Reflector
r.Target = r.RunStaticMethod("java.util.UUID", "randomUUID", Null, Null)
Return r.RunMethod("toString")
End Sub B4J Question Writing code in b4j and then integrating it with projects coded in pure java - reg. - agraham (first post)    Aug 14, 2022   (5 reactions) No. B4J is a RAD environment intended to produce finished applications. While it does generate Java code that is then compiled by a Java compiler it is Java code that is structured to conform to the expectations and architectures of the B4J libraries that implement the GUI and other facilities. For Page: 1   2   3   4   5   6   7   Powered by ColBERT |