If at least one specific matching text is found in the text string, I need to make the condition true, for example:
str = “This is some text containing the word tiger.”
if string.match(str, “
If at least one specific matching text is found in the text string, I need to make the condition true, for example:
str = “This is some text containing the word tiger.”
if string.match(str, “
TObject.GetInterface can obtain an instance of an object to implement an interface. The prerequisite is that the object must be instantiated before running GetInterface
The following method c
I have a custom control,
the ancestor is another custom control,
whose ancestor is TPanel;
that is
TNotMyCustomControl = class(Tpanel);
TMyCustomControl = class(TNotMyCustomControl); Wheth
Can I add my own operators and meta methods to strings in Lua?
I want to do something like this:
local str = “test”
print(str[2 ]) –> “e”
print(str()) –> “TEST”
print(-str) –> “tset”
I am creating a custom control that contains other controls, including two scroll bars, one horizontal and one vertical. There is a property to set one or two scroll bars invisible, it It works fin
I have a DLL written in C. It is legacy code and the source code cannot be modified. I want to be able to call some functions inside the DLL from Lua.
— My Lua File
include(myCppDll.dll)
fun
I added map(), reduce() and where(qlint: string) to my Spring4D branch.
When I wrote these functions, I found the behavior of the list There are differences when they are created in different ways
Recently received a request. A friend’s office needs to make an outpatient call number. The process is as follows: the patient selects a doctor-swipes the ID card to queue-the doctor clicks on the
My class definition is:
TAnimal = class(TInterfacedObject)
public
constructor Create; overload;
constructor Create(param: string); overload;
end;
IAnimal = interface
procedure DoSomething;
Some of my customers want to be able to manually extend my application (when the Windows dpi is set to 96), so I have to implement the extension. Unfortunately, these customers cannot set the Windo