Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Kickin around memory variables?
Message
From
24/05/2001 15:16:11
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00510941
Message ID:
00511140
Views:
22
>Cetin,
>
>I may get a clue about this problem when I troubleshoot the checkboxes which are also not working on the pageframes that are hidden behind the top pageframe. The difference here being that the checkboxes don't have a ControlSource or Value. To fill the checkboxes on the form I look at the table and see if the field(s) has a "Y", "N", or "U" for Yes, No, Unknown and then check the checkboxes accordingly. I am getting ready to troubleshoot that problem as well and may find the answer to my other problem relative to pageframes and GATHER. I will let you know what happens and how I fixed it. But don't hold your breath. Thanks again. Your efforts are always appreciated by your fellow worker bees.

Steve,
Actually spent some more effort :) As I said it works w/o public declaration and it's a refresh problem I think what you're experiencing or some other code somewhere. Steps to test :

-Create a form and put a test table in DE - say employee.dbf.
-Put a pageframe on form and 4 buttons
-Now drop fields into different pages and then for each field you added set alias to 'm.' in controlsource
-Caption 4 bu7ttons as 'prev, next, save, discard'. But remember we're just testing so no error checking in the following code.
OK form is ready so codes :
*Form.refresh
with This.Pageframe1
  for each oPage in .Pages
    oPage.Refresh
  endfor
endwith

*Form.Activate
if empty(this.tag)
  scatter memvar memo
  this.refresh
  this.Tag = 'scattered first time'
endif

*Prev button
skip -1 in 'employee'
scatter memvar memo
thisform.refresh

*Next button
skip 1 in 'employee'
scatter memvar memo
thisform.refresh

*save button
gather memvar memo
thisform.refresh

*discard button
scatter memvar memo
thisform.refresh
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform