View Single Post
Old 4th December 2009, 10:55   #5  |  Link
stax76
Registered User
 
stax76's Avatar
 
Join Date: Jun 2002
Location: On thin ice
Posts: 6,837
How does this look then (besides from being basic code ;-) ?:

Code:
Case "dga"
    Using f = File.OpenText(p.SourceFile)
        If f.ReadLine().StartsWith("DGAVCIndexFile") Then
            p.AvsDoc.SetFilter("Source", "AVCSource", "AVCSource(""%source_file%"")")
        Else
            p.AvsDoc.SetFilter("Source", "DGMultiSource", "DGMultiSource(""%source_file%"")")
        End If
    End Using
Case "dgv", "dgm"
    p.AvsDoc.SetFilter("Source", "DGMultiSource", "DGMultiSource(""%source_file%"")")
stax76 is offline   Reply With Quote