How to Get Message Box display into a Text box in a Macro

I have a part with custom and configuration specific properties already assigned.

How can I get both these values using SW API (To show these in a message box)

For Example:

Part with "Description" property in custom tab and "Stock Size" Property in configuration tab

As part of my learning process, I am trying to create/combine macros from SW API Help

Most of the macros shows the result as a message box and how can I get this display converted to a Text Box

Someone please help me.

Thanks

Message was edited by: JOHN GEORGE Modified contents and heading

SolidworksApi macros