-
It's really hard to say casually if you haven't done this. You can try using the comparevalidator control, but this control compares the values of two text boxes, one character at a time. You need to write your own ** transformation.
-
Paste ** directly to you.
procedure : tobject);
varv_strtmpold,v_strtmpnew:string;
v_index,v_errcnt:integer;
beginv_strtmpold := trim(;Gets read-only text box characters.
v_strtmpnew := trim(;Get input text box characters.
v_errcnt := 0;Count of error characters.
Iterate through the read-only textbox characters and compare strings one by one.
for v_index := 1 to length(v_strtmpold) do
beginif length(v_strtmpnew) >= v_index then
beginif v_strtmpnew[v_index] begininc(v_errcnt);
end;end else
begininc(v_errcnt);
end;end;
if v_errcnt > 0 then
clred;
showmessage('The character entered is incorrect, and the number of characters is incorrect' + inttostr(v_errcnt));
end else
beginshowmessage('The submission was successful');
end;end;
-
Very well implemented... Text box key events can be handled.
-
Is the list not instantiated and an empty object?
-
c Generally used vs development (full name: Microsoft Visual Studio) is generally the 2010 version.
-
Practical things to do by yourself.
-
It feels like string processing. OpenFile component. The last one is displayed.
It's the property of the form. These are the most straightforward properties to modify. Modify the string.
There is basically nothing to say. It is not recommended that you go directly to someone to ask for **. You look at the corresponding widget properties.
It's all basic stuff.
-
You can help you with the outline, complete the full text of the text, and handle the format by yourself.
Try to be as concise and easy to understand as possible, and you will understand it when you use it more. >>>More
Do it by your train of thought.
Method 1. string strnumber="200m"; >>>More
Cite month[12][10]; Wrong. Without the element month[12][10], up to month[11][9], and the pointer p is useless. There's also the deletion of all your +10-level corresponding *. >>>More
You use a P1 port to control the dynamic scanning of 8 digital tubes, and the dynamic scanning display of digital tubes needs to be blanked. >>>More
I don't know what words to use to describe it.