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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Error in assigning "No" in static text

Status
Not open for further replies.

hnlade

Programmer
Oct 30, 2003
2
SG
Hi,

I have problems trying to display a static text field with the value "no". When all other string is used (eg. "n", "o", "not", etc.), Powerbuilder accepts and displays as per normal. However only with "no" it gives this error

"Error accessing external object property text at line ..."

Is this a Powerbuilder bug that we cannot have "no" as the value to display in a static text?
 
st_1.text = "no"

If this is what you are talking about, it works fine for me [PB 6.5]
 
Hi,

I am using PB5.0.04 and the text object I am referring to is the one in the datawindow. My code is as below.

dw_sheet.Object.st_email_adr.Text = "no"
 
hmmm... I am surprised..
However, it works if you set the text property to "no" in design time.
 
This could be an issue with your version of PowerBuilder. Try:

dw.Modify( "st_email_adr.Text = 'no'" )

Try applying the latest EBF free patches for your version from Sybase.com.

---
PowerObject!
-----------------------------------------
PowerBuilder / PFC Developers' Group
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top