Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

am i doing this right? 3

Status
Not open for further replies.

dexterdg

Programmer
Jan 6, 2013
85
PH
i was making an information system and upon completion:

Q1: in the log in my app. how do i manage this? will i let the users(admin is the level of the users) to delete log and look like cheating? or will i let it list thousands of transactions on the app that i imagine is sort of messy. in this log, *considering* i made a print and export log table(xls) for copy/back up [hard copy & soft copy]

Q2: how do i publish this like export or lay mans "FINISHED PRODUCT"?
i created a prg and imported all my forms, menus, and tables there and Build->Win32 executeable/COM Server(exe)->OK "is it right? what i just did?"

Q3: is this configuration on building is network ready? i mean if i put this in the server, its networks will be able to use it just like that? its kinda my first time to do this so i need everyone's aid

thanks in advance
Dexter
 
i dont have main.prg do need to? [ponder]
*!*i didnt knw about it so i created one based on your tutorial/guide

thanks to your config.fpw screen is off..
HOLY MOWLY! MY WORK AND YOUR PATIENCE ON ME HAS ENDED!!

LAST PROBLEM
network
thread184-1702236

thanks
Dexter

thank you for the patience on me!
thanks guys so much! STARS!
@OLAF, @ILYA, @JRBBLDR
 
As you know you don't have to have a min.prg, you can also have a project consisting of just a form. But then the form needs to be modal and can't be a top level form, there is no possibility to put a READ EVENTS into a form, because that would stop it from processing events, as the event or method with READ EVENTS is stuck at read events. So this would be ironic, adding a READ EVENTS is there to read/wait for any events, but would cause the form to not react to events anymore. So the only way to have no main prg and instead to have a main form is to make the form in screen and modal. And that looks ugly, of course.

A main.prg like the one I write with my sample application code is sufficient to start a main form and then wait for events infinitely until CLEAR EVENTS.
Code:
On Shutdown Quit
Do Form frmMain
Read Events

In the tutorial videos you were pointed to initially in the Video "Building a Sample Application pt1" how to write a main.prg and what to put in there from about minute 12:00 to 20:00+

The videos are giving all the answers you need, just not in the order of your questioning. It would have paid to take the time to watch them, even if you get impatient or bored. There are certain things first and only with their knowledge you can continue to develop, what you want.

Bye, Olaf.
 
its working fine now.
i added a splash screen from a tutorial and its a .vcx class.
it pops out its own SCREEN and doesnt hides with CONFIG.FPW [SCREEN = OFF]
can i use both of it? i mean that in your guide sir olaf
 
You ru a class of a vcx, not a vcx itself. You can mix classes and form, doesn't matter.
If it works, it works, it will be a top level form, too, if it shows even though SCREEN=OFF.

_SCREEN is really just meaning the _SCREEN, not another form, not the desktop.

If you run the VFP IDE, the VFP window itself is _SCREEN, if your app runs, it's not having the VFP IDE menu, toolbars etc, but it's the same white fullscreen form. You don't want that, do you?

What is the question or the problem?

Bye, Olaf.
 
sorry got it solved. deleted stuffs inside WITH _SCREEN on my splash class thanks !

Dexter
 
OK, so you're saying the class you found was showing the _SCREEN again? Well, why don't simply create another form, put a picture on there and there you have your splash screen. Even when you're not familiar with the timer class to let that form disappear after a few seconds, you could simply do

Code:
oSplash = .NULL. && could also be LOCAL oSplash in this case, or this could be skipped, as the next line also will create a variable, when it doesn't preexist 
DO FORM splash NAME oSplash LINKED
WAIT '' TIMEOUT 2.5
RELEASE oSplash

You remember what I explained about the NAME and LINKED clause of DO FORM? Not? It was here: thread184-1701409
So you can make any form a splash screen, even without adding code to it releasing itself.

Bye, Olaf.
 
...another official way to show a BMP picture as splash screen is shown in The -B switch will make vfp9.exe or any exe you compile show a bml for the specified time.

Its better to use WAIT or in more complex application load your framework classes, build up an application object, load/check configuration and such things, needing a few milliseconds and then wait .5 seconds less, whatever.

Bye, Olaf.
 
bml = BMP, if you may wonder what I'm talking about, now. Its really not a nice option as it's simply time wasted doing nothing, so not knowing that -B switch is no shame.

Bye, Olaf.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top