![]() |
【转帖】promptstringoptions和promptdoubleoptions有什么差别
promptstringoptions和promptdoubleoptions有什么差别
www.dimcax.com promptstringoptions和promptdoubleoptions有什么差别 在autodesk官方最新的_net教程(vb_net版)中有以下的代码 dim prname as promptstringoptions = new promptstringoptions("enter employee name") dim prdiv as promptstringoptions = new promptstringoptions("enter employee division") dim prsal as promptdoubleoptions = new promptdoubleoptions("enter employee salary") dim prpos as promptpointoptions = new promptpointoptions("enter employee position or") 'add keywords when prompting for position prpos.keywords.add("name") prpos.keywords.add("division") prpos.keywords.add("salary") 'set the default values for each of these prname.defaultvalue = "earnest shackleton"-------------编译出错 prdiv.defaultvalue = "sales""-------------编译出错 prsal.defaultvalue = 10000.0f 其中promptstringoptions 是没有defaultvalue 属性的。所以编译出错。如何修改? promptstringoptions和promptdoubleoptions有什么差别? [ promptstringoptions用于提示用户输入字符串,promptdoubleoptions则用于提示用户输入数值(double型)。 c#最适合开发autocad,因为它拥有vb容易的特点,却具有vc++的强大功能。 |
所有的时间均为北京时间。 现在的时间是 11:01 PM. |