Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Create A DBC using GENDBCX
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Create A DBC using GENDBCX
Miscellaneous
Thread ID:
00652431
Message ID:
00652431
Views:
47
Hi All,

I'm experimenting with using GENDBCX to create a DBC and the associated tables. While reviewing the code I saw the following:
CLOSE DATABASE
USE 'MYDATA.DBC'
g_SetSafety = SET('SAFETY')
SET SAFETY OFF
LOCATE FOR Objectname = 'StoredProceduresSource'
IF FOUND()
    APPEND MEMO Code FROM [SDGENDBC.krt] OVERWRITE
    REPLACE Code WITH SUBSTR(Code, 70, 22459)
ENDIF
LOCATE FOR Objectname = 'StoredProceduresObject'
IF FOUND()
   APPEND MEMO Code FROM [SDGENDBC.krt] OVERWRITE
   REPLACE Code WITH SUBSTR(Code, 22529)
ENDIF
The code is straight forward and I understand what is happening but I do not understand the why, the purpose of the REPLACE commands. Can someone enlight me?


Thanks,

Robert
Next
Reply
Map
View

Click here to load this message in the networking platform