VB: Assigning to a Boolean property in Adobe Illustrator, Photoshop
问题 While automating Adobe Illustrator CS3 using VBA I discovered that assigning a Boolean variable to a Boolean property results in assigning False always: Dim New_Path As Illustrator.PathItem Dim v As Boolean ' ... v = True New_Path.Filled = v ' ERROR: New_Path.Filled is False v = False New_Path.Filled = v ' New_Path.Filled remains False Assigning to a constant works fine: Dim New_Path As Illustrator.PathItem ' ... New_Path.Filled = True ' New_Path.Filled is True New_Path.Filled = False ' New