Re: Window name in a variable
Posted in 1997
Jacob Salomon said to Unauthenticated >In 4GL, is there any way for a window name to be held as a string value >in a char variable? Here is the code that is failing at run time: No. A window name is translated by the 4GL compiler to a C variable name that is a pointer to an _EFwindow structure (or at least it is in the 4GL versions I've used). There is no easy way to do what you want. In fact, I can't think of any hard ways of hand - you really need to be able to embed C in 4GL. (Which I've done in the past using some kludgy mid-processing in c4gl to pull an "error 'C-Code' '...'" apart, but I don't recommend it :-) ) Mike -- .----------------------------------------------------------------------. | Mike Jagdis | Internet: mailto:mike@roan.co.uk | | Roan Technology Ltd. | | | 54A Peach Street, Wokingham | Telephone: +44 118 989 0403 |