|
| How to verify if an item exists in a data file? |
| Iniciado por shadow.sfx.sv, 05,may. 2015 04:25 - 1 respuesta |
| |
| | | |
|
| |
| Publicado el 05,mayo 2015 - 04:25 |
I'm making a program that will import data from several foxpro databases to mysql and i am using a single data source. The problem is that sometimes an item exists and sometimes it doesn't, is there a way to verify if an item exists ? if i try to access the item and it doesn't exist it throws an exception and the execution of the program stops but i would just like it to skip that one item and continue with the rest. How can that be accomplished? thank you. |
| |
| |
| | | |
|
| | |
| |
| Publicado el 05,mayo 2015 - 13:41 |
Hi Mauricio,
if by item you mean a field in your foxpro DB, then you can simply encapsulate your access to this item in a when exception/do nothing/end
Best regards
-- Fabrice Harari International WinDev, WebDev and WinDev mobile Consulting
Already there: WXShowroom.com, WXReplication (open source) Coming soon: WXEDM (open source) More information on http://www.fabriceharari.com
On 5/4/2015 8:25 PM, Mauricio Ramirez wrote:
I'm making a program that will import data from several foxpro databases to mysql and i am using a single data source. The problem is that sometimes an item exists and sometimes it doesn't, is there a way to verify if an item exists ? if i try to access the item and it doesn't exist it throws an exception and the execution of the program stops but i would just like it to skip that one item and continue with the rest. How can that be accomplished? thank you. |
| |
| |
| | | |
|
| | | | |
| | |
|