WLanguage By Reference and By Value

WinDev 3 Comments »

WinDev procedure parameters are passed by reference as a default and this is great but can also cause some strange issues in your code if you are not careful.

There are a few ways to pass an object by value and one of my favourite is using the LOCAL statement when defining your parameters.

Here’s an example:

image

If you don’t define anything as LOCAL then you can also tell WLanguage that you are passing by value just by adding brackets around the object you are passing:

CalculateWinnerPrizeTotals((nWinnerID), xCost)

So the example above shows how you can tell the method you are passing nWinnerID by value and not by reference.

Using TX Text Control in WinDev

WinDev No Comments »

WinDev 14 – Project Explorer Tip

WinDev No Comments »

Are PC Soft Really Committed to the WinDev English Version?

WebDev, WinDev 36 Comments »

WinDev Book in the Works

WinDev 2 Comments »

WinDEV 14 – Top 10 Features I am Excited About

WebDev, WinDev No Comments »

Building Squeeze Pages with WebDEV

WebDev, WinDev No Comments »

WINDEV – Tidy Development with Internal Windows

WinDev No Comments »

WebDEV – Expand Cell to Fill Page

WebDev No Comments »

Montpellier Webcam Project

WinDev 1 Comment »
WP Theme & Icons by N.Design Studio
Entries RSS Comments RSS Log in