VBCE.com - The Premier Website For Visual Basic/CE Developers

 

*Dev Corner

Sample Code
Controls
Workarounds
Tips & Tricks
Q & A
Forums

*Goodies
Downloads
Software
Bookstore


*General
Home
What's New
General Info
Misc. Info


*News Worthy
News
Articles
Editorials
KB Articles
Reviews
Awards

*Miscellaneous
Web Links
Partners
Search
Feedback
Advertising

<% On Error Resume Next SiteStats() %>

Sponsors


More...


Tips and Tricks

.
tip.gif (908 bytes) To convert files to the HPC format without a device connected, simply download the Windows® CE Services File Converter for Microsoft® Windows CE 2.0

tip.gif (908 bytes) There is a registry editor inside the emulator, simply execute "pregedit.exe" from the Start->Run menu in the emulator to start it.

tip.gif (908 bytes) Store control properties in variables when making multiple references to the property.

tip.gif (908 bytes) Inline code is significantly faster than procedeural calls.

tip.gif (908 bytes) Software optimization must be incorporated during the development cycle, not just at the end.

tip.gif (908 bytes) Use the Join function, it returns a string created by joining a number of substrings contained in an array.

tip.gif (908 bytes) Use the Split function, it returns a zero-based, one-dimensional array containing a specified number of substrings.

tip.gif (908 bytes) Use the Replace function, it returns a string in which a specified substring has been replaced with another substring a specified number of times.

tip.gif (908 bytes) Use the InstrRev function, it returns the position of an occurrence of one string within another, from the end of string.

tip.gif (908 bytes) Multiplication is almost always faster than division.

tip.gif (908 bytes) Floating point division ("/") is slower than integer division ("\").

tip.gif (908 bytes) You may need to sacrifice code reuseability to gain speed.

tip.gif (908 bytes) Use the Filter function, it returns a zero-based array containing subset of a string array based on a specified filter criteria.

tip.gif (908 bytes) Use the StrReverse function, it returns a string in which the character order of a specified string is reversed.

tip.gif (908 bytes) Use Option Explicit. Even though all variables are Variants in VBCE, it is recommended that you use the Option Explicit statement in the Declarations section of your code modules so that any mis-spelled variable names will be caught by the IDE rather than getting undesired results at runtime.

 

VBCE.com is DevX Winner!

Unless otherwise noted, all information on VBCE.com is Copyright 1998 - 2002
Windows, Windows CE, and Visual Basic are trademarks of the Microsoft Corporation.
VBCE.com is not responsible for content on external sites.
Send all feedback to webmaster@vbce.com
Webmasters - feel free to link to
VBCE.com - Premier Website for Visual Basic/CE Development

Buy Books!