Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Report Toolbar during runtime.
Message
From
16/12/1998 13:46:29
 
 
To
16/12/1998 12:57:59
Becky Vidal
Heritage Information Systems, Inc.
Richmond, Virginia, United States
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00168147
Message ID:
00168178
Views:
29
>Frank, thanks for your tip on how to make the Report toolbar accessible during runtime. I have the following code in my application and I am getting an error (Cannot update cursor) when the program reaches the DELETE...line. What am I doing wrong?
>
>
>SET RESOURCE OFF
>SELECT 0
>USE foxuser EXCL
>DELETE ALL FOR id = "REPORTTOOLS"
>DELETE ALL FOR id = "TTOOLBAR"
>PACK
>APPEND FROM holdrpt.dbf
>SET RESOURCE ON
><PRE>
>Thanks

I'm not sure, but we do it differently:

<PRE>
  USE SYS(2005) AGAIN IN 0 ALIAS resource
  USE repoinit IN 0
  SELECT repoinit
  LOCAL ari[1]
  SCAN ALL
    SCATTER MEMO TO ari
    UPDATE resource ;
           SET type=repoinit.type, ;
               id=repoinit.id, ;
               name=repoinit.name, ;
               readonly=repoinit.readonly, ;
               ckval=repoinit.ckval, ;
               data=repoinit.data, ;
               updated=repoinit.updated ;
           WHERE id=repoinit.id ;
                 AND name=repoinit.name
    IF _TALLY=0
      INSERT INTO resource FROM ARRAY ari
    ENDIF
  ENDSCAN
  USE IN repoinit
  USE IN resource
  FLUSH
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Reply
Map
View

Click here to load this message in the networking platform