| |
KB Article |
|
|
Bryan Valencia
|
1. A 10 Minute C# Console Application Quick Start
This will show how to make a "hello world" console application in Visual Studio 2008 with C#. Let VS.Net do the work and create a new console application using the menu. Use Console.WriteLine and Console.ReadLine for simple input and output.
55 months ago, and updated 53 months ago
|
 Article
 6351 Hits
|
 C# (Visual C# & VS.Net)
|
Stephen Berry
|
2. Applying the Built-in ASP.NET User-Login Functionality to Your Database
Using aspnet_regsql.exe to set up a database to support the functionality of ASP.NET 2.0's built-in membership.
58 months ago, and updated 56 months ago
|
 KB Post
 2128 Hits
|
 C# (Visual C# & VS.Net)
|
Wes Peterson
|
3. Book: Delphi 2007 for Win32 Development Essentials
http://www.lulu.com/content/2064073
|
 Link
 2165 Hits
|
 Pascal and Delphi Coding
|
Wes Peterson
|
4. Book: Delphi 2007 Handbook
http://www.lulu.com/content/1069254
|
 Link
 2160 Hits
|
 Pascal and Delphi Coding
|
Joshua Delahunty
|
5. Borland 2006 New Features Demo
David Intersimone ("David I") of Borland demonstrates the latest versions of the Borland Developer Studio 2006 Product
7 years ago, and updated 39 months ago
|
 KB Post
 1968 Hits
|
 Pascal and Delphi Coding
|
Mike Prestwood
|
6. C# Empty String Check (String.IsNullOrEmpty)
The .Net framework offers a static method in the string class: String.IsNullOrEmpty.
|
 Code
 3763 Hits
|
 C# (Visual C# & VS.Net)
|
Mike Prestwood
|
7. C++/CLI Empty String Check (String.IsNullOrEmpty)
The .Net framework offers a static method in the string class: String.IsNullOrEmpty.
|
 Code
 5381 Hits
|
 C++
|
Mike Prestwood
|
8. Call a DotNet DLL from Win32 Apps
Can I call a DotNet DLL from my Delphi Win32 application? For example, with Delphi 7 or Delphi 2010?
6 years ago, and updated 37 months ago
|
 FAQ
 8276 Hits
|
 Pascal and Delphi Coding
|
Mike Prestwood
|
9. CodeGear Blogs
http://blogs.codegear.com/
|
 Link
 1930 Hits
|
 Pascal and Delphi Coding
|
Mike Prestwood
|
10. Coding for Application Virtualization
How do I take advantage of Application Virtualization in the application I'm coding?
5 years ago, and updated 59 months ago
|
 FAQ
 4923 Hits
|
 C# (Visual C# & VS.Net)
|
Wes Peterson
|
11. Component to Fix Alt Key Problem in Vista
When run under Vista, your Delphi programs may respond poorly to presses of the Alt key; some of the components on your forms may disappear. Here is a free component that can help.
|
 KB Post
 6614 Hits
|
 Pascal and Delphi Coding
|
Wes Peterson
|
12. Connection String Builder Component for Delphi
In its IDE, Delphi makes it easy for us to generate correct connection strings for database connections that require them.
Unfortunately, Delphi doesnt offer the same convenience at run-time when our customers need it most!
This article offers a Prestwood exclusive, TConnectionStringBuilder, a non-visual component you can use in your applications to let your users build a connection string at program startup.
You can then store that connection string, for future use, in an INI file or registry key.
6 years ago, and updated 54 months ago
(1 Comments
, last by Anonymous )
|
 KB Post
 4472 Hits
|
 Pascal and Delphi Coding
|
Daniel Fought
|
13. Delegate
A Delegate is a variable that references a method.
|
 Definition
 3410 Hits
|
 C# (Visual C# & VS.Net)
|
Wes Peterson
|
14. DelForEx: A Delphi Code Formatter
http://www.aew.wur.nl/UK/Delforexp/
|
 Link
 11601 Hits
|
 Pascal and Delphi Coding
|
Mike Prestwood
|
15. Delphi 2007 for Win32 Launches!
CodeGear Introduces Delphi for Win32, Providing RAD Development for Windows Vista and AJAX. New RAD Environment Allows Developers to Jump-start Microsoft Windows Vista Applications While Seamlessly Supporting Existing Users.
5 years ago, and updated 5 years ago
|
 News
 1931 Hits
|
 Pascal and Delphi Coding
|
Mike Prestwood
|
16. Delphi 2009 Ships!
Embarcadero Technologies unveils Delphi 2009! The next generation of the popular CodeGear rapid application development (RAD) tools for Windows native code development.
55 months ago, and updated 55 months ago
|
 News
 2031 Hits
|
 Pascal and Delphi Coding
|
Wes Peterson
|
17. Delphi 7 Overloaded InputBox functions
Wouldn't it be cool if InputBox could return types other than string? D7's help certainly says it can, but can it really?
8 years ago, and updated 7 years ago
|
 KB Post
 6230 Hits
|
 Pascal and Delphi Coding
|
Mike Prestwood
|
18. Delphi Acquired by Embarcadero Technologies
CodeGear, Borland's development tools division is being acquired by Embarcadero Technologies.
(1 Comments
, last by mprestwood )
|
 News
 2984 Hits
|
 Pascal and Delphi Coding
|
Mike Prestwood
|
19. Delphi Array (x=Array[0..3] of string;)
Delphi supports both static and dynamic arrays.
(1 Comments
, last by rdkram )
|
 Code |
 KB Post |
5691 Hits
|
 Pascal and Delphi Coding
|
Mike Prestwood
|
20. Delphi Empty String Check (length(s) = 0)
Length() or SizeOf() will correctly identify an unassigned string variable or an empty string.
|
 Code
 5989 Hits
|
 Pascal and Delphi Coding
|
Mike Prestwood
|
21. Delphi Event Handler
Many objects in Delphi have events you can use to trigger code. For example, when you add a form to your project you have access to the form events such as onCreate, onShow, onHide, onDockDrop, etc. In addition, Delphi offers module level events initialization and finalization sections.
|
 Code
 3455 Hits
|
 Pascal and Delphi Coding
|
Mike Prestwood
|
22. Delphi Exception Trapping (try..except, try..finally)
Delphi also offers a try...finally where code will execute in the finally section no matter what. It's common to put a try...except inside a try...finally:
55 months ago, and updated 54 months ago
|
 Code
 3002 Hits
|
 Pascal and Delphi Coding
|
Mike Prestwood
|
23. Delphi for PHP Announced
Delphi for PHP brings RAD productivity benefits to PHP Web developers that Delphi users have enjoyed for years. PHP is the most prominent dynamic Web language today and one of the top 10 programming languages overall. Delphi for PHP is designed to take PHP development to the next-level by making it faster and easier to develop rich, database-driven Web applications.
5 years ago, and updated 5 years ago
|
 News
 1784 Hits
|
 Pascal and Delphi Coding
|
Mike Prestwood
|
24. Delphi for Win32 Home Page
http://www.codegear.com/products/delphi/win32
|
 Link
 1944 Hits
|
 Pascal and Delphi Coding
|
Mike Prestwood
|
25. Delphi for Win32 Roadmap
http://dn.codegear.com/article/36620
|
 Link
 1886 Hits
|
 Pascal and Delphi Coding
|
Mike Prestwood
|
26. Delphi Inline Code (asm)
In Delphi, you can inline assembler code using the asm keyword.
|
 Code
 4005 Hits
|
 Pascal and Delphi Coding
|
Mike Prestwood
|
27. Delphi Member Events
In Delphi, member events are essentially properties of the type method pointer.
|
 Code
 2454 Hits
|
 Pascal and Delphi Coding
|
Mike Prestwood
|
28. Delphi Prism Assignment (:=)
Same as Delphi.
|
 Code
 2674 Hits
|
 Delphi Prism
|
Mike Prestwood
|
29. Delphi Prism Comments (// or { ... } or (* ... *))
Delphi uses // for a single line comment and both {} and (**) for multiple line comments. Although you can nest different types of multiple line comments, it is recommended that you don't. Commenting code generally has three purposes: to document your code,
for psuedo coding prior to coding, and to embed compiler directives.
Most languages support both a single line comment and a multiple line
comment. Some languages also use comments to give instructions to the
compiler or interpreter. A special comment. Delphi compiler
directives are in the form of {$DIRECTIVE}. Of interest for comments is
using the $IFDEF compiler directive to remark out code.
53 months ago, and updated 52 months ago
|
 Code
2394 Hits
|
 Delphi Prism
|
Mike Prestwood
|
30. Delphi Prism Constants (const kPI: Double=3.1459;)
In Prism, you define constants similar to how you define variables but use the Const keyword instead of the Var keyword. Specifying the type is optional. If you don't specify the type, the compiler chooses the most appropriate type for you.
Declare class constants as part of the class definitions. Declare local constants above the begin..end. Although Prism support inline variables, inline constants are not supported.
53 months ago, and updated 52 months ago
|
 Code
3445 Hits
|
 Delphi Prism
|
Mike Prestwood
|
31. Delphi Prism Development Tools
Delphi.Net first shipped as a compiler only with Delphi 7. Delphi 8 is a .Net dedicated solution (no Win32) but was not clearly better than VS.Net so more developers moved to VS.Net and bypassed Delphi 8. Delphi for .Net shipped with Delphi 2005, 2006, and 2007 but languished because of a lack of development and VS.Net clearly implemented more .Net CLS features than Delphi for .Net. Delphi Prism (Oxygene) strives to keep pace and in some cases out pace C# and VB.Net using the Object Pascal language.
53 months ago, and updated 52 months ago
|
 Code
 2001 Hits
|
 Delphi Prism
|
Mike Prestwood
|
32. Delphi Prism Empty String Check (length)
In Prism, a string can be nil (unassigned), assigned an empty string (""), or assigned a value. Therefore, to check if a string is empty, you have to check against both nil and (""). Alternatively, you can check the length of the string or use String.IsNullOrEmpty.
|
 Code |
 KB Post |
 4291 Hits
|
 Delphi Prism
|
Mike Prestwood
|
33. Delphi Prism Event Handler
The Delphi Prism
Most notable for Delphi developers is the fact that Prism does not offer initialization nor finalization sections.
|
 Code
 4847 Hits
|
 Delphi Prism
|
Mike Prestwood
|
34. Delphi Prism If Statement (if..else if..else)
Notice in the more complete example that the semicolon for the begin..end block after end is not included. That tells the compiler something else is coming (the statement is not finished). Also note the semicolon is missing right before the final "else" statement.
53 months ago, and updated 52 months ago
|
 Code
 2690 Hits
|
 Delphi Prism
|
Mike Prestwood
|
35. Delphi Prism Member Events (event)
Like all .Net languages, Prism events are a separate type of class member. You define a member event by using the event keyword. Events depend on Delegates to define the signature (the type) of the event they represent and they maintain a list of multiple subscribers - unlike in Delphi for Win32, where each event can only have one handler
|
 Code
 2811 Hits
|
 Delphi Prism
|
Mike Prestwood
|
36. Delphi Prism Variables (var x: Integer := 0;)
Prism supports type inference where you just use a variable and
the compiler will then choose the lowest type possible (such as an Integer before a LongInt). With Prism, you frequently do not have to use commands to convert from one type to another. Variable names are not case sensitive. The Prism language offers both old-style declaring variables before the begin as well as inline variable declaration. Prism does support variable initialization too. Prism offers many variable types. Some common variable types include Integer, LongInt, Single, Double, Boolean, and String.
53 months ago, and updated 52 months ago
|
 Code
4430 Hits
|
 Delphi Prism
|
Mike Prestwood
|
37. Delphi Prism vs. CSharp
http://prismwiki.codegear.com/en/Delphi_Prism_vs._CSharp
|
 Link
 1603 Hits
|
 Delphi Prism
|
Scott Wehrly
|
38. Delphi: Encryption of data fields
This article discusses the reasons and methods for encrypting data fields in Delphi.
|
 KB Post
 3780 Hits
|
 Pascal and Delphi Coding
|
Larry J. Rutledge
|
39. Delphi: Windows Shell Extensions
How to add functionality to the existing Windowsâ„¢ shell.
10 years ago, and updated 6 years ago
|
 Article
 7324 Hits
|
 Pascal and Delphi Coding
|
Mike Prestwood
|
40. Delphi3000.com
http://www.delphi3000.com/
|
 Link
 2654 Hits
|
 Pascal and Delphi Coding
|
ermohan_rp
|
41. DEP issues in delphi application
In my application delphi6 . its working fine but while selecting Turn on DEP for all programs an services except those i select. this option in My computer -- Advance option -- choose the tab Data Execution Prevention.
|
 KB Post
 2677 Hits
|
 Pascal and Delphi Coding
|
Adam Lum
|
42. Deploying your .NET Application with ClickOnce (quick tutorial)
A basic introduction to deploying an application using Visual Studio .NET 2005's ClickOnce
6 years ago, and updated 52 months ago
(1 Comments
, last by markus )
|
 KB Post
 16206 Hits
|
 C# (Visual C# & VS.Net)
|
Larry J. Rutledge
|
43. Detecting Windows SafeMode
Use Windows API GetSystemMetrics with SM_CLEANBOOT parameter to determine how Windows was started.
5 years ago, and updated 52 months ago
|
 KB Post
 2087 Hits
|
 Pascal and Delphi Coding
|
Joshua Delahunty
|
44. Displaying graphic images in DBGrid components
An example of work I did to display a graphic (+ text) in a single column of a DBGrid based on two tables in a Delphi 2006 Application (not limited to later versions of Delphi)
7 years ago, and updated 42 months ago
|
 Article
 4879 Hits
|
 Pascal and Delphi Coding
|
Mike Prestwood
|
45. Dr. Bob 42
http://www.drbob42.com/
|
 Link
 3437 Hits
|
 Pascal and Delphi Coding
|
Adam Lum
|
46. Eclipse
http://www.eclipse.org/
|
 Link
 2958 Hits
|
 Java
|
Mike Prestwood
|
47. Embarcadero Technologies
http://www.embarcadero.com/
|
 Link
 1947 Hits
|
 Pascal and Delphi Coding
|
Wes Peterson
|
48. Free E-Book on C# .NET Essentials
This is the "Chapter Zero" you've been missing.
|
 Download
 3616 Hits
|
 C# (Visual C# & VS.Net)
|
Joshua Delahunty
|
49. Getting locates to work on a non-key field with a SQL Server Table using filters
A "simple" procedure that worked fine in BDE (use a TTable component attached to a table with a numeric primary key field, a string field not in the primary key, and a third field that's filtered on, use the .Locate() call to perform an incremental search on the string field) was failing using TADOTable and SQL Server. This article describes how I worked around the issue.
|
 Article
 2966 Hits
|
 Pascal and Delphi Coding
|
Wes Peterson
|
50. GExperts
http://www.gexperts.org/
|
 Link
 3459 Hits
|
 Pascal and Delphi Coding
|
Wes Peterson
|
51. Great Visual Studio Training Resource
If you've been around computing for any length of time, you know you can quickly spend a lot of money on those $60, five-pound reference books.
For just ten dollars more, you can get your hands on over 500 great training videos for Visual Studio .NET.
|
 Blog
 3484 Hits
|
 C# (Visual C# & VS.Net)
|
Mike Prestwood
|
52. Introducing Delphi Prism. The new Delphi.Net!
Embarcadero Technologies and RemObjects Software have announced Delphi Prism, a next generation development suite for .NET and Mono, based on RemObjects Software's Oxygene compiler technology.
Delphi Prism will replace both Delphi for .NET and the existing Oxygene product, allowing the two companies to work together on providing one unified solution for managed development.
Key Points:
Install Delphi Prism as a plug-in to Visual Studio or run as a standalone development tool.
- Targets .Net and Mono.
- Target .NET applications using the latest Microsoft .NET 3.5 technologies such as WinForms, WPF, Silverlight, ASP.NET, and LINQ'
- Mac OS X and Linux with open source CLR technologies such as Mono and Cocoa#'
- No VCL.Net (this Delphi for .Net feature was dropped).
- Build Windows applications first and foremost but also build Mac and Linux applications for added flexibility.
- Integrated managed code database engine targeting Windows, Mac OS X, and Linux.
- Supports all CLS features such as generics, sequences, queries and parallel computing.
54 months ago, and updated 53 months ago
|
 News
 4423 Hits
|
 Delphi Prism
|
Mike Prestwood
|
53. Java Abstraction (abstract)
Java supports marking a full class as abstract as well as class members. A subclass must either implement the abstract members or you must declare the subclass abstract (which delays the implementation to it's subclass).
53 months ago, and updated 52 months ago
|
 Code
 3234 Hits
|
 Java
|
Mike Prestwood
|
54. Java Case Sensitivity (Yes)
Java is case sensitive.
Customary casing:
- Classes - Initial Caps (Pascal Casing)
- Variables - Initial lowecase (Camel case)
- Methods - Initial lowecase (Camel case)
55 months ago, and updated 52 months ago
|
 Code
 2865 Hits
|
 Java
|
Mike Prestwood
|
55. Java Comparison Operators (==, !=)
The Java comparison operators are:
- < less than
- <= less than or equal to
- == equal to
- >= greater than or equal to
- > greater than
- != not equal
|
 Code
 3693 Hits
|
 Java
|
Mike Prestwood
|
56. Java Exception Trapping (try/catch/finally)
Languages Focus: Exception TrappingA common usage of exception handling is to obtain and use resources in a "try-it" block, deal with any exceptions in an "exceptions" block, and release the resources in some kind of "final" block which executes whether or not any exceptions are trapped. Java Exception Trapping
55 months ago, and updated 54 months ago
|
 Code
 2291 Hits
|
 Java
|
Mike Prestwood
|
57. Java File Extensions (.java)
The customary primary source file extension for Java code is ".java" which could contain anywhere from a single class to the entire source code.
Other important files:
- .JAR - Java archive file (compressed code file). Archive that contains multiple Java files and is compressed using .ZIP compression; stores Java classes and metadata and may be digitally signed; runs as a program if the Java Runtime Environment (JRE) is installed on the computer.
- .CLASS - compiled source code which are platform-independent. If a source file has more than one class, each class is compiled into a separate .class file. These .class files can be loaded by any Java Virtual Machine (JVM).
55 months ago, and updated 52 months ago
|
 Code
 2397 Hits
|
 Java
|
Mike Prestwood
|
58. Java Static Members (static)
When calling a static method from within the same class, you don't need to specify the class name.
55 months ago, and updated 52 months ago
|
 Code
 2550 Hits
|
 Java
|
narayana
|
59. MAC address ( Ethernet address )
I have seen many people trying to find a way to get the real physical MAC adddress. Here is one way that works just fine.
7 years ago, and updated 7 years ago
|
 KB Post
 2057 Hits
|
 Pascal and Delphi Coding
|
Wes Peterson
|
60. Magazine: Blaise Pascal
http://www.blaisepascal.eu/
|
 Link
 2188 Hits
|
 Pascal and Delphi Coding
|
Mike Prestwood
|
62. Marco Cantu Home
http://www.marcocantu.com/
|
 Link
 1864 Hits
|
 Pascal and Delphi Coding
|
Mike Prestwood
|
63. New DevExpress Updates Now Available
List of releases available as part of the newest update of Express Install, v1.36.
|
 News
 2561 Hits
|
 Pascal and Delphi Coding
|
Wes Peterson
|
64. Opening up Outlook
Long a proprietary data store format, Microsoft is opening up the Outlook PST file format with the release of a couple new products.
34 months ago, and updated 34 months ago
(1 Comments
, last by mprestwood )
|
 KB Post
 2072 Hits
|
 Coding & OO
|
Mike Prestwood
|
65. Partial Methods versus Abstract Methods
What is the difference between a partial method and an abstract method?
|
 FAQ
 2468 Hits
|
 Delphi Prism
|
Joshua Delahunty
|
66. Prestwood and Delphi 9 (Delphi 2005)
Prestwood enthusiastically switched to Delphi 2005 when it was released. Now we have just as enthusiastically moved away from it. While it has intriguing features that are very hard to live without, the stability issues with Delphi 2005, even with the 3 later maintenance releases applied, make it impossible to recommend for production work.
Prestwood software STRONGLY recommends use of either Delphi 7, or Delphi 2006.
7 years ago, and updated 53 months ago
|
 KB Post
 1555 Hits
|
 Pascal and Delphi Coding
|
Mike Prestwood
|
67. Prestwood Sponsors RAD Studio 2010 Sacramento Tour Stop!
Prestwood Software is sponsoring the Technology is moving fast. During this free two-hour technical seminar, you'll learn the secrets to getting the most out of RAD Studio 2010 and new Windows technologies. You'll get a firsthand look at new capabilities that will make you more productive and successful with Delphi--, C++Builder--, Delphi Prism-- and Embarcadero-- RAD Studio 2010.
RAD Studio/Delphi 2010 Sacramento Tour Stop! Wednesday, December 2, 2009 6:00PM - 8:00PM
New Horizons of Sacramento 1750 Creekside Oaks Drive, Suite 150 Sacramento, CA 95833
Sponsored by:

43 months ago, and updated 42 months ago
|
 News
 1999 Hits
|
 Pascal and Delphi Coding
|
Mike Prestwood
|
68. Program or unit recursively uses itself
You cannot create a Delphi unit with the same name as is already in use. For example, do not create a buttons.pas unit for your application because the VCL already has a Buttons.pas unit. The solution is to rename your unit.
(1 Comments
, last by Anonymous )
|
 Error
 8140 Hits
|
 Pascal and Delphi Coding
|
Scott Wehrly
|
69. Proper Use of
Proper use of dynamically created components that doesn't break the built-in garbage collection scheme.
10 years ago, and updated 53 months ago
|
 KB Post
 1971 Hits
|
 Pascal and Delphi Coding
|
Daniel Fought
|
70. Reference Data type variables
Variables that only contain a reference to the values. Reference data type variables only contain a reference to it's constituent value. Reference data types include objects and strings. Assignment of one reference type variable to another copies the reference, thus changes to the values in one variable changes the values in the other.
5 years ago, and updated 52 months ago
|
 Definition
 3536 Hits
|
 C# (Visual C# & VS.Net)
|
Bryan Valencia
|
71. Regular Expressions Cheat Sheet
A collection of regular expressions that validate and parse common user data.
57 months ago, and updated 55 months ago
|
 KB Post
 1822 Hits
|
 Coding & OO
|
Wes Peterson
|
72. Rubicon Delphi Info Search
Find Delphi info at the Rubicon Delphi and C++Builder search page.
6 years ago, and updated 6 years ago
|
 KB Post
 2363 Hits
|
 Pascal and Delphi Coding
|
Joshua Delahunty
|
73. Setting project options for better maintainability
Some tips for every Delphi project to keep things "clean", "neat", and well maintainable down the road.
7 years ago, and updated 7 years ago
(1 Comments
, last by Anonymous )
|
 KB Post
 3908 Hits
|
 Pascal and Delphi Coding
|
Kim Berry
|
74. SSL not working on Indy IdHTTP POST
How to enable SSL transactions with the Indy HTTP v9 component.
10 years ago, and updated 35 months ago
|
 KB Post
 6785 Hits
|
 Pascal and Delphi Coding
|
Stephen Berry
|
75. Stacks in Java
Provides the definition of a stack and an example of its implementation in Java
|
 KB Post
 4285 Hits
|
 Java
|
Daniel Fought
|
76. Struct
A value type used to encapsulate a small set of related data.
5 years ago, and updated 58 months ago
|
 Definition
 2824 Hits
|
 C# (Visual C# & VS.Net)
|
Joshua Delahunty
|
77. Sub-Classing the BDE TQuery Component
First in a series
7 years ago, and updated 55 months ago
|
 Article
 4218 Hits
|
 Pascal and Delphi Coding
|
Mike Prestwood
|
78. TechTricks.com Delphi Articles
http://www.techtricks.com/delphi/
|
 Link
 1981 Hits
|
 Pascal and Delphi Coding
|
Joshua Delahunty
|
79. Using Mono Software Web Dialogs with Cassini and Delphi 2006
The online tutorials for these controls use IIS, this post describes the same use with the Cassini web server
|
 KB Post
 2046 Hits
|
 Pascal and Delphi Coding
|
Joshua Delahunty
|
80. Using the BDSWebExample with SQL Server 2005
Changes to be made when setting up the BDS Web Example for Delphi 2006 and SQL Server 2005
7 years ago, and updated 7 years ago
|
 KB Post
 2037 Hits
|
 Pascal and Delphi Coding
|
Daniel Fought
|
81. Value Data type variables
A Value data type variable contains values.
|
 Definition
 3168 Hits
|
 C# (Visual C# & VS.Net)
|
Mike Prestwood
|
82. VB Classic Array (x = Array())
Arrays in VB Classic use a 0-based indice. UBound returns -1 if the array has no elements, 0 if it has 1, 1 if it has 2, etc.
|
 Code
3911 Hits
|
 Visual Basic Classic
|
Mike Prestwood
|
83. VB Classic Empty String Check (Len(s&vbNullString))
In VB Classic, you have to add an empty string to the value being compared in order to get consistent results. For example, add &"" to your string varilable or it's code equivalent &vbNullString. Then compare to an empty string or verify it's length to 0 with Len.
|
 Code
 2795 Hits
|
 Visual Basic Classic
|
Mike Prestwood
|
84. VB Classic File Extensions
- .BAS = VB source code file.
- .CLS = VB class file (one class per file).
54 months ago, and updated 52 months ago
|
 Code
 2101 Hits
|
 Visual Basic Classic
|
Mike Prestwood
|
85. VB Classic Parameters (ByRef, ByVal)
By Reference or Value For parameters, you can optionally specify ByVal or ByRef. ByRef is the default if you don't specify.
54 months ago, and updated 52 months ago
|
 Code
2879 Hits
|
 Visual Basic Classic
|
Mike Prestwood
|
86. VB.Net Case Sensitivity (No)
VB.Net is not case sensitive. If you type any other case for commands or variables, VB.Net will change it to the accepted or defined case. For example, if you type messagebox.show it is converted to MessageBox.Show.
55 months ago, and updated 52 months ago
|
 Code
2441 Hits
|
 VB.Net Language
|
Mike Prestwood
|
87. VB.Net Code Blocks (End Xxx)
VB.Net, like VBClassiccode blocks, are surrounded by statement ending keywords that all use End such as End Class, End Sub, End Function, End If, and End If.
54 months ago, and updated 52 months ago
|
 Code
 2512 Hits
|
 VB.Net Language
|
Mike Prestwood
|
88. VB.Net Empty String Check (String.IsNullOrEmpty)
The .Net framework offers a static method in the string class: String.IsNullOrEmpty.
|
 Code
5919 Hits
|
 VB.Net Language
|
Mike Prestwood
|
89. VB.Net File Extensions
Common source code file extensions include:
- .SLN - Solution File. Contains solution specific information such as links to the projects within this solution.
- .VBPROJ - VB.Net Project File. Contains project specific information.
- .VB -VB.Net source file.
- .Designer.VB -VB.Net form file (a text resource file).
52 months ago, and updated 52 months ago
|
 Code
 2487 Hits
|
 VB.Net Language
|
Mike Prestwood
|
90. VB.Net If Statement (If..ElseIf..Else..End If)
Same as VB classic.
55 months ago, and updated 52 months ago
|
 Code
2830 Hits
|
 VB.Net Language
|
Mike Prestwood
|
91. VB.Net Left of Substring (Left or Substring)
The above usage of Left and Substring are equivalent.
Left is a traditional VB approach popular with developers moving from VB Classic to VB.Net. Substring is considered the .Net way of doing string manipulation.
55 months ago, and updated 54 months ago
|
 Code
 7596 Hits
|
 VB.Net Language
|
Mike Prestwood
|
92. VB.Net Parameters (ByVal, ByRef)
By Reference or Value For parameters, you can optionally specify ByVal or ByRef. ByVal is the default if you don't specify which is changed from VB Classic (in VB Classic, ByRef was the default).
54 months ago, and updated 52 months ago
|
 Code
2579 Hits
|
 VB.Net Language
|
Wes Peterson
|
93. Virus Targets Old Delphi Tools
New virus targets old versions of Delphi but not the applications developed with Delphi and not the current Delphi versions, just Delphi itself. I detest the jerks that write viruses and other forms of malware. But this one really gets my goat generally because it was a virus that targeted my favorite best-of-breed development tool and specifically because ZDNet reported the problem in a way that implies it targets applications developed by Delphi. Despite ZDNet's tag line, the virus targets old versions of Delphi (4, 5, 6, and 7) but not the applications developed with Delphi and not the current Delphi versions. I sure hope the way ZDNet chose to report this issue doesn't hurt Embarcadero, the owner of Delphi, because of a virus that attacks pre-Embarcadero versions of Delphi.
|
 News
 1836 Hits
|
 Pascal and Delphi Coding
|
Mike Prestwood
|
94. Visual Basic User Group Meeting
Mike and Brian Prestwood presenting on the Unified Modeling Language.
7 years ago, and updated 5 years ago
|
 News
 2143 Hits
|
 Visual Basic Classic
|
Wes Peterson
|
95. Visual Studio MRU Cleanup Tool
Sometimes old news is good news.
If you still need to work with Visual Studio 2005, you may find yourself annoyed by that list of Recent Projects on your Start Page; a list you can't clean up - unless you want to go poking around in the Windows Registry.
The nifty little utility at this link takes care of the problem in a clean, straightforward, easy-to-use way.
33 months ago, and updated 32 months ago
|
 Download
 2496 Hits
|
 Coding & OO
|
Wes Peterson
|
96. Why Use Delphi To Create ISAPI DLLs?
When it comes to creating "CGI" solutions, we have a plethora of tools from which to choose. Pearl and TCL are old standbys. ASP Classic, ASP .NET, and PHP are other viable tools.
Why, then, would you want to take the trouble to use Delphi for some of these tasks?
|
 KB Post
 2244 Hits
|
 Pascal and Delphi Coding
|