B4J & MSSql (or B4J & MySql)?I am developing the new version of our flagship application in C# and MsSql.
Existing version is on Xbase++ and DBF.
Well I tried that at first, but the name Java is still problem for our clients and our company.B4J & MSSql (or B4J & MySql)?
I am developing the new version of our flagship application in C# and MsSql.
Existing version is on Xbase++ and DBF.
Since I am new to both C# and Sql, I do lots of code snippet search in Google. It requires opening and going through many webpages to get the working code, as I require.
Now ChatGPT gives me exact simple code. If the first one does not work, I click "Regenerate .." and it gives next snippet of the code for same requirement.
Well I was afraid that ChatGPT will take my place, but no. It is here to help me and many programmers like me who are new to a programming language but have knowledge in another programming language. ?
B4J & MSSql (or B4J & MySql)?
I copied and pasted the same question from the thread but for C# and ChatGPT gave me full code with explanation ?
The "American" version of that is usually along the lines of, "Who's buried in Grant's tomb?""What color was Garibaldi's white horse?"
The "American" version of that is usually along the lines of, "Who's buried in Grant's tomb?"
No it didn't.Did it compile and run and do what you'd asked for?
That's a trick question. The real answer is orange! (A pedant - Moi?)What colour is aircraft black box recorder?
create code in b4a to replace the toastmessage function
Sub ShowToastMessage(Message As String)
Dim t As Toast
t.Initialize(Message, True)
t.Duration = t.LENGTH_SHORT
t.SetGravity(Gravity.BOTTOM, 0, 0)
t.Show
End Sub
which library enables declaration of an object as 'toast'
To use the Toast object in your code, you need to import the Android library by adding the following line at the top of your code file:
Copy code
Import Android.Widget.Toast
I apologize for the mistake in my previous response. The correct syntax for importing a library in Basic4Android (B4A) is #AdditionalRes:.
#AdditionalRes: C:\Program Files (x86)\Anywhere Software\Basic4android\AdditionalLibraries\Android\res
Is the translator of VB.Net to C# still available ?Well I tried that at first, but the name Java is still problem for our clients and our company.
I am using B4J server for our Android app. No problem there as the B4J server is running on our server.
We already have VB .net application and I am making C# one. I have to keep my job.
Maybe in future, I get to make the B4J application.
Is the translator of VB.Net to C# still available ?
Do not know.Is the translator of VB.Net to C# still available ?
In B4A: Using a scale where 16 hammer units is equal to one foot, create a Sub that converts centimeters, millimeters, meters, inches, miles, and yards to feet and convert that value to its value in hammer units.
Sub ConvertToHammerUnits(units As Double, unitType As String) As Double
Dim feet As Double 'easy fix would be to include change this to "Dim feet As Double = units"
Select Case unitType
Case "centimeters"
feet = units / 30.48
Case "millimeters"
feet = units / 304.8
Case "meters"
feet = units / 0.3048
Case "inches"
feet = units / 12
Case "miles"
feet = units * 5280
Case "yards"
feet = units * 3
End Select
Return feet * 16 'convert feet to hammer units
End Sub
Sub ConvertToHammerUnits(value As Double, unit As String) As Double
Select unit
Case "centimeters"
value = value / 30.48
Case "millimeters"
value = value / 304.8
Case "meters"
value = value / 0.3048
Case "inches"
value = value / 12
Case "miles"
value = value / 0.000189394
Case "yards"
value = value / 0.333333
End Select
' convert feet to hammer units
Return value * 16
End Sub
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?