图片形式 [英] Picture In Form

查看:46
本文介绍了图片形式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好

我使用Dbf文件中的图片   图像(C 150)

I Use an image from Dbf file    image (C 150)

现在想要图像不可用,然后使用系统内部的图像 

now want if image is not available then use an image from internal of system 

推荐答案

嗨Kial MD,

Hi Kial MD,

C(150)字段中的图像不能是图像。最重要的是它是一个Path / Filename作为系统某处图像文件的参考。

an image in a C(150) field can't be an image. Best of all it is a Path/Filename as a reference to an image file somewhere on your system.

现在它取决于你如何访问你的表。

Now it will depend on how you access your table.

如果是SELECT语句,您可以检查文件是否存在时是否存在每条记录,如果没有将'cursors列值替换为'抱歉,不可用'图片。

In case of a SELECT statement you can check for each record if the file exists and if not replace the cursors column value with a reference to the 'sorry, not available' pic.

如果您只是使用dbf / table,则不应将图像对象直接绑定到表列。手动分配图像。这样你也可以检查它是否可用,如果不是仅仅支持备用文件。

If you simply USE the dbf/table then you shouldn't bind the image object directly to the table column. Assing the image manually. That way you can also check if it is available and if not just assing the alternate file.

HTH


这篇关于图片形式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆