Re: Win32Lib: playing .wav usurps normal program flow?

new topic     » goto parent     » topic index » view thread      » older message » newer message

David,

I really don't know how you manage to respond to SO many questions, write
code, work, AND get a hyper 2 year old to bed, but THANKS!  It's a good
thing for a lot of us that you don't also need to sleep! :)

Your suggestion to use:
"setText(Label1, this[1..length(this)-1] & "times ")" to allow displaying
the concatenation of a list item ("this")and quoted text in a label worked
in my program.

  Wolfgang Fritz also suggested the same solution (thanks Wolfgang!), and I
think you had mentioned the possible nature of the problem in an earlier
post, but until I read your last post I had no idea where an extraneous
character could be coming from, so thanks again for both the fix AND the
explanation.

Maybe getItem could be fixed to not pass that trailing "0"?

Dan Moyer

On Fri, 29 Oct 1999 00:10:46 -0700, David Cuny <dcuny at LANSET.COM> wrote:

>Dan Moyer wrote:
>
>>And this snippet displays ONLY the item from the list:
>>     this=getItem(List1,here)
>>     setText(Label1, this & "times ")
>>
>
>My suspicion is that getItem includes a '0' (string terminator in C) at the
>end of the string, so when you pass the concatonated string using setText,
>it looks something like this:
>
>    { ... 0, 't', 'i', 'm', 'e', 's' }
>
>The zero prevents the rest of the string from being seen. You can test it
by
>changing the code to:
>
>    setText(Label1, this[1..length(this)-1] & "times ")
>
>I'll try to check it out myself when I'm not trying to put a hyperactive
>two-year old to bed.
>
>-- David Cuny

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu