Click here to Skip to main content
16,004,974 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: boolean-interger difference Pin
maxiachun11-Oct-05 18:16
maxiachun11-Oct-05 18:16 
AnswerRe: boolean-interger difference Pin
Guerven12-Oct-05 16:40
Guerven12-Oct-05 16:40 
QuestionHow to make a message from a window service in VB.net Pin
dinhnq10-Oct-05 22:56
dinhnq10-Oct-05 22:56 
AnswerRe: How to make a message from a window service in VB.net Pin
Dave Kreskowiak11-Oct-05 6:57
mveDave Kreskowiak11-Oct-05 6:57 
GeneralRe: How to make a message from a window service in VB.net Pin
dinhnq11-Oct-05 15:24
dinhnq11-Oct-05 15:24 
GeneralRe: How to make a message from a window service in VB.net Pin
Dave Kreskowiak11-Oct-05 18:19
mveDave Kreskowiak11-Oct-05 18:19 
QuestionVB Pseudocode Pin
JAVIER131310-Oct-05 22:33
JAVIER131310-Oct-05 22:33 
AnswerRe: VB Pseudocode Pin
Steve Pullan11-Oct-05 13:46
Steve Pullan11-Oct-05 13:46 
Pseudocode (or p-code) is simply writing down the logic of the program in a way that is readable by humans but is not necessarily valid computer code.

In this case you need to write the logic of what you want to achieve in English which can then help you to translate this to VB, C#, C++ or whatever computer language in which you are writing.

I do this all the time (well mostly Smile | :) ) but especially when I need to specify some logic to a junior programmer without actually writing any code myself.

Everyone's style of writing p-code will be different so don't take what I write here as gospel - you will soon find out what does and does not suit you.

You are on the right track with the login form, but may I suggest this:

[Main Program]
initialize any global variables
display Loginfrm

[Loginfrm]
When the Login button is pressed
begin
    read the username and password
    if the userid and password are valid then
        hide Loginfrm
        display MainMenufrm
    endif
end

when the "Exit" button is pressed
begin
    End program
end

[MainMenufrm]
when the "View Vehicle Database" button is pressed
begin
    hide MainMenufrm
    display ViewVehiclefrm
end

when the "View Customer Database" button is pressed
begin
    hide MainMenufrm
    display ViewCustomerfrm
end

when the "Quick Rent" button is pressed
begin
    hide MainMenufrm
    display QuickRentfrm
end

when the "Exit" button is pressed
begin
    hide MainMenufrm
    display Loginfrm
end


As you can see some of the detail is starting to emerge and points where additional detail is required are being identified. Writing p-code is an iterative process and you can continue down this path to the 'n'th degree. In the above example p-code may need to be written for the QuickRentfrm, ViewCustomerfrm and the validation logic around the userid and password entry, etc. to tease out the details of their operation too.

Best of luck with the assignment.

...Steve
GeneralRe: VB Pseudocode Pin
Anonymous11-Oct-05 15:17
Anonymous11-Oct-05 15:17 
QuestionLaunching an external application and registry trouble Pin
billy3510-Oct-05 21:21
billy3510-Oct-05 21:21 
AnswerRe: Launching an external application and registry trouble Pin
billy3510-Oct-05 23:58
billy3510-Oct-05 23:58 
QuestionHow to build a tic tac toe in vb.net Pin
el papi10-Oct-05 19:42
el papi10-Oct-05 19:42 
AnswerRe: How to build a tic tac toe in vb.net Pin
Anonymous10-Oct-05 22:10
Anonymous10-Oct-05 22:10 
Questionhttp Response Pin
ybasha10-Oct-05 18:25
ybasha10-Oct-05 18:25 
QuestionRead Data From MyKad Pin
nor_izyani10-Oct-05 18:15
nor_izyani10-Oct-05 18:15 
QuestionScanning Barcode.. Pin
_mubashir10-Oct-05 17:50
_mubashir10-Oct-05 17:50 
AnswerRe: Scanning Barcode.. Pin
jonathan1510-Oct-05 22:46
jonathan1510-Oct-05 22:46 
GeneralRe: Scanning Barcode.. Pin
_mubashir10-Oct-05 23:39
_mubashir10-Oct-05 23:39 
GeneralRe: Scanning Barcode.. Pin
jonathan1511-Oct-05 0:58
jonathan1511-Oct-05 0:58 
GeneralRe: Scanning Barcode.. Pin
_mubashir11-Oct-05 1:20
_mubashir11-Oct-05 1:20 
GeneralRe: Scanning Barcode.. Pin
jonathan1511-Oct-05 2:02
jonathan1511-Oct-05 2:02 
QuestionMS Outlook-style Date Recurrence Patterns Pin
sdekel10-Oct-05 12:40
sdekel10-Oct-05 12:40 
QuestionPrinting from AxWebBrowser control to non-default printer without Print Dialog Pin
marowle10-Oct-05 10:46
marowle10-Oct-05 10:46 
QuestionHeight, Width Pin
No-e10-Oct-05 6:09
No-e10-Oct-05 6:09 
AnswerRe: Height, Width Pin
Richard_Wolf10-Oct-05 7:34
Richard_Wolf10-Oct-05 7:34 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.