Quantcast
Channel: MicroStation Programming - Forum - Recent Threads
Viewing all articles
Browse latest Browse all 1677

Re: Need help with OLD UCM variables in a Basic Macro--V8i-SS2 80.11.07.492

$
0
0

jmele:
I'm new at VBA so I'm not sure how to get the input from each of the fields to store in the variables

Suppose your VBA UserForm has a text box named txtData1.  You can add a Property to the UserForm to get that value.  Copy-and-paste the following into your UserForm code...

Public Property Get Data1 () As String
  Data1 = txtData1.Text
End Property

Public Property Let Data1 (ByVal s As String)
   txtData1.Text = s
End Property

Then, from wherever you called your form, you can assign that property:

frmMele.Data1 = "abc"   ' calls property Let
frmMele.Show vbModeless


Viewing all articles
Browse latest Browse all 1677

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>