The for loop works in the 488 version?

Moderator: Moderator Group

The for loop works in the 488 version?

Postby alverman » Thu Jul 25, 2013 2:38 am

I'm trying this code in a button script, but in the index for the variable IntPtr does not increase.
Doing something wrong or there is a 'mistake in WD?

Thank you, Alberto

Code: Select all
IntPtr=1
For IntPtr =1 To NewsCount
{
WDTextboxAddTextFromRSSFeedTitle,2,IntPtr
WDTextboxAppend,2,***
}
Next
PROService -IT
Intel i7 2600K LGA1155
MB P8H67-MLE 16GB
2xSSD 250GB
GTX470
Win 8.1 PRO
Manager STD V6.1
Player PRO V6.1
WDPro V5 2500
** La famiglia ti nutre, ti veste .... finchè non sei pronto per girare il mondo alla ricerca di qualcosa di tuo. **
User avatar
alverman
 
Posts: 562
Joined: Sat Jun 12, 2010 6:37 pm

Re: The for loop works in the 488 version?

Postby Dennis Kuypers » Thu Jul 25, 2013 9:27 am

Hi Alberto,

WD For loops are different from Visual Basic for-loops. You can access the iteration variable by its name "for.index" as pointed out in the manual. Paranthesis are not required.

Code: Select all
For 1 To NewsCount
 WDTextboxAddTextFromRSSFeedTitle,2,for.index
 WDTextboxAppend,2,***
Next


On a side note: There are no pointers in WD (I'm mentioning that, because you named your variable "IntPtr" which is a pointer structure in .Net Framework)

Best regards
Dennis
Dennis Kuypers
(former Product Developer, Software)
Dennis Kuypers
coolux Germany
 
Posts: 771
Joined: Thu Jul 05, 2012 12:18 pm

Re: The for loop works in the 488 version?

Postby alverman » Thu Jul 25, 2013 12:04 pm

Work .... tnx
PROService -IT
Intel i7 2600K LGA1155
MB P8H67-MLE 16GB
2xSSD 250GB
GTX470
Win 8.1 PRO
Manager STD V6.1
Player PRO V6.1
WDPro V5 2500
** La famiglia ti nutre, ti veste .... finchè non sei pronto per girare il mondo alla ricerca di qualcosa di tuo. **
User avatar
alverman
 
Posts: 562
Joined: Sat Jun 12, 2010 6:37 pm


Return to Widget Designer V4.7

Who is online

Users browsing this forum: No registered users and 23 guests