Click here to Skip to main content
15,892,697 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Extracting Outlook messages metadata to an Excel spreadsheet Pin
Alex911010-Jul-16 23:58
Alex911010-Jul-16 23:58 
QuestionRe: Extracting Outlook messages metadata to an Excel spreadsheet Pin
Richard MacCutchan11-Jul-16 2:04
mveRichard MacCutchan11-Jul-16 2:04 
AnswerRe: Extracting Outlook messages metadata to an Excel spreadsheet Pin
Alex911011-Jul-16 2:20
Alex911011-Jul-16 2:20 
GeneralRe: Extracting Outlook messages metadata to an Excel spreadsheet Pin
Richard MacCutchan11-Jul-16 2:31
mveRichard MacCutchan11-Jul-16 2:31 
GeneralRe: Extracting Outlook messages metadata to an Excel spreadsheet Pin
Alex911011-Jul-16 3:05
Alex911011-Jul-16 3:05 
QuestionVb Image scaling Pin
Otekpo Emmanuel6-Jul-16 9:32
Otekpo Emmanuel6-Jul-16 9:32 
AnswerRe: Vb Image scaling Pin
Dave Kreskowiak6-Jul-16 10:12
mveDave Kreskowiak6-Jul-16 10:12 
QuestionUDP Protocol Pin
Member 125763031-Jul-16 2:06
Member 125763031-Jul-16 2:06 
Hello and thnx in advance for the help.

I have to send a packet of data, to the network broadcast, using UDP, to get the members of this particular intranet to respond (they are all PLCs).
I know the hex format of the message, say:

""43:44:50:00:01:00:00:00:00:00:00:00:00:ff:00:00:00:00:00:00:00:03:00:06:00:00:00:28:c0:a8:fc:fa:00"

colons are byte separators.
How do I pack it into the command MSG?




VB.NET
Dim myIP as IPAddress = "some.ip.addr.255"
Dim myPort as Integer = someport

private const myCmd as string = "43:44:50:00:01:00:00:00:00:00:00:00:00:ff:00:00:00:00:00:00:00:03:00:06:00:00:00:28:c0:a8:fc:fa:00"
dim HexSplit() as string = split(myCmd, ":")
dim byteCMD as byte() = new byte()

'but then??
'is this the way to proceed?
dim lCounter as integer
for each hS in HexSplit 
   byteCmd(lcounter) = CByte(Val("&H" + hS))
   lcounter += 1
next
udpClient.Connect(myIP, myPort)
mRet = udpClient.Send(byteCmd, byteCmd.length)

QuestionRe: UDP Protocol Pin
Ralf Meier6-Jul-16 4:23
mveRalf Meier6-Jul-16 4:23 
AnswerRe: OT Pin
Richard MacCutchan16-Jul-16 1:33
mveRichard MacCutchan16-Jul-16 1:33 
GeneralRe: OT Pin
Ralf Meier16-Jul-16 10:12
mveRalf Meier16-Jul-16 10:12 
AnswerRe: UDP Protocol Pin
Simon_Whale6-Jul-16 5:08
Simon_Whale6-Jul-16 5:08 
QuestionBarcodes iTextSharp Pin
Petgil2527-Jun-16 9:24
Petgil2527-Jun-16 9:24 
QuestionVB Threading between classes update textbox Pin
saj65526-Jun-16 12:51
saj65526-Jun-16 12:51 
AnswerRe: VB Threading between classes update textbox Pin
Richard Deeming27-Jun-16 3:42
mveRichard Deeming27-Jun-16 3:42 
QuestionExample Lynx Grid Records Save to Database Pin
dongodu26-Jun-16 9:23
dongodu26-Jun-16 9:23 
QuestionLynx Grid Records Save to Database Pin
dongodu26-Jun-16 9:21
dongodu26-Jun-16 9:21 
QuestionWord For Mac 2016 - Set Margins Macro Pin
Member 1260347325-Jun-16 3:26
Member 1260347325-Jun-16 3:26 
GeneralRe: Word For Mac 2016 - Set Margins Macro Pin
Richard MacCutchan25-Jun-16 20:45
mveRichard MacCutchan25-Jun-16 20:45 
GeneralRe: Word For Mac 2016 - Set Margins Macro Pin
Member 1260347326-Jun-16 2:35
Member 1260347326-Jun-16 2:35 
GeneralRe: Word For Mac 2016 - Set Margins Macro Pin
Richard MacCutchan26-Jun-16 2:41
mveRichard MacCutchan26-Jun-16 2:41 
GeneralRe: Word For Mac 2016 - Set Margins Macro Pin
Member 1260347326-Jun-16 3:18
Member 1260347326-Jun-16 3:18 
GeneralRe: Word For Mac 2016 - Set Margins Macro Pin
Richard MacCutchan26-Jun-16 6:11
mveRichard MacCutchan26-Jun-16 6:11 
GeneralRe: Word For Mac 2016 - Set Margins Macro Pin
Member 1260347326-Jun-16 14:07
Member 1260347326-Jun-16 14:07 
GeneralRe: Word For Mac 2016 - Set Margins Macro Pin
Richard MacCutchan26-Jun-16 20:41
mveRichard MacCutchan26-Jun-16 20:41 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.