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

Notification

Icon
Error

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

Rank: Administration

Groups: Administrators, Beta Testers
Posts: 3,097
Man
Location: Auburn, GA

Thanks: 998 times
Was thanked: 497 time(s) in 412 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
Sponsor
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
Guest
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 1.9.5.5 | YAF © 2003-2011, Yet Another Forum.NET
This page was generated in 0.026 seconds.