With all this talk latley about VBA-lisp I decided to open the VBAIDE and start poking my head around. My skill level with VBA is at about a -1. I must say i do like the forms editor alot better than DCL
. Ok so to begin with I opened the help and started browsing. I decied to start small (very small). I found a project in the help ;
Sub Ch4_IteratingLayers()
Dim layerNames As String
Dim entry As AcadLayer
layerNames = ""
For Each entry In ThisDrawing.Layers
layerNames = layerNames + entry.Name + vbCrLf
Next
MsgBox "The layers in this drawing are: " + _
vbCrLf + layerNames
End Sub
I started changing things to see what was what so far so good.
My question is what is "vbCrLf"?
What I am hoping to do is create some reusable funtion and store them. to do this do I create a new module and add functions to that?
How do I get subs to return info i.e. how would I get the above sub to return a list that can be used in a listbox?
Thanks all.