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

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

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