>Hi,
>
>I have a application with this command:
>
>filetostr(my_file)
>
>where my_file is 20 MB.
>
>On my notebook with Win Xp and 1GB RAM works fine but on my server with win2000 and 2GB RAM return the error 'string is too long to fit'.
>
>Any suggestions ?
>
>Thank you
Some VFP functions are limited to 16 MB. I don't know why it works on XP (are you working with the same file in both cases?), but as an alternative for long files, you can use LLFF, or use one of the commands to copy to a DBF (IIRC, it was something like APPEND FROM ... SDF), and process that.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)