Solved

%a %b %c Things...

Posted on 2003-12-03
4
178 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
ddeman not working in activex 3 92
indy Tmemory stream non latin charcter issue 2 97
Delphi 2 46
how can i search if string exist in array ? 3 49
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
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 is a video describing the growing solar energy use in Utah. This is a topic that greatly interests me and so I decided to produce a video about it.
Need to grow your business through quality cloud solutions? With everything required to build a cloud platform and solution, you may feel like the distance between you and the cloud is quite long. Help is here. Spend some time learning about the Con…

932 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now