Questions tagged [xbase]

(A) Xbase is a structured format for storing data in files and indexes. It was used originally by foxPro and dBase. (B) Xbase is an expression language provided by Xtext.

83 questions
1
vote
1 answer

What is the different between these two Eobjects generated from the same resource

I don't understand why there are two different EObjects that (for me) should mean the same thing var script1 = resource.getContents().get(0) as Script var script2 = resource.parseResult.rootASTElement as Script They seem to contain different…
tgoossens
  • 9,676
  • 2
  • 18
  • 23
1
vote
1 answer

Using Python to write dbf table with fpt memos

I have a legacy application that uses .dbf and .fpt files. I am looking to read and write those files, I have figured out a way to write these files but not using fpt memos. I am using python 2.7.2 and dbf module 0.95.02. When I try to use the dbf…
Akama
  • 11
  • 2
1
vote
1 answer

Xtext Xbase JvmTypesBuilder only final parameter generated

I'm tring to generate, using the Xtend Xbase API, a simple Java mathod. This is the Xtend code. var jvmMethod = element.toMethod("fromSap",element.newTypeRef(element.dtoFullName))[ var jvmTypeReference= fromSap.sapType; var param =…
Panciz
  • 2,183
  • 2
  • 30
  • 54
1
vote
2 answers

What is the most active clipper-like community?

I work for a company that is using Microsoft Visual Foxpro 9. Since Microsoft has abandoned us, we no longer get fresh driver updates (the last was for ODBC was built for VFP version 6.) Clipper and Foxpro aren't too different, from what I…
jetimms
  • 417
  • 1
  • 5
  • 23
1
vote
1 answer

XText register global variables

I want to build tool support for the jape language from gate with the help of XText. Jape is basically a pattern language over annotations; you declare the actions to take when you encounter those annotations. The problem is that the actions can be…
nikolavp
  • 173
  • 5
1
vote
1 answer

View Compound Index (.cdx) from .DBF

I am trying to write a custom FoxPro XBase database driver for Unix via Perl. I am currently able to perform CRUD on my .dbf and .cdx indices. The point of sale software my store uses has a FoxPro based file system. The master plan behind the idea…
jejernig
  • 319
  • 2
  • 8
0
votes
0 answers

Cannot read all DBF file data properly, but i see some of that data in file opened as text editor

I have a data files from an old software that is still in use. My week long researches show that this file type might be
0
votes
2 answers

microsoft windows api: how to know a file is utf?

Please anyone can tell how to, using windows api in my program (Alaska Xbase++), can I check if a TXT file is UTF (8, 16, etc.) or ANSI? Thanks I searched the web and found nothing.
EngiDev
  • 41
  • 6
0
votes
0 answers

How to index the automatic primary key or create a primary key in another way in VB.NET

I created a winform desktop application vb.net with a DBF database and a DBF database in use in a dos application. So is there a solution to re-index the winform without having to re-load the form or is there another solution so that I can create a…
roy
  • 693
  • 2
  • 11
0
votes
1 answer

Switching from CURL to HTTPie. Equivalent of CURL -T

I am working with cURL which is integrated into an xBase program. And the curl command line by me includes the option -T to download a local file to a CalDAV calendar. I tried to find it in HTTPie, but I did not find an equivalent command. Does…
0
votes
2 answers

How to declare a function in Xbase

Hi this is probably an odd question but i would like to know how i can declare a function in Xbase. I was told this is how : declare function prefix:name($parameter as DataType) as returnDataType { ..code.. }; I did this : declare function…
Yuu
  • 49
  • 8
0
votes
1 answer

sqlite insert function duplicate id error

I am trying to copy a dbf database into a sqlite database I have the following code db=dataset.connect('sqlite:///:memory:') table =db['table1'] for record in DBF(settings['xbasefile']): db['table1'].insert(record) this loads the record but…
user13520940
  • 133
  • 2
  • 7
0
votes
0 answers

Cannot resolve JvmTypeReference

I am using XText to create a DSL that works with Java classes. I have created a metamodel that includes a JvmTypeReference to an existing Java class (I am only interested in classes, but I have tried JvmType and JvmGenericType, to no avail). In the…
levente
  • 95
  • 1
  • 1
  • 7
0
votes
1 answer

Xtext: use generated classes in DSL file, problem of missing type

The question: how do i configure Xtext and Xbase in order to use in my DSL file (the one with DSL extension, ".myx") classes that are not yet generated by JvmModelInferrer? Here is the language grammar: grammar org.xtext.example.mydsl.MyX with…
0
votes
0 answers

Confused how to support array with xbase

I want can use array normally like: a[1]. The xbase seems not support array grammar, so i defined this myself. But this task overcome my head. Thanks. error(211):…