xbase to clarion with reserved word as xbase variable 
Author Message
 xbase to clarion with reserved word as xbase variable

Hi folks,

I have to automate the import of an xbase file into a clarion file.
Unfortunately, the xbase file contains the variable NEW, a reserved
word in CW.

Can anybody suggest an approach that does not require manual
intervention with each import?

Thanks in advance,
chris



Wed, 01 Dec 1999 03:00:00 GMT  
 xbase to clarion with reserved word as xbase variable



Quote:
> Unfortunately, the xbase file contains the variable NEW, a reserved
> word in CW.

You can declare the file structure and use a valid label and then put NEW
in the External Name attribute (see the second tab under file properties in
the dictionary). The generated code will look something like this:

!...some fields here...
IsItNew    STRING(1),NAME('NEW')
!...more fields here...

Steve
--
Steven C. Gallafent - The Computer Guy



Thu, 02 Dec 1999 03:00:00 GMT  
 xbase to clarion with reserved word as xbase variable

When you define Dbase file, give that field another name like NewFlag and
in the
external name put in NEW. That should get you around the problem.  Working
with xbase files you might also run into the same thing with key names.
Clarion
doesn't allow a key and a field to have the same name. To get around it, I
normally
call the key something else and then put the true name in the external name
field.

HTH's
-
Michael Gould
TopSpeed Corporation - Consulting Division
Team TopSpeed - Internet


Quote:
>Hi folks,

>I have to automate the import of an xbase file into a clarion file.
>Unfortunately, the xbase file contains the variable NEW, a reserved
>word in CW.

>Can anybody suggest an approach that does not require manual
>intervention with each import?

>Thanks in advance,
>chris




Thu, 02 Dec 1999 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Obtaining a list of Clarion Reserved Words

2. Clarion Standard 2.003 connecting to Xbase files

3. clarion versus xbase++

4. Problem with reserved words in column names.

5. Reserved words in JCL

6. PB 3.5 Reserved Words List?

7. Reserved word ?

8. CW4 - Reserved Words

9. Reserved Words (2)

10. Reserved words

11. 359 Reserved Words and No Syntax

12. Reserved Words and Functions

 

 
Powered by phpBB® Forum Software