c58_4311 0 Posted March 26, 2008 Report Share Posted March 26, 2008 There seams to be some problem in latest version (6.85) of boostbasic when passing string variables in procedures: 'code 0 sub print(a as string) ... ... ... end sub When we assign any string value to the 'a' variable, like print("hello") The value passed to variable 'a' get corrupted. but if we modify the above code into following, we get correct results 'code 1 sub print(a as string) ... ... ... end sub dim x as string(10) x = "hello" print(x) The Code 0 and Code 1, both worked correctly in the perevious version (6.84) of boostbasic. Quote Link to post Share on other sites
c58_4311 0 Posted March 31, 2008 Author Report Share Posted March 31, 2008 Dear Dave please throw some light on this problem. Quote Link to post Share on other sites
Pavel 0 Posted April 3, 2008 Report Share Posted April 3, 2008 This is bug in your code. You need to use string length in function/subroutine arguments too. Change your print declaration to: sub print( a as string(10) ) ... ... ... end sub Regards, Pavel Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You are posting as a guest. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.