Load a string alert by res (Resolved)

Load a string alert by res (Resolved)

Postby arthursilvestre » Fri Aug 30, 2013 12:34 pm

Good morning, I want to load a string that is contained in my file *. Res (whatever is in html, string table, etc..). There is that possibility? already very grateful.
Last edited by arthursilvestre on Mon Sep 02, 2013 2:14 pm, edited 1 time in total.
User avatar
arthursilvestre
 
Posts: 32
Joined: Thu Sep 20, 2012 7:29 pm

Re: Load a string alert by res

Postby Biel EA6DD » Mon Sep 02, 2013 9:40 am

To retireve from String table, you can use FW function LoadString.
Saludos desde Mallorca
Biel Maimó
http://bielsys.blogspot.com/
User avatar
Biel EA6DD
 
Posts: 682
Joined: Tue Feb 14, 2006 9:48 am
Location: Mallorca

Re: Load a string alert by res

Postby Antonio Linares » Mon Sep 02, 2013 12:45 pm

Arthur,

as Biel pointed, here you have an example:

MsgInfo( LoadString( GetResources(), 10 ) ) // where 10 is the ID of the string in the resource file

test.rc
Code: Select all  Expand view
STRINGTABLE
BEGIN
    10, "Testing strings loading from Resources"
    20, "02/27/94"
END
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 41314
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Load a string alert by res

Postby arthursilvestre » Mon Sep 02, 2013 1:29 pm

Good morning, I did this test and it worked, but there is a character limitation correct? is there any way that there is no such limitation? this linhares your code is the file DCDATA right?
User avatar
arthursilvestre
 
Posts: 32
Joined: Thu Sep 20, 2012 7:29 pm

Re: Load a string alert by res

Postby Antonio Linares » Mon Sep 02, 2013 2:05 pm

Arthur,

What limitation do you mean ?

You can use PellesC resources editor to easily build it
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 41314
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Load a string alert by res

Postby arthursilvestre » Mon Sep 02, 2013 2:13 pm

User avatar
arthursilvestre
 
Posts: 32
Joined: Thu Sep 20, 2012 7:29 pm


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Rick Lipkin and 79 guests