December 5, 1997

32-bit executable/controls

Question: I have a 16-bit win3.1 version of of a project. We recentlyreceived user requested thesoftware as win95 users.How can I distribte theprogram w/o having to developa program in 32-bit. I triedcopying the project and filesto a PC with Win95 and 32-bit compilerbut it still has 16-bit contros.Can you give

Populating a ComboBox

Question: I am trying to populate a comboxbox from a table (or query). If I use dataware is only receive the first record, I however want all records in the field I select. I have done this in the following VB code;Private Sub Form_Load()Dim RecEmployees as RecordsetDim MyDB as DatabaseSet

The difference of FileLen() and Len()

Question: What are the difference between FileLen() & Len()? When checking the file size making sure it is not exceeding 32KB in the text box, should I use FileLen() or Len()? If I use FileLen(), is this code correct? dim VarFiledim FileTypeFileType=commondialog1.filenameOpen FileType for Input as #FreeFileDo While NOT EOF(FreeFile)Input

Importing JPEG graphics during run-time.

Question: How do I import a JPEG image into an application during run-time? Answer: The Image and Picture Box controls in VB5 can display JPEG images. Use the LoadPicture function to load an image file at runtime: imgCtl.Picture = LoadPicture(“myfile.jpg”) Previous versions of VB provided no built-in support for JPEG

Checking to see if a MDI Form is open

Question: I have an MDI application; when I Unload one form I want to check to see if another form is open and if it is run some code that refreshes it.I’ve tried using if frmname.visible=true to see if its open but this doesn’t work (it loads up the form

Cancelling Database Operations In Delphi

Question: We need to include the capability to abort queries in our Delphi apps that are running under BDE connecting to remote Oracle databases. Occasionally, some queries take a long time to execute, and we would like to give our users the option to cancel a query when this happens.

Creating a table using code

Question: Hi,Each time l try to create a table using code-not the database explorer, i get an error message:access violation at address 0042f540 read of address 7466654c.Whats the problem, how can l create a table using delphi code only? Answer: The only reason I can think of that explains this

Calling a Form

Question: How, in a database application, to use a table for selection byusers to call a certain form. For example, I could have a field with thename of the table for the user to read, and another field with the nameof the Delphi executable of the form for that table.