Recent

Author Topic: How to calculate BeginInvoke inside function , demo trim?  (Read 1658 times)

d2010

  • Full Member
  • ***
  • Posts: 235
How to calculate BeginInvoke inside function , demo trim?
« on: January 09, 2025, 10:25:19 am »
Hello 2025;;
I have the source of trim(); I used many times this function.
How to calculate begininvoke , by outside of trim?

Code: [Select]
AngleToString:=trim(InstrTest);
result:=trim(mtexted);
rezultat:=trim(rezultat);
fopen.fclose_append_newline:=trim(fopen.fclose_append_newline);

 :o
Definition the "BeginInvoke" inside my title is "<=#32"
If i replace the upper-source, then
Code: [Select]
if (length(AngleToString)>00)and((AngleToString[01]<=' ') or
(AngleToString[length(AngleToString)]<=' ')) then
AngleToString:=trim(InstrTest);

if  (length(rezultat)>00) and (rezultat[01]<=#32) then rezultat:=trim(rezultat) else
if  (length(rezultat)>01) and (rezultat[length(rezultat)]<=#32) then rezultat:=trim(rezultat) ;
C:Q1=I got increase of speed , if i use BeginInvoke" for "trim"?
C:Q2=Exists others functions with "BeginInvoke"? please you give me examples, similary with "Trim" but with strings, AnsiStrings, WipeString.....
C:Q3= Others functions <> Trim?
 :-[
"Thank you, best regards,
 Multumesc Arsenie Papacioc. Doamne ajuta-ne. Multumesc Sf. Nectarie dela Eghina"
 :P



« Last Edit: January 09, 2025, 10:38:15 am by d2010 »

 

TinyPortal © 2005-2018