[Gambas-user] Possible bug in 1.0.13?

johnf jfabiani at ...1109...
Fri Feb 24 00:07:16 CET 2006


On Thursday 23 February 2006 13:14, GuruLounge - MailLists wrote:
> I'm attempting to write a function and keep getting the following error:
>
> "wanted float, got string instead".
>
> My function looks like this.
>
> public function AddToFileList(strKey as string, strFile as string) as
> String
>
> dim strType as string
>
> 	strType = "file"
> 	...bunch 'o statements...
>
> 	return strType
> end
>
> Public sub SomeRoutine()
> dim myStr as string
>
> 	...bunch 'o statements...
> 	myStr = AddToFileList(myKey, myFile)
> 	...bunch 'o statements...
>
> end
>
> Is this a bug or am I missing something?
>
> Jeff

A little more info is required.  But first try the debugger and check variable 
before it is used.  It's un-likely that this is a Gambas issue.
John




More information about the User mailing list