n9mfk9 Posted April 25, 2005 Posted April 25, 2005 hi all can the file open an filewite be put in a Function what i am trying to do is get one if mod to work for the open and wite thanks for any ideas Dim $omUIV $omUIV = ObjCreate("UIView32.clsUIV") MsgBox(0, "", "TEST" &$omUIV.intStationCount ) Dim $file $file = FileOpen("yourIncludeFile.js", 2) ; Check if file opened for writing OK If $file = -1 Then MsgBox(0, "Error", "Unable to open file.") Exit EndIf If mod(@min, 5) = 0 Then FileWrite($file, "var number="&$omUIV.intStationCount) FileClose($file) endif
megahyperion Posted April 26, 2005 Posted April 26, 2005 If your asking if the filewrite can be triggered from within a function then the answer is yes. pseudo code function() func function() filewrite("blah bla") endfunc would work
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now