PureBasic Forum
http://forums.purebasic.com/english/

A bug with String export function by using tailbite?
http://forums.purebasic.com/english/viewtopic.php?f=26&t=41635
Page 1 of 1

Author:  peterhu [ Wed Mar 31, 2010 7:47 am ]
Post subject:  A bug with String export function by using tailbite?

I found a bug with String export function,for example:
Code:
ProcedureDLL.s TestStr(InputStr.s)
  ProcedureReturn InputStr
EndProcedure


First I Build it to userlib by tailbite,then I call it in next application,for Example:
Code:
InputStr.s="hello"
Debug TestStr(InputStr+"123")


but the debug output is: "hello123hello123"

My PB version is 4.40, Who can tell me what's wrong about it?

Author:  ABBKlaus [ Wed Mar 31, 2010 11:11 am ]
Post subject:  Re: A bug with String export function by using tailbite?

its a known issue, you have to use a variable to hold the result of the function call.

BR Klaus

Page 1 of 1 All times are UTC + 1 hour
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/