Link to home
Start Free TrialLog in
Avatar of dekt
dekt

asked on

UFL to read text files

Hi experts
Can you direct me to a UFL packages that have Text Lookup methods.
(from text files)

Avatar of GJParker
GJParker
Flag of United Kingdom of Great Britain and Northern Ireland image

Heres's one I know about by Chelseas Technologies  cViewText which works with Version 8.5 and later

http://www.chelseatech.co.nz/

Gary
Avatar of dekt
dekt

ASKER

I've checked this one, any others ?
Can you direct to documentation regarding writing UFL in C++
Avatar of Ido Millet
See list of 3rd-party tools at: http://www.kenhamady.com/bookmarks.html

My CUT Light UFL has a FileGetText() function that loads the content of a given file into a String.  You can then do the text lookup by using the regular string search functions within Crystal.  

If you explain the lookup challenge you are facing, it may be easier to advise.  Is it by chance a lookup of a value in an ini file?

hth,
- Ido
this is C++ project, which creates a ufl. The ufl works with 8.5 and higher
http://support.businessobjects.com/communityCS/FilesAndUpdates/cr_ufl_cpp_general.exe.asp
Avatar of dekt

ASKER

I want to read a Unicode text file in a 'key/value' manner.
example:

dim valueStr as String
dim myKeyas String

valueStr = readKey(myKey)

the valueStr should be a String larger than 254 charachters (127 in unicode)

Ido, I will look at your links, thanks.

dekel
Avatar of dekt

ASKER

Are you aware if there is a way to increase the size of UFMaxStringLength ?
(the maximum characters allowed to retrieve from a UFL method) ?
To go beyond 254, you need Crystal 9 or above.

Cheers,
- Ido
Avatar of dekt

ASKER

In CR9, I can simply increase the value of UFMaxStringLength and compile the UFL ?
Yes, it should work.  afaik, the new limit (in CR 9 and above) is 64K.

Cheers,
- Ido
formuas can return strings larger than 254 characters in cr 9, but ufls can't. neither in cr 9 nor 10.
My mistake.  EwaldL is absolutely correct.

Cheers,
- Ido
ASKER CERTIFIED SOLUTION
Avatar of Ido Millet
Ido Millet
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial