YRTL functions | Uniface 9 | Forum

Avatar

Please consider registering
guest

sp_LogInOut Log In sp_Registration Register

Register | Lost password?
Advanced Search

—  Results per page  —








— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters
For a group of consecutive words like 'end of support' use Match phrase

sp_Feed Topic RSS sp_TopicIcon
YRTL functions
16 May 2018
6:15 pm
Avatar
fearandir
Member
Forum Posts: 58
Member Since:
07 Nov 2014
sp_UserOfflineSmall Offline

For some reason, only the  uGetHwnd operation is defined on my YRTL signature.

I would like to use all the operations that are included in the DLL.

Should i create manually all the definitions manually?

 

I tried with UFGET and my uniface applications crashes.

 

SIGNATURE:

Operation= UFGET

Parameters= FIELD: in,String  BUFFER:in,String MAX:in;Numeric(short)

 

CODE:

variables
string buffer
handle hYrtl
endvariables

newinstance “YRTL”, hYrtl
hYrtl->ufget(“field.entity”,buffer,”1000″)

16 May 2018
8:39 pm
Avatar
Knut
Member
Forum Posts: 201
Member Since:
01 Oct 2012
sp_UserOfflineSmall Offline

I’m not sure what you’re trying to do – but;
For example;
ufget is a call to get data from Uniface into a 3gl like C.
ufput is a call to put data from a 3gl to Uniface.

Further information can be found in the CHM file under
APIs: 3GL Functions.

In other words, the Uniface 3gl library / functions exists to facilitate
transfer of data to/from a 3gl, not to be called from Uniface
itself.

I hope this helps.

Regards,
Knut

17 May 2018
8:15 am
Avatar
fearandir
Member
Forum Posts: 58
Member Since:
07 Nov 2014
sp_UserOfflineSmall Offline

uGetHwnd works within a uniface form the way i suggest. I though was the same for other operations.

 

Regards,
Sergio

18 May 2018
9:20 am
Avatar
diseli
Admin
Forum Posts: 935
Member Since:
01 Oct 2012
sp_UserOfflineSmall Offline

fearandir said
uGetHwnd works within a uniface form the way i suggest. I though was the same for other operations.

Hi Segio,

Calling uGetHwnd from Proc certainly makes sense, since there’s no equivalent Proc function or statement for this. But why would you like to call ufget? There are easier ways to get the data from a field of a component (i.e. addressing it directly from Proc).

It, however, should be possible to create a C call-out signature that calls ufget. I see in your post that you’ve defined the BUFFER parameter only as IN. That is not correct. The field value will be returned in this parameter and it therefore needs to be defined as INOUT. And what’s the max length of the parameter? You need to make sure that the MAX parameter (with the size of the buffer pointed to by BUFFER) is set to a value that is not bigger than the size of the BUFFER parameter (to be on the safe side use a smaller value).

And I’m not sure if anyone already has created a signature for YRTL with other functions. I (so far) was only interested in uGetHwnd and never really bothered to look at the other functions. But there’s no ready-made C Call-Out signature I’m aware of.

I hope this helps.

Regards,
Daniel

18 May 2018
12:34 pm
Avatar
fearandir
Member
Forum Posts: 58
Member Since:
07 Nov 2014
sp_UserOfflineSmall Offline

diseli said

fearandir said
uGetHwnd works within a uniface form the way i suggest. I though was the same for other operations.

But why would you like to call ufget? There are easier ways to get the data from a field of a component (i.e. addressing it directly from Proc).

Was just an example. I was just experimenting what information is returned for each function.

Originally, a team member was mumbling about a way to get the widget type of a field.

 

Greetings,

Sergio

Forum Timezone: Europe/Amsterdam

Most Users Ever Online: 131

Currently Online: tommyb42
20 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

ulrich-merkel: 1762

Iain Sharp: 648

Theo Neeskens: 353

gianni: 297

rogerw: 251

istiller: 235

Knut: 201

lalitpct: 197

Arjen van Vliet: 175

sochaz: 173

Member Stats:

Guest Posters: 3

Members: 8444

Moderators: 0

Admins: 8

Forum Stats:

Groups: 1

Forums: 62

Topics: 2161

Posts: 9344

Newest Members:

briancoleman@aurion.com, kevinmckeever@aurion.com, WarrenNob, brigittebr18, agrohimcsh, englewtat, AbbalibaJor, HanhitCholo, RobertEdumb, lenorajr69

Administrators: admin: 23, Adrian Gosbell: 303, diseli: 935, Bob Maier: 3, Nico Peereboom: 75, Michael Rabone: 4, richiet: 406, JanCees: 28