<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><category>pcsoft.us.windev</category><copyright>Copyright 2026, PC SOFT</copyright><lastBuildDate>6 Feb 2015 05:55:00 Z</lastBuildDate><pubDate>6 Feb 2015 04:38:00 Z</pubDate><description>Hi All - can't figure out why this doesn't work - the OpenConnection creates the Database, but It won't create the file. HCreationIfNotFound responds as TRUE in the debugger, but HFileExist returns as False. I am using the HFSQL control center to look at the database, I can create the database, but not the file.&#13;
Any ideas?&#13;
&#13;
Thx, J&#13;
&#13;
//Get the studio Code to assign Data directories&#13;
gpoDB:m_sStudioID = EDT_StudioID //Studio Code like "73"&#13;
IF Length(gpoDB:m_sStudioID) = 0 THEN&#13;
Info("No Studio ID - Enter ID First!")&#13;
RETURN&#13;
END&#13;
&#13;
//Connection Settings to Studio Database&#13;
gpoDB:m_cnxStudioDbase..Provider = hAccessHFClientServer&#13;
gpoDB:m_cnxStudioDbase..User = "Admin"&#13;
gpoDB:m_cnxStudioDbase..Password = "mafa123admin" //"MAFAADMIN123"&#13;
gpoDB:m_cnxStudioDbase..Database = "MAFA_MOM_"+gpoDB:m_sStudioID&#13;
gpoDB:m_cnxStudioDbase..CryptMethod = hCryptNo&#13;
gpoDB:m_cnxStudioDbase..Access=hOReadWrite&#13;
gpoDB:m_cnxStudioDbase..Server = "www.MartialArtsForAmerica.net"&#13;
&#13;
//Open Connection - Also seems to create the database itself&#13;
IF HOpenConnection(gpoDB:m_cnxStudioDbase)=False THEN&#13;
gpoError:CaptureError("Couldn't open connection")&#13;
EndProgram&#13;
END&#13;
&#13;
sListOfFiles is string = HListFile("","",hLstNormal) //Creates List of files found in Analysis&#13;
sFile is string&#13;
iIndex is int&#13;
iIndex=1&#13;
LOOP&#13;
sFile=Upper(ExtractString(sListOfFiles,iIndex,CR))//extract each file&#13;
&#13;
IF sFile=EOT OR sFile="" THEN&#13;
BREAK&#13;
END&#13;
&#13;
IF NOT HCreationifNotFound(sFile) THEN&#13;
gpoError:CaptureError("Error creating File") //Create File if not found in database&#13;
ELSE&#13;
IF HFileExist(gpoDB:m_cnxStudioDbase, sFile) THEN&#13;
Trace(sFile+" Exists")&#13;
END&#13;
END&#13;
END</description><ttl>30</ttl><generator>WEBDEV</generator><language>en_US</language><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/50320-wb19-can-create-files/read.awp</link><title>WB19 - Can't create the Files</title><managingEditor>moderateur@pcsoft.fr (El moderador)</managingEditor><webMaster>webmaster@pcsoft.fr (El webmaster)</webMaster><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/50320-wb19-can-create-files-50321/read.awp</comments><pubDate>6 Feb 2015 05:55:00 Z</pubDate><description>I figured it out every - Had to change the connection of the file before trying to create it!&#13;
&#13;
Duh!</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/50320-wb19-can-create-files-50321/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/50320-wb19-can-create-files-50321/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/50320-wb19-can-create-files/read.awp">WB19 - Can't create the Files</source><title>Re: WB19 - Can't create the Files</title></item></channel></rss>
