Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to create pageframe
Message
From
23/09/1998 09:48:26
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
23/09/1998 09:27:52
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00139400
Message ID:
00139802
Views:
29
>cetin..
>
>I didnt shout at you..... I really appreciate about your helpful information.
>the coding that you gave me .. It doesn't work and just act like normal nothing happened, no message, no error........................

OK glad to know that (capital letters made me think you were shouting, sorry). Now let's try to find out why it doesn't work.
* Changetabs - custom form method
lparameters tnPage
lcAlias = alias()
select description from category ;
 where !deleted() ;
 into cursor tmpCursor
with thisform.pageframe1
 .pagecount = reccount()
 scan
   .pages(recno()).caption = tmpCursor.description
 endscan
 .pages(tnPage).fontbold = .t.
endwith
use in "tmpCursor"
if !empty(lcAlias)
 select (lcAlias)
endif

* Button.click changing tabs
thisform.changetabs(2)
This one works on my test form. An alternative code:
* Changetabs - custom form method
lparameters tnPage
select description from category ;
 where !deleted() ;
 into array aTmp
with thisform.pageframe1
 .pagecount = alen(aTmp)
 for ix = 1 to .pagecount
   .pages(ix).caption = aTmp[ix]
 endfor
 .pages(tnPage).fontbold = .t.
endwith
Both works. "Not working" you mean you lose controls on pages say 5, when pagecount decreased to 4 and increased back to 5 or something like that ? Maybe related code is never called (an if structure ?), put a wait window there to see if that's the case.
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
Reply
Map
View

Click here to load this message in the networking platform