Solved

%a %b %c Things...

Posted on 2003-12-03
4
186 Views
Last Modified: 2010-04-05
Hello,

How can I make a edit-able popup window

e.g
If the user puts,
%a its changes into Edit1.Text
%b its changes into Edit2.Text
%c its changes into Edit3.Text

Ect... Hope you know what im talking about

Thx Karamja
0
Comment
Question by:-Karamja-
  • 2
  • 2
4 Comments
 
LVL 27

Expert Comment

by:kretzschmar
ID: 9868342
>Hope you know what im talking about

ehm, no
0
 
LVL 2

Author Comment

by:-Karamja-
ID: 9868530
Gay, lol
0
 
LVL 2

Author Comment

by:-Karamja-
ID: 9868630
I have found somethink like I want to do,

function GetCPUSpeed: Double;
const
  DelayTime = 500;
var
  TimerHi, TimerLo: DWORD;
  PriorityClass, Priority: Integer;
begin
  PriorityClass := GetPriorityClass(GetCurrentProcess);
  Priority      := GetThreadPriority(GetCurrentThread);

  SetPriorityClass(GetCurrentProcess, REALTIME_PRIORITY_CLASS);
  SetThreadPriority(GetCurrentThread, THREAD_PRIORITY_TIME_CRITICAL);

  Sleep(10);
  asm
    dw 310Fh
    mov TimerLo, eax
    mov TimerHi, edx
  end;
  Sleep(DelayTime);
  asm
    dw 310Fh
    sub eax, TimerLo
    sbb edx, TimerHi
    mov TimerLo, eax
    mov TimerHi, edx
  end;

  SetThreadPriority(GetCurrentThread, Priority);
  SetPriorityClass(GetCurrentProcess, PriorityClass);

  Result := TimerLo / (1000 * DelayTime);
end;

procedure TForm1.Button1Click(Sender: TObject);
begin
  ShowMessage(Format('Your CPU speed: %f MHz', [GetCPUSpeed]));
end;


If you look it has a %f and thats changed into the computer speed

How can I make my on %a, %b, %c ect and link them to edit or labels
0
 
LVL 27

Accepted Solution

by:
kretzschmar earned 20 total points
ID: 9868932
see about the format-function

showmessage(format(%s %s %s,['I', 'say','hello']));

or with editboxes

showmessage(format(%s %s %s,[edit1.text, edit2.text,edit3.text]));

just from head, not tested

hope this is for what you are after

meikl ;-)

0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

808 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question