Enscript v6 to v7 e...
 
Notifications
Clear all

Enscript v6 to v7 errors

2 Posts
2 Users
0 Reactions
819 Views
(@scythe)
New Member
Joined: 12 years ago
Posts: 2
Topic starter  

I recently am trying to do a simple enscript to do pre-processing for encase to get the OS installation date. Have been googling for awhile but the codes i could find are all for v6 or below and after trying out on encase v7 there is an error with the part c.EntryRoot saying that it does not belong with the case class c. As this is my first time touching on enscript i'm facing quite a few difficulties so if somebody could try to enlighten me i will be real grateful.


   
Quote
 WMIF
(@wmif)
Active Member
Joined: 14 years ago
Posts: 7
 

The EntryRoot() property doesn't exist anymore. The entry objects are now exposed through a class called ItemIteratorClass.

v6 was like this

forall (EntryClass entry in c.EntryRoot()) {
// do something
}

v7 is like this

ItemIteratorClass iter(c);
while (EntryClass entry = iter.GetNextEntry()) {
//do something
}

Check out the enscript help file in the help menu and you will find ItemIteratorClass in the list on the left. There is more example code all over that help file.


   
ReplyQuote
Share: