473,386 Members | 1,602 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

HELLO DEAR ITS VERY URGENT Q:=> WHEN I USED DIR()

Hello All Of U.
Hey I Dont Understand What Happen I Declear Dir(path) Used In Vb6 Code Then It Give The Error Msg Wrong No Argument Or Invalid Property Assigned.
Path Is String Var & I Assign Value On Path.
1. I Add Refrence
A. Microsoft Runtimf Script. Used In My Prg.


Anybody Can Help.
Thanks
Feb 7 '08 #1
4 974
debasisdas
8,127 Expert 4TB
try to use like this

Expand|Select|Wrap|Line Numbers
  1. Dir ("d:\debasis")
Feb 7 '08 #2
devonknows
137 100+
Ive added MSR reference to a project but the only way i can get it call that error is if i have too many arguments inside the Dir(), Ive run a sample app with the code below, n it seems to work, give it a try, if not could you post the code around it, might help us get a little more insight

If Possible could you show how the path is assigned to the variable.

Expand|Select|Wrap|Line Numbers
  1.     If Not Dir("C:\Windows", vbDirectory) = vbNullString Then
  2.     Call MsgBox("I have found the directory")
  3. Else
  4.     Call MsgBox("I Cannot Find The Directory")
  5. End If
  6.  
Hope this helps you
Kind Regards
Devon
Feb 7 '08 #3
try to use like this

Expand|Select|Wrap|Line Numbers
  1. Dir ("d:\debasis")

when i plased control dirlistbox control
then dir() not used give error msg
i remove this control then it work
what happen
Feb 12 '08 #4
Killer42
8,435 Expert 8TB
I think it would help if you showed us the code.
Feb 13 '08 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: pargat singh | last post by:
Hi I format my M/C and install fresh copy of Win2000 and ISS.First thing after that i install VS.net and every thing goes well without any error.When i try to open asp.net application i am...
0
by: Matt Wood | last post by:
Hi, I have written a Web Service for a customer which expects a SOAP message with Document/Literal encoding, and uses RoutingStyle=SoapServiceRoutingStyle.RequestElement to route the SOAP body...
1
by: John | last post by:
Hi all, I did post this about 10 hours ago thinking I would have received an answer now but it is quite urgent. How do I add a COM object to a web form? I notice there's a primary interop...
18
by: =?Utf-8?B?VG9t?= | last post by:
is it possible to add a bunch of users to group and only allow group to access the web page or do I need to add each user to the web.config file? Or is there another way to do this? I just took...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.