Win-Test

for Project:

Welcome to the Bug Tracking System for the Win-Test contest logger. Things to note :

Feel free to report any bugs, however minor. To improve efficiency, please try to be as accurate as possible.

Please don't ask for feature requests here but on the mailing list.

Thanks for your help. Olivier F5MZN and Laurent F6FVY

Task #288 — If a LUA script is called woth no argument, wtArg should be reset to NIL

Attached to Project— Win-Test
Opened by Robert A. Wilson (N6TV) - Sunday, 5 Sep 2010, 9:14am
Bug Report
General
Unconfirmed
No-one
All
Medium
Normal
Current WT-4.x
Undecided
0% complete

wt-dev 4.6.0 Rev. 375 2010/08/17

  1. Create the following LUA script test.wts

    if wtArg == nil then wtApp:MessageBox(\"Arg is nil\", 0, wtCurrentScript) else wtApp:MessageBox(\"Arg is \'\" .. wtArg .. \"\'\", 0, wtCurrentScript) end

  2. SCRIPTS [Enter]

  3. Highlight test.wts, press [Properties], then [Define]
  4. Press F12
  5. Set the argument to \"xxx\" (in quotes)
  6. Set the text command to TEST (no quotes)
  7. Press OK twice
  8. Press F12 to run the script
  9. Message box displays \"Arg is \'xxx\'\"
  10. SCRIPTS [Enter]
  11. Highlight test.wts, press [Properties], then [Define]
  12. Highlight the old argument \"xxx\" with the mouse and press the [Delete] key to remove the argument
  13. Press OK twice
  14. Press F12 to run the script
  15. Bug: Message box still displays \"Arg is \'xxx\'\" instead of \"Arg is nil\".
  16. Type TEST [Enter] to run the script
  17. Bug: Message box still displays \"Arg is \'xxx\'\" instead of \"Arg is nil\".

Since wtArg is a global, it is retaining its value. If a script is called with no argument, wtArg should be reset to nil.

This task depends upon

This task blocks these from closing

Comments (0) | Attachments (0) | Related Tasks (0/0) | Notifications (3) | Reminders (0) | History |