Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Input Date in the TextBox
Message
From
28/06/2001 06:28:08
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
28/06/2001 06:19:04
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00524522
Message ID:
00524585
Views:
16
>>Cetin
>>You're right about adding the properties to the form, instead of using public. OTOH, sometimes i'm lazy, and i define all the memvars as public in the init, and release them in the unload method. This way, i can load the data with scatter and save with gather, instead of writing all the Replace commands.
>>
>
>OK Jaime,
>I'm not in the group that's against public vars :) However as I said in my last reply to myself if a controlsource is set to memvar it's implicitly made public by VFP itself :)
>Pageframes have some problem (more truely a feature for performance) with this and refreshing the pages in a loop workaround it too.
>Cetin

And again BTW :)
Insetead od scatter-gather to memvar you could
scatter name thisform.oRecord
*bind controlsources to thisform.oRecord.Fieldname
..
gather name thisform.oRecord
too. Also for multiple scatters it could be an array property :
dimension thisform.oRecs[reccount()]
for ix=1 to reccount()
 scatter name thisform.oRecs[ix]
 skip
endfor
You could mimic kind of browse :)
for ix = 1 to 5
 with eval('thisform.mytxt'+ltrim(str(ix)))
 .Controlsource = 'thisform.oRecs['+ltrim(str(ix))+'.LastName'
 endwith
endfor
Or just set your navigation buttons to change ix :)
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