View Single Post
Duggan
Senior Member
Volunteer Data File Contributor
 
Join Date: Nov 2009
Posts: 1,502

Old September 20th, 2017, 05:03 PM
Oh, and I "fixed" the "headertitle" error by removing the heading of the table until I understand that correctly. CP charging works.

Now, I've got the trickier bit. A character can have only as many specialties as they have ranks in the skill. I plan to add that to the validation logic, because it's useful for the user to be able to edit it to remove items or change the domain of the two skills. The condition for not showing the Edit button for the Specialties are if the user has no ranks in the skill, and no specialties, which I know how to check for, and whether there exist Specialties that correspond to the skill (there are a handful where you can't get a Specialty currently) and I just can't seem to wrap my brain how to write the condition. I know how to iterate through the values and display the matching items, but is there a way to just get a count of matching items? Or the existence thereof?

Code:
var myId as string
myId = tagids[Skill.sk?," & "]

debug "myID: " & myId
foreach thing in Specialty where myId
  debug "id: " & eachthing.idstring
  nexteach
Duggan is offline   #8 Reply With Quote