REJECTED: WriteDictionary

Please report bugs.

REJECTED: WriteDictionary

Postby Slowdown » Sat Jan 19, 2013 7:37 pm

from the manual,
Function WriteDictionary(Argument As Dictionary, FilePathOrURL As String) As Boolean

But use here,
Code: Select all
WriteDictionary(AppConfig, ConfigFile)

No error's reported and no problems but it isn't correct.
Kind regards,
Slowdown

OSX 10.8.x, VBox Xp, Ubuntu 32/64 bit, EOS 64 bit
Slowdown
 
Posts: 464
Joined: Sat May 01, 2010 7:11 pm
Location: Netherlands

Re: WriteDictionary

Postby Henning » Sun Jan 20, 2013 12:36 am

it isn't correct


What is 'it'?
Isn't the data written as expected, or what?

I've seen that Functions (sometimes/always) need a target for the returnvalue, like:
Dim dummy As Boolean
dummy = WriteDictionary(AppConfig, ConfigFile)

/Henning
Henning
 
Posts: 522
Joined: Fri Aug 13, 2010 6:29 pm

Re: WriteDictionary

Postby Slowdown » Sun Jan 20, 2013 5:53 am

I've seen that Functions (sometimes/always) need a target for the returnvalue

That is what i mean in this case.
I use it without a returnvalue and the compiler isn't complaining.
The function itself works further as expected.
Kind regards,
Slowdown

OSX 10.8.x, VBox Xp, Ubuntu 32/64 bit, EOS 64 bit
Slowdown
 
Posts: 464
Joined: Sat May 01, 2010 7:11 pm
Location: Netherlands

Re: WriteDictionary

Postby berndnoetscher » Mon Jan 21, 2013 8:33 pm

Slowdown wrote:
I've seen that Functions (sometimes/always) need a target for the returnvalue

That is what i mean in this case.
I use it without a returnvalue and the compiler isn't complaining.
The function itself works further as expected.



This is not a bug - it is a feature :-). You may not use a return value.
berndnoetscher
Site Admin
 
Posts: 344
Joined: Thu Mar 25, 2010 9:57 am

Re: REJECTED: WriteDictionary

Postby Slowdown » Mon Jan 21, 2013 8:37 pm

You may not use a return value.

But Q7B isn't complaining if i do use a return value :D
Kind regards,
Slowdown

OSX 10.8.x, VBox Xp, Ubuntu 32/64 bit, EOS 64 bit
Slowdown
 
Posts: 464
Joined: Sat May 01, 2010 7:11 pm
Location: Netherlands


Return to Bug Reports

Who is online

Users browsing this forum: No registered users and 1 guest

cron