hi, yeh great, thanks! once i played around a bit i got it. but i don't quite understand why the line before the End Loop actually works. reading the help i understood that the searchString (2) would be replaced by the replaceString (9999), but it seems to be replacing values 1-9999 with 2-9999 in the SCRATCH field...? i mean, i'm happy 8-) but would just like to "get it".

Set Field "SCRATCH" [ Substitute ( PHOTOS ; "; " ; "¶" ) ]
Loop
  Exit Loop If [ IsEmpty ( SCRATCH )
Open URL [ "www" & Substitute ( LeftValues ( SCRATCH ; 1 ) ; "¶" ; "" ) & ".jpg" ]
  Set Field [ SCRATCH ; MiddleValues ( SCRATCH ; 2 ; 9999 ) ]
End Loop


Variables are an 8 thing, use a global field instead
Also GetValue came out after FM7 (8.5 if memory serves); use Substitute ( LeftValue (theField ; 1) ; "¶" ; "" ) instead

Reply via email to