Search found 2307 matches

by robert
Mon May 13, 2024 7:45 am
Forum: Visual FoxPro
Topic: Questions about class definitions in the Visual FoxPro dialect
Replies: 4
Views: 26

Re: Questions about class definitions in the Visual FoxPro dialect

Xinjie, Some differences between .Net and VFP: - .Net has Fields and Properties. VFP calls everything Properties - In VFP methods that are called when an event is happening are called Events. In .Net these 'Event Handlers' are just methods. Technically, there is no difference between a method that i...
by robert
Mon May 13, 2024 7:35 am
Forum: Deutsches Forum
Topic: Installationsroutine per InnoSetup für X# App
Replies: 1
Views: 123

Re: Installationsroutine per InnoSetup für X# App

Franz,
I would ask this on the Inno forum or newsgroup https://groups.google.com/g/innosetup/
by robert
Mon May 13, 2024 7:30 am
Forum: Visual FoxPro
Topic: Questions about class definitions in the Visual FoxPro dialect
Replies: 4
Views: 26

Re: Questions about class definitions in the Visual FoxPro dialect

Xinjie, The template does not have the AS Clause, but you can of course use that clause. The big difference between X# (.Net) and FoxPro is that you can decide yourself from which class you want to inherit. In FoxPro all classes must eventually inherit from one of the FoxPro classes like "Custo...
by robert
Sat May 11, 2024 9:56 am
Forum: Product
Topic: two childish questions about using the VS IDE
Replies: 3
Views: 93

Re: two childish questions about using the VS IDE

Xinje
There is no need to close the editor for most options. A fake change will repaint the editor window and will show the changes.

Robert
by robert
Sat May 11, 2024 6:54 am
Forum: Product
Topic: two childish questions about using the VS IDE
Replies: 3
Views: 93

Re: two childish questions about using the VS IDE

Xinje 1) Tools Options, Search for X#. On the options page under Text Editor you can enable the line separators and also choose if single line entities (fields, properties etc) should have a line 2) The # of types in .Net is so big that bringing up that list proved to be a little slow. We will bring...
by robert
Mon May 06, 2024 4:07 pm
Forum: 3rd party products
Topic: Function AdoDateTimeAsDate()
Replies: 1
Views: 113

Re: Function AdoDateTimeAsDate()

Kees,
The conversion is automatic :

Code: Select all

local oDt as DateTime
local dToday as DATE
oDt := DateTime.Now
dToday := oDt // implicit conversion
Robert
by robert
Mon Apr 29, 2024 7:56 am
Forum: Product
Topic: easy calculation goes wrong
Replies: 5
Views: 317

Re: easy calculation goes wrong

Guys,
This problem is caused by the fact that certain floating point numbers cannot exactly be represented.
If you want 100% accuracy you should either calculate with integers (in cents) or with the Decimal type.

Robert
by robert
Fri Apr 26, 2024 2:05 pm
Forum: Xbase++
Topic: Xbase++ forum
Replies: 24
Views: 7264

Re: Xbase++ forum

Den,
The Asc() function translates the characters from unicode to ansi at runtime.
What is the value of
RuntimeState.DosCodePage
RuntimeState.WinCodePage

Robert
by robert
Fri Apr 26, 2024 10:33 am
Forum: Xbase++
Topic: Xbase++ forum
Replies: 24
Views: 7264

Re: Xbase++ forum

Guys, The problem is different from what you would expect: there is a SetCollation() function in both XSharp.Core and XSharp.XPP I am not sure why we did this, but SetCollation() inside XSharp.XPP expects a numeric parameter from Collat.ch This activates one of the Xbase++ collation tables. In this ...
by robert
Fri Apr 26, 2024 7:48 am
Forum: Xbase++
Topic: Xbase++ forum
Replies: 24
Views: 7264

Re: Xbase++ forum

Den,
The sort order is controlled by the russian collation. I would have to check what the contents of that collation is.
We extracted that sort order from the clipper / vo collation table

Robert