• 0
Sign in to follow this  
Guest Eduardo Moura Schaukoski

Application.messagebox

Question

Guest Eduardo Moura Schaukoski

olá

if application.MessageBox('Deseja Gravar Relação?', 'Confirma', + mb_yesno+mb_iconquestion+mb_defbutton2)=idyes then

como adicionar um valor de variavel em deseja gravar relacao? tipo

'deseja gravar relacao entre ' + nome ' e ' + otronome, ?

nome e otronome são variaveis string que contem os nomes

ou ate mesmo

'deseja gravar relacao entre ' + formaterior.edit1.text ' e ' + otroform.edit2.text, ?

Share this post


Link to post
Share on other sites

2 answers to this question

Recommended Posts

  • 0

Olá,

Faz assim:

var nome, otronome : string;
begin
  nome := 'João';
  otronome := 'Maria';
  if application.MessageBox(pChar('Deseja gravar relacao entre '+nome+' e '+otronome+' ?'), 'Confirma', + mb_yesno+mb_iconquestion+mb_defbutton2)=idyes then

Abs. Progr'amador.

B)

Share this post


Link to post
Share on other sites
  • 0
Guest Eduardo Moura Schaukoski

Valeu!!!

Obrigado, ajudou bastante =)

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this