Hi all,

In 4D v15.5, this code is working flawlessly:

$ref:=DOM Create XML Ref("settings-import-export")
DOM SET XML 
ATTRIBUTE($ref;"table_no";$Current_LB_table;"format";"4D";"char_display_format";"decimal";"platform";"automatic";"import_mode";"create")
  //
  // Definition of fields to export
For ($j;1;Get last field number($Current_LB_table))
If (Is field number valid($Current_LB_table;$j))
$elt:=DOM Create XML 
element($ref;"field";"table_no";$Current_LB_table;"field_no";$j)
End if 
End for 

IMPORT DATA("";$ref)


However, If I use it in 4D v16R5,  the ‘Import Data’ command does not open the 
file dialog, but returns ok=0?

Has anything changed?


Regards,

Rudy Mortier
Two Way Communications bvba 



**********************************************************************
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:[email protected]
**********************************************************************

Reply via email to