New Function:
_ID3GetTagField($Filename, $sFieldIDRequest)
It will read all the tag info into a buffer and return the requested tag info. If called again it checks the buffer to see if the tag data is there and returns the requested tag info. The file is still only opened once. See the comments for return values and @error and @extended values.
Here is some example code to use it:
$Filename = FileOpenDialog ( "Select Mp3 File", "::{20D04FE0-3AEA-1069-A2D8-08002B30309D}", "Muisc (*.mp3)") $Title = _ID3GetTagField($Filename, "TIT2") ;gets ID3v2 Title $err = @error $ext = @extended MsgBox(0,"$Title",$Title) MsgBox(0,"Error & Extended", "Error: " & $err & @CRLF & "Extended: " & $ext) $Title = _ID3GetTagField($Filename, "Title") ;gets ID3v1 Title $err = @error $ext = @extended MsgBox(0,"$Title",$Title) MsgBox(0,"Error & Extended", "Error: " & $err & @CRLF & "Extended: " & $ext) $Comm = _ID3GetTagField($Filename, "COMM") $err = @error $ext = @extended MsgBox(0,"$Comm",$Comm) MsgBox(0,"Error & Extended", "Error: " & $err & @CRLF & "Extended: " & $ext) _ID3DeleteFiles()
Let me know if there are any bugs.




