Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
EditBox 'remembers' previous value
Message
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
EditBox 'remembers' previous value
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01519507
Message ID:
01519507
Views:
137
Hi everybody,

I have a form with the TreeView on the left (based on TList from bennet-tech) and pageframe with 10 pages on the right.

In one of the pages I only have an Add button. This is the code in this button:
LOCAL lnVenueID
thisform.lAdding = .t.
SELECT rsTemplates
APPEND BLANK
lnVenueID = thisform.VenuesTree.ItemValues(thisform.LastSelectedIndex,'VenueID').Value
replace VenueID WITH m.lnVenueID
this.Parent.Parent.ActivePage = 9 && Template Edit  
this.Parent.Parent.pagTemplateEdit.txtDescription.SetFocus()
The controls on the Template Edit page are bound to rsTemplates' fields.

However, for some mysterious reason the EditBox for Notes shows the unrelated record note, not the blank.
Do you know if I need to do something? May be to be sure I just need to assign blank value to this?

Also, this field originally came from the Text type field in SQL Server. I already suggested to get rid of them and switch to varchar(max). We're using SPT with ODBC - will it work fine?

Thanks in advance.
If it's not broken, fix it until it is.


My Blog
Next
Reply
Map
View

Click here to load this message in the networking platform