Quote from: roger@languageONE.com.au on November 04, 2025, 04:56:24 PMHi Paul,Hi Roger,
I came across Tiko Editor and liked it.
I am however having a problem passing an options file (@voptions) to the compiler.
I have tried a number of ways but "-s console -gen gas64 @voptions" in the build configuration seemed to be the most logical. It errors out with:-
Failed Compile (Errors 2 Warnings 0 [2025-11-05 07:24:22])
Command Line:
D:\tiko-main\Toolchains\FreeBASIC-1.10.1-winlibs-gcc-9.3.0\fbc64.exe -m "C:\users\roger\_dev1\source\languageONE\@editorTOO\test.bas" -v -s console -gen gas64 @voptions @options -x "C:\users\roger\_dev1\source\languageONE\@editorTOO\test.exe"
error 26: File access error, options
It seems like you automatically insert an options file into the command line. How does that mechanism work ?
Hoping you'll able to point me in the right direction ?
Cheers
Roger
#define UNICODE
#INCLUDE ONCE "AfxNova/DWString.inc"
USING AfxNova
Dim sText As DWSTRING
' Assign a Unicode string with Latvian accents
sText = "Sveiki! Šī ir FreeBasic demonstrācija ar diakritiskajām zīmēm: āčķīēūļņ."
' Convert to uppercase
Print "Uppercase:"
Print Ucase(sText)
' Replace a word
print DWStrReplace(sText, "demonstrācija", "piemērs")
' Use VBScript RegExp (example from CRegExp.inc)
DIM pRegExp AS CRegExp
pRegExp.Pattern = "(\w+)@(\w+)\.(\w+)+"
DIM dwsText AS DWSTRING = "Please send mail to dragon@xyzzy.com. Thanks!"
pRegExp.IgnoreCase = TRUE
IF pRegExp.Execute(dwsText) = FALSE THEN
PRINT "No match found"
ELSE
' // Get the number of submatches
DIM nCount AS LONG = pRegExp.SubMatchesCount(0)
PRINT "Submatches: ", nCount
FOR i AS LONG = 0 TO nCount - 1
PRINT pRegExp.SubMatchValue(0, i)
NEXT
END IF
' Show string length and character access
Print "Lenght of string: "; Len(sText)
Print "9. character: "; MID(sText, 9, 1)
Sleep
Output:QuoteUppercase:Big thanks to José for building such a robust and well-documented toolset!
SVEIKI! ŠĪ IR FREEBASIC DEMONSTRĀCIJA AR DIAKRITISKAJĀM ZĪMĒM: ĀČĶĪĒŪĻŅ.
Sveiki! Šī ir FreeBasic piemērs ar diakritiskajām zīmēm: āčķīēūļņ.
Submatches: 3
dragon
xyzzy
com
Lenght of string: 72
9. character: Š
