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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

vb intrinsic controls

Status
Not open for further replies.

Premalm

Programmer
Mar 20, 2002
164
US
Hi Guys,

I have a problem. VB has some intrinsic controls like Drivelistbox, Filelistbox etc. when I start VB it shows me all these built-in controls but when I start VB editor from ArcMap (GIS software) it doesn't show me all the controls. The controls missing are Dirlistbox, Drivelistbox and Filelistbox. I am trying to figure out why this is happening ? any ideas ?

Thanks
Premal
 
Because when you start eh vb editor from arcmap you are running VBA probably. VBA does not have the drivelistbox,dirlistbox, or filelistbox.

A command that the VBA editor does have is the
application.getopenfilename and .getsaveasfilename which you would be able to use.

'example
dim filename as string

filename = application.getopenfilename

filename will contain the address of the file the user selected. I know this might not be what you wanted to do, but there is none of those objects available in vba.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top