12-28-2010, 11:27 AM
Okay, well lets just assume that the textboxes are called capturebonus, normalbonus, and time.
I think this is what you were looking for! <!-- s --><img src="{SMILIES_PATH}/icon_e_biggrin.gif" alt="" title="Very Happy" /><!-- s -->
Code:
if my.computer.filesystem.fileexists(my.application.info.directorypath + "/map.ini") then
my.computer.filesystem.deletefile(my.application.info.directorypath + "/map.ini")
end if
dim writer as new system.io.streamwriter(my.application.info.directorypath + "/map.ini")
writer.write("Object TechOilDerrick" + vbNewLine + "ReplaceModule ModuleTag_04" + vbNewLine + "Behavior = AutoDepositUpdate ModuleTag_04_Override" + vbNewLine + "DepositTiming = " & time.text + "00" + vbNewLine + "DepositAmount = " + normalbonus.text + vbNewLine + "InitialCaptureBonus = " + capturebonus.text + vbNewLine + "End" + vbNewLine + "End" + vbNewLine + "End"
writer.close()
I think this is what you were looking for! <!-- s --><img src="{SMILIES_PATH}/icon_e_biggrin.gif" alt="" title="Very Happy" /><!-- s -->