Quantcast
Channel: WinDev Forum
Viewing all articles
Browse latest Browse all 1914

[WD] How to convert this code in Windev ***SOLVED*** (no replies)

$
0
0
Hello to All

First, i'm not able to use .net assembly and i'm asking to the forum if someone can help me in this new adventure :-)

Here is a portion of code in c# that use two dll (MySql.data.dll and MySqlBackup.dll)

//Backup/Export a MySQL Database

string constring = "server=localhost;user=root;pwd=qwerty;database=test;";

// Important Additional Connection Options
constring += "charset=utf8;convertzerodatetime=true;";

string file = "C:\\backup.sql";
using (MySqlConnection conn = new MySqlConnection(constring))
{
    using (MySqlCommand cmd = new MySqlCommand())
    {
        using (MySqlBackup mb = new MySqlBackup(cmd))
        {
            cmd.Connection = conn;
            conn.Open();
            mb.ExportToFile(file);
            conn.Close();
        }
    }
}

Please, can someone help me to "translate" this code to Windev??

Thanks in advance.
Gianni

Viewing all articles
Browse latest Browse all 1914

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>