Jump to content

Recommended Posts

Posted

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

Posted

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...