Re: newera file selection box
Posted in 1996
In article <4qu8voINN1mn@faatcrl.faa.gov>, mross@offserv2' says... > >Hi all, >I hope someone out there has run into this problem already. >I want to have a file selection box to read in text files. >I thought this would be a trivial task with a built in function. >What I am trying to do is easy to describe. >If you bring up newera and then the windowpainter. >In the windowpainter go to the "File" menu and select "Open" >The box that comes up allows you to specify a file. This is what >I would like to do. You didn't say whether you were using Windows or Motif. I have a bit of an answer for Windows. The file selection box is one of the common dialog boxes built into Windows. In Windows 3.1, it's accessed with the GetOpenFileName() API function call. You can call this or any c function from NewEra the same painful, bloody way you do in 4GL as documented in App. C of the NewEra Language Reference. Or you might try the BEGIN_C and END_C statements that are described in the beginning of the Class Library Integration Kit pamphlet. If you try the latter, let me know how it goes. I haven't had occasion to use it yet myself.