473,463 Members | 1,530 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Control Type and Data Type Abbreviations

124 100+
This might be a dumb question but what is the abbreviation for a subform control? For example, when naming controls you use txt for a textbox, cbo for combobox, lst for listbox, etc. Is there one for subform and if so what? Better yet, is there a reference list somewhere that provides this information? Also, is there one for vba? For example, str = string, lng = long, var = variant, etc. Just want to do things properly!
May 3 '10 #1

✓ answered by TheSmileyCoder

I suppose you could look at this:
Microsoft Naming Conventions for Visual Basic

Myself I don't use those, allthough maybe I should. I started using my own naming convetions, and now its at the point where it seems to cumbersome to switch to Microsofts.
I use: cmb_ for combobox, tb_ for textbox, subFrm_ for subforms, tv_ for treeviews.

For variables I use str, lng, db, allthough I can see where db (double) might get mixed up with db (database).

I think the most important thing is to be as consistent within your own project as possible, and NEVER EVER make code using textbox4564.

3 5820
TheSmileyCoder
2,322 Expert Mod 2GB
I suppose you could look at this:
Microsoft Naming Conventions for Visual Basic

Myself I don't use those, allthough maybe I should. I started using my own naming convetions, and now its at the point where it seems to cumbersome to switch to Microsofts.
I use: cmb_ for combobox, tb_ for textbox, subFrm_ for subforms, tv_ for treeviews.

For variables I use str, lng, db, allthough I can see where db (double) might get mixed up with db (database).

I think the most important thing is to be as consistent within your own project as possible, and NEVER EVER make code using textbox4564.
May 3 '10 #2
bullfrog83
124 100+
Thanks! This is exactly what I was looking for.

For double I've always used dbl so that it wouldn't get confused with db. But I don't normally declare my database in code. I always use CurrentDb. I wonder now if that's a good thing or not?
May 3 '10 #3
TheSmileyCoder
2,322 Expert Mod 2GB
@bullfrog83
I should probably start using dbl for double, it does make more sense, even though, like you I never declare my database in code. I have seen it being done often, but it seems like a waste of time/lines of code to do it that way, when there is the option to just type CurrentDb, which is what I always use. I dont know if anyone works with alot of databases at the same time from the same code, but I dont :)
May 3 '10 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

21
by: Batista, Facundo | last post by:
Here I send it. Suggestions and all kinds of recomendations are more than welcomed. If it all goes ok, it'll be a PEP when I finish writing/modifying the code. Thank you. .. Facundo
13
by: dawatson833 | last post by:
I have several stored procedures with parameters that are defined with user defined data types. The time it takes to run the procedures can take 10 - 50 seconds depending on the procedure. If I...
3
by: Laurel | last post by:
this is driving me crazy. i need to use a form control as a criteria in a select query, and the control's value is set depending upon what a user selects in an option group on the form. the query...
6
by: mbev | last post by:
Is it possible to add more than 65,000 characters in a field in Microsoft Access 2003? With the data type "MEMO" only let me add 65,000 characters. Thanks in advance.
1
by: amitbadgi | last post by:
I am getting the following error while converting an asp application to asp.net Exception Details: System.Runtime.InteropServices.COMException: Data type mismatch in criteria expression. ...
6
by: Mike Hoff | last post by:
I am trying to write a class that will store info about database fields for building UPDATE / INSERT commands later on. I cannot seem to get the sytax correct to pass and store the data type of...
2
by: bloukopkoggelmander | last post by:
Hi all I am getting the following error and it is driving me insane. I just cannot find a fix for it. : You tried to assign the NULL value to a variable that is not a Variant data type. Now...
1
by: =?Utf-8?B?Q2hyaXMgRy4=?= | last post by:
Hey all, I'm coming from the ColdFusion world and am pretty new to .Net2. My issue is, I've got a page where the content (with html formatting included) is stored in a db table field. In MS...
3
by: loisk | last post by:
Hi, Can anyone tell me.... What is the equivalent of "" (blank of string data type) with numeric data type? The default of my numeric data type control is 0, and I'd like trigger the event...
1
by: amit saini | last post by:
Hi I have using back end sql server 2000, fornt end Visual Basic and For reporting using Ms-Word 2000. I have face a problem . In sql server i have using Image type data type and stored a image in...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.