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

FOXUSER resource file don't work

Status
Not open for further replies.

mzvada

Programmer
Oct 28, 2002
9
0
0
HU
Hi ,

Can anybody help me? When I change the field sequence in the brows window, the FOXUSER resource file don't 'remember' the new sequence by the preference. In the browse window there are different fields of different tables...

BROW FIELD;
PART.NEV1:H='Partner neve',;
REND_TIPUS:H='RT',;
KISZ_RAKT:H='Rakt' ,;
REND_DAT:H='Dátum' ,;
REND_SZAM:H='RendSzám' ,;
BRUTTO:H='BruttoFt' ,;
REND_STAT:H='Stát' ,;
GEPK.FRSZ:H='ForgRSz',;
SZALL_DAT:H='SzállDát' ,;
ELOLEG:H='Foglaló' ,;
PENZTARBIZ:H='PéntBiz',;
FIZ_MOD:H='FizMód' ,;
KEZELO:H='Kezelõ' ;
normal noedit noappend nodele PREF REND_SEEK

Thanks in advance:

Martin Zvada
 
Martin,
Have you checked to make sure that the resource file is actually being used? (i.e. SET RESOURCE ON) Have you checked to make sure the Read-only attribute has not been set to .T. for this file? Have you opened this resource file as a table and checked whether the logical field READONLY is true (.T.) for this Preference (WINDBROW) record?

What type, version and update level of FP are you using? e.g. FoxPro for Windows 2.6a.

Rick
 
The next time you browse the table do you "BROWSE LAST"?
Ken F
 
Hi Martin:
If you call the BROWSE each time with the entire code you've listed above, your BROWSE window will take on the attributes as you have listed them, not the way you modified your window by clicking and dragging (or resizing or whatever) after the window was displayed. You'll have to use (just the command) BROWSE LAST (assuming everything in Rick's post above has been done).
 
Martin,
I also presume that while you specify the browse like above the first time, after that, you are using just:
Code:
BROWSE PREF REND_SEEK
Otherwise you will reset the preference to this "base" configuration - not what the user last left it.

Rick
 
Rick,

Your suggestion seems to be the best one. I will use this (if you allow :)).
But the only thing, what I have to find:
how can I decide, that the actual is the "first running" or not...

Thank's the perfect replies everyone.

Martin
 
Martin,
Something like this should work:
Code:
lcSvAlias = ALIAS()
SET RESOURCE OFF
USE SYS(2005) NOUPDATE IN 0 ALIAS myresource
SELECT myresource
LOCATE FOR ID="WINDBROW" AND Name="REND_SEEK"
llFound = FOUND()
USE IN myresource
SET RESOURCE ON
SELECT (lcSvAlias)
IF llFound && use what we last updated
   BROWSE PREF REND_SEEK
ELSE       && create this preference
   BROW FIELD;
     PART.NEV1:H='Partner neve',;
     REND_TIPUS:H='RT',;
     KISZ_RAKT:H='Rakt' ,;
     REND_DAT:H='Dátum'  ,;
     REND_SZAM:H='RendSzám' ,;
     BRUTTO:H='BruttoFt'    ,;
     REND_STAT:H='Stát' ,;
     GEPK.FRSZ:H='ForgRSz',;
     SZALL_DAT:H='SzállDát' ,;
     EEG:H='Foglaló'    ,;
     PENZTARBIZ:H='PéntBiz',;
     FIZ_MOD:H='FizMód'   ,;
     KEZELO:H='Kezelõ'    ;
   normal noedit noappend nodele PREF REND_SEEK
ENDIF
Rick
 
Thank's Rick

Please give your account number for sending the money :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top