Well I am used to VB6 or something either that or i forgot how to program in Visual Basic. I have a modual named mdlDataInput and in there I have a public function named Main_Config(). Now in VB 6 I remember I could just go
and it would open the file just fine. Now it says some crap about a namespace and what not so i added this and it still does't work, it also gives me some problems about the app command. Can someone help me out.Code:open app.path + "\Main Config.ini" for input as #1
Code:Module mdlDataInput Public Function Main_Config() Dim open As Microsoft.VisualBasic ' OPEN THE MAIN_CONFIG.INI FOR INPUT open app.path + "\Main Config.ini" for input as #1 End Function End Module




Reply With Quote