Search found 34 matches: declaring

Return to advanced search

Interesting discussion with ChtGPT

... features of Clipper compared to modern languages might be: Declaration method: In modern languages, it's common to specify the data type when declaring (e.g., int, float, string), while in Clipper, using LOCAL or other keywords without a specific data type is common. Syntax: For example, Clipper ...
by Otto
Mon Nov 06, 2023 4:46 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Interesting discussion with ChtGPT
Replies: 15
Views: 1243

Re: HASH vs single variables

... happy for info/debug. and I can have labels (that gives the type and description of content) that afther time I forgot with older var's Passing, declaring and remember the names are gone )))
by Marc Venken
Wed Jun 07, 2023 8:14 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: HASH vs single variables
Replies: 15
Views: 1092

Re: Conversion from ca-clipper ( not found a variable)

I put many samples in this forum during the years, so you should have seen some of my source code. Anyway, maybe you don't know that declaring a variable also defines its scope and lifetime. A LOCAL variable exists and is only visible inside the function where it is declared. A STATIC variable ...
by Enrico Maria Giordano
Thu Mar 03, 2022 11:25 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Conversion from ca-clipper ( not found a variable)
Replies: 30
Views: 4340

Declareing locals

Hello,
what is the right way to declare locals.

Should we assign a value directly when declaring a local.

For example:
Function test
local aTemp := {}
or is local aTemp enough.

Can someone please explain the difference.
Thank you in advance and best regards
Otto
by Otto
Wed May 01, 2019 4:21 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Declareing locals
Replies: 10
Views: 881

Re: Problem with Get in RibbonBar

i have avoided the error declaring bWhen, nId like DATA CLASS TEvent   DATA bRefresh, bWhen, nId, Hide, Show   METHOD Refresh() INLINE Eval( ::bRefresh )ENDCLASS i have the same problem with selection, if i select the ...
by marzio
Thu May 03, 2018 7:37 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Problem with Get in RibbonBar
Replies: 13
Views: 2203

Re: FONT has changed (not by code)

Dear Natter,

It has fixed, thank you so much.
Natter wrote:I had a similar problem. I solved it locally by declaring the font for each POPUP menu
by dutch
Mon Aug 28, 2017 7:28 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: FONT has changed (not by code)
Replies: 11
Views: 1936

Re: FONT has changed (not by code)

I had a similar problem. I solved it locally by declaring the font for each POPUP menu
by Natter
Mon Aug 28, 2017 6:30 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: FONT has changed (not by code)
Replies: 11
Views: 1936

Re: OT: MAPI -- Why it sometimes work, and sometimes doesn't ?

... so this may be significant. It could create a memory issue, or a CDO issue. METHOD End() INLINE MAPILogOff() I suggest fixing that and declaring oMail as local. Then testing it again on the offending machine. If that doesn't solve it, then it would indicate that something else on that ...
by James Bott
Sun Jun 11, 2017 8:11 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: OT: MAPI -- Why it sometimes work, and sometimes doesn't ?
Replies: 7
Views: 1878

Re: Password protected access to menu. Advice ?

... reason for doing this is because the static will hold the object until the program is ended. So, you can access the object anywhere without even declaring it. You have the code above, just try it. A few minutes spent now learning about objects will save you tremendous time later. I have converted ...
by James Bott
Wed May 10, 2017 2:46 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Password protected access to menu. Advice ?
Replies: 25
Views: 3508

Re: PUBLIC var declaration issue

... the usage of vars outside the funtion it's been declared and add it to the function parameters. Maybe I actually could do both. First your way, declaring all the publics at the top of the file, then I would only get warnings for undeclared locals. Once I got all those declared, then I could ...
by Carlos Mora
Tue Sep 01, 2015 11:18 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: PUBLIC var declaration issue
Replies: 26
Views: 6341

Re: PUBLIC var declaration issue

... so everything was private. Thus every variable name had to be unique across the entire program. Maybe I actually could do both. First your way, declaring all the publics at the top of the file, then I would only get warnings for undeclared locals. Once I got all those declared, then I could ...
by James Bott
Mon Aug 31, 2015 2:16 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: PUBLIC var declaration issue
Replies: 26
Views: 6341

Re: PUBLIC var declaration issue

Thanks Biel! I thought it that way ("... Declaring MEMVAR inside a function gives function scope to the var's declaration, so it should be moved in front of both functions.") but then I didn't put it in the code. Its a good think to have ...
by Carlos Mora
Mon Aug 31, 2015 11:45 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: PUBLIC var declaration issue
Replies: 26
Views: 6341

Re: PUBLIC var declaration issue

... to sth like __MV*() functions, I don't remember exactly to what but that's the idea. Said that, may be MEMVAR should be first, then PUBLIC. Declaring MEMVAR inside a function gives function scope to the var's declaration, so it should be moved in front of both functions. Function Main()  ...
by Carlos Mora
Mon Aug 31, 2015 8:38 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: PUBLIC var declaration issue
Replies: 26
Views: 6341

Re: DIREFENCIA ENTRE HARBOUR/XHARBOUR

... in a loop, or with hard coded IF statements based on PCount(). Instead the above is much easier to code, requires less memory, and is faster than declaring the parameters. GLOBAL variables: ----------------- GLOBAL <Id1> [,<Id2> [,<IdN>]] GLOBAL Variables are a new kind of a ...
by Antonio Linares
Sun Jul 12, 2015 9:26 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: DIREFENCIA ENTRE HARBOUR/XHARBOUR
Replies: 4
Views: 2281

Re: RDDADS.lib for Harbour and Borland

... with ADS 9 through the current. That's because the rddads.lib you have for Harbour was created using ADS SDK version 9. It is only a matter of declaring the environmental variable to point to the right directory before you execute the batch file that builds rddads.lib. Hope that helps, Reinaldo.
by reinaldocrespo
Thu Jan 15, 2015 9:07 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: RDDADS.lib for Harbour and Borland
Replies: 24
Views: 4692
Next

Return to advanced search