>Hi Terence,
>
>>Sorry, as I still use VFP 5.0
>>it doesn't support JPG, and thus I use foxhwnd to display JPG/GIF.
>>
>>For some other reason,
>>(so many programs were writen on Select-on-Cursor,
>>which NOT availble at 6.0), I can't upgrade it. :(
>
>Can you please explain what you mean by this? Perhaps with an example.
>
This is another topic.
The following work fine in VFP 5 but in VFP 6.
USE Customer
SELECT * FROM Customer WHERE Cust_id # 20 ORDER BY Cust_id INTO CURSOR TMP
SELECT * FROM TMP WHERE Cust_id # 30 INTO CURSOR TMP2
Of cos, for complex SQL to make a summary table on joining more tables
In VFP6, it needs create free Real Table for furthre SELECT-SQL..
i.e. too much rubbish tmp table and need to clean later..
>>
>>do you have another way to do?!
>>
>>I have test both:
>>Createobject('image') and Createobject('foxhwnd.foxhwndctrl.1')
>>
>>Neither of them can fix my problem.
>
>I guess you'll need to revert to the LLF technique - I think the JPEG standard puts the dimensions of the image in the header area. Do a search here on image dimensions and you should get some details.
>
>>
>>>How about:
>>>
loImg = CREATEOBJECT('image')
>>>loImg.Picture = < my jpg path >
>>>? loImg.Height
>>>? loImg.width
>>>
>>>Cheers,
>>>
>>>Andrew
>>>
>>>>I use GetPict() or GetFile([JPG]) to get the photo path and load it at
>>>>a text field, but I need to find out the real dimension(not assign length and width on Foxhwnd.ocx object!) How to maintain the photo ratio is small show?
>>>>
>>>>Thank you.
The weak wait for chance, The strong bid for chance,
The clever notch up chance, but The merciful give you chance.