Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
'name' cannot be enumerated (Error 1794)
Message
From
05/02/1999 21:59:14
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
'name' cannot be enumerated (Error 1794)
Miscellaneous
Thread ID:
00184624
Message ID:
00184624
Views:
54
A previously functioning vfp 5.0a app has begun failing on all code that includes FOR EACH ... NEXT loop to access a collection of objects returned from a CDO automation object. The collections are collections of folder objects or message recipients. When the program hits the FOR EACH line, the app fails with the error code 1794 :
'name' cannot be enumerated (Error 1794)

Some Example code :
loFoldersColl = loSearchFolder.Folders
IF TYPE('loFoldersColl') = 'O'" AND !ISNULL(loFoldersColl)
FOR EACH loFolder IN loFoldersColl
IF UPPER(loFolder.Name) = lcFolderName
lcFolderID = loFolder.ID
EXIT
ENDIF
NEXT && loFolder
ENDIF

In all instances, the collection is a valid object that contains member items (not an empty collection). The app works fine on 2 other PC's.

TIA for any advice
Bill Sabo
Reply
Map
View

Click here to load this message in the networking platform