You are not logged in.

  • "cologneskater" started this thread

Posts: 2

Date of registration: Jun 27th 2009

  • Send private message

1

Saturday, June 27th 2009, 2:01pm

Beta 1.4.2: Call Close(hFile) funktioniert nicht mehr

Hallo,

nach dem Update erscheint eine Fehlermeldung beim Umwandeln der Codezeile

Call Close(hFile)

"Es existiert keine Methode 'Close' mit dieser Signatur!"

Mein Programm öffnet eine Textdatei und liest einige Zeilen Text ein. Dann wird die Datei geschlossen und eine Verarbeitung gestartet. Das Umwandeln klappt jetzt wegen der Fehlermeldung nicht mehr.

Hat sich der Syntax geändert?

Grüße
Günter

This post has been edited 1 times, last edit by "cologneskater" (Jun 27th 2009, 4:20pm)


A1880

Intermediate

  • "A1880" is male

Posts: 500

Date of registration: Jan 1st 2009

Location: Hanover, Germany

Occupation: Software Engineer

Hobbies: Hilbert Curves

  • Send private message

2

Saturday, June 27th 2009, 2:43pm

Hallo,
folgendes funktioniert bei mir:

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Public Sub Command1_Click()
   Dim hFile As VBFileHandler 
   Dim fileName As String
   
   fileName = system.getenv("TMP") & "\test1.tmp"
   
   hFile = open(fileName)
   
   hFile.writeString "ein Test"
   
   hFile.close 
   
   hFile = open(fileName)
   
   msgbox hFile.Filename & ": " & hfile.readLine 
   
   hFile.close 
   
End Sub


Merkwürdigerweise kann ich neuerdings in Jabaco keinen Backslash "\" mehr eingeben.
Als Workaround gebe ich Alt 92 über den Nummernblock ein.

Gruß!

A1880

  • "cologneskater" started this thread

Posts: 2

Date of registration: Jun 27th 2009

  • Send private message

3

Saturday, June 27th 2009, 4:22pm

Hallo A1880,

vielen Dank für die Hilfestellung, hFile.Close funktioniert! :thumbsup:

Grüße
Günter

Rate this thread
WoltLab Burning Board