Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: John Discallar
  Where is John Discallar?
 Nagoya
 Japan
 John Discallar
 To: Simon Arnold
  Where is Simon Arnold?
 Halifax
 United Kingdom
 Simon Arnold
 Tags
Subject: RE: VARREAD() in VB - Big Thanks!
Thread ID: 22136 Message ID: 22511 # Views: 11 # Ratings: 0
Version: Not Applicable Category: Visual Basic
Date: Monday, April 21, 2003 7:27:44 AM         
   


> > > > > >
> > > > > > What's its VB Counterpart??
> > > > > >
> > > > > > Foxpro Child
> > > > >
> > > > >
> > > > > HI,
> > > > > In VFP 7.0 and 8.0 Varread() only states for backward compatibility.
> > > > > I cannot find out what the varread() does in VFP to see if there
> > > > > is something similar in VB.
> > > > >
> > > > > Pete from the Great White North. (Only in Canada, ay.) Over and Out ...
> > > >
> > > > Some of my "update" method uses macro for example i have variable field named "vname" & field name "name"
> > > > all of my variables related to upting are named with "v" , so that i could only do 1 specific functions & pass the
> > > > VARREAD() function, which means it will pass the variable name of the current field and automatically update
> > > > the field.
> > > >
> > > > Foxpro Child
> > > >
> > > > On Error Goto Hell
> > > > 

> > >
> > > VARREAD() provides the name of the current field or memory variable into which you are entering data.
> > >
> > > So in VB if you have a textbox on a form called txtName
> > >
> > > txtName.Text = text value held in the control, txtName = name of control that holds the value.
> > >
> > > Simon Arnold.
> >
> > Thanks for the reply, so how would i get the name of the textbox "txtName" , like varread() in vfp?
> >
> > Foxpro Child
> >
> > On Error Goto Hell
> > 

>
> You have to realise that FoxPro 2.6 and below are not property/method based development environments, when you create the forms in VB or VFP you now have a name property on all labels, command buttons, text boxes, etc. so when you add one of these controls you will give it the name you want, by default when you add one of these the default name is text1 for a text box, command1 for a command button etc..
>
> In general VARREAD() died with FoxPro 2.6 and is only available in VFP for running old 2.6 programs.
>
> Plus in VB you would know what control holds what value, due to the fact you programmed it that way, so having a control called txtOrderID on a VB form, you know this text box holds an Order ID.
>
>
> Simon Arnold.


Foxpro Child
On Error Goto Hell


COMPLETE THREAD

VARREAD() in VB? Posted by Caij Gomez @ 4/10/2003 9:24:46 AM
RE: VARREAD() in VB? Posted by Pete Sass @ 4/13/2003 6:44:07 AM
RE: VARREAD() in VB? Posted by Caij Gomez @ 4/14/2003 8:02:17 AM
RE: VARREAD() in VB? Posted by Simon Arnold @ 4/16/2003 9:02:13 AM
RE: VARREAD() in VB? Posted by Caij Gomez @ 4/20/2003 10:03:37 AM
RE: VARREAD() in VB? Posted by Simon Arnold @ 4/20/2003 5:13:06 PM
RE: VARREAD() in VB - Big Thanks! Posted by Caij Gomez @ 4/21/2003 7:27:44 AM