bb.donnay-software.com

Donnay Software Web Forums
It is currently Sat May 30, 2020 11:12 pm

All times are UTC - 7 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Fri Apr 22, 2016 6:08 am 
Offline
User avatar

Joined: Tue Jul 28, 2015 5:15 am
Posts: 94
Some commands in Alaska requires rlock() when used in a shared mode file.

It looks like eXpress provides the same commands with the rlock() built in. (you don't need to use the rlock().
This is provided by using DCSTD.CH

In the eXpress documentation, it says APPENDBLANK in one word. But inside, it´s APPEND BLANK in 2 words exactly the same as Alaska xBase++.

To use the eXpress version of APPEND BLANK, you need to add #include DCSTD.CH at the beginning of each PRG file.
Could this be added in the XPJ file?


Top
 Profile  
 
PostPosted: Fri Apr 22, 2016 8:00 am 
Offline
User avatar

Joined: Tue Jul 28, 2015 5:15 am
Posts: 94
Question below.

--- from Alaska Help file.

The #include directive causes the preprocessor to insert the contents of the indicated file into the source code file. Files which are inserted from the preprocessor into the source code are called Include files and should contain only Directives or REQUEST declarations. The contents of an Include file is inserted at the location of the #include directive. The default file extension for include files is ".CH". All Xbase++ Include files are located in the ..\INCLUDE directory.

#include directives are generally placed at the beginning of a source code file. Include files solve a fundamental problem with directives. Directives are scoped to the source file in which they are defined. This means that if the same directive is used in several source files, it must be defined in each file. The Include file provides a method to define directives in one file, and then just #include that file in each source file requiring one more directives contained in that file. By their nature, Include files also promote better modularity, since maintenance of the various directives can be performed in one location.

The Include file STD.CH is automatically inserted by the preprocessor into each PRG file, without requiring a corresponding #include directive. The file STD.CH contains the directives for the translation of all Xbase++ commands. Instead of STD.CH, another file can be used as the automatic include file by using the /U compiler switch. STD.CH should not be changed. If changes are desired then a copy of STD.CH should be made and that new copy should be incorporated into the compile using /U.

---

So the question is more like: How should the DCSTD.CH be used, since, STD.CH from Alaska is automatically used and they could have the same command, like APPEND BLANK?


Top
 Profile  
 
PostPosted: Fri Apr 22, 2016 8:08 am 
Offline
Site Admin
User avatar

Joined: Wed Jan 27, 2010 6:58 pm
Posts: 4125
Location: Boise, Idaho USA
I do not recommend using DCSTD.CH in your applications.

This command set was designed only for using within DC_Dot() and XDOT.EXE.

You will run into many more problems if you do this.

You can easily create your own .CH file with the commands you want.
This will override the same commands that are in STD.CH.

_________________
The eXpress train is coming - and it has more cars.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 7 hours


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group