473,395 Members | 1,774 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

How to decalre this in VB.net

How do I deckare this in VB.net

static const BYTE baEnableScan[ 2] = {0x5A,0x18};

static const BYTE baDisableScan[2] = {0x5A,0x19};

static const BYTE baResetCmd[ 2] = {0x5A,0x00};

Thanks
Nov 20 '05 #1
2 988
In article <#H**************@TK2MSFTNGP11.phx.gbl>, cp@swa.com says...
How do I deckare this in VB.net

static const BYTE baEnableScan[ 2] = {0x5A,0x18};

static const BYTE baDisableScan[2] = {0x5A,0x19};

static const BYTE baResetCmd[ 2] = {0x5A,0x00};


I think it would be:

Shared baEnableScan as Byte(1) = new Byte() { &h5a, &g18 }
etc...

--
Patrick Steele
Microsoft .NET MVP
http://weblogs.asp.net/psteele
Nov 20 '05 #2
* "Carlos" <cp@swa.com> scripsit:
How do I deckare this in VB.net

static const BYTE baEnableScan[ 2] = {0x5A,0x18};

static const BYTE baDisableScan[2] = {0x5A,0x19};

static const BYTE baResetCmd[ 2] = {0x5A,0x00};


\\\
Public ReadOnly baEnableScan() As Byte = {..., ...}
///

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 20 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: WhyteWolf | last post by:
I'm trying to set a object as global for access through out the rest of my script ... {a basic SQL accessing object} however if I try calling the object from with in another object it acts as if it...
7
by: John | last post by:
Hi, I'm looking for the best way to deal with globals in PHP. As a 'C' software developer, I would normally avoid all globals and not have any at all, but use structs and pass everything in...
1
by: aToaster | last post by:
Hi guys, new to the forums. I'm starting to learn python and tkinter. I started off by trying to make a simple calculator program and I need to pass the calcTotal variable in and out of the...
4
by: Michael Haas | last post by:
Need some hwlp with comparing a date field retrieved from an access date base to the current date. Basically I'm looking to create and if statement like: If strArticleDate < = Current Date then...
7
by: Tim Clacy | last post by:
Is there such a thing as a Singleton template that actually saves programming effort? Is it possible to actually use a template to make an arbitrary class a singleton without having to: a)...
2
by: Sugus | last post by:
I'd like to declare a cursor, which accepts parameters also for the "FROM" tablename-clause, like: CURSOR cFielddef(pfromTable IN ?????, pTableName IN VARCHAR2) IS SELECT column_name, data_type,...
1
by: Santhoshi | last post by:
I want to declare an event, a delegate and the event handler in the same form/Class and handle the events concept/functionality. I know to decalre an event and a delegate in a different class and...
14
by: Fritz Foetzl | last post by:
I'm flummoxed. I'm a veteran C++ programmer from the Unix/Linux camp, trying to learn Visual C++. I'm trying to build a project in which I need to include one header in a couple of different files,...
2
by: Steve Turner | last post by:
I have read several interesting posts on passing structures to C dlls, but none seem to cover the following case. The structure (as seen in C) is as follows: typedef struct tag_scanparm { short...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.