File operations don't work for me
Hello Manuel.
Thank you very much for your work. This is the program for that I was waiting.
When I try to translate a program, file operations like; "Open", "Close", "Dir", etc. return a error.
Best regards from Spain.
Thank you very much for your work. This is the program for that I was waiting.
When I try to translate a program, file operations like; "Open", "Close", "Dir", etc. return a error.
Best regards from Spain.
This post has been edited 1 times, last edit by "juan" (Dec 14th 2008, 9:03pm)
Re: File operations don't work for me
Of course:
If Dir(file) <> "" Then '<- Compile error. Class: 'declara' line: 290. Function or variable not defined!
(Jabaco highlights the "Dir" word )
Close #1 ' <- Compile error. Class: 'declara' line: 360. Function or variable not defined!
(Jabaco highlights "#1")
Open file For output as #1 ' <- Compile error. Class: 'declara' line: 361. Expected: End of statement
(Jabaco highlights the "For" word )
Thank you.
If Dir(file) <> "" Then '<- Compile error. Class: 'declara' line: 290. Function or variable not defined!
(Jabaco highlights the "Dir" word )
Close #1 ' <- Compile error. Class: 'declara' line: 360. Function or variable not defined!
(Jabaco highlights "#1")
Open file For output as #1 ' <- Compile error. Class: 'declara' line: 361. Expected: End of statement
(Jabaco highlights the "For" word )
Thank you.
ok - the qbasic / visual basic implementation is not-so-clean in my opinion. i changed the syntax a little bit:
|
|
Jabaco Source |
1 2 3 4 5 6 7 8 9 10 11 |
Public Sub Command1_Click() Dim myFile As VBFileHandler ' write myFile = Open("C:\test.txt", Random, ReadAndWrite, Shared) Call write(myFile, "testtesttest") Call Close(myFile) 'read myFile = Open("C:\test.txt", Random, ReadAndWrite, Shared) MsgBox readline(myFile) Call Close(myFile) End Sub |
Quoted
Hello Manuel.
I have a new problem; when I try to show a form:
frmSplash.Show '<- Compile error. Class: 'declara' line:379. Expected Static method
I suppose, I should make no more questions, and wait the Jabaco Documentation. isn't it?![]()
Best regards.
you try to call a class, but you need a instance for the class. try:
|
|
Jabaco Source |
1 2 |
Dim mySplash As New frmSplash mySplash.Show() |
i'm thinking about a documentation and i will publish a system to do that very soon. will be very cool if you could write down your problems and make a documentation for other users
Similar threads
-
Suggestions »-
Translate Jabaco into your native language
(Nov 25th 2008, 3:53am)
-
Tips, Tricks, Samples & Tutorials »-
Create a signed Jar-file
(Nov 26th 2008, 1:54pm)
-
History & News »-
RELEASE: Jabaco 1.4.0 BETA - 2008-11-18
(Nov 21st 2008, 8:52pm)
-
Tips, Tricks, Samples & Tutorials »-
Deploying Software with Java Network Launching Protocol (JNLP)
(Nov 26th 2008, 2:31pm)
