Android Question Is there the way open B4ADesigner,B4JDesigner,andB4iDesigner in one application

Theera

Well-Known Member
Licensed User
Longtime User
Hello all,
I have just unzip xAnotherDatePicker.b4xlib to edit code for Thai delvelopler. Now I place all of files in the folder (ThaiCarlendar)
I have just found the expert's strategy can can converting dirrectly to be b4xlib file as the picture. I can modify only B4ADesigner and B4JDesigner by creating B4XMainPages,but
I can modify B4iDesigner because I have not enough money to buy. I wish someone help me duplicate lblYear and overlay on it as lblBEYear for me and save bil file.

P.S. I have added some code in anotherdatepicker.bas already.

Thank you in advanced.

Theera
 

Attachments

  • ThAnotherDatePicker.zip
    17.6 KB · Views: 97
  • convertingB4xlib.png
    convertingB4xlib.png
    15.6 KB · Views: 103

Theera

Well-Known Member
Licensed User
Longtime User
You can add it inside DesignerCreateView sub, as long as after the line loading the "DatePicker" layout will do:
B4X:
pnlDialog.LoadLayout("DatePicker")
btnToday.Text = "วันนี้"
btnCancel.Text = "ยกเลิก"

I don't understand your second question.
My second need is that I would like to print the massage i.e.
Assume 08/05/2566 'type is long
Convert to be 5 August 2566 (5 สิงหาคม 2566) ,Why can't use datetime()?
 
Upvote 0

Theera

Well-Known Member
Licensed User
Longtime User
Check the project I attached above meets your requirements.
I'm sorry my badly English. I need to tell you the code belows can run in only B4A,but B4J can't be (it's not changed the massage).
B4X:
 Private Sub AnotherDatePicker1_DateChanged (NewDate As Long)
           TxtBoxDate1.Text=AnotherDatePicker1.ConvertThaiContents(NewDate)
End Sub
In B4A and B4J, I use
dim TxtBoxDate1 as B4XView
 
Upvote 0

aeric

Expert
Licensed User
Longtime User
I'm sorry my badly English. I need to tell you the code belows can run in only B4A,but B4J can't be (it's not changed the massage).
B4X:
 Private Sub AnotherDatePicker1_DateChanged (NewDate As Long)
           TxtBoxDate1.Text=AnotherDatePicker1.ConvertThaiContents(NewDate)
End Sub
In B4A and B4J, I use
dim TxtBoxDate1 as B4XView
Blame yourself not to zip the project correctly. Your project only has B4A inside.
Here is the latest version with B4A, B4i and B4J.

I only have previous version of B4i and my iPhone is spoiled so I can't test for you.
 

Attachments

  • ThaiCalendar.zip
    190 KB · Views: 91
Upvote 0

Theera

Well-Known Member
Licensed User
Longtime User
Blame yourself not to zip the project correctly. Your project only has B4A inside.
Here is the latest version with B4A, B4i and B4J.

I only have previous version of B4i and my iPhone is spoiled so I can't test for you.
After I have test your code in B4J ,it doesn't show anything as same as I do the old code. (B4A is Ok) In the other hand, I had coded in the default (it's not B4XMainPage ,it was be okay in both of B4A,B4J)
 

Attachments

  • error.png
    error.png
    29.4 KB · Views: 78
Upvote 0

aeric

Expert
Licensed User
Longtime User
After I have test your code in B4J ,it doesn't show anything as same as I do the old code. (B4A is Ok) In the other hand, I had coded in the default (it's not B4XMainPage ,it was be okay in both of B4A,B4J)
I have run the project as it-is (B4XPages) and it is working well in B4J. If you create Default UI project, maybe you done something wrong. Upload your project.
 
Upvote 0

Theera

Well-Known Member
Licensed User
Longtime User
I have run the project as it-is (B4XPages) and it is working well in B4J. If you create Default UI project, maybe you done something wrong. Upload your project.
The picture is error ,it come from your code.It make me be surprised what 's happend.
I will test Klaus's code again,What is different?
 
Upvote 0

Theera

Well-Known Member
Licensed User
Longtime User
Klaus'code mixed with Aeric's code ,result is the empty text .
 

Attachments

  • LastestTest.zip
    8.6 KB · Views: 88
Upvote 0
Top