Solved

Marking a grid cell?

Posted on 1998-05-31
3
294 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
  • 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
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…

911 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now