FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Load a string alert by res (Resolved)
Posts: 32
Joined: Thu Sep 20, 2012 07:29 PM
Load a string alert by res (Resolved)
Posted: 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.

Posts: 682
Joined: Tue Feb 14, 2006 09:48 AM
Re: Load a string alert by res
Posted: Mon Sep 02, 2013 09:40 AM

To retireve from String table, you can use FW function LoadString.

Saludos desde Mallorca
Biel Maimó
http://bielsys.blogspot.com/
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Re: Load a string alert by res
Posted: 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 (fw): Select all Collapse
STRINGTABLE 
BEGIN
    10, "Testing strings loading from Resources"
    20, "02/27/94"
END
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 32
Joined: Thu Sep 20, 2012 07:29 PM
Re: Load a string alert by res
Posted: Mon Sep 02, 2013 01: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?

Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Re: Load a string alert by res
Posted: Mon Sep 02, 2013 02: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
Posts: 32
Joined: Thu Sep 20, 2012 07:29 PM
Re: Load a string alert by res
Posted: Mon Sep 02, 2013 02:13 PM

Consegui resolver com essa ideia :

viewtopic.php?f=3t=17526p=91203hilit=rcdata#p91203

&&&

Continue the discussion