PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

compile error in "for output as" i can'T handle this..*noob*

:( :( :(
Ok here's my problem ... I got a pocket pc 2002 handheld.
Got Microsoft embedded Visual Tools and PPC 2002 skd installed.. copied an old code from visual basic 5 into this new tool to test around with saving informations to a text file and afterwards read it out again (which worked fine with VB5)

Now here's the code

Private Sub Command2_Click()
' Stupla.txt being scanned!.
Dim ff As Integer
Dim Temp As String
Dim i As Integer
Dim lesen(29) As String
ff = FreeFile
i = 0
Open "\My Documents\organizerfiles\stupla.txt" For Output As #ff

--- Now if i compile this ... it says: Compile error : expect end of argument (or so.. sorry i have the german version)
after pressing the "OK" button on the error message it puts the cursor to the left of "For output as"

I don't know what to do as everywhere people in PPC forums post codes like this and seem to have no problems at all..

Please help me *help* :)
Embedded Visual Basic is not at all the same language as VB5. It's more like VBScript with a form manager.

To manipulate files, you need to use the file system control.

Take a look through the help file that came with evb, you should find a complete language reference and all the information you need.
i assume that you have an "End Sub" at the bottom
thanks im gonna try this !

yes i got an End Sub at the bottom of this... um argument or so...

just want to get this working like it worked on windows 8)

thanks again