Search found 156 matches

by Cedron
Tuesday 31st January 2023 7:40pm
Forum: General
Topic: way off topic
Replies: 9
Views: 2149

Re: way off topic

Alright, it took a bit of searching, but here was my solution to be able to edit C/C++ files within the editor and simulate as though it was built into the IDE. From your functional requirements specification, this should hit the spot. You still have to do the top layer in Gambas though, and it take...
by Cedron
Tuesday 31st January 2023 4:45pm
Forum: General
Topic: way off topic
Replies: 9
Views: 2149

Re: way off topic

nope, you are way off understanding. I do not want to put together the forms in gambas then port them around by chanting around a fire at midnight and sacrificing a live chicken to the moon god. I am looking for a fully functional IDE for C++ similar to what we have in gambas that allows us to easi...
by Cedron
Monday 30th January 2023 9:40pm
Forum: General
Topic: way off topic
Replies: 9
Views: 2149

Re: way off topic

Well, it would be a bit of a challenge, but you could write a Gambas program that reads .form files, extracts the definitional data, then write it out in your target platform's format. Thus design your forms in Gambas, run your program, then go add the C++ code in the other IDE, if I am understandin...
by Cedron
Friday 23rd December 2022 2:18am
Forum: General
Topic: [Solved] Show ETA On a Mysql function
Replies: 6
Views: 1881

Re: Show ETA On a Mysql function

AndyGable wrote: Thursday 22nd December 2022 5:31pm if i have something say like 56,003 seconds how would i convert that into minutes so I could display it on screen
Here is an alternative way:

    Dim d As Date = 56003 / 86400  ' Seconds per Day 
    Print Format(d, "hh:nn:ss")
by Cedron
Wednesday 7th December 2022 3:21pm
Forum: General
Topic: Pass a class to a variable
Replies: 11
Views: 3005

Re: Pass a class to a variable

Still, I think you should consider a TabPanel approach. It'll simplify your coding and simplify your user interface. Here is a project I posted a while ago in the showcase. https://forum.gambas.one/viewtopic.php?p=2698 (If you have your music in files, you'll want to download this. Hidden features, ...
by Cedron
Wednesday 7th December 2022 3:06pm
Forum: General
Topic: Pass a class to a variable
Replies: 11
Views: 3005

Re: Pass a class to a variable

Alright, the simple solution is simply to add that as an extra parameter to a function call. Or define a public variable in the other form, and whenever you set it in the one, you also set it in the other. The routine in the other form then has a local value to use. (Or use a "Setter routine&qu...
by Cedron
Tuesday 6th December 2022 4:46pm
Forum: General
Topic: Pass a class to a variable
Replies: 11
Views: 3005

Re: Pass a class to a variable

I whipped up an incomplete example of one method of inter-form communication. It uses function calls to pass values, rather than making the controls public.

Maybe it'll help, maybe others will find it amusing.
by Cedron
Tuesday 6th December 2022 12:28am
Forum: General
Topic: Pass a class to a variable
Replies: 11
Views: 3005

Re: Pass a class to a variable

I think I might get the gist of what they want. Running multiple forms and passing data is possible is several ways, the easiest being declaring your variables 'Public' and referencing them directly from another form. I've always preferred single form applications, going way back. I would recommend ...
by Cedron
Monday 5th December 2022 3:05pm
Forum: General
Topic: Spaces instead of Tabs in a text area, did I miss a better way?
Replies: 4
Views: 1585

Re: Spaces instead of Tabs in a text area, did I miss a better way?

Curious. What happens if you hold down the Tab key or CTRL-S for a while? Do you get multiple tabbing spaces or multiple saves? Keys repeating, AFAIK, is a function of the keyboard. The routine doesn't care whether it is an original key or a repeat key. My code is in a broken state right now as I a...
by Cedron
Friday 2nd December 2022 4:09pm
Forum: General
Topic: Exposing bytes for what they really are
Replies: 4
Views: 2080

Re: Exposing bytes for what they really are

This example should convince you that using the &form&, like quotation marks, rather than the &Hform is a good practice. Besides, in ordinary syntax with constant values, it makes for better looking code, as in easier to read and understand. Print Hex(15), Val("&" & Hex...