Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.clipper.visual-objects > #12405
| Newsgroups | comp.lang.clipper.visual-objects |
|---|---|
| Date | 2019-04-08 03:55 -0700 |
| References | <9fe69513-5e9b-4d87-8f17-ab1329f5fbdc@googlegroups.com> |
| Message-ID | <a8f026bd-a978-4772-b0ee-e3e6cef139f2@googlegroups.com> (permalink) |
| Subject | Re: Passing Variables |
| From | rolandgell.rg@gmail.com |
Hi Jeff, i am not a fullstack vo - developer, but i propose to use
oWin:server:fieldget(#)
BR Roland
Am Samstag, 30. März 2019 05:11:55 UTC+1 schrieb Jeff Rollo:
> Hi Again... :)
>
> What am I missing? This code
>
> //Job Number Search
> ELSEIF Len(AllTrim(self:oDCSingleLineEdit1:CurrentText)) > 0
> nOption := 5
> oServer := DETAILS{}
> oWin := JobNoRep{}
>
> oWin:GoTop()
>
> oWin:server:SetOrder("JobNumber", "DETAILS")
> oWin:Seek(self:oDCSingleLineEdit1:CurrentText)
> oWin := JobNoRep{,, (oWin:server), oWin:JOBNUMBER}
> cName := oWin:FIELDGET(#CLNAME)
> cTempServer := CLIENT{}
> cCode := oWin:FIELDGET(#CLCODE)
> cTempServer:Seek(cCode)
> cName := cTempServer:FIELDGET(#CLNAME)
> cCaption := AllTrim(cCode) + " - " + AllTrim(cName)
> cTempServer:Close()
> oWin:ClientName := cCaption
> self:Owner:Owner:Owner:EndWindow()
> oWin:Show(SHOWCENTERED)
>
> self:EndDialog()
>
>
> Produces a value of NIL00012 where "00012" could be any 5 digit Job number found in the database.
>
> When I put a ?? uExtra to see that the variable is being passed correctly in the postinit of the JobNoRep form, it returns the NIL before the Job Number, and after several hours and attemots, I cannot for the life of me work out why. Any ideas please?
>
> Thanks very much
>
> Jeff
Back to comp.lang.clipper.visual-objects | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Passing Variables Jeff Rollo <jrollo64@gmail.com> - 2019-03-29 21:11 -0700
Re: Passing Variables Karl Faller <mail_withoutthat_@_drei-f_andthat_.de> - 2019-03-31 11:08 +0200
Re: Passing Variables Jeff Rollo <jrollo64@gmail.com> - 2019-03-31 03:05 -0700
Re: Passing Variables Jeff Rollo <jrollo64@gmail.com> - 2019-03-31 03:10 -0700
Re: Passing Variables Johan Nel <johan.nel@xsinet.co.za> - 2019-03-31 12:20 +0200
Re: Passing Variables Jeff Rollo <jrollo64@gmail.com> - 2019-03-31 05:22 -0700
Re: Passing Variables Johan Nel <johan.nel@xsinet.co.za> - 2019-03-31 15:38 +0200
Re: Passing Variables rolandgell.rg@gmail.com - 2019-04-08 03:55 -0700
Re: Passing Variables Jeff Rollo <jrollo64@gmail.com> - 2019-04-08 04:10 -0700
Re: Passing Variables Jeff Rollo <jrollo64@gmail.com> - 2019-04-08 04:13 -0700
Re: Passing Variables Chris Pyrgas <"chris (at)"@xsharp.eu> - 2019-04-08 14:28 +0300
Re: Passing Variables "Jamal" <nospam@example.com> - 2019-04-08 11:23 -0400
csiph-web