Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using Array Element for textbox controlsource
Message
 
 
To
23/05/2005 08:35:16
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01016689
Message ID:
01016691
Views:
7
Why do you need array? Can you bind to the lot field directly?
THISFORM.TXT_CURRENT_LOT_NUMBER_VALUE.ControlSource = "stock.lot"
>I am trying to assign an arrary element to a textbox controlsource.
>
>Everytime I run the from I get this error:
>
>"Variable is not found. Unbinding object txt_current_lot_number_value."
>
>List below are the things I have already tried.
>
>A. Have assigned the array has a contorlsource on the
> textbox object: galot(1,RECNO())
>
>B. Used the select statement to create an array.
>
>DIMENSION galot(1,RECNO())
>IF NOT USED('STOCK')
> USE STOCK IN 0 SHARED
> SELECT STOCK
> DIMENSION galot(1,RECNO())
> SELECT LOT FROM STOCK INTO ARRAY gaLOT
> THISFORM.TXT_CURRENT_LOT_NUMBER_VALUE.ControlSource = galot(1,RECNO())
> ENDIF
>
>How can I bound an array to an textbox object without getting this error message.
>
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform