GetClipboardText question

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by PB.

Using Text$=GetClipboardText() is good, but what happens if the clipboard can't
be read? Text$ would be NULL, when in reality it should contain something, and
the user may think that the clipboard is empty because the call returned "".

I have found this problem every now and then... I put something in the clipboard
and Text$ will be NULL, but on a second call it returns the text.

So it appears we need some sort of "fail" flag when using this command. Anyone
have any comments on this, in case I'm overlooking something obvious?


PB - Registered PureBasic Coder