Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to use Macro variables

Status
Not open for further replies.

79251

IS-IT--Management
Jun 5, 2000
17
IN
Hi,<br><br>Can any one help how to use macro variables in visual basic. I can tell a example using Visual Foxpro code. Same thing I wanted to do in Visual Basic.<br><br>&nbsp;&nbsp;&nbsp;x = &quot;messagebox('Hello')&quot;<br>&nbsp;&nbsp;&nbsp;y = &x<br>&nbsp;&nbsp;&nbsp;<br>&nbsp;&nbsp;&nbsp;after executing the second line you will get a message box saying that hello&nbsp;&nbsp;on the screen.<br><br>Can anyone help me how to do this in VB<br><br>Logamoorthy
 
Use the MsgBox method.<br><br>MyString = &quot;Hello&quot;<br>MsgBox MyString<br><br>Look at the MsgBox function because you can get the user response as well (Ok/Cancel, Yes/No ...)
 
Hi 79251 (nice nickname by the way &lt;smile&gt;)<br><br>Sorry - I don't think you can do this in VB.<br><br>I used to use it all the time on FoxPro/dBASE etc so I know what you mean - very useful - but no.<br><br>Unless someone else knows different I suppose?... <p>Mike<br><a href=mailto:michael.j.lacey@ntlworld.com>michael.j.lacey@ntlworld.com</a><br><a href= Cargill's Corporate Web Site</a><br>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top