variables in a messagebox - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

variables in a messagebox

P675P675 Posts: 19Member
Hello,

Could someone help me.
I want to put a variable in a messagebox but I don't know how.

This is what I've got.

Messagebox(0,'text' (variable) 'text','Lable',mb_OK)

Hope that someone could help me.

Kind regards,

P675

Comments

  • pritaeaspritaeas Posts: 274Member
    MessageBox(0, Format('text %s text', [variable]), 'Label', MB_OK);

    %s assumes variable is a string. See the OLH for more info about Format().


    : Hello,
    :
    : Could someone help me.
    : I want to put a variable in a messagebox but I don't know how.
    :
    : This is what I've got.
    :
    : Messagebox(0,'text' (variable) 'text','Lable',mb_OK)
    :
    : Hope that someone could help me.
    :
    : Kind regards,
    :
    : P675
    :

Sign In or Register to comment.