Solved

Marking a grid cell?

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

ScreenConnect 6.0 Free Trial

Explore all the enhancements in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI, app configurations and chat acknowledgement to improve customer engagement!

Question has a verified solution.

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

Suggested Solutions

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
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…

831 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