Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 Spelling error... not!

You must be registered to post a reply.
Click here to register.

Screensize:
UserName:
Password:
Format: BoldItalicizeUnderlineStrikethrough Align leftCenterAlign right Insert horizontal ruleUpload and insert imageInsert hyperlinkInsert email addressInsert codeInsert quoted textInsert listInsert Emoji
   
Message:

Forum code is on.
Html is off.

 
Check to subscribe to this topic.
   

T O P I C    R E V I E W
znakeeye Posted - Aug 29 2008 : 10:45:35 AM
strValue.Format("%li", val);

"li" is underlined, but I wouldn't consider this a spelling error!
1   L A T E S T    R E P L I E S    (Newest First)
feline Posted - Aug 29 2008 : 11:37:49 AM
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.

© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000