Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

error passing data between forms

Status
Not open for further replies.

iara84

Systems Engineer
Oct 25, 2022
13
0
0
CO
form1_khyans.jpg


In the form1 in the first edit button I have this code

nombre1 = thisform.TxtNomCli1.Value
identifi1 = thisform.TxtIdent1.Value
direccion1 = thisform.TxtDirec1.Value
telefono1 = thisform.TxtTele1.Value

DO FORM "C:\Users\iarodriguez\Documents\Visual FoxPro Projects\Proyecto clientes\Forms\form3.scx" WITH nombre1,identifi1, direccion1, telefono1

in the init of form3 I add the following code

LPARAMETER nomb1
THIS.nombre1 = nomb1
LPARAMETER identi1
THIS.identifi1 = identi1
LPARAMETER direcc1
THIS.direccion1 = direcc1
LPARAMETER telef1
THIS.telefono1 = telef1

form3_xxzpmq.jpg


when trying to save the form3 I get the following error:

unrecognized command verb

If I am going to use the variables that form3 receives, in the update button. should I create a method or property?
 
To receive multiple parameters you still only have one line of code:
Code:
LPARAMETER nomb1,identi1,direcc1,telef1

You can't split this up. And you can only have LPARAMETERS in the first line of code, no following line can be LPARAMETERS and the only thing you can put before an LPARAMETERS line is one or more lines of comments.

Chriss
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top