Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Type of images
Message
From
02/10/2006 08:09:12
 
 
To
02/10/2006 07:27:37
General information
Forum:
Visual FoxPro
Category:
Pictures and Image processing
Title:
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01158496
Message ID:
01158515
Views:
31
My point is that with your code .. "images\"+alltrim(str(thisform.text1.value))+(".GIF") +(".jpg") .. you specify a file as .. .value))+(".GIF") +(".jpg") which will result in xxx.GIF.JPG where xx = ....value.

To solve your real problem, you must use adir() to get the complete name of the file, and then use that name.
But if I understand your problem correctly, I would rather use ...picture=getpict()

>Hi,
>
>thank you for reply, i don't know what you mean?
>
>i have folder inside my directory(IMAGES),i have images with names as
>1.jbg
>2.bmp
>3.gif
>4.
>5.
>.
>.
>.
>etc
>
>>Do you try to read the result of your expressions? A picture file will not be named yourfile.jpg.gif, will it?
>>
>>>Hi all,
>>>
>>>any idea to get all images via this code under
>>>i have images type
>>>as bmp , gif , jbg....etc
>>>
>>>
>>>Thisform.Image1.Picture = "images\"+alltrim(str(thisform.text1.value))+(".GIF") && it works
>>>
>>>
>>>Thisform.Image1.Picture = "images\"+alltrim(str(thisform.text1.value))+(".GIF") +(".jpg")&& or and +(".jpg")&& error
>>>
>>>
>>>thanks
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform