01-07-2023, 06:56 PM
Now I know what the message means: "codegen: Bad expr type 18". This does not mean a line number. I noticed it just now when I got the message again.
PS D:\Lab\Lukebasic> lbasic LBasicKaufpreis.bas
codegen: Bad expr type 18
There is still a lot to try and learn.
Code: (Select All)
'LBasic - 7. Jen. 2023
Dim As Double purchasePrice, valueAddedTax, totalPrice
Input "Purchase price : ", purchasePrice
Input "Value added tax: ", valueAddedTax
totalPrice = ((purchasePrice / 100) * valueAddedTax) + purchasePrice
Print totalPrice
End
PS D:\Lab\Lukebasic> lbasic LBasicKaufpreis.bas
codegen: Bad expr type 18
There is still a lot to try and learn.