Since I'm doing some serious coding today, I came up with another lightbulb experince just now. At the risk of giving others a laugh at how dense I am for not having figured it out, or read it before, here it is. I'd always wondered why parts of my code were sometimes colored black for a...
I'm trying to store data from a file into memo fields. Some of the lines in the data file contain the header information for a given record and the following lines up to the next header line is raw data (genome data in this case so it's just a string of ATCGs.) Anyway, I'm using code like...
I tried one of the new language enhancements in VFP 7 and found it quite nice. Those who find themselves doing a lot of 'AT()'s and 'ATC()'S and 'RAT()s should be able to save a lot of coding time. For example,
thisEMB = STREXTRACT(gline,"|","|",3)
pulls out what's...
Since the previous thread was getting a bit long I've decided to start a new one.
Ok, so Chris let's assume that your approach is best, to save the entire thread as a memo. I did a quick test and a text file of two TekTips pages, one large and one small were 98k and 50k respectively. So if we...
Needing something to read during lunch yesterday, I grabbed the MS VFP6.0 Programmer's Guide and started reading in the back (all us nerds do read programming books during lunch, don't we?) and was reading about the Component Gallery. Sounded a bit interesting, so I've been playing a round a...
Just got my VFP 7 and ran into a problem. I've got things set up so that to start a project I doubleclick on an icon and it runs a program to open up VFP, set the pathing and open the help files and the particular .pjt I'm working on.
Well, after installing 7, this still starts to work but...
I'm getting ready to create a rather major-league class having a ton of properties and methods and want to know what's best to use as the baseclass. I don't necessarily want it visible. But I do want it to be able to deal with several tables and or views and change them out as required. And I...
I have a table with a char[10] field and 9 records. I put the numbers 1-9 in this field and then went into the table designer to add an index on the field. When it tried to do it, I got a fatal error message. I went back and changed the field to integer and reentered the numbers and it...
Is there an easy way to programatically access the code you put in a form method from outside the form? I've decided it would be nice to put a method in my standard form which I can use to place notes in about the form. I can think of a number of work-arounds but if there's an easy way to do...
I'm trying to create some classes and I'm not sure how to reference user defined properties of the class from within objects in the class. Thus I'm trying to manipulate the "schema" property of the class from within the click event of a command button.
I tried this.schema without...
I have an editbox I'm using to display a memofield. I start out with the editbox.controlsource = myfield. Then later, depending on the option selected in an option group I may have editbox.controlsource = "". This works fine.
Later when I try resetting the controlsource to the...
I've got a Program I'm running 'lSchedule' with the following code:
OPEN DATA stables
USE mct IN 0
USE sched2 in 0
sele mct
vdate = mct.fdate
vname = mct.name1_ref
sele sched2
INSERT INTO Sched2(Schedule_ref, comp_ref, Scheddate, name1_ref, completed);
VALUES (SYS(2015), "FH", vdate...
I'm trying to use APPEND FROM to fill some tables from .csv files, but am losing the first record. The VFP help file is confusing as it talks first about a .cvs TYPE and then mentions a .csv file. The files I have don't have a first record consisting of field names, so I'm losing the first...
It seems to me I've seen this answered here before, but I couldn't find it in a quick search, so I'll ask again.
It's easy enough to add a new library to the form controls toolbar, but how do you remove them? In particular, when I add new classes to a class library, how do I get the toolbar to...
Once in a while I like to look at the list of 'VFP Experts' and I don't find UpstateNewYorker on the lists no matter what I index on. I know there are occasional 'visitor's who wouldn't appear on the list, but I thought that if you have 'Programmer' behind your name, you were a member and...
Though I think I know how to solve this, having read the recent "Problem with Grid" thread, I wonder if someone can explain what's happening in the following situation.
I have a 'main' form which calls another, data-entry form. I've placed a grid on this data-entry form to show...
I'm relatively new at FoxPro and rather overwhelmed with all the possibilities when it comes to displaying data. I have a situation where I have one table with projects and another with details (hours worked) keyed to the project. What's the best way to display the details on the form with a...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.