乐筑天下

搜索
欢迎各位开发者和用户入驻本平台 尊重版权,从我做起,拒绝盗版,拒绝倒卖 签到、发布资源、邀请好友注册,可以获得银币 请注意保管好自己的密码,避免账户资金被盗
查看: 87|回复: 5

[编程交流] DCL错误

[复制链接]

55

主题

402

帖子

357

银币

后起之秀

Rank: 20Rank: 20Rank: 20Rank: 20

铜币
274
发表于 2022-7-6 06:38:16 | 显示全部楼层 |阅读模式
我被贴在下面代码。。。。
 
再次出错,我试了很多次,但都没发现。。。。
 
谁能帮我解决这个问题,或者给我解决方案。。。。。
 
非常感谢
 
  1. (defun create_dialog ()
  2. (vl-load-com)
  3. (setq fname (vl-filename-mktemp "dcl.dcl"))
  4. (setq fn (open fname "w"))
  5. (write-line
  6. '' Mapsc : dialog {
  7. label = "Default Mapscale Settings";
  8. initial_focus = "";
  9. spacer;
  10. :boxed_column {
  11.    label = "Horizontal Scale";
  12.    alignment = centered;
  13.    width = 25;
  14.    fixed_width = true;
  15. : row {
  16.    fixed_width = true;
  17.    : column {
  18.      width = 25;
  19.      fixed_width = true;
  20.      spacer;
  21.      : text {
  22.        label = "";
  23.        key = "List1";
  24.      }
  25.    }
  26.    : popup_list {
  27.      key = "List2";
  28.      width = 15;
  29.      fixed_width = true;
  30.    }
  31. }
  32. }
  33. :boxed_column {
  34.    label = "Geodetic Parameters Details";
  35.    alignment = centered;
  36.    width = 25;
  37.    fixed_width = true;
  38.    : row {
  39.    fixed_width = true;
  40.    : column {
  41.      width = 25;
  42.      fixed_width = true;
  43.      spacer;
  44.      : text {
  45.        label = "Select Datum";
  46.      }
  47.    }
  48.    : popup_list {
  49.      key = "List3";
  50.      width = 15;
  51.      fixed_width = true;
  52.    }
  53. }
  54. : row {
  55.    fixed_width = true;
  56.    : column {
  57.      width = 25;
  58.      fixed_width = true;
  59.      spacer;
  60.      : text {
  61.        label = "Select UTM Zone";
  62.      }
  63.    }
  64.    : popup_list {
  65.      key = "List4";
  66.      width = 8;
  67.      fixed_width = true;
  68.    }
  69. }
  70. : row {
  71.    fixed_width = true;
  72.    : column {
  73.      width = 25;
  74.      fixed_width = true;
  75.      spacer;
  76.      : text {
  77.        label = "Select Hemisphere";
  78.      }
  79.    }
  80.    : popup_list {
  81.      key = "List5";
  82.      width = 8;
  83.      fixed_width = true;
  84.    }
  85. }
  86. }
  87. spacer;
  88. : row {
  89.    fixed_width = true;
  90.    alignment = centered;
  91.    : ok_button {
  92.      width = 11;
  93.    }
  94.    : cancel_button {
  95.      width = 11;
  96.    }
  97. }
  98. }
  99. '' fn)
  100. (close fn)
  101. )
回复

使用道具 举报

35

主题

2471

帖子

2447

银币

初露锋芒

Rank: 3Rank: 3Rank: 3

铜币
174
发表于 2022-7-6 07:00:27 | 显示全部楼层
你有没有贴出真实的代码,或者什么东西丢了?我这样问是因为你用双引号(“”)来标记字符串,而不是引号(“)。
另外,请注意在字符串中包含引号的方式:
  1. (write-line "Mapsc : dialog {
  2.                  label = [color=red]\[/color]"Default Mapscale Settings[color=red]\[/color]";
  3.                  initial_focus = [color=red]\[/color]"[color=red]\[/color]";
  4.                  spacer;" ...
回复

使用道具 举报

55

主题

402

帖子

357

银币

后起之秀

Rank: 20Rank: 20Rank: 20Rank: 20

铜币
274
发表于 2022-7-6 07:05:01 | 显示全部楼层
非常感谢Mircea的关注,
 
我试图将实际代码从DCL发布到LISP,结果被卡住了
回复

使用道具 举报

35

主题

2471

帖子

2447

银币

初露锋芒

Rank: 3Rank: 3Rank: 3

铜币
174
发表于 2022-7-6 07:21:52 | 显示全部楼层
我理解你代码的逻辑;我指的是包含对话框定义的字符串的格式。
回复

使用道具 举报

55

主题

402

帖子

357

银币

后起之秀

Rank: 20Rank: 20Rank: 20Rank: 20

铜币
274
发表于 2022-7-6 07:29:37 | 显示全部楼层
顺便说一句我根据你的建议修改了代码。。。。。
 
Lisp程序非常适合我。。。。。非常感谢你:D
回复

使用道具 举报

35

主题

2471

帖子

2447

银币

初露锋芒

Rank: 3Rank: 3Rank: 3

铜币
174
发表于 2022-7-6 07:43:23 | 显示全部楼层
很高兴听到问题解决了,萨蒂什!不客气!
回复

使用道具 举报

发表回复

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

  • 微信公众平台

  • 扫描访问手机版

  • 点击图片下载手机App

QQ|关于我们|小黑屋|乐筑天下 繁体中文

GMT+8, 2025-3-10 16:09 , Processed in 0.351421 second(s), 64 queries .

© 2020-2025 乐筑天下

联系客服 关注微信 帮助中心 下载APP 返回顶部 返回列表