Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > Beginning VB 6
|
Beginning VB 6 For coders who are new to Visual Basic, working in VB version 6 (not .NET).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Beginning VB 6 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 23rd, 2006, 09:17 PM
Registered User
 
Join Date: Sep 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default My.Computer.Filesystem run-time 424 error

hi, can anyone help .

I have just installed vb 6 as part of visual studio.

I have not done any programming in years and am trying to create a simple application.

I am failing at the first hurdle it seems.

I have created a new form and button. here is the code for the button.

My.Computer.FileSystem.CreateDirectory _
("C:\Documents and Settings\All Users\Documents\NewDirectory")

I have also tried

My.Computer.FileSystem.CreateDirectory("c:\Test")


I am getting run-time error 424 object

Am I missing something?

 
Old September 25th, 2006, 08:37 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,189
Thanks: 5
Thanked 59 Times in 57 Posts
Send a message via MSN to gbianchi
Default

hi there...

try some code in VB 6.. that's code look like VB.NET ;)

for that try the filesystemobject (inside the microsoft scripting runtime)..

HTH

Gonzalo
 
Old September 27th, 2006, 02:43 PM
Friend of Wrox
 
Join Date: Nov 2004
Posts: 1,621
Thanks: 1
Thanked 3 Times in 3 Posts
Default

Look in help for ChDir, ChDrive, CurDir and CurDrive, and you should find "See Also"s that will give you a lot of direction.

In VB 6, any method that has parens returns something, whereas a method that does not return something should have no parens around the argument list.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Run Time Error 424 "Object Required" paul31berks Access VBA 8 October 31st, 2010 04:49 PM
Insert Query Error & Run-Time Error 3022 DavidWE Access 1 July 31st, 2008 11:17 AM
use My.Computer.FileSystem.ReadAllText in webdesin abc052107 Visual Studio 2005 4 July 5th, 2007 08:52 PM
Problem with code: My.Computer.FileSystem Sporty BOOK: Beginning Visual Basic 2005 ISBN: 978-0-7645-7401-6 2 April 23rd, 2007 05:05 AM
Problem with code: My.Computer.FileSystem Sporty Visual Basic 2005 Basics 0 March 14th, 2007 03:52 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.