需要什么样的物体? [英] What kind of object is required?

查看:67
本文介绍了需要什么样的物体?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

帮助!我几乎在那里,但坚持这一点。我正在编写脚本来生成一个ics文件来导出iCal会议事件。在第16行,我得到项目不在集合中。我该怎么做才能纠正这个问题? (注意:strdescription不是rst2记录集中的字段。我想创建这个临时动态字段并在文本文件中引用它来描述。)

Help! I''m almost there but stuck on this. I am writing script to produce an ics file to export iCal meeting events. On line 16 I get "Item not in collection". What must I do to correct this? (Note: strdescription is not a field in the rst2 recordset. I want to create this temp on-the-fly field and refer to it in the text file for the Description.)

展开 | 选择 | Wrap | 行号

推荐答案

您的问题是否发生在第12行?


这看起来很奇怪。如果rst没有正确设置,那么我预计在第12行之前会出现错误。
Is your problem occurring on line #12?

That seems weird. If rst is not correctly set then I would expect an error before line #12.


不,它发生在第16行。实际上它说项目不在集合中。 ;
No, it''s occurring on line 16. Actually it says "Item not in collection."


如果您的错误在第16行,那么,要进行故障排除,我会将该行分成三行,以确定导致问题的字段(名称,标题或电子邮件)。


作为附注,我尽量不使用保留字(例如Name)作为字段名称。有时候这可能会导致代码混乱和含糊不清。
If your error is in line 16, then, to troubleshoot, I would break that line into three lines, to determine which field (Name, Title or email) is causing the problem.

As a side note, I try to never use reserved words (such as "Name") for field names, if at all possible. There are times that this can cause confusion and ambiguity in your code.


这篇关于需要什么样的物体?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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