Ok, where to start... sorry for the late reply to your comments and suggestions.
AZJIO:
Thank you for the head start on the RegEx!
Tenaja:
The file is generated via a service installation, no copies were made.
No manual editing involved, the native pref libs work fine on Windows accessing the ...
Search found 36 matches
- Thu Nov 18, 2021 3:57 pm
- Forum: Coding Questions
- Topic: Preference File(s) on Linux (PB 5.73 LTS)
- Replies: 9
- Views: 3546
- Wed Nov 17, 2021 9:45 am
- Forum: Coding Questions
- Topic: Preference File(s) on Linux (PB 5.73 LTS)
- Replies: 9
- Views: 3546
Preference File(s) on Linux (PB 5.73 LTS)
I don't know if this is a 'bug' per se or if someone has run into before and there might be a work around.
I have a 'config' file on Linux (any flavor is applicable), very similar to the set up on the Preference file example included in PB. The file I am working with includes comments that start ...
I have a 'config' file on Linux (any flavor is applicable), very similar to the set up on the Preference file example included in PB. The file I am working with includes comments that start ...
- Sat Jul 04, 2020 1:11 pm
- Forum: Coding Questions
- Topic: Scintilla Gadget Question on refresh process...
- Replies: 2
- Views: 986
Re: Scintilla Gadget Question on refresh process...
mk-soft,
Thank you. Interesting code, I will attempt to make it work for me. I've used the 'CLEARALL' on the example code from the help in the IDE, that works with the example code and does what I am looking for... just doesn't work in my code. So my assumption at this point is a logic flaw in my ...
Thank you. Interesting code, I will attempt to make it work for me. I've used the 'CLEARALL' on the example code from the help in the IDE, that works with the example code and does what I am looking for... just doesn't work in my code. So my assumption at this point is a logic flaw in my ...
- Fri Jul 03, 2020 1:45 pm
- Forum: Coding Questions
- Topic: Scintilla Gadget Question on refresh process...
- Replies: 2
- Views: 986
Scintilla Gadget Question on refresh process...
Hopefully I can explain this sufficiently.
I am using the Scintilla gadget to load a log file that is constantly being updated by a service in the background, the log is loaded via a button gadget - there is also a 'refresh' button gadget on the form.
The log loads just fine and the refresh ...
I am using the Scintilla gadget to load a log file that is constantly being updated by a service in the background, the log is loaded via a button gadget - there is also a 'refresh' button gadget on the form.
The log loads just fine and the refresh ...
- Tue Jun 23, 2020 3:57 pm
- Forum: General Discussion
- Topic: Scintilla Gadget [Solved via the ID10T update]
- Replies: 2
- Views: 1369
Re: Scintilla Gadget
It can't find the Scintilla.dll and you're probably not checking the result of InitScintilla() :)
Scintilla.dll needs to be in the same folder as your exe
OR
Scintilla.dll needs to be in a system DLL folder (I wouldn't bother with that)
OR
Specify any DLL path you want as a param to ...
Scintilla.dll needs to be in the same folder as your exe
OR
Scintilla.dll needs to be in a system DLL folder (I wouldn't bother with that)
OR
Specify any DLL path you want as a param to ...
- Tue Jun 23, 2020 3:36 pm
- Forum: General Discussion
- Topic: Scintilla Gadget [Solved via the ID10T update]
- Replies: 2
- Views: 1369
Scintilla Gadget [Solved via the ID10T update]
Hello all,
Working with Windows 10, PB 5.71 & 5.72...
The Scintilla gadget keeps disappearing from the 'compiled' executable or is not visible, plainly visible when running from the IDE for testing.
Using the form designer, have multiple panel tabs in the form. It wasn't doing this before so a ...
Working with Windows 10, PB 5.71 & 5.72...
The Scintilla gadget keeps disappearing from the 'compiled' executable or is not visible, plainly visible when running from the IDE for testing.
Using the form designer, have multiple panel tabs in the form. It wasn't doing this before so a ...
- Tue Apr 14, 2020 12:24 pm
- Forum: Coding Questions
- Topic: Scintilla Text Alignment
- Replies: 4
- Views: 1667
Scintilla Text Alignment
I can't seem to find the appropriate 'ScintillaSendMessage' to handle text alignment from a 'ReadFile()' to a Scintilla gadget. The text file is displayed in full but, the text alignment is off.
I can display/use '#SCI_SETVIEWWS' and see the dots (space), they match from Notepad/Notepad++ and Vim ...
I can display/use '#SCI_SETVIEWWS' and see the dots (space), they match from Notepad/Notepad++ and Vim ...
- Mon Apr 13, 2020 12:38 am
- Forum: Coding Questions
- Topic: Parse XML [Solved]
- Replies: 16
- Views: 3759
Re: Parse XML [Solved]
After it woke me up around 2am in morning (obviously it was on my mind), I dropped the 'ParseXML' from the code provided by Kiffi and it works for what I need.
Thank you once again Kiffi.
Now on to being woke up at 1am to resolve loading large log file into Scintilla...
-M
Structure sSubAgent ...
Thank you once again Kiffi.
Now on to being woke up at 1am to resolve loading large log file into Scintilla...
-M
Structure sSubAgent ...
- Sun Apr 12, 2020 12:13 am
- Forum: Coding Questions
- Topic: Parse XML [Solved]
- Replies: 16
- Views: 3759
Re: Parse XML
ok, I did my best. I'm out.
I know you did and it is appreciated. Thank you.
Pascal doesn't get hung up on the node attribute 'id' (because of double quotes) or the attribute at all, I can enumerate the 'SubAgent' nodes and perform my loop, parse the information I need and done. And with that ...
I know you did and it is appreciated. Thank you.
Pascal doesn't get hung up on the node attribute 'id' (because of double quotes) or the attribute at all, I can enumerate the 'SubAgent' nodes and perform my loop, parse the information I need and done. And with that ...
- Sat Apr 11, 2020 11:36 pm
- Forum: Coding Questions
- Topic: Parse XML [Solved]
- Replies: 16
- Views: 3759
Re: Parse XML
I can't change " to ' around SubAgent id='CTAGENT' (now if single quotes were native to the xml file, your code would work perfectly)
Xml = "<ClientConfig>" +
" <SubAgents>" +
" <SubAgent id=" + Chr(34) + "CTAGENT" + Chr(34) + ">" +
...
As written: If you don't show us your code, we can't ...
Xml = "<ClientConfig>" +
" <SubAgents>" +
" <SubAgent id=" + Chr(34) + "CTAGENT" + Chr(34) + ">" +
...
As written: If you don't show us your code, we can't ...
- Sat Apr 11, 2020 10:47 pm
- Forum: Coding Questions
- Topic: Parse XML [Solved]
- Replies: 16
- Views: 3759
Re: Parse XML
You cannot use ExtractXMLStructure().
Instead, you must read the XML manually:
EnableExplicit
Structure sSubAgent
Name.s
GUID.s
ProgId.s
Version.s
Build.s
Path.s
Is64bit.s
EndStructure
Structure sSubAgents
List SubAgent.sSubAgent()
EndStructure
Structure sClientConfig
SubAgents ...
Instead, you must read the XML manually:
EnableExplicit
Structure sSubAgent
Name.s
GUID.s
ProgId.s
Version.s
Build.s
Path.s
Is64bit.s
EndStructure
Structure sSubAgents
List SubAgent.sSubAgent()
EndStructure
Structure sClientConfig
SubAgents ...
- Sat Apr 11, 2020 9:41 pm
- Forum: Coding Questions
- Topic: Parse XML [Solved]
- Replies: 16
- Views: 3759
Re: Parse XML
You will have to post some code that demonstrates it, because the XML now loads fine for me too.
PB 5.72 Windows 32-bit
; Saved example XML to ClientConfig.xml
If LoadXML(0, "ClientConfig.xml")
If XMLStatus(0) = #PB_XML_Success
Debug "OK" ; get OK
Else
Debug "Failed"
EndIf
Else
Debug ...
PB 5.72 Windows 32-bit
; Saved example XML to ClientConfig.xml
If LoadXML(0, "ClientConfig.xml")
If XMLStatus(0) = #PB_XML_Success
Debug "OK" ; get OK
Else
Debug "Failed"
EndIf
Else
Debug ...
- Sat Apr 11, 2020 9:14 pm
- Forum: Coding Questions
- Topic: Parse XML [Solved]
- Replies: 16
- Views: 3759
Re: Parse XML
That was a typo on my part for cut/paste on the forum, not in file or code.
The XML you posted has now been corrected and is therefore well-formed. No longer a problem. https://www.purebasic.fr/german/images/smilies/fsmile.gif
Kiffi,
I appreciate your input but, it's not the issue at all. I ...
The XML you posted has now been corrected and is therefore well-formed. No longer a problem. https://www.purebasic.fr/german/images/smilies/fsmile.gif
Kiffi,
I appreciate your input but, it's not the issue at all. I ...
- Sat Apr 11, 2020 8:45 pm
- Forum: Coding Questions
- Topic: Parse XML [Solved]
- Replies: 16
- Views: 3759
Re: Parse XML
That was a typo on my part for cut/paste on the forum, not in file or code.Kiffi wrote:Replace </ClientConf> with </ClientConfig>
Greetings ... Peter
-M
- Sat Apr 11, 2020 5:56 pm
- Forum: Coding Questions
- Topic: Parse XML [Solved]
- Replies: 16
- Views: 3759
Parse XML [Solved]
I am attempting for the first time with PB to load and parse a XML file, format as follows (loading from file and in string variable per the example below):
<ClientConfig>
<SubAgents>
<SubAgent id="CTAGENT">
<Name>Altiris Client Task Agent</Name>
<GUID>{A8508496-ECA5-9197-E985-93FC4DF2837F ...
<ClientConfig>
<SubAgents>
<SubAgent id="CTAGENT">
<Name>Altiris Client Task Agent</Name>
<GUID>{A8508496-ECA5-9197-E985-93FC4DF2837F ...