Wrox Programmer Forums
|
VB Databases Basics Beginning-level VB coding questions specific to using VB with databases. Issues not specific to database use will be redirected to other forums.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB Databases Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 15th, 2007, 03:40 PM
Registered User
 
Join Date: Jun 2003
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Storing data to a variable

Hello
  I have a label bound to a ADO data control. Is there a way to store the contents of bound label to a variable. Or is there a way to store the same data directly to a variable without using a bound object.

Thanks Mike
 
Old April 16th, 2007, 01:53 PM
Friend of Wrox
 
Join Date: Nov 2004
Posts: 1,621
Thanks: 1
Thanked 3 Times in 3 Posts
Default

If your label is named lblOne:
Code:
    Dim s As String
    s = Me.lblOne.Caption
    You just need to choose where to trigger this line.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Storing HTML in a Variable Stevenm122084 XSLT 1 February 22nd, 2008 03:51 PM
storing Javascript variable to ASP variable rupen Classic ASP Basics 5 April 10th, 2007 07:06 AM
Storing an include in a variable trufla Beginning PHP 1 May 21st, 2006 10:52 PM
Getting oracle value and storing in xslt variable msj_vijay XSLT 0 December 29th, 2005 04:21 AM
Storing Value from Variable into Text File DaBigPolska Beginning VB 6 2 January 7th, 2005 05:34 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.