Solved

Grid Control & Crystal Report

Posted on 1998-10-05
1
310 Views
Last Modified: 2013-12-26
Greetings of peace and happiness ...
Hi,
1st Question.
I didn't do programming for some time. I did one program using VB 4. Now, when i open in VB 5, the Grid Control automatically become Picture box control. Is there any ways so that i can directly convert to MS-Flex grid. Or can i maintain with Grid Control in VB5.

2nd Question.
  One field name in the table is called flag. Flag will have 0,1,2. But when i print in the crystal report, i want to replace with other text (e.g. in, out, return) instead of 0,1,2.
How can i do that?

Thank you.
Bye.
0
Comment
Question by:pandav
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 14

Accepted Solution

by:
waty earned 50 total points
ID: 1487360
1st
The reason is that the grid32.ocx is not installed and registered. Install it and register it, you will be able to load your project under VB5.
For the upgrade to MSFlexGrid, you could do, but you have to change the code in consequences.

2nd
Write a formula, (this is an example)

 if {flag} = 0 then
    "Flag 0"
 else
 if {flag} = 1 then
    "Flag 1"
 else
 if {flag} = 2 then
    "Flag 2";

I have not check the formula, but it is like that that I do in my projects
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

729 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question