Hi. I've just written my first Python module, and I'm wondering where to put it so Python will find it when I import it. Here's what I've got in sys.path:
['', 'C:\\WINDOWS\\system32\\python23.zip', 'C:\\Python23\\Lib\\site-packages\\Pythonwin', 'C:\\Python23\\Lib\\site-packages\\win32'...
I've been teaching myself Python for about 3 weeks.
Does Python have something equivalent to a static variable in C, i.e., a variable local to a function that will retain its value across calls? The closest thing I've been able to come up with is a global variable that's modified within the...
How do you keep commands from echoing as you type them at the command prompt? I was sure it was "echo off" (and "help echo" seems to support this), but all that seems to do is make the command prompt disappear --
it apparently has no other effect. Your commands still...
I'm just getting back to Perl after being away for a while
and am now using it on Windows instead of Unix as before.
I've written a Perl script that works like Unix "wc",
because I missed it on Windows, and to brush up my Perl
after the absence. This works fine as long as I enter
file...
Another user has copied a db that I programmed onto her
machine. We both have the same version of Access (2000).
In a module, I'm executing a "DROP TABLE" statement.
The table I'm trying to drop may or may not exist. On my machine, if the table doesn't exist, I get error 3371...
I'm trying to import a DBase IV file using
DoCmd.TransferDatabase, and am having no luck. After
looking at the help, I'm confused about the arguments.
Here's what I've got:
DoCmd.TransferDatabase _
TransferType:=acImport, _
DatabaseType:="DBase IV", _...
What am I doing wrong here? I'm trying to update one
field in a table. This compiles okay, but I'm getting a run-time error on the "rs.Open":
Error number -2147217904 (80040e10)
No value given for one or more required parameters.
I'm used to DAO, not ADO, but thought I'd give it...
Hi --
I'm cut-and-pasting text from a Spanish document into
Emacs. (I don't speak Spanish.) Emacs is changing the
accented characters in the Spanish text into other
characters. For example, año becomes "aqo", and
quién becomes "quiin". telefónico becomes...
Hi --
One of the columns in my worksheet calls for fancier
validation than I could figure out how to do with any
of the options in Data > Validation. I wrote a procedure
to do it and I'm calling it from the sheet's
SelectionChange event. This works okay, but I'm
wondering if I could somehow...
Hi --
Can anyone tell me what property of an Access table
shows whether it's hidden? I hid a few tables by
right-clicking them and checking the "hidden" properties
box, but if I look at the table properties in design
view (I can still get to the tables 'cause I checked
"show...
Hi --
I'm new to writing Access VB code. I'm trying to use the
CurDir function to get the full path of the directory my
database is in. The full path is definitely
"D:\work\Chase Sample\payment"
However, when I call CurDir, it returns the PARENT of the
current directory...
I'm reading a tab-delimited file with column headings and
writing out to a fixed-length text file. The code I have
works, but I'm wondering if there isn't a better way to do
some of this.
I want to get each line of input into a hash with the tab-
delimited data fields as values and the column...
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.