xsharp.eu • RDD FieldGet() and FieldPut() missing
Page 1 of 1

RDD FieldGet() and FieldPut() missing

Posted: Mon Oct 07, 2019 11:03 pm
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

RDD FieldGet() and FieldPut() missing

Posted: Tue Oct 08, 2019 6:35 am
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

RDD FieldGet() and FieldPut() missing

Posted: Tue Oct 08, 2019 7:02 am
by robert
Jamal,

What Karl-Heinz said.

Robert

RDD FieldGet() and FieldPut() missing

Posted: Thu Oct 10, 2019 11:25 am
by Jamal
Hi Guys,

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

Jamal