Delphi can call the method of the parent class through inherited, but it does not provide a method to directly call the parent class of the parent class (the grandfather class). The implementation
Month: October 2021
Delphi – How do I check if Variant is TDATETIME?
I have an object, it has a value, but the value can be an integer, string, boolean or TDateTime. So, it is a Variant.
I use VarType() to check its type, but since VarType() does not have’varD
Lua image error
I installed the lua image according to this – link. I also tested my installation with luajit -limage -e “image.test()”, it said 0 errors and 0 warnings. Also, when I try
> require’image’
> l
Lua – Corona SDK – Calling an instance or class method from EventListener
I have a Foo class (well, a pseudo-class) set as follows:
–in foo.lua
Foo = {}
–constructor
function Foo:new(x, y)
–the new instance
local foo = display. newImage(“foo.png”)
– set some
Delphi – How to prevent selection of specific colors in Component TColorbox?
Does anyone know how to remove a certain color from the drop-down list of TColorBox? You need to delete the color in the list:
procedure TForm7.FormCreate(Sender: TObject);
var i: Integer;
Lua needs a relative path
I cannot load a .Lua file from a relative path.
This works:
2.lua
function Math( v1, v2 )
return v1 + v2
end 1.lua
This does not work:
package.path = package.path ..’
Unit test – Can I load the library in Lua?
I am making a mpv script, in which I load the mpv library like this:
— script. lua
local mp = require(‘mp’) I am using a broken unit test framework to write tests for this, and they are cont
Convert DateTime format to another DateTime format in Lua
I have a question where a date value is used to send to the application for some processing, and it needs to be formatted into a different DateTime format first.
Yes) I have
I start wit
Delphi – How do I always load a new page in TWEBBROWSER?
I am trying to use Browser.Navigate(URL) to load a web page into TWebBrowser. However, the browser does not care whether the page is updated online, so as long as I don’t restart the program, it wo
LUA trouble: Try to call the global ‘unpack’ (zero value)
I am relatively new to Lua, and I am trying to embed it in the library. I can execute the script from the command line, but I get the following error when I call the function in the script when emb