Hi everybody!
I have a code that copy an image on my form to clipboard using gdiplus.
I make something like this
#Define CF_BITMAP 2
Declare Long LoadImage in User32;
Long hInst, String cFilename, Integer nType, ;
Integer cxDesired, Integer cyDesired, Integer fuLoad
loImage...
Hi and thank you for your replies!!
foxincloude has right, the problem is solved if I make a GO TOP after the COPY command
I didn't notice the cursor was in EOF and since my cursor is only one row the GO TOP command is enough!
Thank you all!
Hi to everyone!!
I have a problem with my visual foxpro application that I can't solve...
I have a cursor named mycursor which I create with
CREATE CURSOR mycursor (FieldA N,...)
Then I make an insert like this
INSERT INTO mycursor;
SELECT * FROM mycursor2
mycursor is also bounded to some...
Thank you Mike for the response.
So why when you programmatically set the value 10.129999 it shows 10.13 ?
I can't use the ROUND() because the control is buonded to a cursor and in the cursor I need all the decimal digits.
Thank you
Hi,
I have a text field with an input mask like this ###,###,###.## and I can't understand the behaviour in rounding values in this case.
If the value of the field is, for example, 10.129899 then it shows 10.12 but if the value is 10.129999 it shows 10.13.
So, in which case VFP rounds values?
I...
Thank you Olaf,
you're absolutly right! You have to remove focus from grid, I've call setFocus on another control before launching querys and now I got expected behavoiur.
I also confirm that calling grid.valid() is not enough, you need to really remove the focus from it.
Thank you all!
Bye...
Thank you Mike!
The cursor currett is created as follows
CREATE CURSOR curRett (Enabled L,selected L,cd_ar c(20),descrizione C(80),cd_arlotto C(20) NULL,qtaAtt N(18,8) NULL,qtaRilev N(18,8) NULL,qtaRett N(18,8) NULL)
Data are inserted into it with instruction like
INSERT INTO curRett ;
SELECT...
Thank you very much Mike!
The code that you suggested me actually works!!
So I don't think that the problem is the focus. As I said if I print currett.selected I return false so the cursor already has the correct value.
Maybe this new similar problem could try to found a solution. If I run (in...
Hi to all,
I'm a quite new programmer in VFP and I'd like to submit you a strange behaviour that I encounter using cursor.
Let's say I have a cursor (populated scanning a file, so I've no dbf) that is a record source for a grid.
This cursor has a field named selected, logical type. I use this...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.