Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Comm Port access
Message
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Miscellaneous
Thread ID:
00231862
Message ID:
00233832
Views:
44
I really appreciate your help! I am getting there slowly. A few more questions.
If I am doing this connection and text data retreival programmatically, 1.Wouldn't the MyWrapper.prg get overwritten each time the code ran?
2. I am at a dilemma on where this code goes for (the oMSCOMM & oVFPCOM),
is the define class DMSCommEvents put in the init?
There is an article at support.microsoft.com/support/kb/articles/q140/5/25.asp that uses the MSComm32.ocx for a serial connection. Again, I get the portopen property to true, but the CommEvent buffer is empty.

Maybe I am defining my classes wrong. Should I be writing in my main.prg
or the init of a form?
DEFINE CLASS ComConn CUSTOM OLEPUBLIC
PROCEDURE OnComm
with this
.commport=1
.settings="9600,e,7,1"
.portopen=.t.
.rthreshold=1
endwith

if this.CommEvent>2
thisform.pBuffer=thisform.pBuffer+this.input
endif
endproc

Then hold do I get the buffer to text file..mytext.dat, in either case?

As you can see "I am going to figure this out". I apprecioate your patience.
Thanks, Chuck
Extreme Programming = Plan -> Design -> Code -> Test
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform