Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.clipper.visual-objects > #12408
| From | Chris Pyrgas <"chris (at)"@xsharp.eu> |
|---|---|
| Newsgroups | comp.lang.clipper.visual-objects |
| Subject | Re: Passing Variables |
| Date | 2019-04-08 14:28 +0300 |
| Organization | Aioe.org NNTP Server |
| Message-ID | <q8fb6g$2bc$1@gioia.aioe.org> (permalink) |
| References | <9fe69513-5e9b-4d87-8f17-ab1329f5fbdc@googlegroups.com> |
Hi Jeff,
Where is it that you see the "NIL00012", is it somewhere in your window,
or is it in the console where you print it? Note that if you use "??" in
order to print to console, then there's no new line added, the text will
be appended to anything was written before. So maybe you had printed
first a value that was NIL, then printed the correct value of 00012, so
as a result you got NIL00012 when printing one after the other? In order
to avoid such issues, better always use ? instead of ?? to print to console.
If that's not the problem, then please post some more code, we need to
see exactly what you are doing, where it is that you print the value and
where, etc. Also, not sure if the flow of your code is as intended, you
are creating a window and assign it to a var (oWin), but then, without
showing that first window, you are creating another instance of the same
window and assign it again to the same var. I think there's a code flow
problem here, what was your intended behavior you wanted to create?
Chris/X# devteam, although I will not preach you about X# :)
> 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