Your Information Source for Enterprise Application Development

DevX is the leading provider of technical information, tools, and services for professionals developing corporate applications.

Popular Posts:

Java

Simplifying Null Check in Java

To avoid null exceptions, we usually validate against null and emptiness as shown: if(object != null && !object.equals(“”)) {} We

Automation of Tasks

Automation of tasks is a good concept. Consider the example below in which you create a task and schedule it

.NET

Extract Faces Using Amazon Rekognition

AmazonRekognitionClient amazonRekognitionClient = new AmazonRekognitionClient(Amazon.RegionEndpoint.);byte[] imageData = System.IO.File.ReadAllBytes(inputImageFile);DetectFacesRequest facesRequest =

All Articles

Checking for Existence of a File

Question: How do you check to see if the name of a file you want to RENAME a file to already exists? Answer: Here is a great example of how to determine the existence of any file: Sub Command1_Click() Dim TheFile as String Dim Results as String TheFile = “C:README.TXT”

Read More »

Using GROUP BY Clause

Question: I am writing a Lottery Simulator, I have a database which contains seven fields, each field of each record contains a number from 1 to 49. I am looking for help writing the code that will scan each record in the database and return the six numbers that show

Read More »

Application Finding VBXs and DLLs

Question: I have created a VB executable file and now want to distribute it to users. I want this executable to reside on our network drive. The problem that I am running into is that I want the application to look for additional files, such as DLLs (VBRUN300.DLL) and VBXs

Read More »

Generating Special HTML Tags

Question: I am trying to use Print# statements to create an HTMLtext file and VB3 that I am using keeps interpreting the HTML characters as Data Types and operators saying it wants an Expression:expected message. Answer: The problem is that while HTML requires lots of double quotes, VB considers the

Read More »

Binding to a Database

Question: Is it possible to bind a cell in a grid with a database field (as we can do for text boxes and some other controls)? Answer: In VB3, the standard grid does not support data binding. If you get the TrueGrid control or one from Sheridan, those controls support

Read More »

Creating Nested Queries

Question: My question is with regards to VB’s ability to handle complexSQL. I have the application I am developing set up in the followingway: I copy the SQL created into the recordsource of a data control and then refresh the data control. The problem I am having is with SQL

Read More »

Join Our Newsletter

Subscribe to receive our latest blog posts directly in your inbox!