Fred-
I'm not opening the tables. The only code prior to this is creation of the database.
Dan
>Don't open them first. If they're not open, the ADD TABLE adds them just fine, no message or anything to cause a problem.
>
>>I'm opening up free tables in VFP 9.0 that were created in VFP 6.0
>>and adding them to a database.
>>
>>Below is the code.
>>The commented code, keeps the program from stopping but is not
>>as clean as I would like.
>>
>>
>>lnTotDbfs = ADIR( laDbfs, "*.dbf" )
>>FOR lnCurDbf = 1 TO lnTotDbfs
>> lcDbf = UPPER( ALLTRIM( JUSTSTEM(laDbfs[lnCurDbf, ADIR_FILENAME]) ) )
>> IF NOT (lcDbf == "FOXUSE" OR lcDbf == "FOXUSER" OR lcDbf == "HASPRIMARY" )
>> IF NOT INDBC( lcDbf, "TABLE" )
>> *CLEAR TYPEAHEAD
>> *KEYBOARD 'Y'
>> ADD TABLE (lcDbf)
>> ENDIF
>> ENDIF
>>ENDFOR
>>
>>
>>>>I'm converting data from vfp6 to vfp9.
>>>>I'm getting the following message
>>>>"File < table > will be updated to a new file format, making it unreadable to previous versions of FoxPro. ..."
>>>>
>>>>Is there a way to disable this message?
>>>
>>>Where are you getting this message? I've never seen it.