[Manifold-l] Problem with Scripts
adamw at manifold.net
adamw at manifold.net
Wed Feb 28 09:06:44 CST 2007
> Is this a bug with Manifold 7x?
No. This is expected behavior.
In 7x, the LastAdded property applies only to exactly the same script object (variable) that was used to add data.
6.5 let you do things like:
Set t = Document.ComponentSet("table")
t.RecordSet.Add ...
' ^ uses a temporary RecordSet object
t.RecordSet.LastAdded ...
' ^ uses another temporary RecordSet object
' different from that in the preceding line
In 7x, you have to rewrite the code as:
Set t = Document.ComponentSet("table")
Set rs = t.RecordSet
rs.Add ...
rs.LastAdded ...
--
Adam Wachowski
Manifold Development Team
More information about the Manifold-l
mailing list