Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Updating Forms
Message
De
02/04/1999 15:34:34
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
02/04/1999 15:20:45
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00204658
Message ID:
00204783
Vues:
12
Hi Jason,
Before digging further let's correct a point I saw at first glance if it's not a typo. Your init code :
lparameters tcOfficeID
=seek(tcOfficeID,"offices","office.nofficeid")

Here the form for seek() should be :
=seek(Whattoseek, [Tablealiastoseek], [TagnameToSearchOn])
As I could see you used "offices" as table alias, but "office.nofficeid" as tagname. Say your table alias is "offices" and you have a tag on officeid as "nOfficeId". Then it would be :
=seek(tcOfficeID,"offices","nOfficeId")
Also if Id is a char value it's wise to use trim() (not so always but for the moment accept it like that).
=seek(trim(tcOfficeID),"offices","nOfficeId")
Cetin


>Hi Cetin -
>
>Thanks for your reply today concerning passing parameters from a parent form to a child. I appreciate your help. Another developer has been trying to help me today with this "proceedure" as well, but I still haven't been able to get it to work. I assure you, it isn't b/c of your (or his) lack of good info, it is just that my programming/coding experience is nill, and everything is an epic battle for me!
>
>I would like to lay out what I have done, and hopefully you can pinpoint where I have dropped the ball.
>
>To refresh your memory, I have a form called OFFICES with a cmd button called ASSIGN CONTACTS that fires my OFFICE_ASSIGNMENTS form.
>
>I want to pass a parameter to the child form, b/c when I click on the cmd button, the field, nofficeid of the offices form isn't placed into the nofficeid field of the OFFICE_ASSIGNMENTS table like I want.
>
>So, in the init event of my OFFICE_ASSIGNMENTS table, I have placed the code:
>
>lparameters tcOfficeID
>=seek(tcOfficeID,"offices","office.nofficeid")
>
>** Based upon the code you gave me earlier today. I hope I have filled in the correct info for the second line of code.
>
>Also, I have set the data session to Private Data Session.
>
>
>Then, I went over to my offices form and in my click event for my command button that fires my OFFICE_ASSIGNMENTS table, I have placed the code:
>
>DO FORM office_assignments WITH office.nofficeid
>
>
>When I go to run my form and click the command button, I receive a message that says, alias not found.
>
>Do you see where I am butchering this code..ha!
>
>TIA
>
>Jason
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform