Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Trying to use a Sample Form

Status
Not open for further replies.

beedubau

Programmer
Jan 7, 2003
97
AU
In trying to read a Media card inserted into a Card Reader I have managed to modify a form used in the samples viz:

microsoft visual foxpro 9\Samples\Solution\Europa\windowsevents.SCX

I see the wmhandler Class is added to my project.

All works well ( possibly a tad clumsy) but I do see a list of files when a card is inserted within my app.

I want to process the array that is holding those filenames and to do so I have altered the code in the mediaevents part of the class.

However these changes do not happen when I run my app.

I understand that that is because the class on the form was of the original code.

When I try to delete the C-solutions1 class which contains all these things is says that is not possible as it is part of a parent class (Custom).

I don't know how to go on from here - can anybody help to explain how I can modify the class and create a new form with the new class - or somehow modify the old form by referring to the new class.

Clearly I am not very familiar with classes.

Regards

Bryan

 
Mike,
Thanks for that.

Unfortunately I find that is beyond my expertise .

Regards

Bryan
 
A long time ago,hmmm around 1984 I went to see a 70 year old man named Bud who was the lead programmer when a cotton mill got its first IBM computer to rite me a program. He said "You can do it" and "You can do it with DbaseII and cp/m". He was right. Dont sell yourself short!
 
Hey White - I am that 65 year old <G>.

With the help of tek-tips I have made enormous strides in the last 10 years - but I fear this will allude me - believe me I have tried.

Bryan
 
It's hard to tell, as I don't understand what you did to include the form in your project. It seems you are making changes in the wrong place.

The windowsevents.scx is a form based on solution class of solution.vcx. That is why you can't delete that c_solution1 object. But as it's an instance of the c_solution class modifications made in the class of the solution.vcx will effect it at runtime.

The form is rather complicated, it makes use of the winevents.dbf, which tells the form which class from the wmhandler.vcx to use.

There is a much simpler method to list the files of your media card. It's simply a drive, so just do ADIR() of that drive to get the list of files. just loop from "C" to "Z" and detect for which drive letter the Drivetype(letter) is 2.

Bye, Olaf.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top