Results 1 to 15 of 15

Thread: Utilisation d'un fichier .BAS et B4A

  1. #1

    Thread Starter
    New Member
    Join Date
    Jul 2022
    Posts
    6

    Utilisation d'un fichier .BAS et B4A

    Bonjour,
    Ayant "tripoté" du Basic durant mes études il y a 35 ans, je suis aujourd'hui complètement ignare...!
    Je sollicite votre aide suite à la réception d'un module IP accompagné d'une "appli" de pilotage.
    Voici la liste des fichiers que j'ai reçus :
    Name:  2022-07-29 11_17_41-11.jpg
Views: 289
Size:  9.9 KB
    Que dois-je en faire?
    Merci par avance pour votre assistance.
    Cordialement,
    Eliber

  2. #2
    PowerPoster
    Join Date
    Jul 2010
    Location
    NYC
    Posts
    5,719

    Re: Utilisation d'un fichier .BAS et B4A

    Les fichiers sont code source, vous pouvez les ouvrir comme du texte pour les lire, mais vous avez besoin de Visual Basic 6 (pour .bas) ou Basic4Android (pour .b4a) si vous voulez compiler un .exe.

    Also, this is primarily an English language forum, you'll have more luck if you translate.

  3. #3
    Fanatic Member
    Join Date
    Jan 2015
    Posts
    598

    Re: Utilisation d'un fichier .BAS et B4A

    Fafalone, you speak French

  4. #4

    Thread Starter
    New Member
    Join Date
    Jul 2022
    Posts
    6

    Re: Utilisation d'un fichier .BAS et B4A

    Quote Originally Posted by fafalone View Post
    Les fichiers sont code source, vous pouvez les ouvrir comme du texte pour les lire, mais vous avez besoin de Visual Basic 6 (pour .bas) ou Basic4Android (pour .b4a) si vous voulez compiler un .exe.

    Also, this is primarily an English language forum, you'll have more luck if you translate.
    Thanks a lot for your answer Fafalone!
    So, I'm trying to use my poor english...
    If I send to you the settings.bas, is it posssible you try if it works fine?
    I hope if you can!
    Thanks in advance.
    Settings.bas

  5. #5
    Junior Member
    Join Date
    Nov 2016
    Posts
    19

    Re: Utilisation d'un fichier .BAS et B4A

    Your file is primary useable with B4A, a free basic for android, based on java. Your first posting is showing the typical directory structure of an b4a app. So your settings.bas file is only a part of an complete project. The file SD-201.b4a is the main project file. To try your app, all files, including the both directory, are needed. Website: https://www.b4x.com/b4a.html

  6. #6
    PowerPoster
    Join Date
    Jul 2010
    Location
    NYC
    Posts
    5,719

    Re: Utilisation d'un fichier .BAS et B4A

    b4a uses .bas files? That's confusing. I was thinking they had just supplied multiple language versions or something.

  7. #7
    Junior Member
    Join Date
    Nov 2016
    Posts
    19

    Re: Utilisation d'un fichier .BAS et B4A

    B4X.com supports four type of apps:
    B4A for android,
    B4J for java based apps running on windows desktops, ios,raspberry and linux
    B4I for ios devices
    B4R for embedded devices.

    In each project you have a project file, named b4a, b4j and so on. This file can include code too.
    But you can also use bas files too and you can share them between different projects. With conditional compilation like: '#if B4i .... #end if' you can include different code for each system.

  8. #8

    Thread Starter
    New Member
    Join Date
    Jul 2022
    Posts
    6

    Re: Utilisation d'un fichier .BAS et B4A

    Quote Originally Posted by rboeck View Post
    B4X.com supports four type of apps:
    B4A for android,
    B4J for java based apps running on windows desktops, ios,raspberry and linux
    B4I for ios devices
    B4R for embedded devices.

    In each project you have a project file, named b4a, b4j and so on. This file can include code too.
    But you can also use bas files too and you can share them between different projects. With conditional compilation like: '#if B4i .... #end if' you can include different code for each system.
    Thanks a lot for all your answers§

    But my problem is that I don't have any Android terminal. I work only on Windows PC's.
    Is there a solution for using this application with Windows?

    Thanks in advance

  9. #9
    PowerPoster Arnoutdv's Avatar
    Join Date
    Oct 2013
    Posts
    5,910

    Re: Utilisation d'un fichier .BAS et B4A

    Have you checked the B4X website?
    I don't know the product, never used it, but the website says the product is multi-platform

    And what is your goal?
    Translate the B4X project to Visual Basic 6?
    Or just compile the B4X project?

  10. #10
    PowerPoster
    Join Date
    Jul 2010
    Location
    NYC
    Posts
    5,719

    Re: Utilisation d'un fichier .BAS et B4A

    There's also an Android emulator:

    https://developer.android.com/studio/run/emulator

  11. #11

    Thread Starter
    New Member
    Join Date
    Jul 2022
    Posts
    6

    Re: Utilisation d'un fichier .BAS et B4A

    Quote Originally Posted by Arnoutdv View Post
    Have you checked the B4X website?
    I don't know the product, never used it, but the website says the product is multi-platform

    And what is your goal?
    Translate the B4X project to Visual Basic 6?
    Or just compile the B4X project?
    Hi Arnoutdv,
    Thanks for your answer.
    I've purchased a Relay module that works with TCP/IP protocol. It comes with an application.
    It seems that this application is a VB project.
    More efficient for me is running it on a Windows platform.
    Hope you right understand me.

  12. #12
    PowerPoster Arnoutdv's Avatar
    Join Date
    Oct 2013
    Posts
    5,910

    Re: Utilisation d'un fichier .BAS et B4A

    Quote Originally Posted by Eliber View Post
    Bonjour,
    Ayant "tripoté" du Basic durant mes études il y a 35 ans, je suis aujourd'hui complètement ignare...!
    Je sollicite votre aide suite à la réception d'un module IP accompagné d'une "appli" de pilotage.
    Voici la liste des fichiers que j'ai reçus :
    Name:  2022-07-29 11_17_41-11.jpg
Views: 289
Size:  9.9 KB
    Que dois-je en faire?
    Merci par avance pour votre assistance.
    Cordialement,
    Eliber
    This is not a VB project.

  13. #13

    Thread Starter
    New Member
    Join Date
    Jul 2022
    Posts
    6

    Re: Utilisation d'un fichier .BAS et B4A

    Quote Originally Posted by Arnoutdv View Post
    This is not a VB project.
    This is the description:
    "Descriptions:
    Micro-channel 2-way remote control cloud Ethernet network switch TCP/UDP delay relay controller relay module can be extended to 8
    Control via Ethernet and internet pull 2 ​​relays, release
    And can be extended by an external eight-output pin relay module
    Module supports TCP, UDP, cloud remote control three kinds of operation
    Easy to understand instructions, instructions can specify a delay from 1 to 65535 seconds
    Module is equipped with VB, Delphi PC program and source code to help you easily automate remote control
    TCP and cloud can remotely check the status of all relays
    In addition, after each command processing is completed, the module will revert to the last state of all relays
    UDP mode no status query or other feedback
    Code is extremely simple, easy to integrate into a variety of applications
    Full support for secondary development, open TCP, UDP control protocol, cloud secondary development package provides remote SOAP Web Service API interface and restful Web Service API interface"

  14. #14
    PowerPoster Arnoutdv's Avatar
    Join Date
    Oct 2013
    Posts
    5,910

    Re: Utilisation d'un fichier .BAS et B4A

    Module is equipped with VB, Delphi PC program and source code to help you easily automate remote control
    Is there actual sample code in VB or Delphi?
    The screenshot you posted is neither VB nor Delphi.

    What do want to do with the Relay module?
    Do you have any coding experience?

  15. #15

    Thread Starter
    New Member
    Join Date
    Jul 2022
    Posts
    6

    Re: Utilisation d'un fichier .BAS et B4A

    Quote Originally Posted by Arnoutdv View Post
    Is there actual sample code in VB or Delphi?
    The screenshot you posted is neither VB nor Delphi.

    What do want to do with the Relay module?
    Do you have any coding experience?
    I have very poor and old coding experience... 35 years ago...
    The goal is to use this module as a remote control

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width