51

(0 replies, posted in Script)

Welcome

I create an entry interface for users that contains a username and password,
and when any user enters, his name is printed on the receipt
And make the login interface disappear after successful registration

https://top4top.io/del418cd21cca0bec0eb … d8304.html

52

(4 replies, posted in General)

sparrow wrote:

Hi,


Well, almost like in the song "I want it all" (Queen),


It ain't much I'm asking I heard him say
Gotta find me a future move out of my way
I want it all, I want it all, I want it all and I want it now
I want it all, I want it all, I want it all and I want it now.


Well, here's some help:


First, let's learn how to search on our own.
Open Google and enter the search bar:
exe button site:myvisualdatabase.com.
We get the answer to at least two questions in the first link. (http://myvisualdatabase.com/forum/viewtopic.php?id=4472)
Search also works on the forum. True, there is a delay between search queries.



Thank you
I want help in order to get this procedure

4- I want to make settings containing the name, number, address and logo that will be saved when opening the application and this data will be printed on all invoices without counting them with each invoice



The following questions can be searched in the same way.

53

(4 replies, posted in General)

HELLO

I am doing a project
And I need some help


1- I want, when pressing the button, it asks to enter the passcode
2- I want to click on the button to open a website
3- I want to click on the button to open the EXE file
4- I want to make settings containing the name, number, address and logo that will be saved when opening the application and this data will be printed on all invoices without counting them with each invoice



Attached is a copy of the project with all the required content for clarification

The project has been uploaded to an external link because the size is 4 MB
https://www.mediafire.com/file/iq8ptiib … 1.rar/file


I thank you in advance

54

(7 replies, posted in General)

sparrow wrote:

Hi,

Another logo (red) has been added to the report.
In the example, the pictures in the script are configured as follows: if ID = 12  then green (Tom), if any other then red (Jony).
Can be changed as you wish for any field and value.

You can add your attribute (column or table) to the database and change the logo display based on it.


thanks for the help
But what I mean when sending the program to someone and he wants to put his own logo
when printing reports

55

(7 replies, posted in General)

i choose an image in the report
I wanted to change it without going back to preparing the report

56

(7 replies, posted in General)

k245 wrote:

What do you mean by "report logo"?

this is photo

57

(2 replies, posted in General)

derek wrote:

To hide menu bar options, see attached.
Or do you want the 'tape' hidden as well as the options on the tape?
Derek.


Thank you very much
all is ok

58

(7 replies, posted in General)

I want to add a button by which the report logo can be changed to appear when printing

59

(2 replies, posted in General)

How can I hide this tape
With the default theme, it can be hidden
With other themes it can not be hidden

60

(3 replies, posted in General)

derek wrote:

There are a couple of easy things you can do once you have completed your project and it is ready for distribution.
1.  in the main project folder, delete the xxx.vdb file
2.  in the scripts folder, delete the script.pas
This will make your project more secure (although not totally).


Is there another way to protect files?
With passwords or other programs that do not allow the project files to appear
Because after deleting the aforementioned files, it is still possible to modify the program (XML - INI - DB)

61

(3 replies, posted in General)

After completing the project, the files related to the project were found very easy to be modified by anyone
Is there a way to protect the program from modification?

62

(4 replies, posted in General)

derek wrote:

When you write a script, there are 3 things to consider.
1.  What 'object' you want to take action on - in your example, you have two 'objects' - form2.edit3 (price A) and form2.edit4 (price B).
2.  What 'event' that has occurred to the 'object' - in your example it is when something changes - this is called the 'onchange' event.
3.  Naming and creating a procedure in the 'events' tab.
To create a procedure you can either
a.  double click in the relevant 'event' field for the 'object' and MVD will automatically assign a name to that procedure
b.  you can manually type in a name for your procedure and then double click.
Once you have done either a) or b) you are transferred to the script editor where you write your code for the procedure you have just created. 
If you omit Step 3 (naming / creating a procedure) in the 'events' tab, there is no link between the 'object', the 'event' and any code you write.
It is a common mistake that people make when they copy / paste code directly into the script editor;  this will not work without having first created a procedure in the 'events' tab.
This is what has happened in your case.
Have a look at the attached screenshot which I hope will clarify things.
Derek.



Thank you very much
Everything works fine

63

(4 replies, posted in General)

derek wrote:

Hi,
You need to write a short script to perform the calculation.  Please see the attached example.
Also, your 'add' button should call the 'new record' function and not the 'show form' function (see the screenshot in the attachment).
Regards,
Derek


Thanks the example works fine
But when creating a project with the same specifications and writing the code, it does not work. Where is the problem?

64

(4 replies, posted in General)

Welcome .
I wanted to know a method

when the price b >= 0  total = (price b )-( price a)
when the price b = 0  total = price b = 0

Example

when the price b = 0  total = price b = 0
price a = 50
price b = 0
total    = 0


when the price b >= 0  total = (price b )-( price a)
price a = 50
price b = 200
total    = 150