Okay, I printed the important parts and will retype them here. Obvious typos are obvious typos since I'm reading from a print out.
The creation of the canvas and scroll/zoom bars...
You CAN have NULL "cells" in your array, so you don't need to be too worried about that.
If I were creating a .csv, I would personally go with a 2D array. But, like I said, I'm sure there are others here that would argue multiple hashes to be superior.
Arrays are best when you have a "spreadsheet's" or "table's" worth of information. Or a mini database. Hahses are better when the data is more random or
Say you wanted to store in your program (or read in from a file) a bunch of info about you're clients. Name, phone, address, balance due...
Something more efficient than:
[code]
my %hash;
while (<>)
{
my($a,$b)=split ",", $_;
$hash{$a)=$b;
}
?
What's the format of your file? Does it include the hash key and value? Does it include things beside the keys and values?
I have a canvas that is 1080 x 540. It has a 1080x540 .jpg as the back ground (it's an Earth map) and I'm placing icons on it based on Lat/Long coords.
I use scale(0,0,2,2) to zoom in on the icons, and that works. I use zoom on the jpg to keep the map in scale with the icons. That all works...
Well, I'm just stupid. BrowseEntry has a "-listcmd" option that allows you to assign a subroutine when the arrow is pressed. For my purposes, this was all I needed.
This page (http://www.gossland.com/course/matching/expressions.html) suggests you can use ^ and $ to indicate the start and stop of the string, but as far as I knew, ^ matches the start of the line, and $ matches the end of the line, and not just the words.
I'm using a BrowseEntry widget to display a list of files the user can select. The user might be deleting or making copies in a shell window while using the tool, so I wanted the list to be current when the user "browses" the list on the BrowseEntry. I thought I could just bind the refresh...
Oh yeah, when I had the HDD hooked up to my laptop, I ran chkdsk on it and it ran for an hour or so and came back with no errors.
At this point in time it has to be the memory, motherboard or CPU, right?
Crap. Like I said before, it's not really making "boot up noises" at all. The power light comes on, the fans start, but the keyboard gets no power and the "harddrive doesn't spin.
Thanks, I'll take a look at that.
KERNEL_APC_PENDING_DURING_EXIT Stop: 0x00000020
^This was the error I was trying to remember earlier. I guess I did pretty good.
I have a 2 year old Acer Desktop (2GHZ CPU, 2GB RAM, 300 GB SATA HDD, pre-installed Vista, etc..) that blue-screen o'death'ed earlier this week (while I was doing my weekly Zune synch (no Zune jokes, please :) )). It may be the first time I've seen this particular PC BSOD. Anyway, I assumed it...
Okay, so better googling for better living.
Turns out the one sandbox reg key was set to 2, but the one at HKEY_LOCAL_MACHINE\Software\Microsoft\Office\12.0\Access Connectivity Engine\Engines was set to 3. It was blocking certain "unsafe" functions like "dir". Set it to 2 and I'm back in...
So, I just copied an Access 2003 DB to a new computer running Access 2007. Everything seems to have converted over okay except for any of my queries running 'Dir'. I get the error, 'Undefined Function "DIR" in expression' whenever I try to run the query.
Is there a different syntax or...
So,
I have a series of boxes names string0, string1, string2, etc.
I'm trying to assign values in a loop and I wanted to refer to them as string(cnt) and that doesn't work in VBA. Is there a proper syntax for this in VBA, or do I just need to go back to Perl?
for cnt = 0 to 10...
I did find a little more after I posted last night and it seems that Access 2007 has gotten rid of the "bloating" issue that prevented linking images from working before.
Does anyone know if you "link" vs "embed" does it still put the file in the DB? I didn't really care about the .bmp VS .jpg...
So,
I've successfully been using this in a ton of single forms:
me.pictureBox.picture="C:\pictures\" & id & ".jpg"
Now I'm trying to use it in a continuous form and I'm having that old chestnut of a problem where if I update the .picture value of the box, I change it for every record on the...
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.