devxlogo

Variant Naming Specification

Question:
I know a recordset object should be named rstName, but don’t know all about variant naming specifications. I looked for it on MSDN for a long time, but couldn’t find it.

Answer:
A common prefix is vnt, but I tend to not use that. When I’m using Variants in VB, it’s often to hold date/time values, so in that case, I’ll prefix the variable with dat. The specific prefix really isn’t that important as long as you’re consistent in your naming.

Charlie has over a decade of experience in website administration and technology management. As the site admin, he oversees all technical aspects of running a high-traffic online platform, ensuring optimal performance, security, and user experience.

See also  How Engineering Leaders Spot Weak Proposals

About Our Editorial Process

At DevX, we’re dedicated to tech entrepreneurship. Our team closely follows industry shifts, new products, AI breakthroughs, technology trends, and funding announcements. Articles undergo thorough editing to ensure accuracy and clarity, reflecting DevX’s style and supporting entrepreneurs in the tech sphere.

See our full editorial policy.