Search found 4 matches
- 13 March 2008, 10:28 AM
- Forum: ZBasic Language
- Topic: PutQueueStr Question
- Replies: 8
- Views: 4565
Re: PutQueueStr Question
Your code is executing correctly - it's probably not what you intended, though. Perhaps you can explain your intent for the sequence below: Call PutQueueStr(outQueue,strGMCP) Call ClearQueue(outQueue) The ClearQueue() call deletes whatever is in the queue, including ...
- 13 March 2008, 8:42 AM
- Forum: ZBasic Language
- Topic: PutQueueStr Question
- Replies: 8
- Views: 4565
Re: PutQueueStr Question
COM1 is opened by default before a program starts to run. If you want to change the baudrate or attach your own queues as you have done, then you need to first close the port using CloseCom. See this thread for an example. Mike, Thanks for the reply. I tried doing that, but it makes no difference i...
- 13 March 2008, 5:32 AM
- Forum: ZBasic Language
- Topic: PutQueueStr Question
- Replies: 8
- Views: 4565
Re: PutQueueStr Question
Don, Thanks for the reply. I ran the code you provided (with a few mods) Sub Main() Dim q(1 to 40) as Byte Dim s as String Call OpenQueue(q, SizeOf(q)) Debug.Print "Before, the queue has "; CStr(GetQueueCount(q...
- 12 March 2008, 11:52 AM
- Forum: ZBasic Language
- Topic: PutQueueStr Question
- Replies: 8
- Views: 4565
PutQueueStr Question
I've checked the docs & can't find an answer to this. When using PutQueueStr, if the string contains Chr(13) (Carriage Return) will that automagically terminate the output, even though there are more characters in the string? My testing indicates that this is true, but I might be missing somethi...