How to solve this error msg:compile error:user-defined type not defined

i open the References and checked Apex array object
it gives error in loading dll
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

You will need to set a reference (Project/References) to the library where Xarray is defined.
Ok go to the place where you have you declarations declared and add xaaray as variant or else if you know which type of arry is it just add it as that and it will work as this error occurs when you try to call any object which is not declared or a refrence to that object is missing .
in your case is object is not declared and you are assigning(referencing it to sc_closearray) and as xarray is not existing anywhere in your modure declaration so its giving this error make sure you do global declaration of xarray as variant
this will work
reply if this is not working
mahmood66Author Commented:
This code is working in Other Pc. This is a problem of dll When i go to my references and check the Apex array object then when i click OK it gives Error in loading dll which is shown in my attechment.Plz help
The Ultimate Tool Kit for Technolgy Solution Provi

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy for valuable how-to assets including sample agreements, checklists, flowcharts, and more!

Try registering the dll. I don't know the name, so I am using 'apex' (which could be the right name)

From the Start button, select Run... and then type:
regsvr32 apex.dll

If the file can't be found, check on the working PC for the right name and path.

If that doesn't work, try removing (via Control Panel>Add/Remove programs) and re-installing Apex.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
mahmood66Author Commented:
yes thanx its working i registered xarray.ocx then then in References i checked Apex Xarray Object it did notgive me any error it started working.thanx.
That's pleasing. Thank you for the feedback.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.