1. Speaking of hello world When the print(“Hello World!”) is executed, it is obvious that a specific function of printing a string to the standard output is required. So the first thing involved he
Category: Language
Programming language is a formal language used to define computer programs. It is a standardized communication technique used to issue instructions to a computer. A computer language allows programmers to accurately define the data that the computer needs to use, and precisely define the actions that should be taken in different situations.
How to pass the lua function to the C function and perform Lua functions multiple times?
What I want to do is create a function that will iterate some objects and call a function for each function. I am using BlitzMax, not C, but other than that , Because it has a complete Lua C functi
How to compile and run this Delphi code without installing IDE?
It is said that a winform is generated:
var
F: TForm;
L: TLabel;
begin
F := TForm.Create(Application);
L := TLabel.Create(F);
L.Parent := F; // Needed to have it show up on the form.
L
Delphi – lists the index beyond the range when deleting items
I solved my problem, but I need to know why this problem occurs?
I wrote a project to load the file into the listBox and then delete the strings one by one,
But when I delete the listBo
Delphi – How to use the overload operator to assign empty set to record
I am using records to encapsulate two exception sets.
I have put in operators to allow either group to be assigned to records. Doing so will clear the other. < br>But I cannot specify an empty set
Lua String.upper does not use stress characters?
I am trying to convert some French text to uppercase letters in lua, it will not convert accented characters. Do you know why?
Test script:
print(‘échelle’)
print(string.upper(‘échelle
Delphi – Is this Peter Below code be a memory leak?
I know I shouldn’t ask Peter Peter, but I found this code snippet while trying to debug some old D5 code Text File Size.
In my opinion, Sysutils.FindClose should be called the last line of th
Rawset function in Lua
The rawset function in Lua is generally to pass the table, index and value, but I encountered this code:
rawset(tbl,name,()) and
rawset(tbl,name, function() end) Rawset The function ret
Delphi – How to Test if olevariant contains interfaces
An annoying thing about using Excel through its automated interface is weak typing.
The return value can contain any different types.
How to test whether the variable returned by the caller Inter
Delphi – How does my form detect the keydown event when another control is focused?
procedure TMainForm.KeyDown(Sender: TObject; var Key: Word; Shift: TShiftState);
begin
if (GetKeyState(Ord(‘Q ‘)) The above event only works when the focus is set to the main form.
If I run the ap