Schmeiß mir mal den Quellcode rüber und markier bitte die Stelle.
Vier Augen sehen besser als zwei
Vier Augen sehen besser als zwei
Local $j = 1
For $j = 1 to $y
$ac = ""
$ac = $ec2[$j]
$ac1 = StringStripWS($ac, 7)
MsgBox(0,"","Nr " & $j & " = " & $ac1)
Local $iIndex = _ArraySearch($V_Actors, $ac1)
If $iIndex = -1 Then
$guid = CeateBinGUID()
$query = 'INSERT INTO V_ACTORS (ID , ATTRIBUTE_VALUE) VALUES (' & $guid & ' , "' & $ac1 & '") ;'
_SQLite_Exec(-1, $query)
_SQLite_QueryFinalize($query)
EndIf
$query = 'SELECT ID FROM V_ACTORS WHERE ATTRIBUTE_VALUE = "' & $ac1 & '" ;'
$iRval = _SQLite_GetTable(-1, $query, $aResult, $iRows, $iColumns)
_SQLite_QueryFinalize($iRval)
$result = _SQLite_Encode($aResult[1])
If UBound($ArrayMIID) > 1 Then
For $i = 1 to UBound($ArrayMIID) - 1
$query = 'INSERT INTO NM_ACTORS (MEDIA_ITEM_ID , ID) VALUES (' & $ArrayMIID[$i] & ' , ' & $result & ') ;'
_SQLite_Exec(-1, $query)
_SQLite_QueryFinalize($query)
Next
EndIf
Next
For $i = 1 to $ec2[0]
Local $ac = $ec2[$i]
Local $ac1 = StringStripWS($ac, 7)
Local $iIndex = _ArraySearch($V_Actors, $ac1)
If $iIndex = -1 Then
$guid = CeateBinGUID()
$query = 'INSERT INTO V_ACTORS (ID , ATTRIBUTE_VALUE) VALUES (' & $guid & ' , "' & $ac1 & '") ;'
_SQLite_Exec(-1, $query)
_SQLite_QueryFinalize($query)
EndIf
$query = 'SELECT ID FROM V_ACTORS WHERE ATTRIBUTE_VALUE = "' & $ac1 & '" ;'
$iRval = _SQLite_GetTable(-1, $query, $aResult, $iRows, $iColumns)
_SQLite_QueryFinalize($iRval)
$result = _SQLite_Encode($aResult[1])
For $i = 1 to UBound($ArrayMIID) - 1
$query = 'INSERT INTO NM_ACTORS (MEDIA_ITEM_ID , ID) VALUES (' & $ArrayMIID[$i] & ' , ' & $result & ') ;'
_SQLite_Exec(-1, $query)
_SQLite_QueryFinalize($query)
Next
$ac = ""
For Each ac as String in ec2
.
.
.
Next