Hi Greg,
I'm not really into COM, but I've read some articles. So, I might be missing something here <g>
>I need help accessing the postdata parameter in the beforenavigate2 event in the web browser control. Apparantly it is a "safearray" datatype that is not native to FoxPro. In all my experiments the data just appears as .NULL. inside FoxPro. Or perhaps breaking into debug mode inside the event is messing it up.
>
I have no idea what was happened. But anyway, I think you already look into MSKB#
Q25619. According to that article, the PostData will contain a data if there is a POST method in the html form. So, empty means there is no POST method.
>My goal is simple. Record/save the data a user fills out in a web form so that the data can be used later to automate the process.
>
I think it's easier to go with VB way first. The PostData is in a SafeArray vbByte format. If the format in VFP is the same with VB (I hope), then you can use BstrFromVector() API. You will get the return pointer to BSTR. Then simply get the characters from that pointer (use sys(2600) or RtlMoveMemory).
Hope it helps a little
Herman