hi all
i'm trying to get MSComm object to work with setVariable using the flashOCX
I have had partial cuccess except:
when I try to feed MSComm input into flash it does it in chunks, here's the sub in question..
so if the input is 1,2,3,4,5 the message box will bring up 1,2,3,4 and then ,5 in 2 seperate parts.. this defeats the purpose because i'm overwriting the "content" variable in flash, not accumulating it..Code:Private Sub MSComm1_OnComm() Dim strNewChar As String Select Case MSComm1.CommEvent Case comEvReceive strNewChar = MSComm1.Input End Select MsgBox strNewChar ShockwaveFlash1.SetVariable "content", strNewChar End Sub
I want all of the MSComm1.Input buffer to be fed into "ontent" using setVariable..
I've tried many different ways .. it's no go... even tried this:
same thingCode:Private Sub MSComm1_OnComm() Dim strNewChar As String Select Case MSComm1.CommEvent Case comEvReceive While (MSComm1.InBufferCount > 0) strNewChar = strNewChar & MSComm1.Input Wend End Select MsgBox strNewChar ShockwaveFlash1.SetVariable "content", strNewChar End Sub
Any Ideas Anyone
That would be great..
Thanks in advance
MikeP




Reply With Quote