On Dec 08, 2006, at 9:41 AM, Kem Tekinay wrote:
On 12/8/06 11:18 AM, Norman Palardy at npalardy at great-white-
software.com
wrote:
How do you evaluate "isNumber" ?
IsNumeric is a built-in function. From the online reference:
If the value passed to IsNumeric is a String that contains the
string version
of a number, then IsNumeric returns True. For example,
Duh me.
I'm back and forth so often between versions I sometimes forget
what's builtin :)
Code seems pretty reasonable at first glance
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>
From Fri 8 Dec 2006 09:51:04 -0700
Return-Path: <realbasic-nug-bounces at lists dot realsoftware dot com>
X-Original-To: listarchive at realsoftware dot com
Delivered-To: listarchive at realsoftware dot com
Received: by xmail.realsoftware.com (Postfix, from userid 1037)
id 409BC132EF83; Fri, 8 Dec 2006 08:51:38 -0800 (PST)
X-Spam-Checker-Version: SpamAssassin 3.1.1 (2006-03-10) on
www.realsoftware.com
X-Spam-Level:
X-Spam-Status: No, score=-1.7 required=4.5 tests=AWL,BAYES_00,NO_REAL_NAME
autolearn=no version=3.1.1
Received: from lists.realsoftware.com (lists.realsoftware.com [209.198.132.125])
by xmail.realsoftware.com (Postfix) with ESMTP id 41A6A132EF7C;
Fri, 8 Dec 2006 08:51:32 -0800 (PST)
Received: from lists.realsoftware.com (localhost [127.0.0.1])
by lists.realsoftware.com (Postfix) with ESMTP
id 148CA16FCFD9; Fri, 8 Dec 2006 10:51:26 -0600 (CST)
X-Original-To: realbasic-nug at lists dot realsoftware dot com
Delivered-To: realbasic-nug at lists dot realsoftware dot com
Received: from mail.verex.com (mail.verex.com [66.116.103.197])
by lists.realsoftware.com (Postfix) with ESMTP id 84B2F16FCFCA
for <realbasic-nug at lists dot realsoftware dot com>;
Fri, 8 Dec 2006 10:51:16 -0600 (CST)
Received: from [66.116.103.197] (localhost [127.0.0.1])
by mail.verex.com (Postfix) with SMTP id A4AF16B2301
for <realbasic-nug at lists dot realsoftware dot com>;
Fri, 8 Dec 2006 09:51:04 -0700 (MST)
Date: Fri, 8 Dec 2006 09:51:04 -0700
From: joe at strout dot net
To: realbasic-nug at lists dot realsoftware dot com
In-Reply-To: <p0623090ec19f4203e1d2 at [192 dot 168 dot 1 dot 101]>
X-Mailer: VerEx Email Gateway
Content-type: text/plain;
Content-transfer-encoding: 7bit
Message-Id: <20061208165104 dot A4AF16B2301 at mail dot verex dot com>
Subject: Re: Handling Many Graphic Files
X-BeenThere: realbasic-nug at lists dot realsoftware dot com
X-Mailman-Version: 2.1.2
Precedence: list
Reply-To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Sender: realbasic-nug-bounces at lists dot realsoftware dot com
Errors-To: realbasic-nug-bounces at lists dot realsoftware dot com
On Dec 08, 2006, at 16:30 UTC, Stephen Dodd wrote:
How do other people handle dealing with lots of graphic files? Do
you use the IDE? Do you load them dynamically? Tips and tricks, even
on filing + naming appreciated.
I load them dynamically. I also make a little module that's
responsible for managing them. It scans the pictures folder the first
time it's called, and loads a dictionary in memory mapping file names
(converted to lower case) to FolderItems. This makes it
case-insensitive on all platforms, and also greatly reduces the amount
of time it takes to locate a file. I also keep another dictionary
mapping file names (again in lowercase) to Picture objects. This isn't
loaded at startup, but instead is a cache; the first time any
particular picture is asked for, it's read from disk, and then stored
in the cache dictionary so it can be returned very quickly next time.
This feature request would help the manageability as well:
Canvas Backdrop IDE Chooser Should Allow Typing Image Name
http://www.realsoftware.com/feedback/viewreport.php?reportid=sipdmlcb
True.... though I never use Canvas.Backdrop, so it's not a pain I've
felt myself. Backdrop always seems like a temporary crutch to me; I
almost always end up needing to do something in the Paint event, so I
may as well draw the background image there too.
Best,
- Joe
--
Joe Strout -- joe at strout dot net
Verified Express, LLC "Making the Internet a Better Place"
http://www.verex.com/
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>
|