Solved the class definition problem - needed a SET CLASSLIB TO statement.

Laurie

On 28 May 2015 at 12:01, Laurie Alvey <[email protected]> wrote:

> I've just downloaded it from http://leafe.com/download/PrgToVcx.zip,
> However, when I tried it out I got Error 112 (Invalid key length). This is
> the code in the prg:
>
>       lcAlias = SYS(cnVF_SYS_UNIQUEID)
>       CREATE CURSOR (lcAlias);
>          (cClass     C(64),;
>           cMember    C(10),;
>           lProtect   L,;
>           lBase      L,;
>           mName      M,;
>           mValue     M,;
>           mArray     M,;
>           mInit      M,;
>           mClasslib  M,;
>           mDescrip   M)
>       INDEX ON LOWER(cClass + cMember + PADR(mName, 128)) TAG PrimaryKey
>
> I tried changing cClass and cMember to varchar - no effect. I eventually
> got it past the INDEX command by changing the PADR(mName, 128) to
> PADR(mName, 26) giving a key length of 100. The program fell over later
> however reporting that it couldn't find class definitions.
>
> Anyone else had these problems?
>
> Laurie
>
> On 28 May 2015 at 05:09, <[email protected]>
> wrote:
>
>> On 2015-05-27 19:42, Ted Roche wrote:
>>
>>> And the original's in your copy of the Hacker's Guide to Visual FoxPro
>>> 3. Inside the back cover. On a floppy disk.
>>>
>>
>>
>>
>> I think I only have my e-copy yet.
>>
[excessive quoting removed by server]

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/camvtr9cacw3no-qxlkyfxj+c0i931pmvbmcblq_bm3fjmww...@mail.gmail.com
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to