Link to home
Start Free TrialLog in
Avatar of mahmood66
mahmood66Flag for United Arab Emirates

asked on

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
error.bmp
Avatar of GrahamSkan
GrahamSkan
Flag of United Kingdom of Great Britain and Northern Ireland image

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
Avatar of mahmood66

ASKER

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
error1.bmp
ASKER CERTIFIED SOLUTION
Avatar of GrahamSkan
GrahamSkan
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
yes thanx its working i registered xarray.ocx then then in References i checked Apex Xarray Object ....now it did notgive me any error it started working.thanx.
That's pleasing. Thank you for the feedback.