B4j examples

25.02.2021 By Malall

Forums Search forums. New posts What's new New profile posts Latest activity. Members Current visitors New profile posts Search profile posts.

Log in Register. What's new. Search forums. Log in. For a better experience, please enable JavaScript in your browser before proceeding. Android development starts here. Please do not post questions in this sub-forum.

Filters Show only: Loading…. Replies 68 Views 36K. Feb 25, klaus. Replies Views K. Dec 25, klaus. Erel Feb 24, 12 13 Aug 24, Mikonios. Sticky Android Tutorial Android Process and activities life cycle. Erel Nov 3, 3 4 5. Replies 92 Views K.

Jul 30, aeric. ADeveloper Mar 24, Replies 6 Views Yesterday at PM ADeveloper. Android Tutorial Protect your application against copy and changes. Informatix Yesterday at AM.

[not a question] B4J - Example of an IDE developed with Actipro products

Replies 5 Views Yesterday at PM MarcoRome. Replies 7 Views Yesterday at AM arenaluigi. Peter Simpson Monday at PM.In this post we will see a Database Connection example in B4J.

B4J - Animations example

First thing we must have in mind is that B4J produces java code. To connect to a database we need to have a JDBC driver. To use it in B4J we have to copy the sajdbc4. Those files are provided with SQL Anywhere client installation. If all steps mentioned before are done, then we are ready to write our first application in B4J to connect and query a SQL Anywhere Database.

For the purpose of our example we will use the sample database provided with SQL Anywhere Also it will contains a basic form with two buttons and a TableView see screenshot bellow :.

b4j examples

And in the AppStart suboutine, the following lines as shown in bold bellow :. This is done by adding two more subroutines:. Follows a screen shot of the result:. You are commenting using your WordPress. You are commenting using your Google account. You are commenting using your Twitter account. You are commenting using your Facebook account. Notify me of new comments via email. Notify me of new posts via email.

Using AutoIt Recorder. B4J What is B4J. Powerbuilder Powerbuilder Classic Powerbuilder. NET Powerbuilder older posts. Search for:. Initialize "sybase. IsInitialized Then sql. Departments" myList. Initialize Do While cursor. GetInt2 2 myList. Show TableViewQueryResult. Follows a screen shot of the result: Hope you found this usefull. Like this: Like Loading Fill in your details below or click an icon to log in:. Email required Address never made public.

b4j examples

Name required. Post to Cancel.Note: All of the commands above can also be expressed with lower letters. Capital letters means absolutely positioned, lower cases means relatively positioned.

The example below defines a path that starts at position ,0 with a line to position 75, then from there, a line toand finally closing the path back toGenerally, the user selects two endpoints and one or two control points.

Because of the complexity involved in drawing paths it is highly recommended to use an SVG editor to create complex graphics. If you want to report an error, or if you want to make a suggestion, do not hesitate to send us an e-mail:. HOW TO. Your message has been sent to W3Schools. W3Schools is optimized for learning, testing, and training.

Examples might be simplified to improve reading and basic understanding. Tutorials, references, and examples are constantly reviewed to avoid errors, but we cannot warrant full correctness of all content. While using this site, you agree to have read and accepted our terms of usecookie and privacy policy. Copyright by Refsnes Data. All Rights Reserved. Powered by W3.By using our site, you acknowledge that you have read and understand our Cookie PolicyPrivacy Policyand our Terms of Service.

The dark mode beta is finally here. Change your preferences any time. Stack Overflow for Teams is a private, secure spot for you and your coworkers to find and share information. I am currently researching the pros and cons about Basic4Android. What limitations does this tool have? There are many many pros to using Basic4android.

Its a neat package and well supported by the author Erel. But this looks like it might be very easy to get started with, shouldn't incur any runtime performance penalty, and allows you to create unencumbered fully redistributable APK's. The easiest I found by far, and the most useful examples by far. As far as limitations, I have found only a few and those are easily gotten around since you can take any Java code and wrap it in a library that B4A can use quite easily.

With that capability, I can go to Eclips if needed and generate code and use it in B4A. I am not a fan of Basic. But I also do not know Java. For me that was not the issue. It was the ease of using the interface without getting lost and most important, a solid example of damn near everything the phone can do. There are some things like the MapView for example that are currently not usable in B4A. The most important things are available but there are still parts which need some improvement like the homescreen widgets.

If you want to get good results very quickly and don't need to use every exotic Android feature, give it a try. If you want access to every feature that is available in Android there is only the way to choose the Eclipse IDE and directly use Java.

But you have to invest much more time for developing than you have to do with B4A. Personally as a beginner to B4A and programming in general, my main hurdle is there seems to be a steep learning curve in the very beginning which I'm still trying to ascend. I just wish there were more tutorials geared towards users like me. The beginner's guide is great but even in there there are things I don't quite understand.Forums Search forums. New posts What's new New profile posts Latest activity.

Members Current visitors New profile posts Search profile posts. Log in Register. What's new. Search forums. Log in. For a better experience, please enable JavaScript in your browser before proceeding. Thread starter Erel Start date Aug 23, Erel Administrator Staff member. Licensed User. This package includes several simple examples to help developers get start with B4J.

Guess My Number - The computer chooses a number. You need to guess the number. Three Pages - Example of an app with several forms. There are two main forms login and the user form and a font picker that is implemented as a class. The app structure is similar to the structure of B4i apps. Text Files - Save and load the program state. Bouncing Smiley - Uses Canvas and Timer to create a bouncing ball.

Dynamic Controls - Creates a grid of buttons.

b4j examples

Anchors - A multi-pane layout with anchors and designer script. Sorting Algorithms - Implementation of the following sorting algorithms: bubble sort, quick sort, binary tree, merge sort and selection sort.

You can download these examples here: www. Last edited: Feb 7, Thanks for these Erel! Going through them all this week AbbasMohammed Member Licensed User. Thanks Alot.

More great stuff Erel! Regards Roger. KingKing Member Licensed User. I change my java path to 64bit JDK.A year or so ago, I got introduced to Java. This wasn't pure Java. It was Java written using Visual Basic like syntax. I promised myself that once I am comfortable enough to develop something useful with it, I'll share.

A result of that was my article called Software Developers are lazy but Smart, that's why we Rad. That article was about an app developed using Visual Basic like syntax, however it's a Java app. This article seeks to take you one step back in terms of how one can develop a Java app with Visual Basic like syntax and then run it on their computer. If you are curious like me, welcome to the very interesting world of B4X. For this exercise, we will create a simple Hello Java app and nothing fancy.

This will just be a step towards the many steps I will explain in this forum. Before I am ahead of myself, let's just start with the simple steps. What you will need to perform this simple exercise is a little determination to learn and a good computer.

First things first, let's download the development IDE. Click on Browse to locate the javac. The Additional Libraries folder is a folder where you will store additional libraries that will be used in developing more applications. This mostly will contain.

b4j examples

We can discuss that later. The Shared Modules folder will contain additional modules. All modules in B4J will have a. We will also look into that later. Click Ok when done. Now you are ready to start developing your first Java app using B4J.

Select the newly created folder and perhaps save your project as HelloB4J. Congratulations, you are one step closer to creating the first HelloJava project. If you are in this screen, it means everything has been set up properly for development.

B4J Documentation

You are not there yet :. Don't be alarmed, we are almost there. Let's now add a Label control and button control to the screen we are having. Let's call the screen a form.

Hello B4J: Develop Complete Java Apps using Visual Basic Syntax

This line is the entry point for our form components. In Visual Basic, you created a form and was able to drag and drop controls in the form directly.

With B4J, you drag and drop controls to a Layout and then load that layout to a form with the LoadLayout method. This means you can create a number of layouts that you can place on the same form at different locations. I will not dive into the deep details now, it's just a start here, so we will create a simple project and run it for demonstration purposes.

JSON Tree Example

Let's enjoy the trip. Now, let's create a layout for our controls and then load that layout to the form. The designer is used to create your layouts.B4A, B4i, and B4J feature a visual designer that simplifies the process of creating user interfaces. For learning the language, there is a comprehensive set of ebooks called "B4X Booklets" available for free that act as a learning guide.

Basic4ppc allowed programmers to write applications for Pocket PC devices that ran the Windows Mobile operating system. Basic4PPC was released in and its final release was in December of Please note that Basic4PPC is no longer available for purchase.

The first public version was released on December 7, and allows users to code native Android apps in B4X. B4A is able to create apps, widgets, and games.

There is also a beginners guide that is updated after each new release of the IDE. The first public version was released on December 4, B4i is capable of creating applications that target iPhone and iPad devices and there is a service which allows developers to compile and publish apps without the need for a local Mac computer. The first public version was released on November 14, B4R allows programmers to write applications for Arduino boards. Comments are usually used to point out what a particular piece of code does.

Comments can also be used to describe whole methods. Compilers ignore comments so use comments for whatever you want! From Wikipedia, the free encyclopedia. This article may be too technical for most readers to understand. Please help improve it to make it understandable to non-expertswithout removing the technical details. January Learn how and when to remove this template message. Retrieved Categories : Integrated development environments Software development process.

Hidden categories: Wikipedia articles that are too technical from January All articles that are too technical. Namespaces Article Talk. Views Read Edit View history. Languages Add links. By using this site, you agree to the Terms of Use and Privacy Policy.