From: PJ M <pjm...@ya...> - 2003-11-14 18:49:01
|
Hi all, When I found that bug, I was actually implementing some error checking. It is based on the following assumption: 1) VI name (containing the saved panel) might be changed in the future 2) Paramater can be added or remove from the panel and in both case, the "read panel from INI" should work (if possible) In the first case, I check the Section Name[] of the INI against the file name and try to get a match or a best match In the second case I check the Keys[] of the INI against the controls name and report to the user if the INI is missing anything so the user can manually finish populating what is missing. Regarding the EOL issue, replacing the EOL by space should be enough. The programmer should be aware of the issue by having two controls/indicators with the same name. Returning a warning in such a case is a possibility as well Philippe Jim Kring <ji...@ji...> wrote: Hello All, Philippe submitted the bug shown in the attached email. It is a problem with variantconfig that effects control names with EOL characters in their names. Philippe suggests a fix by converting EOL characters to a space. I think this is a good fix. This will cause the names to appear as a single line in the INI file. The only possible problem is that there could be a name collision with a control that has the same name. However, LabVIEW also allows controls with the same name so this problem already exists. Hmmm, sounds like we need some error handling... any thoughts? What preconditions should we be testing for? - No two controls can have the same names tested after converting all illegal names to legitimate names (like converting EOLs in control names to spaces.) Any others? -Jim -----Original Message----- From: SourceForge.net [mailto:no...@so...] Sent: Thursday, November 13, 2003 5:25 PM To: no...@so... Subject: [ opengtoolkit-Bugs-841864 ] If a control name is on 2 line, read panel from INI will fai Bugs item #841864, was opened at 2003-11-13 17:25 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=466832&aid=841864&group_id =52435 Category: lib_variantconfig Group: LabVIEW 7.0 (All) Status: Open Resolution: None Priority: 5 Submitted By: philippe guerit (pjm_design) Assigned to: Jim Kring (jkring) Summary: If a control name is on 2 line, read panel from INI will fai Initial Comment: If a control name is on 2 line such as "my control name" read panel from INI will fail because the controls was saved as two different keys on two different lines Possible Fix: when saving key name, scan string for end of line or line feed or carriage return and replace it by a space. The same thing is required when getting the name of the control from the variant ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=466832&aid=841864&group_id =52435 ------------------------------------------------------- This SF.Net email sponsored by: ApacheCon 2003, 16-19 November in Las Vegas. Learn firsthand the latest developments in Apache, PHP, Perl, XML, Java, MySQL, WebDAV, and more! http://www.apachecon.com/ _______________________________________________ OpenGToolkit-Developers mailing list Ope...@li... https://lists.sourceforge.net/lists/listinfo/opengtoolkit-developers --------------------------------- Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard |