Code: Select all
ProcedureDLL TB_Test(*String.s)
Debug *String.s
EndProcedure
TB_Test(@"Hello!")
Moderators: gnozal, ABBKlaus, lexvictory
Code: Select all
ProcedureDLL TB_Test(*String.s)
Debug *String.s
EndProcedure
TB_Test(@"Hello!")
Code: Select all
ProcedureDLL TB_Test(*pString.String)
Debug "Pointer: " + Str( *pString )
Debug "String: " + *pString\s
EndProcedure
TB_Test(@"Hello!")
Code: Select all
Select rv$
Case "b":
ImportFunction()\RetValue$ = "Byte"
Case "w":
ImportFunction()\RetValue$ = "Word"
Case "l":
ImportFunction()\RetValue$ = "Long"
Case "f":
ImportFunction()\RetValue$ = "Float"
Case "q":
ImportFunction()\RetValue$ = "Quad"
Case "d":
ImportFunction()\RetValue$ = "Double"
Case "s":
ImportFunction()\RetValue$ = "String"
Default
ImportFunction()\RetValue$ = "Long"
EndSelect
I made a very long post about this but it seems to have disappeared. My post is simply in regards to unexpected functionality. It's not mirroring the same behavior as PureBasic, which is unexpected.lexvictory wrote:@Mistrel: wasn't it discussed in one of your bug reports that a pointer with .s at the end doesn't make sense? (I'm not sure I kept reading the posts)