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

RE: tag definition or tagset

$
0
0

[quote user="blumax57"]How can I do to bring in 0_nome LBound
and 8_dev in UBound?[/quote]

I agree that it's annoying when VBA decides how to organise your data!

An alternative to an array would be a dictionary.  You can obtain a VBA dictionary by adding a reference to Microsoft's Scripting Runtime ActiveX DLL to  your VBA project (menu Tools|References).  Add key/value pairs to your dictionary where the key is your tag name.  For example...

Dim oData As New Scripting.Dictionary
oData.Add 0_nome, "Blumax"
oData.Add 1_est,  123.45
oData.Add 2_nord,  456.78
Debug.Print "0_nome=" & oData.Item (0_nome) & " location XY=" & oData.Item (1_est) & "," & oData.Item (2_nord)


Viewing all articles
Browse latest Browse all 7260

Trending Articles



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