Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / what is clipboard

Author
Message
ashino
15
Years of Service
User Offline
Joined: 12th Nov 2010
Location:
Posted: 15th Nov 2010 18:22
hello,

i know that a clipboard is a memory, but why do i need to read or save data in the clipboard instead of using read and write in files?
i know that using the clipboard doesnt need to open or close it, but what other benefit i get from using it?

thanx
bergice
19
Years of Service
User Offline
Joined: 5th Jun 2007
Location: Oslo,Norway
Posted: 15th Nov 2010 18:39
You don't "need" to save text to the clipboard instead of writing to files. The clipboard is the data that temporarily stores image or text data for pasting it to somewhere else.

51fa1db0ec7c4af52d93a6f5d0e86bc5

ashino
15
Years of Service
User Offline
Joined: 12th Nov 2010
Location:
Posted: 15th Nov 2010 18:58
thanx bergice
can you give me a simple example of how to use it?
so that i can grasp the use of clipboard and its syntax

Van B
Moderator
23
Years of Service
User Offline
Joined: 8th Oct 2002
Location: Sunnyvale
Posted: 15th Nov 2010 20:25
I often use the clipboard for debugging - like...


load_image("image.png",1)


function load_image(fn$,img)
write to clipboard fn$+" ("+str$(img)+")"
load image fn$,img,1
endfunction

So if an image file is not loaded, I can debug that and find out the file, by pasting the clipboard. It's a little bit like breakpoints, but I find DBPro debugging unreliable, so I tend to use the clipboard for feedback.

Health, Ammo, and bacon and eggs!
ashino
15
Years of Service
User Offline
Joined: 12th Nov 2010
Location:
Posted: 15th Nov 2010 20:52
hmmm interesting, thanx for the help van B

Login to post a reply

Server time is: 2026-07-21 21:12:58
Your offset time is: 2026-07-21 21:12:58