Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Technical Support
 Spelling error... not!
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

znakeeye
Tomato Guru

379 Posts

Posted - Aug 29 2008 :  10:45:35 AM  Show Profile  Reply with Quote
strValue.Format("%li", val);

"li" is underlined, but I wouldn't consider this a spelling error!

feline
Whole Tomato Software

United Kingdom
19022 Posts

Posted - Aug 29 2008 :  11:37:49 AM  Show Profile  Reply with Quote
I do not recognise "%li" as a format code.

Ignoring that for the moment, in general how is VA supposed to know that this is not a spelling error? You are passing a format code to a function, but the function might be called myCustomStringFormatter. In general VA has no way of knowing what a given parameter means.

What if the parameter is a SQL select statement?

There are lots of perfectly sensible and valid strings that look like spelling errors unless you understand what the string is doing and actually means. It would be nice to fix this, but I am not sure how that could be done.

Simply ignoring anything after a % sign is not a perfect solution, since the % sign may be part of a literal string, not a formatting command.

zen is the art of being at one with the two'ness
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000