Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Clipper Visual-Objects > Strange behavio...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 6 Topic 11358 of 11560
Post > Topic >>

Strange behaviour codeblock in added bbrowser datacolumn

by D.J.W. van Kooten <public@[EMAIL PROTECTED] > Apr 29, 2008 at 12:36 PM

In a bBrowser I added the following code:

cStr:="0017"
SELF:oDCBrowser:InsertNewColumn(#Contactnaam,1,{|o|TestThis(cString+o:Contact)})

Basically, this calls:

METHOD InsertNewColumn(sLabel,nPos,oBlock,lShowNow) CLASS 
.....
	oColumn := bDataColumn{SELF,SELF:Server,oBlock,#Expression}

Now what happend is this. TestThis is receiving cString + the (string)
content of o:contact, a databasefield, as expected. It performs some
seek operation and returns a string value in the database which is
displayed correctly in the inserted column.

However, as soon as I click on the cell, the value disappears to be
replaced by NIL. For every cell I click upon, one by one! Even if the
function doesn't use the passed parameter at all, the same happens,
e.g.:

FUNCTION TestThis(ctest)
RETURN "Something"

After dozens of attempts, I find that passing a fixed string and the
content of the database (oContact) together causes the problem. When I
pass a fixed string to TestThis or the content only there is no
problem.

I wonder is what happens here. Why is the initial value correct and
why does it turn into nil when you click on the cell?

Dick van Kooten
 




 6 Posts in Topic:
Strange behaviour codeblock in added bbrowser datacolumn
D.J.W. van Kooten <pub  2008-04-29 12:36:08 
Re: Strange behaviour codeblock in added bbrowser datacolumn
"Paul D B" <  2008-04-29 13:31:00 
Re: Strange behaviour codeblock in added bbrowser datacolumn
"Stephen Quinn"  2008-04-29 15:25:50 
Re: Strange behaviour codeblock in added bbrowser datacolumn
D.J.W. van Kooten <pub  2008-04-29 18:07:23 
Re: Strange behaviour codeblock in added bbrowser datacolumn
"Glen Townsley"  2008-04-30 05:11:55 
Re: Strange behaviour codeblock in added bbrowser datacolumn
D.J.W. van Kooten <pub  2008-04-29 21:22:45 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Jul 25 16:27:48 CDT 2008.