Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Building object name and calling it
Message
De
04/03/2017 10:57:41
 
 
À
04/03/2017 05:46:17
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01648762
Message ID:
01648776
Vues:
57
LOL!! Thanks Cetin - I knew someone would ask that, and the simple answer is that you can't color individual cells of a grid depending on what the status of the underlying record is, so I have had to build a psuedo grid. Here is a pic..It is by far not finished yet, and the coloring per 'cell' isn't done yet, but it gives you an idea... There are 11 time slots for techs in the day, so I do a sql select from the tech file, and create 11 memo fields to hold relevant data later. Next to each memo field is a single character status field giving the status of the record who's data will go into the memo field, so I can use that status to change the background of each 'cell' in the 'grid'. Each 'cell' in the grid is an editbox. Below is what I have tried using to populate the 'rows' of the grid, which are each an instance of a visual class, after having populated the sql cursor with jobs data...
SELECT TempData
zrecs=RECCOUNT()
IF zrecs>0
	x=1
	GO top
	DO WHILE x<=zrecs
		IF x<=zrecs
			GO x
		ELSE
			EXIT
		ENDIF 
		thisobject='Dayjobsline'+ALLTRIM(STR(x))
		thisform.&thisobject..visible=.t.
		WAIT  &&putting a WAIT here displays each row correctly! BUT when it drops out of the Do While, ALL 'rows' display the last record's data...
		x=x+1
	ENDDO 
ENDIF
Thank you for your help so far, Sir!
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform