>> Re following, Looking at your code, I'd say it is expecting a string >> terminator of 0. So a simple work-around is this: >> >> CLEAR LOCAL >> DIM 255 blank$,urlText$ >> LOCAL FN Urlgetter >> ... >> FOR x = 1 to 20 >> urlText$ = blank$ 'fill string with zeroes >> urlText$ = EDIT$(x) >> stat = FN URLSIMPLEDOWNLOAD(#@urlText$+1,#_nil,dH&,of&,_nil,uc&) >> >> 'blah >> 'blah >> 'blah >> NEXT >> ... >> END FN > >Actually, I'm not sure that works. Replace: > urlText$ = blank$ >with: > urlText$;256 = @blank$ >to be sure. If the goal is to have the string 0-delimited, it's even simpler. Since you have dimmed urlText$ within a CLEAR LOCAL, it will already be filled with 0's, so when you assign urlText$ = EDIT$(x), assuming the length of EDIT$(x) is less than 255, there should already be a 0 at the end of urlText$. I can't say whether that will solve the original problem or not. If I wanted absolute certainty, I would use this: urlText$[urlText$+1] = 0'WARNING: don't use if length can be 255. Also, make sure you haven't set the option to "fill vars with $A5A5 for debugging." 0"0 =J= a y "