Solved

Marking a grid cell?

Posted on 1998-05-31
3
300 Views
Last Modified: 2010-05-03
I have created an application which uses a grid to display information.  The user may click on the grid to enter data to that cell.  I would like to know how to mark the cell once data has been entered so that overwriting is only permitted after some checks have been done?????  I wantedto set a variable to 1 for instance and us an IF statement to run the checks or set a variable to True.  But assigning it to just that cell has proved very difficult, can anyone help???????/
0
Comment
Question by:PWork
[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
  • 2
3 Comments
 
LVL 1

Accepted Solution

by:
fujicast earned 50 total points
ID: 1462145
Hi, I think you must use Matrix techniques.

For examples, you define the grid 5x4 (5 columns, 4 rows).
You define to the arrays (if you want to dynamic rows cols, refer to how to use dynamic array (REDIM Statement)

DIM GridFlag(5,4) as Boolean

When user change the contents, mark true on your array. And so on.

Hope this help.. eventhough wasting memory. Well... I think there is no simpler way.

Regards,
Fuji
0
 

Author Comment

by:PWork
ID: 1462146
Sounds great but I do not understand how to actually implement it,  do you have an example that I might look at for clarification??????????  I am a new user of VB and am still learning.  Thanks
0
 
LVL 1

Expert Comment

by:fujicast
ID: 1462147
PWORK,

I think I don't mind to guide you about the samples. Unfortunatelly, I can't do that now, because I currently annoyed by my vb project for my client.

if you don't mind send me mail to fujihome@hotmail.com.

Thanks,
Fuji
0

Featured Post

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
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…

728 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