RDD FieldGet() and FieldPut() missing

This forum is meant for questions and discussions about the X# language and tools
Post Reply
Jamal
Posts: 320
Joined: Mon Jul 03, 2017 7:02 pm

RDD FieldGet() and FieldPut() missing

Post by Jamal »

I am testing the X# RDD (DBFCDX) in C# app, it opens the file and can set the order, etc.

However, I see that the FieldGet and FieldPut() which accept a Field Name string, are missing.
Looking at the XSharp.RT.Functions, I found the internal functions __FieldGet, and __FieldSet() which mimics FieldPut in VO.

I think those functions need to be exposed.

Jamal
Karl-Heinz
Posts: 774
Joined: Wed May 17, 2017 8:50 am
Location: Germany

RDD FieldGet() and FieldPut() missing

Post by Karl-Heinz »

Hi Jamal,

X# does the same as VO does. The VO Fieldget() function doesn´t accept fieldnames, only numeric field positions. What you might do is to overload the Fieldget() function.

Code: Select all

FUNCTION FIELDGET ( cField AS STRING ) AS USUAL 
	
	RETURN FieldGet( FieldPos ( cField ) )	
or create - similar the FieldGetSym() logic - a function named FieldGetString() instead.

regards
Karl-Heinz
User avatar
robert
Posts: 4529
Joined: Fri Aug 21, 2015 10:57 am
Location: Netherlands

RDD FieldGet() and FieldPut() missing

Post by robert »

Jamal,

What Karl-Heinz said.

Robert
XSharp Development Team
The Netherlands
robert@xsharp.eu
Jamal
Posts: 320
Joined: Mon Jul 03, 2017 7:02 pm

RDD FieldGet() and FieldPut() missing

Post by Jamal »

Hi Guys,

I was thinking DBServer which has those methods! You are right.

Jamal
Post Reply