Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Properties modification
Message
From
08/04/1999 18:25:52
 
 
To
07/04/1999 23:25:11
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00206281
Message ID:
00206699
Views:
19
Hi Erik


Yes I tried and it didn't work, however I found a way around.

I’m still hacking the .vcx but I was loading lines by line into a memory variable and concatenating each line with the next ending with chr(13)+chr(10), just the way it looks if ou examine the memo field character by character when the property to be translate was found, the line was replaced an at the end I was making a REPLACE.

Now all I do is a STRTRAN on the memory variable and then the execute the REPLACE.

What I still don’t understand is that the final concatenated string of the previous method and the one obtained through the STRTRAN look identical except that the second approach which doesn’t corrupt the class.

Isn’t it weird? I’m also doing this with a bunch of other classes (menus and business objects) without problems.

Regards
Oscar Corte

>>I created some procedures to translate some framework’s properties like captions, tooltiptext and message to Spanish, I’m doing this by hacking the .vcx library and replacing strings into the “properties” memo field and in some hard coded situations the “methods” memo field.
>>
>>I recently upgraded to VFP 6.0 and now I’m receiving an unknown error code –5. I wonder if VFP 6.0 contains some kind of a checksum for the class properties.
>>
>>I’d like to know if you can programmatically change class properties with VFP 6.0
>
>Did you recompile your vcxs in 6.0?
>
>COMPILE CLASSLIB MyLibrary.vcx
Previous
Reply
Map
View

Click here to load this message in the networking platform