Tip Bank

DevX - Software Development Resource

Incompatible Version Errors

Question: I know that there is a fix needed in order to use VB 3.0 and Microsoft Access 2.0. I have downloaded the file COMLYR.EXE and have run it. I

DevX - Software Development Resource

Changing RecordSource at Runtime

Question: At runtime, how do I change the query that I’m using with my data controls to be one a user selected? I don’t want to keep the same name

DevX - Software Development Resource

Saving a Picture to Disk

Question: I am able to use the API call ExtractIcon to get an icon from a .VBX, .EXE, or .DLL. I can put the icon in a Picture Control, but

DevX - Software Development Resource

Memory Management: Lost Resources

Question: Each time I run a certain application from VB environment, resources go lower and lower. When I exit VB, all the memory is released.I do not have that problem

DevX - Software Development Resource

Available Network APIs

Question: I would like to know if I could obtain a listingof the functions in the netapi.dll file and howto declare them in VB. It would be mostappreciated. Answer: The

DevX - Software Development Resource

VB Decompiler

Question: Is there a decompiler for Visual Basic executables so that I can retrieve the original source code? Answer: Currently, there is only a decompiler for VB 3.0 and VB

DevX - Software Development Resource

Embedding Double Quotes in Strings

Question: I was wondering if there is a way to use a set of quotes in a vb string. Answer: If you put two double quotes into your string, VB

DevX - Software Development Resource

Inserting Control Characters

Question: How do I insert carriage return (Chr(13)) and line feed (Chr (10)) in a text box at run-time? Answer: Just use the ampersand (&) and add them to the

DevX - Software Development Resource

Type Mismatch Error

Question: I have an SQL statement in my program that looks like this:data3.recordsource = “SELECT id, date from reservations where (date = ‘” & maskededit1.text & “‘) and (id =