[BNM] 2 questions of ASP/VB

Glenn Williams rollacoast at yahoo.co.uk
Mon Apr 10 18:20:40 BST 2006


You can probably use Eval or Execute to do this. With Execute you can
execute statements held in a string. It's a while since I did any ASP so
can't remember how eval works but I think it's similar.
Not quite sure I understand your second one but there are many commands to
truncate strings in many wonderful ways.
HTH
Glenn
-----Original Message-----
From: Pete Dowdell [mailto:contact at stridebird.com] 
Sent: 10 April 2006 18:00
To: bnmlist at brightonnewmedia.org
Subject: [BNM] 2 questions of ASP/VB


I am programming a little with  ASP/VB[*] for a change, and I have a 
couple of questions for the ASP heads on the list.

1. Does VB support variable variables,  ie using the value of a variable 
as a variable name?

2. With a ASP/VB to Access via ADO connection setup, is it possible to 
get the server to auto-truncate the input value of a field - so that if 
a field is set up as say text / 50 characters long, and the input is 
longer, it just truncates to 50 chars rather than throw an error?  Or do 
I have to truncate separately before writing to the database?

Much obliged, ta ta

Pete

[*] not .NET mind, classic ASP

-- 

BNM info/subscription/archives: http://www.brightonnewmedia.org/

BNM archive search: http://www.roddis.org/bnm/search.php
BNM Del.icio.us tag: http://del.icio.us/tag/bnm/
BNM Flickr group: http://www.flickr.com/groups/bnm/

BNM powered by http://www.screen-play.net/


-- 
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.385 / Virus Database: 268.4.0/306 - Release Date: 09/04/2006





More information about the BNMList mailing list
BNMList is hosted by Screenlists, a Screen-Play.net service