fbpx
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: RDD FieldGet() and FieldPut() missing

RDD FieldGet() and FieldPut() missing 1 week 3 days ago #11082

  Jamal's Avatar Topic Author Jamal Offline Posts: 148
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

Please Log in or Create an account to join the conversation.

Last edit: by Jamal.

RDD FieldGet() and FieldPut() missing 1 week 3 days ago #11086

  Karl-Heinz Rauscher's Avatar Karl-Heinz Rauscher Offline Posts: 378
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.

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

Please Log in or Create an account to join the conversation.

RDD FieldGet() and FieldPut() missing 1 week 3 days ago #11089

  Robert van der Hulst's Avatar Robert van der Hulst Offline Posts: 1246
Jamal,

What Karl-Heinz said.

Robert
XSharp Development Team
The Netherlands

Please Log in or Create an account to join the conversation.

RDD FieldGet() and FieldPut() missing 1 week 1 day ago #11129

  Jamal's Avatar Topic Author Jamal Offline Posts: 148
Hi Guys,

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

Jamal

Please Log in or Create an account to join the conversation.

  • Page:
  • 1