convert

  1. Marcos Alves

    Android Question B4X and Compatibility

    Hello all, I noticed that in visual designer we have the option to add the views in the activities and B4XView, but I confess that for me it's not clear yet if I'll have advantages when translating a B4A app to B4i using that kind of approach... for example, I tried to reference the padding...
  2. Mashiane

    B4J Library SQLite 2 JavaScript / JSON

    Ola I needed to embed a sqlite db as part of a web app i'm working on, but as JavaScript / JSON. This app helps with converting your sqlite db to javascript. This is useful when one wants to use the data for READ ONLY purposes, my case in point. 1. Add the database that you want to be...
  3. Alexander Stolte

    Android Code Snippet [B4X] convert seconds to ticks

    Sub convert_seconds2Ticks(seconds As Long) As Long seconds = seconds * DateTime.TicksPerSecond 'convert seconds to ticks! Return seconds End Sub
  4. E

    Bug? Error parsing string "-0" to float

    This code (2 lines of diagnosis hacks + 1 original problem line): Dim TempString As String = lblReading.Text Log("len = " & TempString.Length & ", str = [" & TempString & "] isnum = " & IsNumber(TempString)) Dim CurrentReading As Float = TempString '''lblReading.Text is producing...
  5. A

    Android Question Converting project from B4A V1.8 to V8.5

    I have corrected the errors in my friends project and it now compiles without errors but presume updating his project which was V1.8 to latest may be the reason when using the Bridge tool app (I installed latest version) it fails to install with the helpful error ”Application not Installed”. I...
  6. makis_best

    Other [Solved] Convert ticks to date

    Hi I read some dates from SQL Server.... and I save them to my SQLite database. The dates stored like that: /Date(1498856400000)/. Every record has a value like that. It is a correct format? I need to change it some how? After that I try to convert that value in my SQLite query but no luck...
  7. OliverA

    Android Code Snippet [B4X][XUI] Image to JPEG byte array with resize/quality options

    Originally posted a B4J/inline Java version of this in the B4J Code Snippets (https://www.b4x.com/android/forum/threads/image-to-jpeg-byte-array-with-resize-quality-options.91746/). @Erel pointed out though that the XUI library had the functionality that I was doing with Java, so I decided to...
  8. OliverA

    B4J Code Snippet Image to JPEG byte array with resize/quality options

    Due to @Erel's comment below, I've rewritten this in pure B4X basic. The new version should work with B4A, B4J and B4i. New version (that should be used) can be found here https://www.b4x.com/android/forum/threads/b4x-xui-image-to-jpeg-byte-array-with-resize-quality-options.91774/. ' Converts...
  9. H

    Android Question Convert Base64 String (VB.NET) to B4A Restore.

    Hello, I have a little problem, maybe who knows: I have a tool in VB.NET that converts a string value to a base64 string. VB.NET Code: Dim byt As Byte() = Encoding.UTF8.GetBytes("Thomas") Dim Base64 Base64= Convert.ToBase64String(byt) The Base64 Value is: VGhvbWFz Now I want to restore this...
  10. Sandman

    Games Pixelator - turn any image into fancy pixel-art

    Hi all, I know some people in the forum have mentioned that it's very difficult to produce art for games. I just found this app (not made with B4X), and thought that it might help somebody. Pixelator http://pixelatorapp.com/ Examples:
  11. rleiman

    Android Question Converting integer values to ticks long value

    Hi Everyone, If I have 3 separate integer values representing a time such like: Dim intHours As Int = 10 Dim intMinutes As Int = 30 Dim IntSeconds As Int = 0 for the actual time of 10:30:00, can you tell me how to convert those 3 integers into a ticks long value so I can pass it to...
Top