Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > .NET General

Vista - octal number

Reply
 
Old 10-23-2009   #1 (permalink)
Phil Hunt


 
 

octal number

I have been asked to send a Oct(6) to a com port. How do I represent that
number ? Is there a shorthand for it ?
Thanks



My System SpecsSystem Spec
Old 10-23-2009   #2 (permalink)
Gregory A. Beamer


 
 

Re: octal number

"Phil Hunt" <aaa@newsgroup> wrote in
news:uImueOBVKHA.1792@newsgroup:
Quote:

> I have been asked to send a Oct(6) to a com port. How do I represent
> that number ? Is there a shorthand for it ?
Most likely a binary 6 is enough if you are truly talking to a COM port. If
you are tlaking to something else through the COM port, then you need to
find what it is actually expecting (6 in octal or a string representation).
More than likely a 6 represented in binary is good enough in this case.

Peace and Grace,


--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

Twitter: @gbworld
Blog: http://gregorybeamer.spaces.live.com

*******************************************
| Think outside the box! |
*******************************************
My System SpecsSystem Spec
Old 10-23-2009   #3 (permalink)
Phil Hunt


 
 

Re: octal number

Thanks. will find out.


"Gregory A. Beamer" <NoSpamMgbworld@newsgroup> wrote in message
news:Xns9CAD95656FC6Fgbworld@newsgroup
Quote:

> "Phil Hunt" <aaa@newsgroup> wrote in
> news:uImueOBVKHA.1792@newsgroup:
>
Quote:

>> I have been asked to send a Oct(6) to a com port. How do I represent
>> that number ? Is there a shorthand for it ?
>
> Most likely a binary 6 is enough if you are truly talking to a COM port.
> If
> you are tlaking to something else through the COM port, then you need to
> find what it is actually expecting (6 in octal or a string
> representation).
> More than likely a 6 represented in binary is good enough in this case.
>
> Peace and Grace,
>
>
> --
> Gregory A. Beamer
> MVP; MCP: +I, SE, SD, DBA
>
> Twitter: @gbworld
> Blog: http://gregorybeamer.spaces.live.com
>
> *******************************************
> | Think outside the box! |
> *******************************************

My System SpecsSystem Spec
Old 10-23-2009   #4 (permalink)
David Anton


 
 

RE: octal number

"&O6" in VB.
"06" in C++.
No shorthand in C#.
--
David Anton
http://www.tangiblesoftwaresolutions.com
Convert VB to C#, C++, or Java
Convert C# to VB, C++, or Java
Convert C++ to C#, VB, or Java
Convert Java to C#, C++, or VB


"Phil Hunt" wrote:
Quote:

> I have been asked to send a Oct(6) to a com port. How do I represent that
> number ? Is there a shorthand for it ?
> Thanks
>
>
> .
>
My System SpecsSystem Spec
Old 10-23-2009   #5 (permalink)
Tom Shelton


 
 

Re: octal number

On 2009-10-23, David Anton <DavidAnton@newsgroup> wrote:
Quote:

> "&O6" in VB.
> "06" in C++.
> No shorthand in C#.
Yes there is - it's the same as C++.

--
Tom Shelton
My System SpecsSystem Spec
Old 10-23-2009   #6 (permalink)
Tom Shelton


 
 

Re: octal number

On 2009-10-23, Tom Shelton <tom_shelton@newsgroup> wrote:
Quote:

> On 2009-10-23, David Anton <DavidAnton@newsgroup> wrote:
Quote:

>> "&O6" in VB.
>> "06" in C++.
>> No shorthand in C#.
>
> Yes there is - it's the same as C++.
>
Never mind... I was mistaken... sheesh.

--
Tom Shelton
My System SpecsSystem Spec
Old 10-24-2009   #7 (permalink)
DickGrier


 
 

Re: octal number

Is 6 the only value you have to send? If so, then this is the same as
decimal 6 or hexadecimal 6. If you need to convert other ranges of values,
then you will need some code -- there are samples available online.

Dick

--
Richard Grier, Consultant, Hard & Software 12962 West Louisiana Avenue
Lakewood, CO 80228 303-986-2179 (voice) Homepage: www.hardandsoftware.net
Author of Visual Basic Programmer's Guide to Serial Communications, 4th
Edition ISBN 1-890422-28-2 (391 pages) published July 2004, Revised July
2006.

My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Re: i need id number Vista mail
Number of "messages" not relating to actual number Live Mail
7z isn't a number PowerShell
Number pad Vista hardware & devices
mac number Vista hardware & devices


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46