Welcome Guest! To enable all features please Login or Register.



Accessing user-defined fields via LOGic's COM interface
#1 Posted : Tuesday, July 15, 2014 10:04:08 AM(UTC)

Rank: Administration

Groups: Administrators, Beta Testers
Posts: 3,080
Location: Auburn, GA

Thanks: 988 times
Was thanked: 492 time(s) in 407 post(s)
There is a method of the log form named

write_userfield() that takes three parameters:

The Tag
The Value
Overwrite existing data

So for example

Log.write_field "NAME", "FE", True
Log.write_userfield_field "IOTA:", "AF-001", True

(where Log. is the reference to the log form in your code).

To read a user-defined field,

name = Log.read_field "NAME"
iota = Log.read_userfield "IOTA:"

You can also specify the return type:

Log.read_userfield("IOTA:", "C")

Valid types are:

"C" returns Character (default)
"D" returns Date
"I" returns Integer
"F" returns Float
"L" returns Logical
Note: We receive a commission from Amazon when you purchase via this link. It does not affect your cost. Thank you!
Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF | YAF © 2003-2011, Yet Another Forum.NET
This page was generated in 0.014 seconds.