Search found 86 matches

by atlopes
Sun Dec 14, 2025 11:10 pm
Forum: Visual FoxPro
Topic: STRCONV(), take #2
Replies: 4
Views: 306

Re: STRCONV(), take #2

Hi, Irwin, great to hear. I'm glad I could be of help.
by atlopes
Sun Dec 14, 2025 2:25 pm
Forum: Visual FoxPro
Topic: STRCONV(), take #2
Replies: 4
Views: 306

Re: STRCONV(), take #2

Ok, Irwin, here it is.

Feel free to adjust/rewrite as you will see fit.

USING System.Text
USING System.IO
USING System.Globalization
USING XSharp.Core

FUNCTION Start() AS VOID

LOCAL TestNr AS Int

TestNr = 1

// Base64
QuickTest(TestNr++, 'StrConv("Abcd", STRCNV_SB_BASE64)', StrConv ...
by atlopes
Sun Dec 14, 2025 9:49 am
Forum: Visual FoxPro
Topic: STRCONV(), take #2
Replies: 4
Views: 306

STRCONV(), take #2

Irwin,

Since you're in the process of increasing VFP functionality in X#, you may consider the proposal of StrConv() at https://www.xsharp.eu/forum/topic?p=18458, which was left behind without being integrated into the X# runtime.

The code appears truncated, but the X# team may have access to the ...
by atlopes
Tue Jul 13, 2021 7:54 am
Forum: Visual FoxPro
Topic: Alines() used with multiple String „Parsechar“ to parse large files ?
Replies: 6
Views: 4290

Alines() used with multiple String „Parsechar“ to parse large files ?

<r>Thomas, although not aimed directly at the issue of parsing large files, and since you're working with the ALINES() function implementation, please keep in mind that the order of the parsing characters is relevant to how the string is split into array elements.<br/>
<br/>
Also, contrary to the ...
by atlopes
Thu Jun 10, 2021 5:43 pm
Forum: Visual FoxPro
Topic: SET DEFAULt TO <xxx> behaviour
Replies: 1
Views: 2560

SET DEFAULt TO <xxx> behaviour

<r>Karl-Heinz, I know this is already more than a month old, but I'm reviewing the last forum threads and I have a few comments on this.<br/>
<br/>
In VFP, SET("Default") returns only the drive letter, but SET DEFAULT TO x:y stores the full path.<br/>
<br/>
Also, the path in the command is relative ...
by atlopes
Sun Apr 11, 2021 3:55 pm
Forum: Visual FoxPro
Topic: CapsLock(), InsMode() , NumLock()
Replies: 14
Views: 6551

CapsLock(), InsMode() , NumLock()

Karl-Heinz, the functions CAPSLOCK() and NUMLOCK() set the global state. As for the INSMODE() function, I assume "yes," also, but I'm not quite sure of that.
by atlopes
Thu Apr 08, 2021 10:37 am
Forum: Visual FoxPro
Topic: VFP BIT* functions
Replies: 9
Views: 4809

VFP BIT* functions

<r>Robert<br/>

<QUOTE><s>[quote]</s>I hope you don't mind that we will change the UPPERCASE function names to CamelCase (e.g. BitNot) to make the code a bit nicer on the eyes.<e>[/quote]</e></QUOTE>

Please feel free to modify the code at will, including its cosmetics.<br/>
<br/>
Your remarks, as ...
by atlopes
Thu Apr 08, 2021 10:25 am
Forum: Visual FoxPro
Topic: (not only empty) datetime literals
Replies: 6
Views: 4246

(not only empty) datetime literals

<t>I agree with you, Robert; it's confusing. In a 12-hour notation system, we shouldn't be allowed to use the 12th hour, in the same way that we can't use the 24th hour in a 24-hour notation system.<br/>
<br/>
Another question regarding the datetime literals I forgot to mention: VFP follows the ISO ...
by atlopes
Wed Apr 07, 2021 10:24 pm
Forum: Visual FoxPro
Topic: VFP BIT* functions
Replies: 9
Views: 4809

VFP BIT* functions

<r>This is a kind of a by-product of another thread of the forum. The VFP BIT* functions were briefly discussed as an example of incomplete implementation by the VFP Toolkit for .Net. One of the key aspects that were missing was support for Binary strings.<br/>
<br/>
This is a proposal of an X ...
by atlopes
Wed Apr 07, 2021 1:00 pm
Forum: Visual FoxPro
Topic: (not only empty) datetime literals
Replies: 6
Views: 4246

(not only empty) datetime literals

<r>Dear All,<br/>
<br/>
X# 2.7 is not accepting VFP's empty datetime literals and is also interpreting Ante- and Post- Meridian in a different manner.<br/>
<br/>
In VFP
<CODE><s>[code]</s>? {^2021-07-04 12:30:00PM}, {^2021-07-04 12:30:00AM}
* displays: 04/07/2021 12:30:00 04/07/2021 00:30:00
<e ...