Search found 2279 matches

by robert
Mon Apr 15, 2024 6:22 pm
Forum: 3rd party products
Topic: BBrowser OwnerDrawValues BarCharts not working after X# Update 2.17 -> 2.18
Replies: 6
Views: 84

Re: BBrowser OwnerDrawValues BarCharts not working after X# Update 2.17 -> 2.18

Frank,
Where does the Fieldspec come from that is used for the column?
Can you (for now) change the type by calling the SetType() method from the fieldspec like this:

Code: Select all

local oFs as Fieldspec
oFs := oColumn:Fieldspec
oFs:SetType("O")
Robert
by robert
Mon Apr 15, 2024 1:49 pm
Forum: 3rd party products
Topic: BBrowser OwnerDrawValues BarCharts not working after X# Update 2.17 -> 2.18
Replies: 6
Views: 84

Re: BBrowser OwnerDrawValues BarCharts not working after X# Update 2.17 -> 2.18

Guys, I am sorry for this problem. We changed the fieldspec class because FoxPro tables support more datatypes than just CDLMN (for example also Integer (I), Currency (Y) and DateTime (T). And the VO documentation also does not list 'O' as acceptable value for FieldSpec:ValType We'll make sure it is...
by robert
Fri Apr 12, 2024 4:20 pm
Forum: 3rd party products
Topic: ReportPro (2) in ADS environment
Replies: 18
Views: 560

Re: ReportPro (2) in ADS environment

DIck, Anyhow, it remains a mystery; interesting that nobody (including myself) does actually know how it works. I think I know how this works, but I did not look into your problem. Did you ever include an example (report + code running the report +data files)? To explain this I would have to run the...
by robert
Thu Apr 11, 2024 10:30 am
Forum: Product
Topic: Miscellaneous questions about converting VO code to X#
Replies: 18
Views: 936

Re: Miscellaneous questions about converting VO code to X#

Kees, I must confess that I still do not understand how this is supposed to work, how can a number (a DWORD in this case) become a structure? Yet the code above worked in VO. What would be the safest way to make it work in X#? A structure in VO (when declared with AS) is a pointer to a memory locati...
by robert
Fri Mar 29, 2024 8:05 am
Forum: 3rd party products
Topic: Convert AdoRecordSet to DataTable
Replies: 1
Views: 128

Re: Convert AdoRecordSet to DataTable

Alex, There is no built in way to do this. You would have to create a DataTable and its columns and add rows for each of the rows in the recordset. I would probably use GetRows() to get all rows in the RecordSet and then use the ItemArray property of the DataRow to set all field values in one assign...
by robert
Fri Mar 29, 2024 7:48 am
Forum: 3rd party products
Topic: X# Report asks for missing DBF which is clearly present
Replies: 4
Views: 277

Re: X# Report asks for missing DBF which is clearly present

Dick,
If the same table is used in different sections with different aliases, then the solution where you're setting it for each of the aliases is the expected solution.
Robert
by robert
Thu Mar 28, 2024 1:24 pm
Forum: Xbase++
Topic: Xbase++ forum
Replies: 16
Views: 6818

Re: Xbase++ forum

Den, To make the X# compiler automatically recognize your C# static method as a function, you will have to add an attribute to the C# assembly (and not the X# assembly) The code below assumes that the functions are in the XbTools.XbTools class, and that the namespace XbTools may contain classes that...
by robert
Thu Mar 28, 2024 6:14 am
Forum: 3rd party products
Topic: X# Report asks for missing DBF which is clearly present
Replies: 4
Views: 277

Re: X# Report asks for missing DBF which is clearly present

Dick,
We will need the report and its files and the exact configuration on the machine (path of the exe, path of the report and path of the dbf files, X# version etc) where the problem is occurring.

Robert
by robert
Thu Mar 21, 2024 11:05 am
Forum: Chit-Chat
Topic: XSharp Power Tools 2022 - Visual Studio extension
Replies: 16
Views: 4676

Re: XSharp Power Tools 2022 - Visual Studio extension

Dick,
Choose "Search" from the Quick Links hamburger menu. Enter "Power Tools". I got 34 hits, including your last message.

Robert
by robert
Thu Mar 21, 2024 7:13 am
Forum: 3rd party products
Topic: Illegal characters in path error X# ReportPro
Replies: 9
Views: 454

Re: Illegal characters in path error X# ReportPro

Dick,
In VO the routines to extract filename and path were completely written in the ReportPro code.
In X# we use standard routines from the .Net Framework to extract path and filename from the string.
Apparently these routines do not like the name that is stored in the report.

Robert