Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.clipper.visual-objects > #12536 > unrolled thread

Strongly typed Dbf-code

Started byBenWoestenburg@ziggo.nl
First post2019-06-19 01:52 -0700
Last post2019-06-25 03:20 -0700
Articles 4 — 3 participants

Back to article view | Back to comp.lang.clipper.visual-objects


Contents

  Strongly typed Dbf-code BenWoestenburg@ziggo.nl - 2019-06-19 01:52 -0700
    Re: Strongly typed Dbf-code Johan Nel <johan.nel@xsinet.co.za> - 2019-06-19 11:29 +0200
    Re: Strongly typed Dbf-code Chris Pyrgas <"chris (at)"@xsharp.eu> - 2019-06-24 23:22 +0300
      Re: Strongly typed Dbf-code BenWoestenburg@ziggo.nl - 2019-06-25 03:20 -0700

#12536 — Strongly typed Dbf-code

FromBenWoestenburg@ziggo.nl
Date2019-06-19 01:52 -0700
SubjectStrongly typed Dbf-code
Message-ID<ba809388-1e6a-48fe-8424-62a481f40cb2@googlegroups.com>
Hello,

I have recently ported my applications to 2.8Sp4b. When I change the structure of a dbf the code for the dbf is now strongly typed. 

This gives all kind of errors when executing the application: when a field changes the error indicates that a string is expected, which it is.

What am I doing wrong?

Kind Regards,

Ben Woestenburg

[toc] | [next] | [standalone]


#12537

FromJohan Nel <johan.nel@xsinet.co.za>
Date2019-06-19 11:29 +0200
Message-ID<qecv8s$4f8$1@dont-email.me>
In reply to#12536
Ben,

Sorry cannot help directly without an example, but I have shortly into 
starting with VO moved away from strongly typed DBFs and implemented my 
code in a wrapper MyDbServer class and went for a 
oDbf:FieldGet()/FieldPut()/FieldName()/FieldPos() approach rather.

On 2019/06/19 10:52, BenWoestenburg@ziggo.nl wrote:
> Hello,
>
> I have recently ported my applications to 2.8Sp4b. When I change the structure of a dbf the code for the dbf is now strongly typed.
>
> This gives all kind of errors when executing the application: when a field changes the error indicates that a string is expected, which it is.
>
> What am I doing wrong?
>
> Kind Regards,
>
> Ben Woestenburg
-- 
*Johan Nel*
FOX member : Friend(s) of XSharp - The XBase.NET solution
X# Website : https://xsharp.info
George, South Africa

[toc] | [prev] | [next] | [standalone]


#12542

FromChris Pyrgas <"chris (at)"@xsharp.eu>
Date2019-06-24 23:22 +0300
Message-ID<qerba9$s13$1@gioia.aioe.org>
In reply to#12536
Hi Ben,

> I have recently ported my applications to 2.8Sp4b. When I change the structure of a dbf the code for the dbf is now strongly typed.
>
> This gives all kind of errors when executing the application: when a field changes the error indicates that a string is expected, which it is.
>
> What am I doing wrong?

Check your CAVO\Bin folder and open the file CAVOFED.TPL, as you will 
see this contains the template for code generation and it is using 
strongly typed code as you said. Here you can remove the strong typing, 
do a dummy change to your servers, save again and you should get the 
previous version of the code.

Alternatively, you will find another file, Cavofed_26.tpl, this contains 
I think the previous contents of that file, from previous VO versions 
(it contains more code to be generated actually). If you want, delete 
the other file and rename this one to CAVOFED.TPL.

hth,
Chris

[toc] | [prev] | [next] | [standalone]


#12544

FromBenWoestenburg@ziggo.nl
Date2019-06-25 03:20 -0700
Message-ID<193d5008-d629-4a4a-931d-b820a7ceb1cd@googlegroups.com>
In reply to#12542
Thanks Chris that works. Cavoded.tpl also needs some adjustments.

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.clipper.visual-objects


csiph-web