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

Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

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.