Search found 1398 matches

by Marc56us
Sun Dec 31, 2023 9:15 am
Forum: Feature Requests and Wishlists
Topic: Position number for ExamineRegularExpression()
Replies: 5
Views: 560

Re: Position number for ExamineRegularExpression()

ExamineRegularExpression(#RegularExpression, String$[, Position]) Good suggestion. In the meantime, some ideas (not tested) 1. Isolate the remaining part of the string with a pointer. The search will then be performed on this new string . - or - 2. If the starting point is known for all files (e.g....
by Marc56us
Sat Dec 30, 2023 2:59 pm
Forum: Coding Questions
Topic: Get only trailing numbers from a string?
Replies: 30
Views: 1395

Re: Get only trailing numbers from a string?

We don't have the same test data, nor the same machine. So I suggest you try this variant (which can be improved). (Yes, 0 and 9 are OK now.) Procedure$ Get_Last_Number(Txt$) Txt$ = ReverseString(Txt$) For i = 1 To Len(Txt$) nb = Asc(Mid(Txt$, i, 1)) If nb >= 48 And nb <= 57 nb$ + Chr(nb) Else Proce...
by Marc56us
Sat Dec 30, 2023 10:45 am
Forum: Coding Questions
Topic: Get only trailing numbers from a string?
Replies: 30
Views: 1395

Re: Get only trailing numbers from a string?

demoText = ReverseString(demoText) Well, that's one I hadn't seen before, Marc56us :o I've got a big secret: the F1 key :mrgreen: I've read (and reread) ALL the help functions (out of curiosity) except the 3D functions, which I don't use. I've tested all examples of all functions. :wink:
by Marc56us
Sat Dec 30, 2023 9:54 am
Forum: Coding Questions
Topic: Get only trailing numbers from a string?
Replies: 30
Views: 1395

Re: Get only trailing numbers from a string?

Quick and dirty sample. Basic only, no pointers, so easy to understand for beginners :wink: Define.s demoText = "12Caption64" Debug "--- " + demoText demoText = ReverseString(demoText) Debug "--- " + demoText For i = 1 To Len(demoText) nb = Val(Mid(demoText, i, 1)) If n...
by Marc56us
Fri Dec 29, 2023 12:01 pm
Forum: Coding Questions
Topic: StatusBarProgress doesn't update the window unless an event occurs
Replies: 6
Views: 495

Re: StatusBarProgress doesn't update the window unless an event occurs

Repeat res = FTPProgress(ftp) If WaitWindowEvent() = #PB_Event_CloseWindow AbortFTPFile(ftp) CloseWindow(#PB_All) Break Else ; --- Add While WindowEvent() : Wend ; --- Add (one -single- loop) EndIf [...] Or add this single loop to another location if it's called too often. https://www.purebasic.fr/...
by Marc56us
Thu Dec 28, 2023 4:52 pm
Forum: Coding Questions
Topic: Prefilling a List
Replies: 15
Views: 1382

Re: Prefilling a List

AddElement(MyList()) MyList() = x This is so inefficient, ugly and bloating code, even with copy and pasting. But a compiler doesn't think and work like a human: it's often much faster for it to repeat simple assignment instructions than to perform calculations. How many instructions in ASM or C to...
by Marc56us
Wed Dec 27, 2023 1:15 pm
Forum: Announcement
Topic: i2pdf - image to pdf
Replies: 38
Views: 12943

Re: i2pdf - image to pdf

Deleted (not needed)
The original author of the topic has returned :wink:
by Marc56us
Mon Dec 25, 2023 3:20 pm
Forum: Applications - Feedback and Discussion
Topic: IconEditor
Replies: 7
Views: 2074

Re: IconEditor

SPH wrote: Mon Dec 25, 2023 2:32 pm Could we have the PB code? :oops:
Hi SPH,

Source is in the archive in post #1
(1124 lines + img)

:wink:
by Marc56us
Sun Dec 24, 2023 4:31 pm
Forum: Announcement
Topic: PureBasic 6.10 LTS is out !
Replies: 334
Views: 41971

Re: PureBasic 6.10 beta 1 - Xmas Release - is out !

WebGadget(1, 10, 10, 980, 280, "", #PB_Web_Edge) SetGadgetText(1, #URL) It was experimentally obtained that it would work like this. But it still needs clarification. Thanks Useful! this Works :P :?: But @Team, is it the right way to use the new flag ? My tests: #URL = "https://www.p...
by Marc56us
Sun Dec 24, 2023 4:08 pm
Forum: Announcement
Topic: PureBasic 6.10 LTS is out !
Replies: 334
Views: 41971

Re: PureBasic 6.10 beta 1 - Xmas Release - is out !

I tested the code with WebViewGadget from the first post in Win 7, Win 8 and Win 10, and the window is always empty (gadget is not initialized). Does anyone have this code working fine? WebGadget when using a flag #PB_Web_Edge it is also not initialized. Is this a bug? I just tested it on Windows 1...
by Marc56us
Sat Dec 23, 2023 11:35 am
Forum: Announcement
Topic: PureBasic 6.10 LTS is out !
Replies: 334
Views: 41971

Re: PureBasic 6.10 beta 1 - Xmas Release - is out !

What does that mean compared to the WebGadget? This is all so confusing now. From what I understand (we've been talking about it for months), the Web View Gadget no longer uses the old IE4 component used by WebGadget , but the Edge (Chrominium) engine. So a lot of incompatible sites will become usa...
by Marc56us
Sat Dec 23, 2023 11:21 am
Forum: Coding Questions
Topic: WebViewGadget: set URL
Replies: 5
Views: 1183

WebViewGadget: set URL

Hi, How to set URL in new WebViewGadget ? SetGadgetText set text webpage source . I do this with success, But I think there's something simpler ? OpenWindow (0, 0, 0, 1000, 800,"", #PB_Window_SystemMenu | #PB_Window_ScreenCentered) WebViewGadget(0, 10, 10, 980, 780) *Buf = ReceiveHTTPMemor...
by Marc56us
Sat Dec 23, 2023 10:50 am
Forum: Announcement
Topic: PureBasic 6.10 LTS is out !
Replies: 334
Views: 41971

Re: PureBasic 6.10 beta 1 - Xmas Release - is out !

Added: SvgVectorOutput() for all OS Added: PdfVectorOutput() for all OS Hi Fred and Team, For years I'd been waiting for these functions without daring to hope. Thank you! :P So I pressed the yellow and blue button on login and sent some funds to the team. (Sorry, Paypals is in $, it's not make a r...
by Marc56us
Wed Dec 20, 2023 8:50 am
Forum: Coding Questions
Topic: A chat in PureBasic
Replies: 10
Views: 856

Re: A chat in PureBasic

Hi all, I would like to talk to you about network communication. I know that PB comes with examples and indeed, there is an example of a network client and an example of a network server. But I can't combine them to create a single code that would serve as a client/server to create a chat. Do you h...
by Marc56us
Sat Dec 16, 2023 4:47 pm
Forum: Coding Questions
Topic: Tesseract question or OCR recognizion
Replies: 9
Views: 849

Re: Tesseract question or OCR recognizion

page already has text! - rasterizing text and running OCR anyway I have the impression that your PDF already contains text stored as text and not as an image ? In this case, just use a simple text extractor: no need for OCR. Try pdftotext I work on table pdftotext.exe -table <file.pdf> (try also -l...