Since I am receiving this error always in the emulator when trying to write to file, could you advise me on :java.io.FileNotFoundException:/mnt/sdcard/Mydb.db (Permission denied)
' If File.Exists(DBFilePath, DBFileName) = False Then
File.Copy(File.DirAssets, DBFileName, DBFilePath, DBFileName)
' End If
The problem came that you didn't Dim the Curve() variable correctly.
I made some changes in your program, see the attached version.
Best regards.
You must think in decades.
In the sacle grid, each decade has the same width, but inside each decade the widths are logarithmic.
Then, depending on the numebr of decades you probably want to display a more or less detailed scale grid.
For numbers >1 the logarithm is positive, examples log(2) = 0.301, log(20) = 1.301
For numbers <1 the logarithm is negative, examples log(0.2) = -0.699, log(0.02) = -1.699
You need to take the logarithm of the number and split it into the integer and fractional parts.
For the scaling:
With the integer part you know in what decade the number is and with the fractional part you know where it is in the given decade.
If the logarithm is negative, you need to take the complement to 1 of the fractional part to know where it is in the decade.
In the example: log(0.02) = -1.699, the fracional part is 0.699 and because the logarithm is negative you must take the complement to 1, 1- 0.699 = 0.301.
Leave me some time, the last days I was sick and didn't do much with B4A.
I also have some projects on the desk.
Klaus,
Thanks - I appreciate your help when you are able...
Here you are.
As you mix linear and logarithmic scales there are no lines between decades in the logarithmic scale.
Here you are.
As you mix linear and logarithmic scales there are no lines between decades in the logarithmic scale.
There is no and there will be no linkAlso, could you also give me a link for donation?
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?