Unfortunately, Tommy did not provide enough of his code to identify the problem clearly, but from what he has posted I would suggest that his variable hEdit& is not GLOBAL - therefore it will be classed as a LOCAL by default, and hence it will contain zero instead of the window handle to an edit control.
The easiest way to handle this is to use the GetDlgItem() API to get the handle to a control based on it's ID number - which PowerGEN will have defined already for him. For example:
Code:
Text$ = "some text" SetWindowText GetDlgItem(hDlg&, %ID_EDIT1), Text$
------------------
Lance
PowerBASIC Support
mailto:[email protected][email protected]</A>
Leave a comment: