hal9k
Junior Member
Posts: 87
|
Post by hal9k on May 7, 2023 18:53:54 GMT -5
This is probably simple... I opened a text window to create a report. The user can then use the menu choices to save or print the report. After I've created the report, the text window is positioned at the bottom of the report, perhaps several hundred lines from the beginning. I want the use to see the first page of the report, but I can't find any text commands to "move" to the top of the text. Is there such a command?
Thanks, as always!
|
|
hal9k
Junior Member
Posts: 87
|
Post by hal9k on May 7, 2023 19:32:34 GMT -5
I found a way, but it's *ugly. This is what I used:
firstPage$ = "Page: 1" PRINT #Reports, "!find firstPage$"; PRINT #Reports, "!copy"; PRINT #Reports, "!paste";
It works, but I'm hoping there is a better way.
|
|
|
Post by Rod on May 8, 2023 1:35:50 GMT -5
|
|
hal9k
Junior Member
Posts: 87
|
Post by hal9k on May 8, 2023 11:43:13 GMT -5
Oh, I thought that was to move the window. I'll look closer. Thanks.
|
|
|
Post by xxgeek on May 8, 2023 11:44:49 GMT -5
It's near the end of the page in help under - Text Commands.
You want this line.
Print #Reports, "!origin 0 0"
can also be written
#Reports "!origin 0 0"
|
|
hal9k
Junior Member
Posts: 87
|
Post by hal9k on May 8, 2023 11:53:11 GMT -5
Thanks again, guys. It works great and is MUCH more elegant than the hack I came up with. Don't know why I misinterpreted it to mean moving the window.
|
|