Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

copy memory

Status
Not open for further replies.

shanley06

Programmer
Nov 26, 2002
101
US
i was wondering if there was a way to take all of the memory from an array and put it on the screen directly. I have an array declared as

dim vscreen%(3200)

and i edit the memory in the array like

def seg=varseg(vscreen%)
poke varptr(vscreen%)+x+(y*320),col
def seg

where x and where are the coordinates of the point and col is the color. I was wondering if there was a way to take all of the memory from that array and put it directly on the moniter.
 
Check the PUT statement (Graphics) . That may be what you want.

 
i already know about PUT, i want a way to also copy the information from one array to another also. say i would just put in the sgment and offset for the two memory locations and it would just dump all the data into it.
 
You might take a look at thread314-404524. I shows a way to quickly save arbitrary memory blocks (outside of QB space) to a file and restore them to a given segment/offset (say... a display page). It should take only a small stretch of imagination to modify the code to do what you desire.
vcn.gif

Bozo: "You're never a loser on the Bozo show, you're just an almost winner."
Kid: "Cram it, clown!"
Bozo: "That's a Bozo no-no."
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top