Page 3 of 4
Re: Calling a Function
Posted:
Fri Sep 09, 2011 6:33 am
by Slowdown
Hi,
A screenshot how it looks here,
- Schermafbeelding 2011-09-09 om 08.30.02.png (5.05 KiB) Viewed 633 times
btw my IDE is from 2011.07.03
Edit: Sunday sep 11 2011
Did the same in the IDE dated 6/2011
- Schermafbeelding 2011-09-11 om 10.27.23.png (5.02 KiB) Viewed 625 times
The Colors are different but the code is still working.
Re: Calling a Function
Posted:
Fri Sep 09, 2011 10:01 am
by GaryVass
Your release is 7/3/11? All the beta's listed on the site are 6/2011?
Re: Calling a Function
Posted:
Fri Sep 09, 2011 10:38 am
by berndnoetscher
GaryVass wrote:Your release is 7/3/11? All the beta's listed on the site are 6/2011?
Yes, that's true. Slowdown uses a newer inofficial version of the ide, because I have sent it to him to get feedback.
The code editor syntax highlighting is improved.
Re: Calling a Function
Posted:
Fri Sep 09, 2011 2:46 pm
by Slowdown
@Bernd,
sh****** about the feedback will send you an e-mail this evening.
did forget something to report.
@GaryVass,
- Q7Basic_64.png (29.03 KiB) Viewed 631 times
Re: Calling a Function
Posted:
Sat Sep 10, 2011 3:43 pm
by GaryVass
Well, apparently something is changed in the version you have, as I get a different error message when I put a space between the comma and the keyword....
Now I have "missing values" so that may explain why it compiles for you and not me.... Any idea when the next version of the compiler will be posted?
Thanks
Re: Calling a Function
Posted:
Sat Sep 10, 2011 6:29 pm
by Slowdown
Hi,
Can you post the relevant code here as it is now ?
Then i will run it in both IDE and see what the difference is.
Edit:
See a few post above.
Re: Calling a Function
Posted:
Mon Sep 12, 2011 11:07 pm
by GaryVass
I found my error this time.... I had changed to code so many times I had introduced another typo, but I found it and now it compiles.
Thanks!
Re: Calling a Function
Posted:
Tue Sep 13, 2011 5:20 am
by Slowdown
Ok, happy end.
thanks GaryVass.
Re: Calling a Function
Posted:
Tue Oct 18, 2011 8:40 pm
by GaryVass
Ok,
Hate to revist an old topic, but I am stuck on this again... but a different error message:
When I declare the function as:
Public Declare ParseFile As Function
I get a syntax error....
But without declaring the function I receive the error "syntax error or parser error in line 30 in file fromCImport.uiClass" with the following line of code:
ParesFile(sFilePath2, filefl)
I have delcared as Public the variables sFilePath2 As String, and filefl As Integer.
I can post the function if needed, but it is somewhat long. It is in the module with the starting line as:
Public Function ParesFile(FIleName As String, filefl As Integer)
Any suggestions?
Re: Calling a Function
Posted:
Tue Oct 18, 2011 11:47 pm
by Henning
Hi Gary,
Forget the Declare statement.
You are calling a Function without a returnvalue, and not taking care of any supposed returnvalue.
If you don't use a returnvalue, make the Function a Sub.
- Code: Select all
'EITHER
Dim somevar As Boolean (or whatever type returned)
somevar = ModuleName.ParesFile(sFilePath2, filefl)
'********
Public Function ParesFile(FIleName As String, filefl As Integer) As Boolean (or whatever...)
'OR
ModuleName.ParesFile(sFilePath2, filefl)
'*******
Public Sub ParesFile(FIleName As String, filefl As Integer)
'OR
ParesFile(sFilePath2, filefl)
'*******
Global Sub ParesFile(FIleName As String, filefl As Integer)
/Henning